com.visioglobe.libVisioDevKit
Class VgIGeometry

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by com.visioglobe.libVisioDevKit.VgSpatial
          extended by com.visioglobe.libVisioDevKit.VgIGeometry
Direct Known Subclasses:
VgLine, VgPoint

public class VgIGeometry
extends VgSpatial

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


Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgIGeometry()
           
VgIGeometry(long cPtr, boolean cMemoryOwn)
          Constructor.
 
Method Summary
 void addListener(VgIGeometryCallbackRefPtr pCallback)
          Adds a listener to the geometry object.
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgIGeometry obj)
           
 VgIGeometryType getType()
          Gets the geometry type.
 void removeListener(VgIGeometryCallbackRefPtr pCallback)
          Removes a listener from the geometry object.
 void setLayer(VgLayerRefPtr pLayer)
           
 void setLayer(VgLayerRefPtr pLayer, boolean pHaveGeographicCoherence)
          Sets the associated layer.
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgSpatial
editAnimation, getAnimation, getAnimationNames, getCPtr, getOrientation, getPosition, setAnimation, setAnimation, setLocalAnimation, setOrientation, setPosition, setPosition, setScale
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced
getCPtr, getNbReferences, ref, unref
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VgIGeometry

public VgIGeometry(long cPtr,
                   boolean cMemoryOwn)
Constructor.


VgIGeometry

public VgIGeometry()
Method Detail

getCPtr

public static long getCPtr(VgIGeometry obj)

finalize

protected void finalize()
Overrides:
finalize in class VgReferenced

delete

public void delete()
Overrides:
delete in class VgSpatial

getType

public VgIGeometryType getType()
Gets the geometry type.

Returns:
The type of the geometry object.

setLayer

public void setLayer(VgLayerRefPtr pLayer,
                     boolean pHaveGeographicCoherence)
Sets the associated layer.

Parameters:
pLayer - The VgLayer to associate with the geometry object. Pass pLayer as null to disassociate the geometry object from a layer.
pHaveGeographicCoherence - An 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.

setLayer

public void setLayer(VgLayerRefPtr pLayer)

addListener

public void addListener(VgIGeometryCallbackRefPtr pCallback)
Adds a listener to the geometry object.

Parameters:
pCallback - The callback to associate with this geometry object.

removeListener

public void removeListener(VgIGeometryCallbackRefPtr pCallback)
Removes a listener from the geometry object.

Parameters:
pCallback - The callback to disassociate from this geometry object.

VisioDevKit 2.0, Visioglobe® 2013