VisioMove
2.1.5
|
A structure which describes the attributes of a Vg3DModule::VgLine. More...
Public Types | |
typedef VgLine | Described |
Public Member Functions | |
VgEngine::VgRefPtr < VgLineDescriptor > | clone () |
Creates a new descriptor by copyiong another one. More... | |
![]() | |
VgReferenced () | |
Constructor. More... | |
VgReferenced (const VgReferenced &pThis) | |
Copy constructor. More... | |
virtual | ~VgReferenced () |
Destructor. More... | |
VgReferenced & | operator= (const VgReferenced &pThis) |
Assignment operator. More... | |
void | ref () const |
This method is used to add a reference to this object. More... | |
int | unref () const |
This method is used to remove a reference to this object. More... | |
int | getNbReferences () const |
Retrieves the number of references to this object. More... | |
Static Public Member Functions | |
static VgEngine::VgRefPtr < Vg3DModule::VgLineDescriptor > | create () |
This static method returns a new heap-allocated descriptor. More... | |
Public Attributes | |
std::vector< VgEngine::VgPosition > | mPositions |
The positions of the control points ordered sequentially. More... | |
std::vector< VgEngine::VgColor > | mColors |
The line colors. More... | |
std::vector< double > | mWidths |
The line widths. More... | |
VgEngine::VgRefPtr < VgEngine::VgITexture > | mTexture |
The texture that will be used when drawing the track. More... | |
float | mTextureSize |
The texture's size in y coordinate (metric). More... | |
float | mTextureAnimationSpeed |
The texture animation speed in meters/second (along the vertical axis of the texture). More... | |
VgLineType | mLineType |
The type of line that will be rendered. More... | |
VgEngine::VgAltitudeMode | mAltitudeMode |
The altitude mode tells how to interpret the 'mHeight' members for all the mPositions elements. More... | |
double | mMaxCornerRadius |
This member sets the maximal curvature radius used in corners when smoothing the line. More... | |
bool | mHaveCaps |
Tells whether the line should have round caps at start and end. More... | |
std::string | mID |
The Line's identifier. More... | |
![]() | |
double | mVisibilityRampStartVisible |
Distance in meters at which it starts becoming visible. More... | |
double | mVisibilityRampFullyVisible |
Distance in meters at which it is fully visible. More... | |
double | mVisibilityRampStartInvisible |
Distance in meters at which it starts to become invisible. More... | |
double | mVisibilityRampFullyInvisible |
Distance in meters at which it is fully invisible. More... | |
int | mZIndex |
This member sets the z-index of the line. More... | |
bool | mDrawOnTop |
Tells whether the line should draw on top (ignoring z-buffer). More... | |
float | mScale |
VgIGeometry's initial scale. More... | |
bool | mNotifyPOISelectedOnClick |
Call VgMapModule::VgIPlaceListener if the VgIGeometry has non-empty ID and is clicked This will be called after all the VgIGeometry callbacks have been called. More... | |
Protected Member Functions | |
VgLineDescriptor () | |
Constructor. More... | |
virtual | ~VgLineDescriptor () |
![]() | |
VgGeometryDescriptor () | |
Constructor. More... | |
virtual | ~VgGeometryDescriptor () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
int | mNbReferences |
The number of references to this object. More... | |
A structure which describes the attributes of a Vg3DModule::VgLine.
Below is a code snippet showing how an allocated VgPointDescriptor can be configured:
|
inlineprotected |
Constructor.
|
protectedvirtual |
|
inline |
Creates a new descriptor by copyiong another one.
|
static |
This static method returns a new heap-allocated descriptor.
It is the only method that should be used to instantiate new descriptors. It is a way to make sure no one will delete it, except the last VgRefPtr pointing to it.
VgEngine::VgAltitudeMode Vg3DModule::VgLineDescriptor::mAltitudeMode |
The altitude mode tells how to interpret the 'mHeight' members for all the mPositions elements.
Default is eAbsolute.
std::vector< VgEngine::VgColor > Vg3DModule::VgLineDescriptor::mColors |
The line colors.
This vector should contain either 1 element in which case all the line will be drawn using that color. If the vector's size is greater or equal to the size of VgLineDescriptor::mPositions, then one color element will be used for each position, and these will be interpolated by the spline erp.
bool Vg3DModule::VgLineDescriptor::mHaveCaps |
Tells whether the line should have round caps at start and end.
Default value is false.
std::string Vg3DModule::VgLineDescriptor::mID |
The Line's identifier.
Default value is empty string ("").
VgLineType Vg3DModule::VgLineDescriptor::mLineType |
The type of line that will be rendered.
Default value is eGeometryConstantSize.
double Vg3DModule::VgLineDescriptor::mMaxCornerRadius |
This member sets the maximal curvature radius used in corners when smoothing the line.
expressed in meters.
Default value is infinity, thus it will take wide turns if possible.
std::vector< VgEngine::VgPosition > Vg3DModule::VgLineDescriptor::mPositions |
The positions of the control points ordered sequentially.
If you want to close the VgLine you have to push_back the first point at the end of the vector.
VgEngine::VgRefPtr< VgEngine::VgITexture > Vg3DModule::VgLineDescriptor::mTexture |
The texture that will be used when drawing the track.
The texture mapping will ensure that the full texture width is mapped on the track's width.
float Vg3DModule::VgLineDescriptor::mTextureAnimationSpeed |
The texture animation speed in meters/second (along the vertical axis of the texture).
a zero or close-to-zero value (<1e-3) means no animation. Default value is 0.0f.
float Vg3DModule::VgLineDescriptor::mTextureSize |
The texture's size in y coordinate (metric).
Default value is 1.0f.
std::vector< double > Vg3DModule::VgLineDescriptor::mWidths |
The line widths.
Depending on VgLineDescriptor::mLineType value these parameters can represent either pixel values (ePixelConstantSize) or meter values (eGeometryConstantSize). This vector should contain either 1 element in which case all the line will be drawn using that width. If the vector's size is greater or equal to the size of VgLineDescriptor::mPositions, then one width element will be used for each position, and these will be interpolated by the spline erp.