76 if ( !
gc.testElementGraphicActivity(
this) ) {
81 EASValsSetColor(
gc.getElementColor() );
82 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
83 EASValsSetEdgeFlag(
true);
85 EASValsSetFillStyle(FILL_HOLLOW);
86 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
87 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
89 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
90 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
92 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveCoordinate(1);
93 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveCoordinate(2);
95 p [ 3 ].x = ( FPNum ) this->
giveNode(4)->giveCoordinate(1);
96 p [ 3 ].y = ( FPNum ) this->
giveNode(4)->giveCoordinate(2);
100 EGWithMaskChangeAttributes(WIDTH_MASK | FILL_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
101 EGAttachObject(go, ( EObjectP )
this);
102 EMAddGraphicsToModel(ESIModel(), go);
110 double defScale =
gc.getDefScale();
112 if ( !
gc.testElementGraphicActivity(
this) ) {
117 EASValsSetColor(
gc.getDeformedElementColor() );
118 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
119 EASValsSetEdgeFlag(
true);
121 EASValsSetFillStyle(FILL_HOLLOW);
122 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(1, tStep, defScale);
123 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(2, tStep, defScale);
125 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(1, tStep, defScale);
126 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(2, tStep, defScale);
128 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(1, tStep, defScale);
129 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(2, tStep, defScale);
131 p [ 3 ].x = ( FPNum ) this->
giveNode(4)->giveUpdatedCoordinate(1, tStep, defScale);
132 p [ 3 ].y = ( FPNum ) this->
giveNode(4)->giveUpdatedCoordinate(2, tStep, defScale);
135 go = CreateQuad3D(p);
136 EGWithMaskChangeAttributes(WIDTH_MASK | FILL_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
137 EMAddGraphicsToModel(ESIModel(), go);
147 double s [ 4 ], defScale;
149 if ( !
gc.testElementGraphicActivity(
this) ) {
236 for ( i = 0; i < 8; i++ ) {
237 if (
gc.getInternalVarsDefGeoFlag() ) {
239 defScale =
gc.getDefScale();
240 pp [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(1, tStep, defScale);
241 pp [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(2, tStep, defScale);
244 pp [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(1);
245 pp [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(2);
250 pp [ 8 ].x = 0.25 * ( pp [ 0 ].x + pp [ 1 ].x + pp [ 2 ].x + pp [ 3 ].x );
251 pp [ 8 ].y = 0.25 * ( pp [ 0 ].y + pp [ 1 ].y + pp [ 2 ].y + pp [ 3 ].y );
255 const FloatArray& gpCoords = gp->giveNaturalCoordinates();
256 if ( ( gpCoords.
at(1) > 0. ) && ( gpCoords.
at(2) > 0. ) ) {
261 }
else if ( ( gpCoords.
at(1) < 0. ) && ( gpCoords.
at(2) > 0. ) ) {
266 }
else if ( ( gpCoords.
at(1) < 0. ) && ( gpCoords.
at(2) < 0. ) ) {
278 if (
giveIPValue(v [ 0 ], gp,
gc.giveIntVarType(), tStep) == 0 ) {
282 indx =
gc.giveIntVarIndx();
284 for ( i = 1; i <= 4; i++ ) {
285 s [ i - 1 ] = v [ 0 ].
at(indx);
288 for ( i = 0; i < 4; i++ ) {
289 p [ i ].x = pp [ ind.
at(i + 1) ].x;
290 p [ i ].y = pp [ ind.
at(i + 1) ].y;
291 p [ i ].z = pp [ ind.
at(i + 1) ].z;
294 gc.updateFringeTableMinMax(s, 4);
295 tr = CreateQuadWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ], s [ 3 ]);
296 EGWithMaskChangeAttributes(LAYER_MASK, tr);
297 EMAddGraphicsToModel(ESIModel(), tr);
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define OOFEG_VARPLOT_PATTERN_LAYER
#define OOFEG_DEFORMED_GEOMETRY_LAYER
#define OOFEG_DEFORMED_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_LAYER