46EngngModel *oofegGraphicContext :: emodel = NULL;
47EFringeTable oofegGraphicContext :: ft;
48EPixel oofegGraphicContext :: meshFillColor;
49EPixel oofegGraphicContext :: remoteMeshFillColor;
50EPixel oofegGraphicContext :: edgeColor;
51EPixel oofegGraphicContext :: remoteEdgeColor;
52EPixel oofegGraphicContext :: nodeColor;
53EPixel oofegGraphicContext :: bcicColor;
54EPixel oofegGraphicContext :: bcForceColor;
55EPixel oofegGraphicContext :: deformedElementColor;
56EPixel oofegGraphicContext :: crackPatternColor;
57EPixel oofegGraphicContext :: activeCrackColor;
59EPixel oofegGraphicContext :: crossSectionColor;
60EPixel oofegGraphicContext :: standardSparseProfileColor, oofegGraphicContext :: extendedSparseProfileColor;
61EPixel oofegGraphicContext :: geometryColor;
62int oofegGraphicContext :: activeStep = -1;
63int oofegGraphicContext :: activeStepVersion = 0;
64double oofegGraphicContext :: defScale = 1.0;
65double oofegGraphicContext :: zprofilescale = 0.0;
66int oofegGraphicContext :: activeEigVal = 1;
67int oofegGraphicContext :: activeYieldStep;
68IntArray oofegGraphicContext :: matRegFilter;
69std :: list< Range > oofegGraphicContext :: element_filter;
72int oofegGraphicContext :: intVarDefGeoFlag = 0;
73int oofegGraphicContext :: sparseProfileMode;
74int oofegGraphicContext :: activeProblem = 0;
75int oofegGraphicContext :: activeDomain = 0;
77double oofegGraphicContext :: emin, oofegGraphicContext :: emax;
78int oofegGraphicContext :: scaleInitFlag;
81bool oofegGraphicContext :: staticVarsInitFlag = 0;
84oofegGraphicContext :: oofegGraphicContext()
99 meshFillColor = ColorGetPixelFromString(
const_cast< char *
>(
"black"), & suc);
101 edgeColor = ColorGetPixelFromString(
const_cast< char *
>(
"black"), & suc);
102 edgeColor = ColorGetPixelFromString(
const_cast< char *
>(
"DarkGray"), & suc);
104 nodeColor = ColorGetPixelFromString(
const_cast< char *
>(
"black"), & suc);
105 bcicColor = ColorGetPixelFromString(
const_cast< char *
>(
"orange"), & suc);
106 bcForceColor = ColorGetPixelFromString(
const_cast< char *
>(
"red"), & suc);
107 crackPatternColor = ColorGetPixelFromString(
const_cast< char *
>(
"gray66"), & suc);
108 activeCrackColor = ColorGetPixelFromString(
const_cast< char *
>(
"red2"), & suc);
111 geometryColor = ColorGetPixelFromString(
const_cast< char *
>(
"yellow"), & suc);
113 yieldPlotColors [ 0 ] = ColorGetPixelFromString(
const_cast< char *
>(
"pink"), & suc);
114 yieldPlotColors [ 1 ] = ColorGetPixelFromString(
const_cast< char *
>(
"PaleVioletRed"), & suc);
115 yieldPlotColors [ 2 ] = ColorGetPixelFromString(
const_cast< char *
>(
"maroon"), & suc);
117 crossSectionColor = ColorGetPixelFromString(
const_cast< char *
>(
"blue"), & suc);
121 ft = ColorCreateFringeTable();
130 for ( i = 1; i <= nmat; i++ ) {
138oofegGraphicContext :: ~oofegGraphicContext()
142oofegGraphicContext :: GR_giveColorFromUserColorTable(EPixel *table,
int tableSize,
double relVal)
156 int indx = ( int ) floor(relVal * tableSize + 0.5);
157 return table [ indx - 1 ];
161oofegGraphicContext :: testElementGraphicActivity(
Element *e)
164 int elemFiltState = 0;
166 return matFilterState;
175 return ( matFilterState && elemFiltState );
180oofegGraphicContext :: getMaterialModelFilterState(
int i)
190oofegGraphicContext :: setMaterialModelFilterState(
int i,
int state)
200oofegGraphicContext :: setElementFilterState(
char *initString)
208oofegGraphicContext :: setActiveProblem(
int a)
218 for (
int i = 1; i <= nmat; i++ ) {
227oofegGraphicContext :: getActiveProblem() {
237oofegGraphicContext :: updateFringeTableMinMax(
double *s,
int size)
243 for (
int i = 0; i < size; i++ ) {
245 smin = smax = s [ i ];
248 if ( smax < s [ i ] ) {
252 if ( smin > s [ i ] ) {
259 if ( fabs(smax - smin) < 1.e-12 ) {
263 ColorSetupFringeTableByMinMax(this->
getFringeTable(), ( FPNum ) smin, ( FPNum ) smax);
int giveNumberOfMaterialModels() const
Returns number of material models in domain.
int giveNumberOfRegions() const
Returns number of regions. Currently regions corresponds to cross section models.
int giveNumberOfDomains()
Returns number of domains in problem.
Domain * giveDomain(int n)
static EngngModel * emodel
static EPixel standardSparseProfileColor
static IntArray matRegFilter
static EPixel deformedElementColor
static EPixel bcForceColor
EFringeTable getFringeTable()
static EPixel yieldPlotColors[OOFEG_YIELD_STEPS]
int getMaterialModelFilterState(int i)
OGC_PlotModeType plotMode
static EPixel crackPatternColor
static bool staticVarsInitFlag
static std ::list< Range > element_filter
void setScaleVals(double smin, double smax)
static EPixel meshFillColor
static EPixel activeCrackColor
static EPixel extendedSparseProfileColor
static EPixel geometryColor
static EPixel remoteMeshFillColor
static EPixel crossSectionColor
FloatArrayF< N > max(const FloatArrayF< N > &a, const FloatArrayF< N > &b)
InternalStateMode
Determines the mode of internal variable.
#define OOFEG_YIELD_STEPS