A structure which describes the attributes of a Vg3DModule::VgLink. More...
Public Types | |
typedef VgLink | Described |
Public Member Functions | |
VgLinkDescriptor () | |
Constructor. | |
VgLinkDescriptor (const VgEngine::VgPosition &pSourcePosition, const VgEngine::VgColor &pSourceColor, const VgEngine::VgPosition &pTargetPosition, const VgEngine::VgColor &pTargetColor, VgEngine::VgRefPtr< VgEngine::VgITexture > pTexture, float pWidth, float pTextureRatio, float pAnimationSpeed) | |
Parametrized constructor. | |
VgLinkDescriptor (const VgLinkDescriptor &pOther) | |
Copy Constructor. | |
Static Public Member Functions | |
static VgEngine::VgRefPtr < VgLinkDescriptor > | create () |
This static method returns a new heap-allocated descriptor. | |
Public Attributes | |
VgEngine::VgPosition | mSourcePosition |
The source position. | |
VgEngine::VgColor | mSourceColor |
The source point's color, The link's color will be interpolated linearly from source color. | |
VgEngine::VgPosition | mTargetPosition |
The 'end' position. | |
VgEngine::VgColor | mTargetColor |
The end's color. | |
VgEngine::VgRefPtr < VgEngine::VgITexture > | mTexture |
The optional texture to apply to the link's geometry. | |
float | mWidth |
Width of the link. | |
float | mTextureRatio |
Texture's width/height ratio. | |
float | mAnimationSpeed |
Texture's animation speed. |
A structure which describes the attributes of a Vg3DModule::VgLink.
Vg3DModule::VgLinkDescriptor::VgLinkDescriptor | ( | ) |
Constructor.
Vg3DModule::VgLinkDescriptor::VgLinkDescriptor | ( | const VgEngine::VgPosition & | pSourcePosition, |
const VgEngine::VgColor & | pSourceColor, | ||
const VgEngine::VgPosition & | pTargetPosition, | ||
const VgEngine::VgColor & | pTargetColor, | ||
VgEngine::VgRefPtr< VgEngine::VgITexture > | pTexture, | ||
float | pWidth, | ||
float | pTextureRatio, | ||
float | pAnimationSpeed | ||
) |
Parametrized constructor.
Vg3DModule::VgLinkDescriptor::VgLinkDescriptor | ( | const VgLinkDescriptor & | pOther ) |
Copy Constructor.
static VgEngine::VgRefPtr< VgLinkDescriptor > Vg3DModule::VgLinkDescriptor::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.
Texture's animation speed.
The source point's color, The link's color will be interpolated linearly from source color.
The source position.
The end's color.
The 'end' position.
Same note applies as for Vg3DModule::VgLinkDescriptor::mSourcePosition.
The optional texture to apply to the link's geometry.
Texture's width/height ratio.
Width of the link.