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

Public Types | |
| enum | LineExtrusionMode { LineOnly, ExtrudeWidth, ExtrudeHeight, FullExtrusion } |
Public Member Functions | |
| DtExtrudedLineModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtExtrudedLineModelInstance () |
| DTOR. | |
| 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 | setPosition (int index, const DtVector &) |
| Move a control point at the specified index to a new position. | |
| 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 | 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 | 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. | |
| 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 | 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 | setScribeOccluded (bool b) |
| Sets the scribed line to be occluded by the terrain (default true) | |
| virtual void | setOcclusionEnabled (bool enabled) |
| Turn on or off occlusion of the line by other objects; default is true. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
| int | pointCount () const |
| Get the number of points in the line. | |
| const DtVector & | point (int) const |
| Get the value of the point at the specified index. | |
| virtual void | setPickable (bool) |
| Set the line's pickability. | |
| bool | pickable () const |
| Get if the line is pickable. | |
| void | setOrigin (const DtVector &origin) |
| Set the line's 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. | |
| virtual void | update () |
| Called when it's time to update the model instance. | |
Protected Types | |
| typedef std::vector< DtVector > | PointVector |
Protected Member Functions | |
| 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 | 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 () |
| virtual void | updatePointsForTriangleStrip () |
| virtual void | updatePointsForExtrusion () |
| virtual void | createFaces () |
| virtual void | updateScribeForTriangleStrip () |
| virtual void | updateScribeForExtrusion (osg::Vec3Array *) |
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 > | myScribeGeometry |
| osg::ref_ptr< osg::Vec3Array > | myScribePoints |
| osg::ref_ptr< osg::Texture > | myTexture |
| osg::ref_ptr< osg::Vec2Array > | myTextureCoordinates |
| osg::ref_ptr< osg::LineWidth > | myLineWidth |
| 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 | myGeometryDirty |
| bool | myShapePointsDirty |
| bool | myColorsDirty |
| bool | myScribeOccluded |
| bool | myScribed |
| bool | mySolid |
| 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 |
A prism controlled by control points.
typedef std::vector<DtVector> makVrv::DtExtrudedLineModelInstance::PointVector [protected] |
| virtual makVrv::DtExtrudedLineModelInstance::~DtExtrudedLineModelInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtExtrudedLineModelInstance::addPoint | ( | const DtVector & | , |
| int | index = -1 |
||
| ) | [virtual] |
Add a control point to the end of the control point list if index is -1, or, at the specified index.
| virtual void makVrv::DtExtrudedLineModelInstance::removePoint | ( | int | index | ) | [virtual] |
Remove a control point at the specified index.
| virtual void makVrv::DtExtrudedLineModelInstance::setPosition | ( | int | index, |
| const DtVector & | |||
| ) | [virtual] |
Move a control point at the specified index to a new position.
| virtual void makVrv::DtExtrudedLineModelInstance::clearPoints | ( | ) | [virtual] |
Clears out positions and resets geometry.
| virtual bool makVrv::DtExtrudedLineModelInstance::realize | ( | DtModelDefinition & | definition | ) | [virtual] |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
| virtual void makVrv::DtExtrudedLineModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::DtExtrudedLineModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual void makVrv::DtExtrudedLineModelInstance::setStipplePattern | ( | unsigned | int | ) | [virtual] |
Sets the stipple pattern of the line.
| virtual void makVrv::DtExtrudedLineModelInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the line.
| virtual void makVrv::DtExtrudedLineModelInstance::setTextureHeight | ( | double | height | ) | [virtual] |
Set the height of the texture in meters.
| virtual void makVrv::DtExtrudedLineModelInstance::setTextureWidth | ( | double | width | ) | [virtual] |
Set the width of the texture tiles in meters.
| virtual void makVrv::DtExtrudedLineModelInstance::setTexture | ( | osg::Texture * | texture | ) | [virtual] |
Set the shape's texture.
| virtual void makVrv::DtExtrudedLineModelInstance::setUpExtent | ( | float | height | ) | [virtual] |
Set the shape's upwards extrusion extent.
| virtual void makVrv::DtExtrudedLineModelInstance::setDownExtent | ( | float | height | ) | [virtual] |
Set the shape's downwards extrusion extent.
| virtual void makVrv::DtExtrudedLineModelInstance::setLeftExtent | ( | float | height | ) | [virtual] |
Set the shape's left extrusion extent.
| virtual void makVrv::DtExtrudedLineModelInstance::setRightExtent | ( | float | heigh | ) | [virtual] |
Set the shape's right extrusion extent.
| virtual void makVrv::DtExtrudedLineModelInstance::setWidth | ( | float | ) | [virtual] |
Sets the width of the line. If there is height, will 0 out height.
| virtual void makVrv::DtExtrudedLineModelInstance::setHeight | ( | float | ) | [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 void makVrv::DtExtrudedLineModelInstance::setDimensions | ( | float | width, |
| float | height | ||
| ) | [virtual] |
Sets the dimensions of the line.
| virtual void makVrv::DtExtrudedLineModelInstance::setLineWidth | ( | float | width | ) | [virtual] |
Sets the width of the line in pixel space, not world.
Clears out any existing dimensional size
| virtual void makVrv::DtExtrudedLineModelInstance::setScribed | ( | bool | b | ) | [virtual] |
Sets the line to be scribed (default true)
| virtual void makVrv::DtExtrudedLineModelInstance::setScribeColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Sets the color of the scribe line.
Once set it will always be different than the color of the main polygon
| virtual void makVrv::DtExtrudedLineModelInstance::setScribeOccluded | ( | bool | b | ) | [virtual] |
Sets the scribed line to be occluded by the terrain (default true)
| virtual void makVrv::DtExtrudedLineModelInstance::setOcclusionEnabled | ( | bool | enabled | ) | [virtual] |
Turn on or off occlusion of the line by other objects; default is true.
| virtual void makVrv::DtExtrudedLineModelInstance::setVisible | ( | bool | isVisible | ) | [inline, virtual] |
no-op
Implements makVrv::DtModelInstance.
| int makVrv::DtExtrudedLineModelInstance::pointCount | ( | ) | const [inline] |
Get the number of points in the line.
| const DtVector& makVrv::DtExtrudedLineModelInstance::point | ( | int | ) | const |
Get the value of the point at the specified index.
| virtual void makVrv::DtExtrudedLineModelInstance::setPickable | ( | bool | ) | [virtual] |
Set the line's pickability.
Get if the line is pickable.
| void makVrv::DtExtrudedLineModelInstance::setOrigin | ( | const DtVector & | origin | ) |
Set the line's origin.
| virtual void makVrv::DtExtrudedLineModelInstance::updatePoints | ( | ) | [virtual] |
Create the point array based on extents and point list.
| virtual void makVrv::DtExtrudedLineModelInstance::setSolid | ( | bool | ) | [virtual] |
Sets shape solid or outlined only. If solid is false and scribed is false, line will be effectively invisible.
| virtual void makVrv::DtExtrudedLineModelInstance::update | ( | ) | [virtual] |
Called when it's time to update the model instance.
| virtual void makVrv::DtExtrudedLineModelInstance::updateMode | ( | ) | [protected, virtual] |
Updates the line mode to a correct mode for the given extents.
| virtual void makVrv::DtExtrudedLineModelInstance::updateGeometry | ( | ) | [protected, virtual] |
Rebuild the geometry objects.
| virtual void makVrv::DtExtrudedLineModelInstance::updateTextureCoordinates | ( | ) | [protected, virtual] |
Recalculate the texture coordinates.
| virtual void makVrv::DtExtrudedLineModelInstance::addPointsForExtentExtrusion | ( | const DtVector & | point | ) | [protected, virtual] |
Add points for a height or width extrustion.
| virtual void makVrv::DtExtrudedLineModelInstance::addFaceForRotation | ( | const osg::Quat & | rotation, |
| const DtVector & | point | ||
| ) | [protected, virtual] |
Adds a face given the rotation matrix.
| virtual void makVrv::DtExtrudedLineModelInstance::addPointsForFullExtrusion | ( | const DtVector & | from, |
| const DtVector & | to | ||
| ) | [protected, virtual] |
Add points for full extrustion.
| virtual void makVrv::DtExtrudedLineModelInstance::updateStippling | ( | ) | [protected, virtual] |
Updates for stippling.
| virtual void makVrv::DtExtrudedLineModelInstance::updateScribeLine | ( | ) | [protected, virtual] |
Updates the scribe line for geometry and color.
| virtual void makVrv::DtExtrudedLineModelInstance::updateColors | ( | ) | [protected, virtual] |
Updates colors of line and scribe line.
| virtual bool makVrv::DtExtrudedLineModelInstance::frontAndBackFaceRendered | ( | ) | const [protected, virtual] |
Returns true if the first and last face are part of the line. Default is true.
| virtual void makVrv::DtExtrudedLineModelInstance::updatePointsForLineStrip | ( | ) | [protected, virtual] |
| virtual void makVrv::DtExtrudedLineModelInstance::updatePointsForTriangleStrip | ( | ) | [protected, virtual] |
| virtual void makVrv::DtExtrudedLineModelInstance::updatePointsForExtrusion | ( | ) | [protected, virtual] |
| virtual void makVrv::DtExtrudedLineModelInstance::createFaces | ( | ) | [protected, virtual] |
| virtual void makVrv::DtExtrudedLineModelInstance::updateScribeForTriangleStrip | ( | ) | [protected, virtual] |
| virtual void makVrv::DtExtrudedLineModelInstance::updateScribeForExtrusion | ( | osg::Vec3Array * | ) | [protected, virtual] |
osg::ref_ptr<osg::Geode> makVrv::DtExtrudedLineModelInstance::myShapeGeode [protected] |
osg::ref_ptr<osg::Geometry> makVrv::DtExtrudedLineModelInstance::myShapeGeometry [protected] |
osg::ref_ptr<osg::Vec3Array> makVrv::DtExtrudedLineModelInstance::myShapePoints [protected] |
osg::ref_ptr<osg::Geode> makVrv::DtExtrudedLineModelInstance::myScribeGeode [protected] |
osg::ref_ptr<osg::Geometry> makVrv::DtExtrudedLineModelInstance::myScribeGeometry [protected] |
osg::ref_ptr<osg::Vec3Array> makVrv::DtExtrudedLineModelInstance::myScribePoints [protected] |
osg::ref_ptr<osg::Texture> makVrv::DtExtrudedLineModelInstance::myTexture [protected] |
osg::ref_ptr<osg::Vec2Array> makVrv::DtExtrudedLineModelInstance::myTextureCoordinates [protected] |
osg::ref_ptr<osg::LineWidth> makVrv::DtExtrudedLineModelInstance::myLineWidth [protected] |
osg::ref_ptr<osg::Group> makVrv::DtExtrudedLineModelInstance::myMainTransform [protected] |
osg::ref_ptr<osg::Vec3Array> makVrv::DtExtrudedLineModelInstance::myFaces [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
osg::Vec4 makVrv::DtExtrudedLineModelInstance::myColor [protected] |
double makVrv::DtExtrudedLineModelInstance::myTextureWidth [protected] |
double makVrv::DtExtrudedLineModelInstance::myTextureHeight [protected] |
float makVrv::DtExtrudedLineModelInstance::myUpExtent [protected] |
float makVrv::DtExtrudedLineModelInstance::myDownExtent [protected] |
float makVrv::DtExtrudedLineModelInstance::myLeftExtent [protected] |
float makVrv::DtExtrudedLineModelInstance::myRightExtent [protected] |
bool makVrv::DtExtrudedLineModelInstance::myScribed [protected] |
bool makVrv::DtExtrudedLineModelInstance::mySolid [protected] |
int makVrv::DtExtrudedLineModelInstance::myStipplePattern [protected] |
If drawing as line use this pointer to create the pickable segments of that line, else geometry will not support it.
osg::Vec4 makVrv::DtExtrudedLineModelInstance::myScribeColor [protected] |