![]() |
VR-Forces Developer's Guide
|
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.

Public Types | |
| typedef std::vector< DtVector > | PointVector |
Public Member Functions | |
| DtDecalProjectorLine (DtDe &de, DtChannel *channel, DtModelSetId modelSet) | |
| virtual | ~DtDecalProjectorLine () |
| DtDecalProjectorLine ()=delete | |
| DtDecalProjectorLine (const DtDecalProjectorLine &)=delete | |
| DtDecalProjectorLine & | operator= (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 () |
Friends | |
| class | DtDecalProjectorPolygonCreator |
| typedef std::vector<DtVector> makVrv::DtDecalProjectorLine::PointVector |
| makVrv::DtDecalProjectorLine::DtDecalProjectorLine | ( | DtDe & | de, |
| DtChannel * | channel, | ||
| DtModelSetId | modelSet | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
Default Constructor not implemented – default constructor not allowed.
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
delete |
Assignment Operator not implemented – Copy not allowed.
|
overridevirtual |
Sets the name of a texture to be tiled along the line.
Implements makVrv::DtDecalProjectorLineInterface.
|
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.
|
overridevirtual |
Sets the color of all line vertices.
| r,g,b,a | The (0.0 - 1.0) red, green, blue, alpha values |
Implements makVrv::DtDecalProjectorLineInterface.
|
overridevirtual |
Sets the width of the line.
Implements makVrv::DtDecalProjectorLineInterface.
|
overridevirtual |
Sets all the line point positions.
Implements makVrv::DtDecalProjectorLineInterface.
|
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.
|
protectedvirtual |
Called when the widget picker is destroyed, clears out pickable segment list and sets a flag to no longer use the picker.
|
protectedvirtual |
Connects to the widget picket (if not connected).
|
protected |
Disconnects from the widget picker signals (if connected). non-virutal used in destructor.
|
protectedvirtual |
Updates the decal projector line component based on the current state such as color and positions.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |