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

Draw a line with a texture. More...

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

Public Member Functions

 DtTexturedLine (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 CTOR.
virtual ~DtTexturedLine ()
 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.
virtual void setGroup (int)
 The higher the z order the "closer" to the eyepoint this element will be drawn.
- Public Member Functions inherited from makVrv::DtSegmentedLine
 DtSegmentedLine (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 CTOR.
virtual ~DtSegmentedLine ()
 Constructor removed in favor of more generic constructor to take Overlay Renderer 09/04/2012.
virtual void setEventsEnabled (bool enabled, unsigned long long userData=0)
 Set whether the sprite has widget events.
virtual 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 unsigned int segmentCount () const
 Number of segments available.
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 set3DDirection (unsigned int vertexIndex, float x, float y, float z)
 Set the normalized direction of the line in world space.
virtual void get3DDirection (unsigned int vertexIndex, float &x, float &y, float &z) const
 Get the normalized direction of the vertex.
virtual void setDirection2DLength (unsigned int vertexIndex, float length)
 Set the length of the line in 2D space.
virtual float direction2DLength (unsigned int vertexIndex) const
 Get the length of the line in 2D space.
virtual void setSegmentColor (unsigned int segment, float r, float g, float b, float a)
 Set the color of the segment (non-blending)
virtual void setPointColor (unsigned int point, float r, float g, float b, float a)
 Set the color of the point (bleding)
virtual void setStipplePattern (unsigned int segment, unsigned int pattern)
 Set the stipple pattern.
virtual void setWidth (unsigned int segment, float w)
 Set the line width.
virtual void setEventWidth (float)
 Sets the width of the event outline segments.

Protected Types

typedef std::vector
< DtTexturedLineSegment * > 
TexturedLineSegmentList
- Protected Types inherited from makVrv::DtSegmentedLine
typedef std::vector
< DtLineSegmentInterface * > 
LineSegmentList
typedef std::vector
< DtPickableLine * > 
PickableSegmentList

Protected Member Functions

virtual void removeLineSegmentsUntilEndFrom (int segmentCount)
 Removed segments from the line starting at segmentCount until the end is reached.
virtual void setLineSegment (int, DtLineSegmentInterface *)
 Sets the segment into the array. If array is smaller, increases size.
- Protected Member Functions inherited from makVrv::DtSegmentedLine
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.

Protected Attributes

TexturedLineSegmentList myTexturedLineSegments
DtOverlayResourceProvider::NativeResourceHandle myTexture
float myTextureWidth
float myZoomFactor
float myRotationOffset
- Protected Attributes inherited from makVrv::DtSegmentedLine
DtOverlayRenderermyRenderer
DtWidgetPickermyPicker
LineSegmentList myLineSegments
PickableSegmentList myPickableSegments
bool myEventsEnabled
unsigned int myVertexCount
unsigned long long myUserData
float myEventWidth
bool myPickerDestroyed
bool myPickerConnected
int myGroup

Detailed Description

Draw a line with a texture.

Member Typedef Documentation

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtTexturedLine::~DtTexturedLine ( )
virtual

DTOR.

Member Function Documentation

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

Creates and initializes a new segment.

Reimplemented from makVrv::DtSegmentedLine.

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

Sets the texture to use with the line.

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

Sets the factor by which to adjust distance.

The zoom factor will be used to determine how to repeat the textured pattern on the line.

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

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

virtual void makVrv::DtTexturedLine::setGroup ( int  )
virtual

The higher the z order the "closer" to the eyepoint this element will be drawn.

Use this variable to stack overlay objects in the particular order you want them displayed

Reimplemented from makVrv::DtSegmentedLine.

virtual void makVrv::DtTexturedLine::removeLineSegmentsUntilEndFrom ( int  segmentCount)
protectedvirtual

Removed segments from the line starting at segmentCount until the end is reached.

Reimplemented from makVrv::DtSegmentedLine.

virtual void makVrv::DtTexturedLine::setLineSegment ( int  ,
DtLineSegmentInterface  
)
protectedvirtual

Sets the segment into the array. If array is smaller, increases size.

Reimplemented from makVrv::DtSegmentedLine.

Member Data Documentation

TexturedLineSegmentList makVrv::DtTexturedLine::myTexturedLineSegments
protected
DtOverlayResourceProvider::NativeResourceHandle makVrv::DtTexturedLine::myTexture
protected
float makVrv::DtTexturedLine::myTextureWidth
protected
float makVrv::DtTexturedLine::myZoomFactor
protected
float makVrv::DtTexturedLine::myRotationOffset
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)