VisioDevKit  v2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends Pages
Vg3DModule::VgLine Class Reference

A VgLine is created using Vg3DModule::VgInstanceFactory::instantiate. More...

Inheritance diagram for Vg3DModule::VgLine:
Inheritance graph

Public Types

typedef VgLineDescriptor Descriptor
 

Public Member Functions

virtual
VgEngine::VgConstRefPtr
< Descriptor
getDescriptor () const
 Retrieves the descriptor containing line information. More...
 
virtual Vg3DModule::VgIGeometryType getType () const
 
const VgEngine::VgRefPtr
< VgEngine::VgITexture > & 
getTexture () const
 
bool setTexture (const VgEngine::VgRefPtr< VgEngine::VgITexture > &pTexture)
 Sets a new texture for this line. More...
 
float getTextureAnimationSpeed () const
 
void setTextureAnimationSpeed (const float pSpeed)
 Sets the texture animation speed in meters/second for this line. More...
 
- Public Member Functions inherited from Vg3DModule::VgIGeometry
 VgIGeometry ()
 Constructor. More...
 
virtual ~VgIGeometry ()
 Destructor. More...
 
virtual void setLayer (VgEngine::VgRefPtr< VgEngine::VgLayer > pLayer, bool pHaveGeographicCoherence=true)
 Sets the associated layer. More...
 
virtual void addListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback)
 Adds a listener to the geometry object. More...
 
virtual void removeListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback)
 Removes a listener from the geometry object. More...
 
const VgEngine::VgVisibilityRamp getVisibilityRamp () const
 
void setVisibilityRamp (const VgEngine::VgVisibilityRamp &pRamp)
 Sets the visibility ramp. More...
 
- Public Member Functions inherited from VgEngine::VgSpatial
void setAnimation (const std::string &pAnimationName, VgEngine::VgRefPtr< VgEngine::VgAnimation > &pAnimation)
 Sets an animation on this spatial. More...
 
void setAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation)
 Sets an animation with an empty name on this spatial. More...
 
void setLocalAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation)
 Sets an animation on this spatial. More...
 
VgConstRefPtr< VgAnimationgetAnimation (const std::string &pName) const
 Gets an animation from the spatial's animation map. More...
 
VgRefPtr< VgAnimationeditAnimation (const std::string &pName)
 Edits an animation from the spatial's animation map. More...
 
void getAnimationNames (std::list< std::string > &pNameList) const
 Gets the list of the stored animation names. More...
 
VgEngine::VgPosition getPosition () const
 Gets spatial's position. More...
 
virtual void setPosition (const VgEngine::VgPosition &pPosition, bool pHaveGeographicCoherence=true)
 Sets the spatial position. More...
 
VgEngine::VgOrientation getOrientation () const
 Gets spatial's orientation. More...
 
void setOrientation (const VgEngine::VgOrientation &pOrientation)
 Sets the spatial orientation. More...
 
float getScale () const
 
void setScale (float pScale)
 Sets the spatial's scale. More...
 
int getZIndex () const
 
void setZIndex (int pZIndex)
 Sets the Z Index. More...
 
bool isDrawnOnTop () const
 
void setDrawOnTop (bool pEnable)
 Sets the drawOnTop flag. More...
 
- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 Constructor. More...
 
 VgReferenced (const VgReferenced &pThis)
 Copy constructor. More...
 
virtual ~VgReferenced ()
 Destructor. More...
 
VgReferencedoperator= (const VgReferenced &pThis)
 Assignment operator. More...
 
void ref () const
 This method is used to add a reference to this object. More...
 
void 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...
 

Protected Member Functions

 VgLine ()
 Constructor. More...
 
virtual ~VgLine ()
 Destructor. More...
 
- Protected Member Functions inherited from VgEngine::VgSpatial
 VgSpatial ()
 Default constructor. More...
 
virtual ~VgSpatial ()
 Destructor. More...
 

Friends

class VgEngine::VgInstanceFactory
 
class VgEngine::VgObjectBridge
 

Additional Inherited Members

- Protected Attributes inherited from VgEngine::VgSpatial
Private * mPrivate
 Private. More...
 
- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 The number of references to this object. More...
 

Detailed Description

A VgLine is created using Vg3DModule::VgInstanceFactory::instantiate.

Once created, it may be added to a layer using VgLine::setLayer.

...
VgApplication::VgIApplication* mVgApplication;
...
VgEngine::VgRefPtr< Vg3DModule::VgLine > lLine = mVgApplication->editEngine()->editInstanceFactory()->instantiate(lLineDesc);
const VgEngine::VgLayerManager::LayerList& lLayers = mVgApplication->editEngine()->editLayerManager()->getLayers();
// Choose the first layer.
// Note: The line will only be seen if it's associated layer is visible.
lLine->setLayer(lLayer);
// To remove the line from the layer
lLine->setLayer(NULL);
// If the line is no longer required, then release it's memory.
// VgLine is reference counted, so just null-out the VgRefPtr.
lLine = NULL;
Version
2.0

Member Typedef Documentation

Constructor & Destructor Documentation

Vg3DModule::VgLine::VgLine ( )
protected

Constructor.

virtual Vg3DModule::VgLine::~VgLine ( )
protectedvirtual

Destructor.

Member Function Documentation

virtual VgEngine::VgConstRefPtr< Descriptor > Vg3DModule::VgLine::getDescriptor ( ) const
virtual

Retrieves the descriptor containing line information.

Returns
The descriptor.
const VgEngine::VgRefPtr< VgEngine::VgITexture >& Vg3DModule::VgLine::getTexture ( ) const
Returns
The line texture.
Version
2.0.9263
float Vg3DModule::VgLine::getTextureAnimationSpeed ( ) const
Returns
The line texture animation speed in meters/second
Version
2.0.9263
virtual Vg3DModule::VgIGeometryType Vg3DModule::VgLine::getType ( ) const
virtual
Returns
The geometry type for this object

Reimplemented from Vg3DModule::VgIGeometry.

bool Vg3DModule::VgLine::setTexture ( const VgEngine::VgRefPtr< VgEngine::VgITexture > &  pTexture)

Sets a new texture for this line.

Version
2.0.9263
void Vg3DModule::VgLine::setTextureAnimationSpeed ( const float  pSpeed)

Sets the texture animation speed in meters/second for this line.

Version
2.0.9263

Friends And Related Function Documentation

friend class VgEngine::VgInstanceFactory
friend
friend class VgEngine::VgObjectBridge
friend

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013