16 #include <osg/MatrixTransform>
17 #include <osg/Geometry>
23 class DtModelInstance;
24 class DtModelDefinition;
25 class DtOsgSceneConnector;
73 virtual void setRelativePosition(
double x,
double y,
double z );
80 virtual void setOrientation(
double yaw,
double pitch,
double roll );
84 virtual void setSize(
double slantHeight );
92 virtual void setColor(
float r,
float g,
float b,
float a );
100 void setInnerColor(
float r,
float g,
float b,
float a );
108 void setOuterColor(
float r,
float g,
float b,
float a );
112 virtual void setXHalfAngle(
double xHalfAngle );
116 virtual void setYHalfAngle(
double yHalfAngle );
122 virtual void setShowLines(
bool showLines );
128 virtual void setLinesHaveAlpha(
bool lineAlpha );
143 virtual void updateGeometry();
148 virtual void updateGeometryColors();
152 virtual void updateGeometryWireframeState();
157 virtual void updateGeometryTransforms();
167 static void clampAngle(
double& val,
double minAngle,
double maxAngle );
osg::Quat myRelativeOrientation
Definition: DtRectangularPyramidModelInstance.h:184
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::Vec4 myOuterColor
Definition: DtRectangularPyramidModelInstance.h:191
bool myDirtyGeometry
Definition: DtRectangularPyramidModelInstance.h:178
osg::Vec3d myRelativePosition
Definition: DtRectangularPyramidModelInstance.h:183
osg::ref_ptr< osg::Geode > myBackGeode
Definition: DtRectangularPyramidModelInstance.h:176
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
bool myDirtyTransforms
Definition: DtRectangularPyramidModelInstance.h:180
Contains makVrv::DtOsgModelInstance class.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
bool myDirtyColors
Definition: DtRectangularPyramidModelInstance.h:179
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:76
bool myShowLines
Definition: DtRectangularPyramidModelInstance.h:193
osg::Vec4 myInnerColor
Definition: DtRectangularPyramidModelInstance.h:190
double myXHalfAngle
Definition: DtRectangularPyramidModelInstance.h:186
osg::ref_ptr< osg::Geode > myFrontGeode
Definition: DtRectangularPyramidModelInstance.h:175
Model instance to draw a rectangular pyramid.
Definition: DtRectangularPyramidModelInstance.h:29
osg::ref_ptr< osg::Geometry > myGeometry
Definition: DtRectangularPyramidModelInstance.h:174
osg::ref_ptr< osg::Group > myBlendNode
Definition: DtRectangularPyramidModelInstance.h:172
Contains DLL export macros.
int myCenterVertexIndex
Definition: DtRectangularPyramidModelInstance.h:189
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool myLineAlphaFlag
Definition: DtRectangularPyramidModelInstance.h:194
osg::ref_ptr< osg::Group > myWireNode
Definition: DtRectangularPyramidModelInstance.h:173
bool myDirtyWireframe
Definition: DtRectangularPyramidModelInstance.h:181
osg::ref_ptr< osg::MatrixTransform > myTransform
Definition: DtRectangularPyramidModelInstance.h:171
virtual void setVisible(bool isVisible)
no-op
Definition: DtRectangularPyramidModelInstance.h:61
double myYHalfAngle
Definition: DtRectangularPyramidModelInstance.h:187
osg::Vec3d myDimensions
Definition: DtRectangularPyramidModelInstance.h:185