VR-Forces 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 (DtDe &de, DtChannel *channel, DtModelSetId modelSet)
 
 DtTexturedLine (DtOverlayRendererInterface &renderer, DtWidgetPicker &picker)
 
virtual ~DtTexturedLine ()
 
 DtTexturedLine ()=delete
 
 DtTexturedLine (const DtTexturedLine &)=delete
 
DtTexturedLineoperator= (const DtTexturedLine &)=delete
 
virtual DtLineSegmentInterfacecreateAndInitNewSegment () override
 
virtual void setTexture (DtTextureInterface *texture) override
 
virtual void setZoomFactor (float z) override
 
virtual void setRotationOffset (float) override
 
virtual void setGroup (int) override
 
- Public Member Functions inherited from makVrv::DtSegmentedLine
 DtSegmentedLine (DtDe &de, DtChannel *channel, DtModelSetId modelSet)
 
 DtSegmentedLine (DtOverlayRendererInterface &renderer, DtWidgetPicker &picker)
 
virtual ~DtSegmentedLine ()
 
 DtSegmentedLine ()=delete
 
 DtSegmentedLine (const DtSegmentedLine &)=delete
 
DtSegmentedLineoperator= (const DtSegmentedLine &)=delete
 
virtual void setEventsEnabled (bool enabled, unsigned long long userData=0) override
 
virtual bool eventsEnabled () const override
 
virtual void setVertexCount (unsigned int vertexCount) override
 
virtual unsigned int vertexCount () const override
 
virtual unsigned int segmentCount () const override
 
virtual void set2DPosition (unsigned int vertexIndex, float x1, float y1) override
 
virtual void get2DPosition (unsigned int vertexIndex, float &x, float &y) const override
 
virtual void set3DPosition (unsigned int vertexIndex, float x, float y, float z, float w) override
 
virtual void get3DPosition (unsigned int vertexIndex, float &x, float &y, float &z, float &w) const override
 
virtual void set3DDirection (unsigned int vertexIndex, float x, float y, float z) override
 
virtual void get3DDirection (unsigned int vertexIndex, float &x, float &y, float &z) const override
 
virtual void setDirection2DLength (unsigned int vertexIndex, float length) override
 
virtual float direction2DLength (unsigned int vertexIndex) const override
 
virtual void setSegmentColor (unsigned int segment, float r, float g, float b, float a) override
 
virtual void setPointColor (unsigned int point, float r, float g, float b, float a) override
 
virtual void setStipplePattern (unsigned int segment, unsigned int pattern) override
 
virtual void setStipplePattern (unsigned int segment, unsigned int scale, unsigned int pattern) override
 
virtual void setWidth (unsigned int segment, float w) override
 
virtual void setEventWidth (float) override
 
- Public Member Functions inherited from makVrv::DtSegmentedLineInterface
 DtSegmentedLineInterface ()
 
virtual ~DtSegmentedLineInterface ()
 
 DtSegmentedLineInterface (const DtSegmentedLineInterface &)=delete
 
DtSegmentedLineInterfaceoperator= (const DtSegmentedLineInterface &)=delete
 

Protected Types

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

Protected Member Functions

virtual void removeLineSegmentsUntilEndFrom (int segmentCount) override
 
virtual void setLineSegment (int, DtLineSegmentInterface *) override
 
- Protected Member Functions inherited from makVrv::DtSegmentedLine
virtual void slot_pickerDestroyed ()
 

Protected Attributes

TexturedLineSegmentList myTexturedLineSegments
 
DtTextureInterfacemyTexture
 
float myZoomFactor
 
float myRotationOffset
 
- Protected Attributes inherited from makVrv::DtSegmentedLine
DtOverlayRendererInterfacemyRenderer
 
DtWidgetPickermyPicker
 
LineSegmentList myLineSegments
 
PickableSegmentList myPickableSegments
 
bool myEventsEnabled
 
unsigned int myVertexCount
 
unsigned long long myUserData
 
float myEventWidth
 
bool myPickerDestroyed
 
boost::signalslib::connection myPickerDestroyedConnection
 
int myGroup
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtTexturedLine::DtTexturedLine ( DtDe de,
DtChannel channel,
DtModelSetId  modelSet 
)

CTOR.

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

CTOR.

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

DTOR.

makVrv::DtTexturedLine::DtTexturedLine ( )
delete

default constructor - not allowed

makVrv::DtTexturedLine::DtTexturedLine ( const DtTexturedLine )
delete

copy constructor - not allowed

Member Function Documentation

DtTexturedLine& makVrv::DtTexturedLine::operator= ( const DtTexturedLine )
delete

equals operator - not allowed

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

Creates and initializes a new segment.

Reimplemented from makVrv::DtSegmentedLine.

virtual void makVrv::DtTexturedLine::setTexture ( DtTextureInterface texture)
overridevirtual

Sets the texture to use with the line.

Reimplemented from makVrv::DtSegmentedLine.

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

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.

Reimplemented from makVrv::DtSegmentedLine.

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

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

Reimplemented from makVrv::DtSegmentedLine.

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

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)
overrideprotectedvirtual

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

Reimplemented from makVrv::DtSegmentedLine.

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

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

Reimplemented from makVrv::DtSegmentedLine.

Member Data Documentation

TexturedLineSegmentList makVrv::DtTexturedLine::myTexturedLineSegments
protected
DtTextureInterface* makVrv::DtTexturedLine::myTexture
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)