VisioMove SDK (iOS)  2.1.22
Vg3DModule::VgIGeometry Class Reference
Inheritance diagram for Vg3DModule::VgIGeometry:
Inheritance graph

Public Member Functions

 VgIGeometry ()
 
virtual ~VgIGeometry ()
 
virtual VgIGeometryType getType () const
 
virtual VgEngine::VgRefPtr< VgEngine::VgLayergetLayer ()
 
virtual void setLayer (VgEngine::VgRefPtr< VgEngine::VgLayer > pLayer, bool pHaveGeographicCoherence=true)
 
virtual void addListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback)
 
virtual void removeListener (VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback > pCallback)
 
virtual const VgEngine::VgVisibilityRamp getVisibilityRamp () const
 
virtual void setVisibilityRamp (const VgEngine::VgVisibilityRamp &pRamp)
 
virtual const std::string & getID () const
 
virtual bool getNotifyPOISelectedOnClick () const
 
virtual void setNotifyPOISelectedOnClick (bool pValue)
 
virtual bool getBoundingPositions (std::vector< VgEngine::VgPosition > &pResult)
 
virtual VgEngine::VgPosition getLocalPosition () const
 
virtual void setLocalPosition (VgEngine::VgPosition const &pPosition)
 
Vg3DModule::VgIGeometryasGeometry ()
 
virtual Vg3DModule::VgPointasPoint ()
 
virtual Vg3DModule::VgLineasLine ()
 
- Public Member Functions inherited from VgEngine::VgSpatial
void setAnimation (const std::string &pAnimationName, VgEngine::VgRefPtr< VgEngine::VgAnimation > &pAnimation)
 
void setAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation)
 
void setLocalAnimation (VgEngine::VgRefPtr< VgEngine::VgAnimation > pAnimation)
 
VgConstRefPtr< VgAnimationgetAnimation (const std::string &pName) const
 
VgRefPtr< VgAnimationeditAnimation (const std::string &pName)
 
void getAnimationNames (std::list< std::string > &pNameList) const
 
VgValue getAnimationChannelValue (const std::string &pChannelName) const
 
VgEngine::VgPosition getPosition () const
 
virtual void setPosition (const VgEngine::VgPosition &pPosition, bool pHaveGeographicCoherence=true)
 
VgEngine::VgOrientation getOrientation () const
 
void setOrientation (const VgEngine::VgOrientation &pOrientation)
 
float getScale () const
 
void setScale (float pScale)
 
int getZIndex () const
 
void setZIndex (int pZIndex)
 
bool isDrawnOnTop () const
 
void setDrawOnTop (bool pEnable)
 
virtual void setVisible (bool pIsVisible)
 
virtual bool isVisible () const
 
- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 
 VgReferenced (const VgReferenced &pThis)
 
virtual ~VgReferenced ()
 
VgReferencedoperator= (const VgReferenced &pThis)
 
void ref () const
 
int unref () const
 
int getNbReferences () const
 

Friends

class VgEngine::VgObjectBridge
 

Additional Inherited Members

- Protected Member Functions inherited from VgEngine::VgSpatial
 VgSpatial ()
 
virtual ~VgSpatial ()
 
- Protected Attributes inherited from VgEngine::VgSpatial
Private * mPrivate
 
- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 

Detailed Description

The Vg3DModule::VgIGeometry interface is used as an abstraction of geometric features that can be added to or removed from the scene.

Constructor & Destructor Documentation

Vg3DModule::VgIGeometry::VgIGeometry ( )

Constructor.

virtual Vg3DModule::VgIGeometry::~VgIGeometry ( )
virtual

Destructor.

Member Function Documentation

virtual void Vg3DModule::VgIGeometry::addListener ( VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback pCallback)
virtual

Adds a listener to the geometry object. Alternatively you can use setNotifyPOISelectedOnClick with true and use the VgMapModule::VgIMapModule::addListener to receive the notifications in one place.

Parameters
pCallbackThe callback to associate with this geometry object.
Version
2.0
2.1.3 Updated documentation to point out that might be easier to use VgMapModule::VgIPlaceListener
See also
Vg3DModule::VgIGeometry::setNotifyPOISelectedOnClick
VgMapModule::VgIPlaceListener
Vg3DModule::VgIGeometry* Vg3DModule::VgIGeometry::asGeometry ( )
virtual

Casts this instance into a VgIGeometry.

Returns
A valid pointer if this instance as the correct type, NULL otherwise.
Version
2.0.9590

