![]() |
VR-Forces 4.7 Class Documentation
|
A prism controlled by control points. More...

Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
| typedef std::vector< DtVector > | PointVector |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| The possible states of a control point. More... | |
| typedef boost::unordered_map < std::string, bool > | SensorRegionStateMap |
| Dynamic Sensor Region methods. | |
Public Member Functions | |
| DtExtrudedModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtExtrudedModelInstance () |
| DTOR. | |
| virtual const PointVector & | points () const |
| Returns the points associated with this model. | |
| virtual void | addPoint (const DtVector &, int index=-1) |
| Add a control point to the end of the control point list if index is -1, or, at the specified index. | |
| virtual void | removePoint (int index) |
| Remove a control point at the specified index. | |
| virtual void | setPoints (const std::vector< DtVector > &) |
| Sets all the points. | |
| virtual void | setPosition (int index, const DtVector &) |
| Move a control point at the specified index to a new position. | |
| virtual void | setPositions (const std::vector< DtVector > &) |
| Sets all the positions int the model. replacing existing. | |
| virtual void | clearPoints () |
| Clears out positions and resets geometry. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setStipplePattern (unsigned int) |
| Sets the stipple pattern of the line. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the line. | |
| virtual void | getColor (float &r, float &g, float &b, float &a) const |
| Gets the color of the line. | |
| virtual void | setTextureHeight (double height) |
| Set the height of the texture in meters. | |
| virtual void | setTextureWidth (double width) |
| Set the width of the texture tiles in meters. | |
| virtual void | setTexture (osg::Texture *texture) |
| Set the shape's texture. | |
| virtual void | setWidth (float) |
| Sets the width of the line. If there is height, will 0 out height. | |
| virtual void | setHeight (float) |
| Sets the height of the line ("up/down" the origin point). | |
| virtual void | setDimensions (float width, float height) |
| Sets the dimensions of the line. | |
| virtual void | setLineWidth (float width) |
| Sets the width of the line in pixel space, not world. | |
| virtual void | setScribeWidth (float width) |
| Sets the width of the scribe line in pixel space. | |
| virtual void | setScribeAllPolygons (bool) |
| Sets whether or not to only scribe the outline (and not the line edges). | |
| virtual void | setScribed (bool b) |
| Sets the line to be scribed (default true) | |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| Sets the color of the scribe line. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
| int | pointCount () const |
| Returns the number of points. | |
| const DtVector & | origin () const |
| Returns the origin point of the line. | |
| const DtVector & | point (int) const |
| Returns the point at the given index. zero point if index is out of range. | |
| virtual void | setPickable (bool) |
| Sets whether or not line is pickable. | |
| bool | pickable () const |
| Returns whether or not line is pickable. | |
| void | setOrigin (const DtVector &origin) |
| virtual void | updatePoints () |
| Create the point array based on extents and point list. | |
| virtual void | setSolid (bool) |
| Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible. | |
| osg::Node * | rootNode () |
| Returns the root node. | |
| virtual void | setUpExtent (float height) |
| Set the shape's upwards extrusion extent. | |
| virtual void | setDownExtent (float height) |
| Set the shape's downwards extrusion extent. | |
| virtual void | setLeftExtent (float height) |
| Set the shape's left extrusion extent. | |
| virtual void | setRightExtent (float heigh) |
| Set the shape's right extrusion extent. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| DTOR. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable coloring on all models in the scene object Note about enableColorBlending: If this particular model has instancing enabled then this flag is set to false and color blending is handled by the instance manager. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableTexture (bool onOff) |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| Get the model instance's sensor node, . | |
| virtual const osg::Node * | sensorNode () const |
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| Add an active region state. | |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| Set the state of an active region. | |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| Get the current state of the specified sensor region. | |
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| Get the map containing all regions and their current states. | |
| virtual void | slot_atcGlobalModelEnableChanged () |
| Slot to handle the global alpha to coverage signal for entities. | |
| virtual bool | alphaToCoverageEnabled () |
| Get the current setting for alpha to coverage for this model. | |
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
| loop over all this models light points and register them with the light point manager daylightControlled is only used if the light points do not already have a type specified | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
Protected Member Functions | |
| virtual osg::Vec3 | rotatePoint (const osg::Vec3 &org, double range, const DtTaitBryan &angle) const |
| Rotates the point at the given topo angle and returns the result. | |
| virtual void | updateMode () |
| Updates the line mode to a correct mode for the given extents. | |
| virtual void | updateGeometry () |
| Rebuild the geometry objects. | |
| virtual void | updateTextureCoordinates () |
| Recalculate the texture coordinates. | |
| virtual void | addPointsForExtentExtrusion (const DtVector &point) |
| Add points for a height or width extrustion. | |
| virtual void | addFaceForRotation (const osg::Quat &rotation, const DtVector &point) |
| Adds a face given the rotation matrix. | |
| virtual void | addPointsForFullExtrusion (const DtVector &from, const DtVector &to) |
| Add points for full extrustion. | |
| virtual void | setupScribeTransparency (bool b) |
| Sets up the fact that the scribe line is transparent (true) or not (false) with respect to blending into the background. | |
| virtual void | setupGeodeTransparency (bool b) |
| Sets up transparency for geode that represents the objects points. | |
| virtual void | updateStippling () |
| Updates for stippling. | |
| virtual void | updateScribeLine () |
| Updates the scribe line for geometry and color. | |
| virtual void | updateColors () |
| Updates colors of line and scribe line. | |
| virtual bool | frontAndBackFaceRendered () const |
| Returns true if the first and last face are part of the line. Default is true. | |
| virtual void | updatePointsForLineStrip () |
| Updates the points for the line strip mode (no extrusion) | |
| virtual void | updatePointsForTriangleStrip () |
| Updates points for width or height extrusion. | |
| virtual void | updatePointsForExtrusion () |
| Updates points for full extrusion. | |
| virtual void | createFaces () |
| Creates the front/back face per segment for full extrusion. | |
| virtual void | updateScribeForTriangleStrip () |
| Updates script line for triangle strip mode. | |
| virtual void | updateScribeForExtrusion (osg::Vec3Array *) |
| Updates scribe line for full extrusion mode. | |
| virtual void | updateScribeForOutline () |
| Updates scribe for outline (top/bottom) only. | |
| virtual void | updateScribeForFull () |
| Updates scribe for edges and outline. | |
| virtual void | updateGeometryWithStrip (osg::ref_ptr< osg::Geometry > &, const osg::ref_ptr< osg::Vec3Array > &) |
| Updates geometry with indicies necessary to draw scribe line. | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual void | updateColorBlending () |
| calls update color blending with the model root. | |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| DtOsgModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | setRootNode (osg::Node *node) |
| Set the model instance's root node. | |
Protected Attributes | |
| osg::ref_ptr< osg::Geode > | myShapeGeode |
| osg::ref_ptr< osg::Geometry > | myShapeGeometry |
| osg::ref_ptr< osg::Vec3Array > | myShapePoints |
| osg::ref_ptr< osg::Geode > | myScribeGeode |
| osg::ref_ptr< osg::Geometry > | myScribeGeometryFull |
| osg::ref_ptr< osg::Geometry > | myScribeGeometryTop |
| osg::ref_ptr< osg::Geometry > | myScribeGeometryBottom |
| osg::ref_ptr< osg::Vec3Array > | myScribePointsTop |
| osg::ref_ptr< osg::Vec3Array > | myScribePointsBottom |
| osg::ref_ptr< osg::Vec3Array > | myScribePointsFull |
| osg::ref_ptr< osg::Texture > | myTexture |
| osg::ref_ptr< osg::Vec2Array > | myTextureCoordinates |
| osg::ref_ptr< osg::LineWidth > | myLineWidth |
| osg::ref_ptr< osg::LineWidth > | myScribeWidth |
| osg::ref_ptr< osg::Group > | myFrontTransparentGroup |
| osg::ref_ptr< osg::Group > | myBackTransparentGroup |
| osg::ref_ptr< osg::Group > | myOpaqueGroup |
| osg::ref_ptr< osg::Group > | myMainTransform |
| osg::ref_ptr< osg::Vec3Array > | myFaces |
| If the line has width and height, the list of faces that make up the junction points of the boxes. | |
| osg::Vec4 | myColor |
| double | myTextureWidth |
| double | myTextureHeight |
| float | myUpExtent |
| float | myDownExtent |
| float | myLeftExtent |
| float | myRightExtent |
| PointVector | myLinePoints |
| DtVector | myOrigin |
| bool | myShapePointsDirty |
| bool | myScribed |
| bool | myScribeAllPolygons |
| bool | mySolid |
| bool | myScribeWidthSet |
| int | myStipplePattern |
| LineExtrusionMode | myMode |
| DtOsgSegmentPickable * | myPickable |
| If drawing as line use this pointer to create the pickable segments of that line, else geometry will not support it. | |
| bool | myIsPickable |
| osg::Vec4 | myScribeColor |
| bool | myScribeColorSet |
Protected Attributes inherited from makVrv::DtOsgModelInstance | |
| osg::ref_ptr< osg::Node > | myModelRoot |
| osg::ref_ptr< osg::StateSet > | myCachedState |
| SensorRegionStateMap | mySensorRegionMap |
| AlphaToCoverageState | myAlphaToCoverageState |
| DtSignalConnectionManager | myConnections |
| bool | myModelInstanceShaderSet |
| Has this model instance had a shader generated for it? Used for classes (ex. | |
Protected Attributes inherited from makVrv::DtModelInstance | |
| DtDe & | myDe |
| std::string | myRealizedModelDefinitionName |
| DtVector | myBoundingBoxCenter |
| DtVector | myBoundingBoxExtents |
| DtVector | myBoundingBoxMinimum |
| DtVector | myBoundingBoxMaximum |
| bool | myContributesToBound |
| bool | myColorBlendingEnabled |
| float | myBlendRed |
| float | myBlendBlue |
| float | myBlendGreen |
| float | myBlendAlpha |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signal< void(const std::string &) > | signal_dynamicSensorRegionAdded |
| Signal raised when a dynamic sensor region is added. | |
| boost::signal< void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| Signal raised when a dynamic sensor region's state changes. | |
| boost::signal< void(bool)> | signal_atcModeEnableChanged |
| Signal raised when alpha to coverage for this model is changed. | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
A prism controlled by control points.
| typedef std::vector<DtVector> makVrv::DtExtrudedModelInstance::PointVector |
| makVrv::DtExtrudedModelInstance::DtExtrudedModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Returns the points associated with this model.
|
virtual |
Add a control point to the end of the control point list if index is -1, or, at the specified index.
|
virtual |
Remove a control point at the specified index.
|
virtual |
Sets all the points.
Move a control point at the specified index to a new position.
|
virtual |
Sets all the positions int the model. replacing existing.
|
virtual |
Clears out positions and resets geometry.
|
virtual |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Sets the stipple pattern of the line.
|
virtual |
Set the color of the line.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
virtual |
Gets the color of the line.
|
virtual |
Set the height of the texture in meters.
|
virtual |
Set the width of the texture tiles in meters.
|
virtual |
Set the shape's texture.
|
virtual |
Set the shape's upwards extrusion extent.
Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line
|
virtual |
Set the shape's downwards extrusion extent.
|
virtual |
Set the shape's left extrusion extent.
|
virtual |
Set the shape's right extrusion extent.
|
virtual |
Sets the width of the line. If there is height, will 0 out height.
|
virtual |
Sets the height of the line ("up/down" the origin point).
If width is set, will 0 out width for the entire line
|
virtual |
Sets the dimensions of the line.
|
virtual |
Sets the width of the line in pixel space, not world.
Clears out any existing dimensional size
|
virtual |
Sets the width of the scribe line in pixel space.
This will set a flag such that when the line width is changed this width is not, so, once set, you will need to continue to set to keep pace with line width. Set to 0 to reset scribe width back to line width
|
virtual |
Sets whether or not to only scribe the outline (and not the line edges).
Only valid if scribed is true. If set to true will scribe all point connections along the polygon. If false will only scribe the top and bottom of the polygon
|
virtual |
Sets the line to be scribed (default true)
|
virtual |
Sets the color of the scribe line.
Once set it will always be different than the color of the main polygon
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
| int makVrv::DtExtrudedModelInstance::pointCount | ( | ) | const |
Returns the number of points.
| const DtVector& makVrv::DtExtrudedModelInstance::origin | ( | ) | const |
Returns the origin point of the line.
Returns the point at the given index. zero point if index is out of range.
|
virtual |
Sets whether or not line is pickable.
| bool makVrv::DtExtrudedModelInstance::pickable | ( | ) | const |
Returns whether or not line is pickable.
| void makVrv::DtExtrudedModelInstance::setOrigin | ( | const DtVector & | origin | ) |
|
virtual |
Create the point array based on extents and point list.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
virtual |
Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
|
virtual |
Returns the root node.
Reimplemented from makVrv::DtOsgModelInstance.
|
protectedvirtual |
Rotates the point at the given topo angle and returns the result.
|
protectedvirtual |
Updates the line mode to a correct mode for the given extents.
|
protectedvirtual |
Rebuild the geometry objects.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Recalculate the texture coordinates.
|
protectedvirtual |
Add points for a height or width extrustion.
|
protectedvirtual |
Adds a face given the rotation matrix.
|
protectedvirtual |
Add points for full extrustion.
|
protectedvirtual |
Sets up the fact that the scribe line is transparent (true) or not (false) with respect to blending into the background.
|
protectedvirtual |
Sets up transparency for geode that represents the objects points.
|
protectedvirtual |
Updates for stippling.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Updates the scribe line for geometry and color.
|
protectedvirtual |
Updates colors of line and scribe line.
Reimplemented in makVrv::DtExtrudedPolygonModelInstance.
|
protectedvirtual |
Returns true if the first and last face are part of the line. Default is true.
|
protectedvirtual |
Updates the points for the line strip mode (no extrusion)
|
protectedvirtual |
Updates points for width or height extrusion.
|
protectedvirtual |
Updates points for full extrusion.
|
protectedvirtual |
Creates the front/back face per segment for full extrusion.
|
protectedvirtual |
Updates script line for triangle strip mode.
|
protectedvirtual |
Updates scribe line for full extrusion mode.
|
protectedvirtual |
Updates scribe for outline (top/bottom) only.
|
protectedvirtual |
Updates scribe for edges and outline.
|
protectedvirtual |
Updates geometry with indicies necessary to draw scribe line.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If the line has width and height, the list of faces that make up the junction points of the boxes.
Each junction point is a series of four coordinates
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If drawing as line use this pointer to create the pickable segments of that line, else geometry will not support it.
|
protected |
|
protected |
|
protected |