public class NMLModel extends VectorElement
swigCMemOwn
构造器和说明 |
---|
NMLModel(Geometry geometry,
BinaryData sourceModelData)
Constructs a NMLModel object from a geometry object and serialized model data.
|
NMLModel(long cPtr,
boolean cMemoryOwn) |
NMLModel(MapPos pos,
BinaryData sourceModelData)
Constructs a NMLModel object from a map position and serialized model data.
|
限定符和类型 | 方法和说明 |
---|---|
void |
delete() |
protected void |
finalize() |
MapBounds |
getBounds()
返回矢量元素的范围。
|
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.
|
attachTerrain, attachTerrain, autoNotifyElementChanged, equals, getCPtr, getGeometry, getId, getInternalElevation, getMetaData, getMetaDataElement, hashCode, hasInternalElevation, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
public NMLModel(long cPtr, boolean cMemoryOwn)
public NMLModel(Geometry geometry, BinaryData sourceModelData)
geometry
- The geometry object that defines the location of this model.sourceModelData
- Serialized data for 3D model.public NMLModel(MapPos pos, BinaryData 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
在类中 VectorElement
public void delete()
delete
在类中 VectorElement
public static NMLModel swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public MapBounds getBounds()
VectorElement
getBounds
在类中 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
在类中 VectorElement
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 VectorElement