com.visioglobe.libVisioDevKit
Class VgIconMarkerDescriptor

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by com.visioglobe.libVisioDevKit.VgMarkerDescriptor
          extended by com.visioglobe.libVisioDevKit.VgIconMarkerDescriptor

public class VgIconMarkerDescriptor
extends VgMarkerDescriptor

Describes an icon marker. The icon will be displayed at the point associated. This descriptor will instanciate a VgIconMarker after the call to VgEngine::VgInstanceFactory::instantiate(VgPointDescriptor const&)

Endcode:

Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgIconMarkerDescriptor(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
static VgIconMarkerDescriptorRefPtr create()
          This static method returns a new heap-allocated descriptor.
 void delete()
           
static long getCPtr(VgIconMarkerDescriptor obj)
           
 VgITextureRefPtr getMIcon()
          The icon's texture.
 float getMScale()
          Scales the icon (which sides always mesure 1x1 meter), by default 70.0.
 VgMarkerType getType()
           
 void setMIcon(VgITextureRefPtr value)
          The icon's texture.
 void setMScale(float value)
          Scales the icon (which sides always mesure 1x1 meter), by default 70.0.
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgMarkerDescriptor
finalize, getCPtr
 
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

VgIconMarkerDescriptor

public VgIconMarkerDescriptor(long cPtr,
                              boolean cMemoryOwn)
Method Detail

getCPtr

public static long getCPtr(VgIconMarkerDescriptor obj)

delete

public void delete()
Overrides:
delete in class VgMarkerDescriptor

create

public static VgIconMarkerDescriptorRefPtr create()
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.


setMIcon

public void setMIcon(VgITextureRefPtr value)
The icon's texture.

Note:
When added to the screen, the icon's pixel size is independant from its distance to the camera.

getMIcon

public VgITextureRefPtr getMIcon()
The icon's texture.

Note:
When added to the screen, the icon's pixel size is independant from its distance to the camera.

setMScale

public void setMScale(float value)
Scales the icon (which sides always mesure 1x1 meter), by default 70.0. The visible size can also be determined by the distance of the VgPoint from the camera, see the property VgPointDescriptor::mGeometryConstantSizeDistance for further explanation.


getMScale

public float getMScale()
Scales the icon (which sides always mesure 1x1 meter), by default 70.0. The visible size can also be determined by the distance of the VgPoint from the camera, see the property VgPointDescriptor::mGeometryConstantSizeDistance for further explanation.


getType

public VgMarkerType getType()
Overrides:
getType in class VgMarkerDescriptor
Returns:
the type of marker

VisioDevKit 2.0, Visioglobe® 2013