gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
PViewOptions Class Reference

#include <PViewOptions.h>

Collaboration diagram for PViewOptions:

Public Types

enum  PlotType { Plot3D = 1, Plot2DSpace = 2, Plot2DTime = 3, Plot2D = 4 }
 
enum  IntervalsType { Iso = 1, Continuous = 2, Discrete = 3, Numeric = 4 }
 
enum  VectorType {
  Segment = 1, Arrow = 2, Pyramid = 3, Arrow3D = 4,
  Displacement = 5
}
 
enum  TensorType {
  VonMises = 1, MaxEigenValue = 2, MinEigenValue = 3, EigenVectors = 4,
  Ellipse = 5, Ellipsoid = 6, Frame = 7
}
 
enum  GlyphLocation { COG = 1, Vertex = 2 }
 
enum  RangeType { Default = 1, Custom = 2, PerTimeStep = 3 }
 
enum  ScaleType { Linear = 1, Logarithmic = 2, DoubleLogarithmic = 3 }
 

Public Member Functions

 PViewOptions ()
 
 ~PViewOptions ()
 
double getScaleValue (int iso, int numIso, double min, double max)
 
int getScaleIndex (double val, int numIso, double min, double max, bool forceLinear=false)
 
unsigned int getColor (double val, double min, double max, bool forceLinear=false, int numColors=-1)
 
unsigned int getColor (int i, int nb)
 
void createGeneralRaise ()
 
bool skipElement (int type)
 

Static Public Member Functions

static PViewOptionsreference ()
 

Public Attributes

int type
 
int autoPosition
 
double position [2]
 
double size [2]
 
std::string format
 
int axes
 
int axesAutoPosition
 
int axesMikado
 
double axesTics [3]
 
std::string axesFormat [3]
 
std::string axesLabel [3]
 
double axesPosition [6]
 
double customMin
 
double customMax
 
double tmpMin
 
double tmpMax
 
double externalMin
 
double externalMax
 
double customAbscissaMin
 
double customAbscissaMax
 
SBoundingBox3d tmpBBox
 
double offset [3]
 
double raise [3]
 
double transform [3][3]
 
double displacementFactor
 
double normalRaise
 
double explode
 
double arrowSizeMin
 
double arrowSizeMax
 
double normals
 
double tangents
 
int visible
 
int intervalsType
 
int nbIso
 
int light
 
int lightTwoSide
 
int lightLines
 
int smoothNormals
 
double angleSmoothNormals
 
int saturateValues
 
int fakeTransparency
 
int showElement
 
int showTime
 
int showScale
 
int scaleType
 
int rangeType
 
int abscissaRangeType
 
int vectorType
 
int tensorType
 
int glyphLocation
 
int centerGlyphs
 
int timeStep
 
double currentTime
 
int drawStrings
 
int drawPoints
 
int drawLines
 
int drawTriangles
 
int drawQuadrangles
 
int drawPolygons
 
int drawTetrahedra
 
int drawHexahedra
 
int drawPrisms
 
int drawPyramids
 
int drawTrihedra
 
int drawPolyhedra
 
int drawScalars
 
int drawVectors
 
int drawTensors
 
int boundary
 
int pointType
 
int lineType
 
int drawSkinOnly
 
double pointSize
 
double lineWidth
 
GmshColorTable colorTable
 
int useStipple
 
int stipple [10][2]
 
std::string stippleString [10]
 
int externalViewIndex
 
int viewIndexForGenRaise
 
int useGenRaise
 
double genRaiseFactor
 
std::string genRaiseX
 
std::string genRaiseY
 
std::string genRaiseZ
 
mathEvaluatorgenRaiseEvaluator
 
int adaptVisualizationGrid
 
int maxRecursionLevel
 
double targetError
 
int clip
 
int forceNumComponents
 
int componentMap [9]
 
int sampling
 
std::string attributes
 
std::string doubleClickedCommand
 
std::string group
 
int closed
 
struct {
   unsigned int   point
 
   unsigned int   line
 
   unsigned int   triangle
 
   unsigned int   quadrangle
 
   unsigned int   tetrahedron
 
   unsigned int   hexahedron
 
   unsigned int   prism
 
   unsigned int   pyramid
 
   unsigned int   trihedron
 
   unsigned int   tangents
 
   unsigned int   normals
 