Reimplemented from VgEngine::VgSpatial.

virtual Vg3DModule::VgLine* Vg3DModule::VgIGeometry::asLine ( )
virtual

Casts this instance into a VgLine.

Returns
A valid pointer if this instance as the correct type, NULL otherwise.
Version
2.0.9590

Reimplemented from VgEngine::VgSpatial.

Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.

virtual Vg3DModule::VgPoint* Vg3DModule::VgIGeometry::asPoint ( )
virtual

Casts this instance into a VgPoint.

Returns
A valid pointer if this instance as the correct type, NULL otherwise.
Version
2.0.9590

Reimplemented from VgEngine::VgSpatial.

Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.

virtual bool Vg3DModule::VgIGeometry::getBoundingPositions ( std::vector< VgEngine::VgPosition > &  pResult)
virtual

Returns a vector of points that can be used to determine a viewpoint where one is guaranteed that the whole object is visible.

Parameters
pResultVector reference where it will place the results. The VgSRS of all positions will not be geo-referenced.
Returns
true if the VgIGeometry has a valid bound
Version
2.1.3
See also
VgEngine::VgICamera::getViewpointFromPositions
virtual const std::string& Vg3DModule::VgIGeometry::getID ( ) const
virtual
Returns
VgIGeometry's Identifier used at its creation.
Version
2.1.0
See also
VgEngine::VgQuery
virtual VgEngine::VgRefPtr< VgEngine::VgLayer > Vg3DModule::VgIGeometry::getLayer ( )
virtual
Returns
The layer containing this geometry. NULL if the geometry is not attached yet.
Version
2.0.9517
virtual VgEngine::VgPosition Vg3DModule::VgIGeometry::getLocalPosition ( ) const
virtual

Gets the geometry's local node position relative to it's parent.

Returns
The spatial's local node relative position.
Version
2.1.9
virtual bool Vg3DModule::VgIGeometry::getNotifyPOISelectedOnClick ( ) const
virtual
Returns
true if the VgIGeometry is set to called the VgMapModule::VgIPlaceListener on click
Version
2.1.3
See also
VgMapModule::VgIPlaceListener
virtual VgIGeometryType Vg3DModule::VgIGeometry::getType ( ) const
virtual

Gets the geometry type.

Returns
The type of the geometry object.

Reimplemented in Vg3DModule::VgPoint, and Vg3DModule::VgLine.

virtual const VgEngine::VgVisibilityRamp Vg3DModule::VgIGeometry::getVisibilityRamp ( ) const
virtual
Returns
The visibility ramp.
Version
2.0.9263
virtual void Vg3DModule::VgIGeometry::removeListener ( VgEngine::VgRefPtr< Vg3DModule::VgIGeometryCallback pCallback)
virtual

Removes a listener from the geometry object.

Parameters
pCallbackThe callback to disassociate from this geometry object.
Version
2.0
virtual void Vg3DModule::VgIGeometry::setLayer ( VgEngine::VgRefPtr< VgEngine::VgLayer pLayer,
bool  pHaveGeographicCoherence = true 
)
virtual

Sets the associated layer.

Parameters
pLayerThe VgLayer to associate with the geometry object. Pass pLayer as null to disassociate the geometry object from a layer.
pHaveGeographicCoherenceAn optional parameter who by default is true. Is used to determine the geographic coherence of the geometry. If set to false, then the geometry will be coherent with the scene.
Note
To be displayed a geometry must have a layer set, with visible hosted visuals and be visible.
See also
VgEngine::VgSpatial::setVisible
VgEngine::VgLayer
Version
2.0
virtual void Vg3DModule::VgIGeometry::setLocalPosition ( VgEngine::VgPosition const &  pPosition)
virtual

Sets the geometry's local node position relative to it's parent.

Parameters
pPositionThe spatial's local node relative position.
Version
2.1.9
virtual void Vg3DModule::VgIGeometry::setNotifyPOISelectedOnClick ( bool  pValue)
virtual

Sets the VgIGeometry to call the VgIMapModule::VgIPlaceListeners when the user clicks on the VgIGeometry. This is done after calling all the listeners added to the VgIGeometry directly.

Version
2.1.3
See also
VgMapModule::VgIPlaceListener
virtual void Vg3DModule::VgIGeometry::setVisibilityRamp ( const VgEngine::VgVisibilityRamp pRamp)
virtual

Sets the visibility ramp.

Version
2.0.9263

Friends And Related Function Documentation

friend class VgEngine::VgObjectBridge
friend

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016