VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtDecalProjectorLine Class Reference

This class represents a decal projector line which is a line that will be projected on the 3D terrain. The class holds and processes settings for a line and makes use of a DtDecalProjectorComponent. The lines can be colored and use a stipple pattern or texture. The lines have a physical world width to them. They can also be picked/selected with a mouse.

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

Public Types

typedef std::vector< DtVectorPointVector
 

Public Member Functions

 DtDecalProjectorLine (DtDe &de, DtChannel *channel, DtModelSetId modelSet)
 
virtual ~DtDecalProjectorLine ()
 
 DtDecalProjectorLine ()=delete
 
 DtDecalProjectorLine (const DtDecalProjectorLine &)=delete
 
DtDecalProjectorLineoperator= (const DtDecalProjectorLine &)=delete
 
virtual void setTexture (const std::string texture) override
 
virtual void setStipplePattern (unsigned int stipplePattern[32]) override
 
virtual void setColor (float r, float g, float b, float a) override
 
virtual void setLineWidth (float width) override
 
virtual void setPoints (const std::vector< DtVector > &points) override
 
virtual void setEventsEnabled (bool enabled, unsigned long long userData) override
 
- Public Member Functions inherited from makVrv::DtDecalProjectorLineInterface
 DtDecalProjectorLineInterface ()
 
virtual ~DtDecalProjectorLineInterface ()
 

Protected Member Functions

virtual void slot_pickerDestroyed ()
 
virtual void connectToPicker ()
 
void disconnectFromPicker ()
 
virtual void update ()
 

Protected Attributes

DtDemyDe
 
DtOverlayRendererInterfacemyRenderer
 
PointVector myLinePoints
 
float myColor [4]
 
float myLineWidth
 
unsigned int myFullStipplePattern [32]
 
DtTextureInterfacemyTexture
 
DtDecalProjectorComponentInterfacemyDecalProjectorComponent
 
bool myPickable
 
DtWidgetPickermyPicker
 
bool myPickerEventsEnabled
 
bool myPickerConnected
 
unsigned long long myPickerUserData
 
DtPickableDecalProjectormyPickableDecalProjector
 

Friends

class DtDecalProjectorPolygonCreator
 

Member Typedef Documentation

Constructor & Destructor Documentation

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

Constructor.

virtual makVrv::DtDecalProjectorLine::~DtDecalProjectorLine ( )
virtual

Destructor.

makVrv::DtDecalProjectorLine::DtDecalProjectorLine ( )
delete

Default Constructor not implemented – default constructor not allowed.

makVrv::DtDecalProjectorLine::DtDecalProjectorLine ( const DtDecalProjectorLine )
delete

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

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

Assignment Operator not implemented – Copy not allowed.

virtual void makVrv::DtDecalProjectorLine::setTexture ( const std::string  texture)
overridevirtual

Sets the name of a texture to be tiled along the line.

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::setStipplePattern ( unsigned int  stipplePattern[32])
overridevirtual

Sets a stipple pattern to be used for rendering. If no texture is set, then the stipple pattern will be used.

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::setColor ( float  r,
float  g,
float  b,
float  a 
)
overridevirtual

Sets the color of all line vertices.

Parameters
r,g,b,aThe (0.0 - 1.0) red, green, blue, alpha values

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::setLineWidth ( float  width)
overridevirtual

Sets the width of the line.

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::setPoints ( const std::vector< DtVector > &  points)
overridevirtual

Sets all the line point positions.

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::setEventsEnabled ( bool  enabled,
unsigned long long  userData 
)
overridevirtual

Set whether the model has widget events. Disabling events disconnects all of the event signals The user data is set when enabling the events, to change only the user data make multiple calls with enabled=true.

Implements makVrv::DtDecalProjectorLineInterface.

virtual void makVrv::DtDecalProjectorLine::slot_pickerDestroyed ( )
protectedvirtual

Called when the widget picker is destroyed, clears out pickable segment list and sets a flag to no longer use the picker.

virtual void makVrv::DtDecalProjectorLine::connectToPicker ( )
protectedvirtual

Connects to the widget picket (if not connected).

void makVrv::DtDecalProjectorLine::disconnectFromPicker ( )
protected

Disconnects from the widget picker signals (if connected). non-virutal used in destructor.

virtual void makVrv::DtDecalProjectorLine::update ( )
protectedvirtual

Updates the decal projector line component based on the current state such as color and positions.

Friends And Related Function Documentation

friend class DtDecalProjectorPolygonCreator
friend

Member Data Documentation

DtDe& makVrv::DtDecalProjectorLine::myDe
protected
DtOverlayRendererInterface* makVrv::DtDecalProjectorLine::myRenderer
protected
PointVector makVrv::DtDecalProjectorLine::myLinePoints
protected
float makVrv::DtDecalProjectorLine::myColor[4]
protected
float makVrv::DtDecalProjectorLine::myLineWidth
protected
unsigned int makVrv::DtDecalProjectorLine::myFullStipplePattern[32]
protected
DtTextureInterface* makVrv::DtDecalProjectorLine::myTexture
protected
DtDecalProjectorComponentInterface* makVrv::DtDecalProjectorLine::myDecalProjectorComponent
protected
bool makVrv::DtDecalProjectorLine::myPickable
protected
DtWidgetPicker* makVrv::DtDecalProjectorLine::myPicker
protected
bool makVrv::DtDecalProjectorLine::myPickerEventsEnabled
protected
bool makVrv::DtDecalProjectorLine::myPickerConnected
protected
unsigned long long makVrv::DtDecalProjectorLine::myPickerUserData
protected
DtPickableDecalProjector* makVrv::DtDecalProjectorLine::myPickableDecalProjector
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)