   unsigned int   text2d
 
   unsigned int   text3d
 
   unsigned int   axes
 
   unsigned int   background2d
 
color
 

Static Private Attributes

static PViewOptions_reference = nullptr
 

Detailed Description

Definition at line 16 of file PViewOptions.h.

Member Enumeration Documentation

◆ GlyphLocation

Enumerator
COG 
Vertex 

Definition at line 36 of file PViewOptions.h.

◆ IntervalsType

Enumerator
Iso 
Continuous 
Discrete 
Numeric 

Definition at line 19 of file PViewOptions.h.

◆ PlotType

Enumerator
Plot3D 
Plot2DSpace 
Plot2DTime 
Plot2D 

Definition at line 18 of file PViewOptions.h.

◆ RangeType

Enumerator
Default 
Custom 
PerTimeStep 

Definition at line 37 of file PViewOptions.h.

◆ ScaleType

Enumerator
Linear 
Logarithmic 
DoubleLogarithmic 

Definition at line 38 of file PViewOptions.h.

◆ TensorType

Enumerator
VonMises 
MaxEigenValue 
MinEigenValue 
EigenVectors 
Ellipse 
Ellipsoid 
Frame 

Definition at line 27 of file PViewOptions.h.

◆ VectorType

Enumerator
Segment 
Arrow 
Pyramid 
Arrow3D 
Displacement 

Definition at line 20 of file PViewOptions.h.

Constructor & Destructor Documentation

◆ PViewOptions()

PViewOptions::PViewOptions ( )

Definition at line 13 of file PViewOptions.cpp.

Referenced by reference().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~PViewOptions()

PViewOptions::~PViewOptions ( )

Definition at line 20 of file PViewOptions.cpp.

Member Function Documentation

◆ createGeneralRaise()

void PViewOptions::createGeneralRaise ( )

Definition at line 120 of file PViewOptions.cpp.

Referenced by initPView::operator()().

Here is the caller graph for this function:

◆ getColor() [1/2]

unsigned int PViewOptions::getColor ( double  val,
double  min,
double  max,
bool  forceLinear = false,
int  numColors = -1 
)

Definition at line 86 of file PViewOptions.cpp.

Referenced by addGraphPoint(), addScalarLine(), addScalarPoint(), addScalarTetrahedron(), addScalarTriangle(), addTensorElement(), addTriangle(), addVectorElement(), drawNumberGlyphs(), drawScaleBar(), and writeX3DScaleBar().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getColor() [2/2]

unsigned int PViewOptions::getColor ( int  i,
int  nb 
)

Definition at line 108 of file PViewOptions.cpp.

◆ getScaleIndex()

int PViewOptions::getScaleIndex ( double  val,
int  numIso,
double  min,
double  max,
bool  forceLinear = false 
)

Definition at line 64 of file PViewOptions.cpp.

Referenced by getColor().

Here is the caller graph for this function:

◆ getScaleValue()

double PViewOptions::getScaleValue ( int  iso,
int  numIso,
double  min,
double  max 
)

Definition at line 33 of file PViewOptions.cpp.

Referenced by addScalarLine(), addScalarTetrahedron(), addScalarTriangle(), drawScaleValues(), and writeX3DScaleValues().

Here is the caller graph for this function:

◆ reference()

PViewOptions * PViewOptions::reference ( )
static

Definition at line 27 of file PViewOptions.cpp.

Referenced by GetColorTable(), PrintColorTable(), PView::PView(), and PView::setOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ skipElement()

bool PViewOptions::skipElement ( int  type)

Definition at line 139 of file PViewOptions.cpp.

Referenced by addElementsInArrays(), drawGlyphs(), and getGraphData().

Here is the caller graph for this function:

Member Data Documentation

◆ _reference

PViewOptions * PViewOptions::_reference = nullptr
staticprivate

Definition at line 94 of file PViewOptions.h.

Referenced by reference().

◆ abscissaRangeType

int PViewOptions::abscissaRangeType

Definition at line 59 of file PViewOptions.h.

Referenced by drawGraph(), and getGraphData().

◆ adaptVisualizationGrid

int PViewOptions::adaptVisualizationGrid

Definition at line 78 of file PViewOptions.h.

Referenced by _addModelData(), PView::combine(), and PView::PView().

◆ angleSmoothNormals

double PViewOptions::angleSmoothNormals

Definition at line 56 of file PViewOptions.h.

Referenced by initPView::operator()().

◆ arrowSizeMax

double PViewOptions::arrowSizeMax

Definition at line 52 of file PViewOptions.h.

Referenced by drawEllipseArray(), and drawVectorArray().

◆ arrowSizeMin

double PViewOptions::arrowSizeMin

Definition at line 52 of file PViewOptions.h.

Referenced by drawEllipseArray(), and drawVectorArray().

◆ attributes

std::string PViewOptions::attributes

Definition at line 83 of file PViewOptions.h.

◆ autoPosition

int PViewOptions::autoPosition

◆ axes [1/2]

int PViewOptions::axes

◆ axes [2/2]

unsigned int PViewOptions::axes

Definition at line 89 of file PViewOptions.h.

◆ axesAutoPosition

int PViewOptions::axesAutoPosition

Definition at line 43 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ axesFormat

std::string PViewOptions::axesFormat[3]

Definition at line 45 of file PViewOptions.h.

Referenced by drawGraphAxes(), and drawPView::operator()().

◆ axesLabel

std::string PViewOptions::axesLabel[3]

◆ axesMikado

int PViewOptions::axesMikado

Definition at line 43 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ axesPosition

double PViewOptions::axesPosition[6]

Definition at line 46 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ axesTics

double PViewOptions::axesTics[3]

Definition at line 44 of file PViewOptions.h.

Referenced by drawGraphAxes(), and drawPView::operator()().

◆ background2d

unsigned int PViewOptions::background2d

Definition at line 89 of file PViewOptions.h.

Referenced by drawGraphAxes().

◆ boundary

◆ centerGlyphs

int PViewOptions::centerGlyphs

Definition at line 60 of file PViewOptions.h.

Referenced by drawNumberGlyphs(), and drawVectorArray().

◆ clip

◆ closed

int PViewOptions::closed

Definition at line 84 of file PViewOptions.h.

◆ color

◆ colorTable

GmshColorTable PViewOptions::colorTable

◆ componentMap

int PViewOptions::componentMap[9]

Definition at line 81 of file PViewOptions.h.

Referenced by addElementsInArrays(), addVectorElement(), and drawGlyphs().

◆ currentTime

double PViewOptions::currentTime

Definition at line 62 of file PViewOptions.h.

Referenced by applyGeneralRaise(), and PViewOptions().

◆ customAbscissaMax

double PViewOptions::customAbscissaMax

Definition at line 48 of file PViewOptions.h.

Referenced by getGraphData().

◆ customAbscissaMin

double PViewOptions::customAbscissaMin

Definition at line 48 of file PViewOptions.h.

Referenced by getGraphData().

◆ customMax

double PViewOptions::customMax

◆ customMin

double PViewOptions::customMin

◆ displacementFactor

double PViewOptions::displacementFactor

Definition at line 50 of file PViewOptions.h.

Referenced by addTensorElement(), addVectorElement(), and changeCoordinates().

◆ doubleClickedCommand

std::string PViewOptions::doubleClickedCommand

Definition at line 83 of file PViewOptions.h.

◆ drawHexahedra

int PViewOptions::drawHexahedra

Definition at line 65 of file PViewOptions.h.

Referenced by skipElement().

◆ drawLines

int PViewOptions::drawLines

Definition at line 64 of file PViewOptions.h.

Referenced by skipElement().

◆ drawPoints

int PViewOptions::drawPoints

Definition at line 64 of file PViewOptions.h.

Referenced by skipElement().

◆ drawPolygons

int PViewOptions::drawPolygons

Definition at line 64 of file PViewOptions.h.

◆ drawPolyhedra

int PViewOptions::drawPolyhedra

Definition at line 66 of file PViewOptions.h.

◆ drawPrisms

int PViewOptions::drawPrisms

Definition at line 65 of file PViewOptions.h.

Referenced by skipElement().

◆ drawPyramids

int PViewOptions::drawPyramids

Definition at line 65 of file PViewOptions.h.

Referenced by skipElement().

◆ drawQuadrangles

int PViewOptions::drawQuadrangles

Definition at line 64 of file PViewOptions.h.

Referenced by skipElement().

◆ drawScalars

int PViewOptions::drawScalars

Definition at line 67 of file PViewOptions.h.

Referenced by addElementsInArrays().

◆ drawSkinOnly

int PViewOptions::drawSkinOnly

Definition at line 68 of file PViewOptions.h.

Referenced by addScalarTetrahedron().

◆ drawStrings

int PViewOptions::drawStrings

Definition at line 63 of file PViewOptions.h.

Referenced by drawContext::drawText2d(), and drawPView::operator()().

◆ drawTensors

int PViewOptions::drawTensors

Definition at line 67 of file PViewOptions.h.

Referenced by addElementsInArrays().

◆ drawTetrahedra

int PViewOptions::drawTetrahedra

Definition at line 65 of file PViewOptions.h.

Referenced by skipElement().

◆ drawTriangles

int PViewOptions::drawTriangles

Definition at line 64 of file PViewOptions.h.

Referenced by skipElement().

◆ drawTrihedra

int PViewOptions::drawTrihedra

Definition at line 65 of file PViewOptions.h.

Referenced by skipElement().

◆ drawVectors

int PViewOptions::drawVectors

Definition at line 67 of file PViewOptions.h.

Referenced by addElementsInArrays().

◆ explode

double PViewOptions::explode

Definition at line 51 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ externalMax

double PViewOptions::externalMax

Definition at line 47 of file PViewOptions.h.

Referenced by addVectorElement(), drawScale(), getExternalValues(), and writeX3DScale().

◆ externalMin

double PViewOptions::externalMin

Definition at line 47 of file PViewOptions.h.

Referenced by addVectorElement(), drawScale(), getExternalValues(), and writeX3DScale().

◆ externalViewIndex

int PViewOptions::externalViewIndex

◆ fakeTransparency

int PViewOptions::fakeTransparency

Definition at line 57 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ forceNumComponents

int PViewOptions::forceNumComponents

Definition at line 81 of file PViewOptions.h.

Referenced by addElementsInArrays(), addVectorElement(), and drawGlyphs().

◆ format

◆ genRaiseEvaluator

mathEvaluator* PViewOptions::genRaiseEvaluator

Definition at line 77 of file PViewOptions.h.

Referenced by applyGeneralRaise(), createGeneralRaise(), and ~PViewOptions().

◆ genRaiseFactor

double PViewOptions::genRaiseFactor

Definition at line 75 of file PViewOptions.h.

Referenced by applyGeneralRaise().

◆ genRaiseX

std::string PViewOptions::genRaiseX

Definition at line 76 of file PViewOptions.h.

Referenced by createGeneralRaise().

◆ genRaiseY

std::string PViewOptions::genRaiseY

Definition at line 76 of file PViewOptions.h.

Referenced by createGeneralRaise().

◆ genRaiseZ

std::string PViewOptions::genRaiseZ

Definition at line 76 of file PViewOptions.h.

Referenced by createGeneralRaise().

◆ glyphLocation

int PViewOptions::glyphLocation

Definition at line 60 of file PViewOptions.h.

Referenced by addTensorElement(), addVectorElement(), and drawNumberGlyphs().

◆ group

std::string PViewOptions::group

Definition at line 83 of file PViewOptions.h.

◆ hexahedron

unsigned int PViewOptions::hexahedron

Definition at line 87 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ intervalsType

◆ light

◆ lightLines

int PViewOptions::lightLines

Definition at line 55 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ lightTwoSide

int PViewOptions::lightTwoSide

Definition at line 55 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ line

unsigned int PViewOptions::line

Definition at line 86 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ lineType

int PViewOptions::lineType

Definition at line 68 of file PViewOptions.h.

Referenced by drawArrays(), getLineNormal(), and PView::writeX3D().

◆ lineWidth

double PViewOptions::lineWidth

◆ maxRecursionLevel

int PViewOptions::maxRecursionLevel

Definition at line 78 of file PViewOptions.h.

Referenced by _addModelData(), PView::combine(), and PView::PView().

◆ nbIso

◆ normalRaise

double PViewOptions::normalRaise

Definition at line 50 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ normals [1/2]

double PViewOptions::normals

Definition at line 53 of file PViewOptions.h.

Referenced by drawGlyphs(), and drawNormalVectorGlyphs().

◆ normals [2/2]

unsigned int PViewOptions::normals

Definition at line 88 of file PViewOptions.h.

◆ offset

double PViewOptions::offset[3]

Definition at line 50 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ point

unsigned int PViewOptions::point

Definition at line 86 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ pointSize

double PViewOptions::pointSize

Definition at line 69 of file PViewOptions.h.

Referenced by drawArrays(), drawGraphCurves(), drawPView::operator()(), and PView::PView().

◆ pointType

int PViewOptions::pointType

Definition at line 68 of file PViewOptions.h.

Referenced by addGraphPoint(), drawArrays(), getPointNormal(), and PView::PView().

◆ position

double PViewOptions::position[2]

Definition at line 41 of file PViewOptions.h.

Referenced by drawContext::drawGraph2d(), and drawContext::drawScales().

◆ prism

unsigned int PViewOptions::prism

Definition at line 87 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ pyramid

unsigned int PViewOptions::pyramid

Definition at line 87 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ quadrangle

unsigned int PViewOptions::quadrangle

Definition at line 86 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ raise

double PViewOptions::raise[3]

Definition at line 50 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ rangeType

int PViewOptions::rangeType

◆ sampling

int PViewOptions::sampling

Definition at line 82 of file PViewOptions.h.

Referenced by addElementsInArrays(), and drawGlyphs().

◆ saturateValues

int PViewOptions::saturateValues

◆ scaleType

int PViewOptions::scaleType

◆ showElement

int PViewOptions::showElement

Definition at line 58 of file PViewOptions.h.

Referenced by addElementsInArrays(), drawArrays(), and needPolygonOffset().

◆ showScale

int PViewOptions::showScale

Definition at line 58 of file PViewOptions.h.

Referenced by drawGraphAxes(), drawContext::drawScales(), and PView::writeX3D().

◆ showTime

int PViewOptions::showTime

◆ size

double PViewOptions::size[2]

Definition at line 41 of file PViewOptions.h.

Referenced by drawContext::drawGraph2d(), and drawContext::drawScales().

◆ smoothNormals

int PViewOptions::smoothNormals

◆ stipple

int PViewOptions::stipple[10][2]

Definition at line 71 of file PViewOptions.h.

Referenced by drawArrays(), and drawGraphCurves().

◆ stippleString

std::string PViewOptions::stippleString[10]

Definition at line 72 of file PViewOptions.h.

◆ tangents [1/2]

double PViewOptions::tangents

Definition at line 53 of file PViewOptions.h.

Referenced by drawGlyphs(), and drawTangentVectorGlyphs().

◆ tangents [2/2]

unsigned int PViewOptions::tangents

Definition at line 88 of file PViewOptions.h.

◆ targetError

double PViewOptions::targetError

Definition at line 79 of file PViewOptions.h.

Referenced by _addModelData(), PView::combine(), and PView::PView().

◆ tensorType

int PViewOptions::tensorType

Definition at line 60 of file PViewOptions.h.

Referenced by addTensorElement(), and drawEllipseArray().

◆ tetrahedron

unsigned int PViewOptions::tetrahedron

Definition at line 87 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ text2d

unsigned int PViewOptions::text2d

Definition at line 89 of file PViewOptions.h.

Referenced by drawContext::drawText2d().

◆ text3d

unsigned int PViewOptions::text3d

Definition at line 89 of file PViewOptions.h.

Referenced by drawPView::operator()().

◆ timeStep

◆ tmpBBox

SBoundingBox3d PViewOptions::tmpBBox

◆ tmpMax

◆ tmpMin

◆ transform

double PViewOptions::transform[3][3]

Definition at line 50 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ triangle

unsigned int PViewOptions::triangle

Definition at line 86 of file PViewOptions.h.

Referenced by addOutlineElement().

◆ trihedron

unsigned int PViewOptions::trihedron

Definition at line 87 of file PViewOptions.h.

◆ type

◆ useGenRaise

int PViewOptions::useGenRaise

Definition at line 74 of file PViewOptions.h.

Referenced by changeCoordinates(), and initPView::operator()().

◆ useStipple

int PViewOptions::useStipple

Definition at line 71 of file PViewOptions.h.

Referenced by drawArrays(), and drawGraphCurves().

◆ vectorType

◆ viewIndexForGenRaise

int PViewOptions::viewIndexForGenRaise

Definition at line 73 of file PViewOptions.h.

Referenced by changeCoordinates().

◆ visible


The documentation for this class was generated from the following files: