153InterfaceElem2dLin :: computeGtoLRotationMatrix(
FloatMatrix &answer)
158 grad.
at(1) = this->
giveNode(2)->giveCoordinate(1) - this->
giveNode(1)->giveCoordinate(1);
159 grad.
at(2) = this->
giveNode(2)->giveCoordinate(2) - this->
giveNode(1)->giveCoordinate(2);
163 for (
int i = 0; i < 4; i++ ) {
164 answer.
at(i * 2 + 1, i * 2 + 1) = grad.
at(1);
165 answer.
at(i * 2 + 1, i * 2 + 2) = grad.
at(2);
166 answer.
at(i * 2 + 2, i * 2 + 1) = -grad.
at(2);
167 answer.
at(i * 2 + 2, i * 2 + 2) = grad.
at(1);
186 if ( !
gc.testElementGraphicActivity(
this) ) {
191 EASValsSetColor(
gc.getElementColor() );
193 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
194 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
196 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
197 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
199 go = CreateLine3D(p);
200 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | LAYER_MASK, go);
201 EGAttachObject(go, ( EObjectP )
this);
202 EMAddGraphicsToModel(ESIModel(), go);
211 if ( !
gc.testElementGraphicActivity(
this) ) {
215 double defScale =
gc.getDefScale();
218 EASValsSetColor(
gc.getDeformedElementColor() );
220 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(1, tStep, defScale);
221 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(2, tStep, defScale);
223 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(1, tStep, defScale);
224 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(2, tStep, defScale);
226 go = CreateLine3D(p);
227 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | LAYER_MASK, go);
228 EMAddGraphicsToModel(ESIModel(), go);
230 p [ 0 ].x = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(1, tStep, defScale);
231 p [ 0 ].y = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(2, tStep, defScale);
233 p [ 1 ].x = ( FPNum ) this->
giveNode(4)->giveUpdatedCoordinate(1, tStep, defScale);
234 p [ 1 ].y = ( FPNum ) this->
giveNode(4)->giveUpdatedCoordinate(2, tStep, defScale);
236 go = CreateLine3D(p);
237 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | LAYER_MASK, go);
238 EMAddGraphicsToModel(ESIModel(), go);
244 int indx, result = 0;
250 if ( !
gc.testElementGraphicActivity(
this) ) {
265 indx =
gc.giveIntVarIndx();
269 p [ 0 ].x = ( FPNum ) gcoord.at(1);
270 p [ 0 ].y = ( FPNum ) gcoord.at(2);
273 val [ 0 ] = v1.
at(indx);
274 gc.updateFringeTableMinMax(val, 1);
278 EASValsSetMType(FILLED_CIRCLE_MARKER);
279 go = CreateMarkerWD3D(p, val [ 0 ]);
280 EGWithMaskChangeAttributes(LAYER_MASK | FILL_MASK | MTYPE_MASK, go);
281 EMAddGraphicsToModel(ESIModel(), go);
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