public class NMLModel extends VectorElement
swigCMemOwn
Constructor and Description |
---|
NMLModel(Geometry geometry,
UnsignedCharVector sourceModelData)
Constructs a NMLModel object from a geometry object and serialized model data.
|
NMLModel(long cPtr,
boolean cMemoryOwn) |
NMLModel(MapPos pos,
UnsignedCharVector sourceModelData)
Constructs a NMLModel object from a map position and serialized model data.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
MapBounds |
getBounds()
Returns the bounds of this vector element.
|
static long |
getCPtr(NMLModel obj) |
float |
getRotationAngle()
Returns the rotation angle of this model.
|
MapVec |
getRotationAxis()
Returns the rotation axis of this model.
|
float |
getScale()
Returns the scale of this model.
|
void |
setGeometry(Geometry geometry)
Sets the location for this model.
|
void |
setPos(MapPos pos)
Sets the location for this model.
|
void |
setRotation(MapVec axis,
float angle)
Sets the rotation of this model using an axis and an angle.
|
void |
setScale(float scale)
Sets the scale of this model.
|
static NMLModel |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
equals, getCPtr, getGeometry, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public NMLModel(long cPtr, boolean cMemoryOwn)
public NMLModel(Geometry geometry, UnsignedCharVector sourceModelData)
geometry
- The geometry object that defines the location of this model.sourceModelData
- Serialized data for 3D model.public NMLModel(MapPos pos, UnsignedCharVector sourceModelData)
pos
- The map position that defines the location of this model.sourceModelData
- Serialized data for 3D model.public static long getCPtr(NMLModel obj)
protected void finalize()
finalize
in class VectorElement
public void delete()
delete
in class VectorElement
public static NMLModel swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public MapBounds getBounds()
VectorElement
getBounds
in class VectorElement
public void setGeometry(Geometry geometry)
geometry
- The new geometry object that defines the location of this model.public void setPos(MapPos pos)
pos
- The new map position that defines the location of this model.public MapVec getRotationAxis()
public float getRotationAngle()
public void setRotation(MapVec axis, float angle)
axis
- The axis of rotation.angle
- The rotation angle in degrees.public float getScale()
public void setScale(float scale)
scale
- The relative scale of this model.public java.lang.String swigGetClassName()
swigGetClassName
in class VectorElement
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class VectorElement