This structure encapsulates the point description parameters. More...
Public Types | |
typedef VgPoint | Described |
Static Public Member Functions | |
static VgEngine::VgRefPtr < Vg3DModule::VgPointDescriptor > | create () |
This static method returns a new heap-allocated descriptor. | |
static VgEngine::VgRefPtr < Vg3DModule::VgPointDescriptor > | create (VgEngine::VgRefPtr< Vg3DModule::VgPointDescriptor >const &pOther) |
This static method returns a new heap-allocated descriptor. | |
Public Attributes | |
VgEngine::VgPosition | mPosition |
The point's position. | |
VgEngine::VgAltitudeMode | mAltitudeMode |
The altitude mode tells how to interpret the VgPointDescriptor::mPosition::mZOrAltitude member. | |
VgEngine::VgAnchorMode | mAnchorPosition |
Controls the anchoring of the point's bounding box with its position. | |
float | mVisibilityRampStartVisible |
Distance in meters at which the VgPoint starts becoming visible. | |
float | mVisibilityRampFullyVisible |
Distance in meters at which the VgPoint is fully visible. | |
float | mVisibilityRampStartInvisible |
Distance in meters at which the VgPoint starts to become invisible. | |
float | mVisibilityRampFullyInvisible |
Distance in meters at which the VgPoint is fully invisible. | |
float | mGeometryConstantSizeDistance |
Controls the distance at which the VgPoint does not become bigger as you approach it. | |
float | mHeading |
Controls the heading of the VgPoint. | |
float | mPitch |
Controls the pitch of the VgPoint. | |
float | mRoll |
Controls the roll of the VgPoint. | |
bool | mForceFrontFace |
In cases where the camera can view the poi from behind, our engine will not display the label. | |
VgEngine::VgOrientationType | mHeadingOrientationType |
Controls the orientation type of the Heading. | |
VgEngine::VgOrientationType | mPitchOrientationType |
Controls the orientation type of the Heading. | |
VgEngine::VgOrientationType | mRollOrientationType |
Controls the orientation type of the Roll. | |
std::vector < VgEngine::VgRefPtr < VgMarkerDescriptor > > | mMarkerDescriptors |
A vector of VgMarkerDescriptors which determine what markers and how many of them are associated with this VgPoint. | |
Protected Member Functions | |
VgPointDescriptor () | |
Constructor. | |
VgPointDescriptor (const VgPointDescriptor &pDescriptor) | |
Copy Constructor. | |
~VgPointDescriptor () | |
Destructor. | |
Friends | |
class | VgEngine::VgRefPtr |
This structure encapsulates the point description parameters.
The VgPointDescriptor contains the all the attributes that are useful for describing the behaviour of a VgPoint object.
Below is a code snippet showing how an allocated VgPointDescriptor can be configured:
... Vg3DModule::VgIconMarkerDescriptor lIconMarkerDesc; VgEngine::VgPosition lPos; ... // Allocate a VgPointDescriptor object Vg3DModule::VgPointDescriptor lPointDesc; // Configure the object // // Set the point's position anchor. lPointDesc.mAnchorPosition= VgEngine::eVgBottomCenter; // Set the points position lPointDesc.mPosition = lPos; // Associate the marker with VgPointDescriptor. // Note: It's possible to associate several markers with a single point. lPointDesc.mMarkerDescriptors.push_back(&lIconMarkerDesc); ...
Vg3DModule::VgPointDescriptor::VgPointDescriptor | ( | ) | [inline, protected] |
Constructor.
Vg3DModule::VgPointDescriptor::VgPointDescriptor | ( | const VgPointDescriptor & | pDescriptor ) | [inline, protected] |
Copy Constructor.
Vg3DModule::VgPointDescriptor::~VgPointDescriptor | ( | ) | [protected] |
Destructor.
static VgEngine::VgRefPtr< Vg3DModule::VgPointDescriptor > Vg3DModule::VgPointDescriptor::create | ( | ) | [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.
static VgEngine::VgRefPtr< Vg3DModule::VgPointDescriptor > Vg3DModule::VgPointDescriptor::create | ( | VgEngine::VgRefPtr< Vg3DModule::VgPointDescriptor >const & | pOther ) | [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.
friend class VgEngine::VgRefPtr [friend] |
The altitude mode tells how to interpret the VgPointDescriptor::mPosition::mZOrAltitude member.
Default is eAbsolute.
Controls the anchoring of the point's bounding box with its position.
Default is VgEngine::eVgBottomCenter.
In cases where the camera can view the poi from behind, our engine will not display the label.
To prevent such cases, the boolean mForceFrontFace controls whether the label should be flipped when viewed from behind. Default value is false;
Controls the distance at which the VgPoint does not become bigger as you approach it.
When the camera is within this distance of the VgPoint, the visible size of the VgPoint on the screen will be the same as what it looked like when it was mGeometryConstantSizeDistance meters away. If set to 0.0, the size of the POI will be determined by mScale, regardless of it's distance from the camera. The default value of this property is 700.0.
Controls the heading of the VgPoint.
Default value is 0.0.
Controls the orientation type of the Heading.
By default is eVgOrientaitonCameraFacing.
std::vector< VgEngine::VgRefPtr< VgMarkerDescriptor > > Vg3DModule::VgPointDescriptor::mMarkerDescriptors |
A vector of VgMarkerDescriptors which determine what markers and how many of them are associated with this VgPoint.
See Vg3DModule::VgMarkerType for a list of available markers.
Controls the pitch of the VgPoint.
The valid range is between -90.0 and 90.0. A value of 0, means the VgPoint is facing the horizon. Default value is 0.0.
Controls the orientation type of the Heading.
By default is eVgOrientaitonCameraFacing.
The point's position.
Controls the roll of the VgPoint.
The valid range is between -90.0 and 90.0. A value of 0, means the VgPoint is straight. Default value is 0.0.
Controls the orientation type of the Roll.
By default is eVgOrientationFixedModulo180degrees.
Distance in meters at which the VgPoint starts to become invisible.
By default 3000 meters