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

Public Member Functions | |
| DtExtrudedPolygonModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtExtrudedPolygonModelInstance () |
| DTOR. | |
| virtual void | setFill (bool) |
| Sets whether or not polygon is filled or just an outline (default is false) | |
| virtual void | setPolygonMode (DtExtrudedPolygonModel::PolygonMode mode) |
| Sets the mode of the polygon (by default top and bottom) | |
Protected Member Functions | |
| virtual void | updatePoints () |
| Overridden to also create top/bottom geode points if filled. | |
| virtual void | updatePolygons () |
| Creates the top/bottom polygons as necessary. | |
| virtual void | addTop () |
| Adds top polygon. | |
| virtual void | addBottom () |
| Adds bottom polygon. | |
| virtual void | updateColors () |
| Updates colors. | |
| virtual void | updateStippling () |
| Updates stippling. | |
| virtual void | updateScribeLine () |
| Updates scribe line in case filled. | |
| virtual void | updateGeometry () |
| If polygons need updating, also update them. | |
| virtual bool | frontAndBackFaceRendered () const |
| Returns true if the first and last face are part of the line. | |
| virtual void | calculateCenterPoints () |
| Given the points, calculate the center of the top and bottom polygon to be used for fill. | |
Protected Attributes | |
| osg::ref_ptr< osg::Vec3Array > | myFillArray |
| osg::ref_ptr< osg::Geometry > | myTopGeometry |
| osg::ref_ptr< osg::Geometry > | myBottomGeometry |
| bool | myFilled |
| bool | myPolygonsDirty |
| DtExtrudedPolygonModel::PolygonMode | myPolygonMode |
A prism controlled by control points.
| virtual makVrv::DtExtrudedPolygonModelInstance::~DtExtrudedPolygonModelInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtExtrudedPolygonModelInstance::setFill | ( | bool | ) | [virtual] |
Sets whether or not polygon is filled or just an outline (default is false)
| virtual void makVrv::DtExtrudedPolygonModelInstance::setPolygonMode | ( | DtExtrudedPolygonModel::PolygonMode | mode | ) | [virtual] |
Sets the mode of the polygon (by default top and bottom)
| virtual void makVrv::DtExtrudedPolygonModelInstance::updatePoints | ( | ) | [protected, virtual] |
Overridden to also create top/bottom geode points if filled.
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual void makVrv::DtExtrudedPolygonModelInstance::updatePolygons | ( | ) | [protected, virtual] |
Creates the top/bottom polygons as necessary.
| virtual void makVrv::DtExtrudedPolygonModelInstance::addTop | ( | ) | [protected, virtual] |
Adds top polygon.
| virtual void makVrv::DtExtrudedPolygonModelInstance::addBottom | ( | ) | [protected, virtual] |
Adds bottom polygon.
| virtual void makVrv::DtExtrudedPolygonModelInstance::updateColors | ( | ) | [protected, virtual] |
Updates colors.
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual void makVrv::DtExtrudedPolygonModelInstance::updateStippling | ( | ) | [protected, virtual] |
Updates stippling.
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual void makVrv::DtExtrudedPolygonModelInstance::updateScribeLine | ( | ) | [protected, virtual] |
Updates scribe line in case filled.
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual void makVrv::DtExtrudedPolygonModelInstance::updateGeometry | ( | ) | [protected, virtual] |
If polygons need updating, also update them.
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual bool makVrv::DtExtrudedPolygonModelInstance::frontAndBackFaceRendered | ( | ) | const [protected, virtual] |
Returns true if the first and last face are part of the line.
Since polgon is closed, returns false
Reimplemented from makVrv::DtExtrudedModelInstance.
| virtual void makVrv::DtExtrudedPolygonModelInstance::calculateCenterPoints | ( | ) | [protected, virtual] |
Given the points, calculate the center of the top and bottom polygon to be used for fill.
Then place the top point as the first and bottom as the second of the myFillArray
osg::ref_ptr<osg::Vec3Array> makVrv::DtExtrudedPolygonModelInstance::myFillArray [protected] |
osg::ref_ptr<osg::Geometry> makVrv::DtExtrudedPolygonModelInstance::myTopGeometry [protected] |
osg::ref_ptr<osg::Geometry> makVrv::DtExtrudedPolygonModelInstance::myBottomGeometry [protected] |
bool makVrv::DtExtrudedPolygonModelInstance::myFilled [protected] |
DtExtrudedPolygonModel::PolygonMode makVrv::DtExtrudedPolygonModelInstance::myPolygonMode [protected] |