98 if ( !
gc.testElementGraphicActivity(
this) ) {
103 EASValsSetColor(
gc.getElementColor() );
104 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
105 EASValsSetEdgeFlag(
true);
107 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
108 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
110 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
111 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
113 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveCoordinate(1);
114 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveCoordinate(2);
117 go = CreateTriangle3D(p);
118 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
119 EGAttachObject(go, ( EObjectP )
this);
120 EMAddGraphicsToModel(ESIModel(), go);
128 double defScale =
gc.getDefScale();
130 if ( !
gc.testElementGraphicActivity(
this) ) {
135 EASValsSetColor(
gc.getDeformedElementColor() );
136 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
137 EASValsSetEdgeFlag(
true);
139 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(1, tStep, defScale);
140 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(2, tStep, defScale);
142 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(1, tStep, defScale);
143 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(2, tStep, defScale);
145 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(1, tStep, defScale);
146 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(2, tStep, defScale);
149 go = CreateTriangle3D(p);
150 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
151 EMAddGraphicsToModel(ESIModel(), go);
157 int t, n [ 3 ], i, indx, result = 0;
161 double s [ 6 ], ss [ 3 ], defScale;
163 if ( !
gc.testElementGraphicActivity(
this) ) {
169 for ( i = 1; i <= 6; i++ ) {
177 indx =
gc.giveIntVarIndx();
179 for ( i = 1; i <= 6; i++ ) {
180 s [ i - 1 ] = v [ i - 1 ].
at(indx);
186 for ( t = 1; t <= 4; t++ ) {
191 }
else if ( t == 2 ) {
195 }
else if ( t == 3 ) {
206 for ( i = 0; i < 3; i++ ) {
207 if (
gc.getInternalVarsDefGeoFlag() ) {
209 defScale =
gc.getDefScale();
210 p [ i ].x = ( FPNum ) this->
giveNode(n [ i ])->giveUpdatedCoordinate(1, tStep, defScale);
211 p [ i ].y = ( FPNum ) this->
giveNode(n [ i ])->giveUpdatedCoordinate(2, tStep, defScale);
215 p [ i ].x = ( FPNum ) this->
giveNode(n [ i ])->giveCoordinate(1);
216 p [ i ].y = ( FPNum ) this->
giveNode(n [ i ])->giveCoordinate(2);
222 ss [ 0 ] = s [ n [ 0 ] - 1 ];
223 ss [ 1 ] = s [ n [ 1 ] - 1 ];
224 ss [ 2 ] = s [ n [ 2 ] - 1 ];
225 gc.updateFringeTableMinMax(ss, 3);
226 tr = CreateTriangleWD3D(p, ss [ 0 ], ss [ 1 ], ss [ 2 ]);
227 EGWithMaskChangeAttributes(LAYER_MASK, tr);
228 EMAddGraphicsToModel(ESIModel(), tr);
275 for ( i = 0; i < 6; i++ ) {
276 if (
gc.getInternalVarsDefGeoFlag() ) {
278 defScale =
gc.getDefScale();
279 pp [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(1, tStep, defScale);
280 pp [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(2, tStep, defScale);
284 pp [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(1);
285 pp [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(2);
292 switch ( gp->giveNumber() ) {
315 if (
giveIPValue(v [ 0 ], gp,
gc.giveIntVarType(), tStep) == 0 ) {
319 indx =
gc.giveIntVarIndx();
321 for ( i = 1; i <= 3; i++ ) {
322 s [ i - 1 ] = v [ 0 ].
at(indx);
325 for ( i = 0; i < 3; i++ ) {
326 p [ i ].x = pp [ ind.
at(i + 1) ].x;
327 p [ i ].y = pp [ ind.
at(i + 1) ].y;
328 p [ i ].z = pp [ ind.
at(i + 1) ].z;
331 gc.updateFringeTableMinMax(s, 3);
332 EASValsSetFillStyle(FILL_SOLID);
333 tr = CreateTriangleWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ]);
334 EGWithMaskChangeAttributes(FILL_MASK | LAYER_MASK, tr);
335 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