本文整理汇总了C++中oofegGraphicContext::giveIntVarPlotMode方法的典型用法代码示例。如果您正苦于以下问题:C++ oofegGraphicContext::giveIntVarPlotMode方法的具体用法?C++ oofegGraphicContext::giveIntVarPlotMode怎么用?C++ oofegGraphicContext::giveIntVarPlotMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oofegGraphicContext
的用法示例。
在下文中一共展示了oofegGraphicContext::giveIntVarPlotMode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawYourself
void
Lattice2d_mt :: drawYourself(oofegGraphicContext &gc)
{
OGC_PlotModeType mode = gc.giveIntVarPlotMode();
if ( mode == OGC_rawGeometry ) {
this->drawRawGeometry(gc);
this->drawRawCrossSections(gc);
} else {
_error("drawYourself : unsupported mode");
}
}
示例2: drawYourself
void
Lattice2d_mt :: drawYourself(oofegGraphicContext &gc, TimeStep *tStep)
{
OGC_PlotModeType mode = gc.giveIntVarPlotMode();
if ( mode == OGC_rawGeometry ) {
this->drawRawGeometry(gc, tStep);
this->drawRawCrossSections(gc, tStep);
} else {
OOFEM_ERROR("unsupported mode");
}
}
示例3: drawYourself
void
Lattice2d :: drawYourself(oofegGraphicContext &gc, TimeStep *tStep)
{
OGC_PlotModeType mode = gc.giveIntVarPlotMode();
if ( mode == OGC_rawGeometry ) {
this->drawRawGeometry(gc, tStep);
this->drawRawCrossSections(gc, tStep);
} else if ( mode == OGC_deformedGeometry ) {
this->drawDeformedGeometry(gc, tStep, DisplacementVector);
} else if ( mode == OGC_eigenVectorGeometry ) {
this->drawDeformedGeometry(gc, tStep, EigenVector);
} else if ( mode == OGC_scalarPlot ) {
this->drawScalar(gc, tStep);
} else if ( mode == OGC_elemSpecial ) {
this->drawSpecial(gc, tStep);
} else {
OOFEM_ERROR("unsupported mode");
}
}