VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtExtrudedPolygonModelInstance Class Reference

A prism controlled by control points. More...

Inheritance diagram for makVrv::DtExtrudedPolygonModelInstance:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

A prism controlled by control points.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Sets whether or not polygon is filled or just an outline (default is false)

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.

Returns true if the first and last face are part of the line.

Since polgon is closed, returns false

Reimplemented from makVrv::DtExtrudedModelInstance.

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


Member Data Documentation

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]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)