com.supermap.data
Class GeoModel
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoModel
-
public class GeoModel extends Geometry3D
3D model geometry object classThis class is used to create a model of a 3D geometric object to render a 3D geometric object.
-
-
Constructor Summary
Constructors Constructor and Description GeoModel()
Construct a new GeoModel object.GeoModel(GeoModel geoModel)
Constructs a new object identical to the given GeoModel object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoModel
clone()
Returns a copy of the current object.void
dispose()
Release the resources used by the object.boolean
fromFile(java.lang.String file)
Construct a new GeoModel object based on the model file under the specified pathboolean
fromFile(java.lang.String file, Point3D position)
Constructs a new GeoModel object based on the model file and the specified location under the specified pathjava.lang.String
getName()
Get the name of the 3D model geometry object.NodeAnimation
getNodeAnimation()
Get the node animation of the 3D model object.void
setName(java.lang.String name)
Set the name of the 3D model geometry object.-
Methods inherited from class com.supermap.data.Geometry3D
getGeoModel, getInnerPoint3D, getPosition, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getScaleZ, getStyle3D, getVolume, offset, setPosition, setRotationX, setRotationY, setRotationZ, setScaleX, setScaleY, setScaleZ, setStyle3D
-
-
-
-
Constructor Detail
-
GeoModel
public GeoModel()
Construct a new GeoModel object.
-
GeoModel
public GeoModel(GeoModel geoModel)
Constructs a new object identical to the given GeoModel object.- Parameters:
geoModel
- The given GeoModel object. Return Constructs a new GeoModel object.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the 3D model geometry object.- Returns:
- returns the name obtained
-
setName
public void setName(java.lang.String name)
Set the name of the 3D model geometry object.- Parameters:
name
- The given model name.
-
fromFile
public boolean fromFile(java.lang.String file)
Construct a new GeoModel object based on the model file under the specified path- Parameters:
file
- The given model path.- Returns:
- returns YES successfully, otherwise returns NO.
-
fromFile
public boolean fromFile(java.lang.String file, Point3D position)
Constructs a new GeoModel object based on the model file and the specified location under the specified path- Parameters:
file
- The given model path.position
- specifies the location.- Returns:
- returns YES successfully, otherwise returns NO.
-
clone
public GeoModel clone()
Description copied from class:Geometry
Returns a copy of the current object.
-
dispose
public void dispose()
Release the resources used by the object. This object is no longer available when this method is called.
-
getNodeAnimation
public NodeAnimation getNodeAnimation()
Get the node animation of the 3D model object.- Returns:
- node animated object
-
-