VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtTexturedOutlinedPolygon Class Reference

Draw a polygonal line with a texture. More...

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

Public Member Functions

 DtTexturedOutlinedPolygon (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 CTOR.
virtual ~DtTexturedOutlinedPolygon ()
 DTOR.
virtual DtLineSegmentInterfacecreateAndInitNewSegment ()
 Creates and initializes a new segment.
virtual void setTexture (DtOverlayResourceProvider::NativeResourceHandle texture, float textureWidth)
 Sets the texture to use with the line.
virtual void setZoomFactor (float z)
 Sets the factor by which to adjust distance.
virtual void setRotationOffset (float)
 Sets the offset to the rotation to apply to the segmented line. Use for observer rotation.
- Public Member Functions inherited from makVrv::DtOutlinedPolygon
 DtOutlinedPolygon (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 CTOR.
virtual ~DtOutlinedPolygon ()
 DTOR.
virtual void setEventsEnabled (bool enabled, unsigned long long userData=0)
 Set whether the sprite has widget events.
bool eventsEnabled () const
 Get whether events are already enabled.
virtual void setVertexCount (unsigned int vertexCount)
 Set the number of vertices, set the number of vertices before setting their parameters (position, color etc).
virtual unsigned int vertexCount () const
 Get the vertex count.
virtual void set2DPositions (const std::vector< float > &vertices)
 Set the number of vertices and their positions.
virtual void set2DPosition (unsigned int vertexIndex, float x1, float y1)
 Set the vertex positions.
virtual void get2DPosition (unsigned int vertexIndex, float &x, float &y) const
 Get the vertex position.
virtual void set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w)
 Set one vertex position.
virtual void get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const
 Get the vertex position.
virtual void set3DDirectionAndLength (unsigned int index, float x, float y, float z, float l)
 Sets an optional 3D direction with a 2D length value for a vertex.
virtual void setVertexColor (unsigned int index, float r, float g, float b, float a)
 Set the color of a specific vertex.
virtual void getVertexColor (unsigned int index, float &r, float &g, float &b, float &a)
 Get the color of a specific vertex.
virtual void setColor (float r, float g, float b, float a)
 Set entire poly-line color.
virtual void getColor (float &r, float &g, float &b, float &a) const
 Get the poly-line color.
void setStippleParameters (unsigned int scale, unsigned short pattern)
 Set the entire poly-line stipple.
virtual void setStipple (unsigned int stipplePattern)
 Set the stipple pattern.
virtual void setOutlineWidth (float)
 Sets the width of the line segments that comprise the polygon.
virtual void setEventOutlineWidth (float)
 Sets the width of the event outline segments.
virtual int group () const
 Returns the group that the polygon is on (for Z-Ordering)
virtual void setGroup (int)
 Sets the group for Z-ordering.
- Public Member Functions inherited from makVrv::DtPolygon
virtual ~DtPolygon ()

Protected Attributes

DtOverlayResourceProvider::NativeResourceHandle myTexture
float myTextureWidth
float myZoomFactor
float myRotationOffset
- Protected Attributes inherited from makVrv::DtOutlinedPolygon
DtOverlayRenderermyRenderer
DtWidgetPickermyPicker
LineSegmentList myLineSegments
PickableSegmentList myPickableSegments
bool myEventsEnabled
unsigned long long myUserData
unsigned short myStipplePattern
float myWidth
float myEventWidth
int myGroup
bool myPickerDestroyed
bool myPickerConnected

Additional Inherited Members

- Protected Types inherited from makVrv::DtOutlinedPolygon
typedef std::vector
< DtLineSegmentInterface * > 
LineSegmentList
typedef std::vector
< DtPickableLine * > 
PickableSegmentList
- Protected Member Functions inherited from makVrv::DtOutlinedPolygon
virtual void slot_pickerDestroyed ()
 Called when the widget picker is destroyed, clears out pickable segment list and sets a flag to no longer use the picker.

Detailed Description

Draw a polygonal line with a texture.

Constructor & Destructor Documentation

makVrv::DtTexturedOutlinedPolygon::DtTexturedOutlinedPolygon ( DtOverlayRenderer renderer,
DtWidgetPicker picker 
)

CTOR.

virtual makVrv::DtTexturedOutlinedPolygon::~DtTexturedOutlinedPolygon ( )
virtual

DTOR.

Member Function Documentation

virtual DtLineSegmentInterface* makVrv::DtTexturedOutlinedPolygon::createAndInitNewSegment ( )
virtual

Creates and initializes a new segment.

Reimplemented from makVrv::DtOutlinedPolygon.

virtual void makVrv::DtTexturedOutlinedPolygon::setTexture ( DtOverlayResourceProvider::NativeResourceHandle  texture,
float  textureWidth 
)
virtual

Sets the texture to use with the line.

virtual void makVrv::DtTexturedOutlinedPolygon::setZoomFactor ( float  z)
virtual

Sets the factor by which to adjust distance.

virtual void makVrv::DtTexturedOutlinedPolygon::setRotationOffset ( float  )
virtual

Sets the offset to the rotation to apply to the segmented line. Use for observer rotation.

Member Data Documentation

DtOverlayResourceProvider::NativeResourceHandle makVrv::DtTexturedOutlinedPolygon::myTexture
protected
float makVrv::DtTexturedOutlinedPolygon::myTextureWidth
protected
float makVrv::DtTexturedOutlinedPolygon::myZoomFactor
protected
float makVrv::DtTexturedOutlinedPolygon::myRotationOffset
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)