VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Public Member Functions

 DtTexturedLine (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 
virtual ~DtTexturedLine ()
 
virtual DtLineSegmentInterfacecreateAndInitNewSegment ()
 
virtual void setTexture (DtOverlayResourceProvider::NativeResourceHandle texture, float textureWidth)
 
virtual void setZoomFactor (float z)
 
virtual void setRotationOffset (float)
 
virtual void setGroup (int)
 
- Public Member Functions inherited from makVrv::DtSegmentedLine
 DtSegmentedLine (DtOverlayRenderer &renderer, DtWidgetPicker &picker)
 
virtual ~DtSegmentedLine ()
 
virtual void setEventsEnabled (bool enabled, unsigned long long userData=0)
 
virtual bool eventsEnabled () const
 
virtual void setVertexCount (unsigned int vertexCount)
 
virtual unsigned int vertexCount () const
 
virtual unsigned int segmentCount () const
 
virtual void set2DPosition (unsigned int vertexIndex, float x1, float y1)
 
virtual void get2DPosition (unsigned int vertexIndex, float &x, float &y) const
 
virtual void set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w)
 
virtual void get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const
 
virtual void set3DDirection (unsigned int vertexIndex, float x, float y, float z)
 
virtual void get3DDirection (unsigned int vertexIndex, float &x, float &y, float &z) const
 
virtual void setDirection2DLength (unsigned int vertexIndex, float length)
 
virtual float direction2DLength (unsigned int vertexIndex) const
 
virtual void setSegmentColor (unsigned int segment, float r, float g, float b, float a)
 
virtual void setPointColor (unsigned int point, float r, float g, float b, float a)
 
virtual void setStipplePattern (unsigned int segment, unsigned int pattern)
 
virtual void setStipplePattern (unsigned int segment, unsigned int scale, unsigned int pattern)
 
virtual void setWidth (unsigned int segment, float w)
 
virtual void setEventWidth (float)
 

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)
 
virtual void setLineSegment (int, DtLineSegmentInterface *)
 
- Protected Member Functions inherited from makVrv::DtSegmentedLine
virtual void slot_pickerDestroyed ()
 

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
 

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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)