com.supermap.data
Class GeoStyle3D
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.GeoStyle3D
-
public class GeoStyle3D extends InternalHandleDisposable
Geometry style class in 3D scene. This class mainly used to set display style of geometry in 3D scene.
It used to define point symbol, line symbol, fill symbol and relative setting. For text object, only could text style be set.
This instance of this class only stores the ID of the specified style, the detailed information of the style is stored in the corresponding marker symbol library, line symbol library and fill symbol library. Only the compound dataset (CAD dataset) stores style, the other types of datasets will not store the information of style.
The ObjectDisposedException will be thrown if the object instance is called after being released with the
dispose()
method.
-
-
Constructor Summary
Constructors Constructor and Description GeoStyle3D()
Constructs a new 3D object.GeoStyle3D(GeoStyle3D style)
Constructs a new object identical to the given GeoStyle3D object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoStyle3D
clone()
Returns a copy of the current GeoStyle3D object.void
dispose()
Releases the object.AltitudeMode
getAltitudeMode()
Gets the altitude mode of the geometric object in the 3D scene.double
getBottomAltitude()
Gets the bottom altitude of the GeoStyle3D object.double
getExtendedHeight()
Gets the extended height of the geometry object in the scene.Color
getFillForeColor()
Returns the foreground color of the fill symbol.Color
getLineColor()
Gets the outline line symbol color of the line or region geometric objects in the 3D scene.Color
getMarkerColor()
Gets the color of the marker symbol of the marker geometric object in the 3D scene.void
setAltitudeMode(AltitudeMode altitudeMode)
Sets the altitude mode of the geometric object in the 3D scene.void
setBottomAltitude(double value)
Sets the bottom altitude of the GeoStyle3D object.void
setExtendedHeight(double value)
Sets the extended height of the geometric object in the 3D scene.void
setFillForeColor(Color value)
Sets the foreground color of the fill symbol.void
setLineColor(Color value)
Sets or sets the outline line symbol color of the line or region geometric objects in the 3D scene.void
setLineSymbolID(int value)
Sets numbers of line symbol of line objects in 3D scenes.void
setLineWidth(double value)
Gets or sets the width of the line symbol of GeoLine object or the outline of GeoRegion object.void
setMarkerAnchorPoint(Point2D value)
Sets anchor point of landmark, and the anchor point location depends on the picture that used by this anchor point.void
setMarkerColor(Color value)
Sets the color of the marker symbol of the marker geometric object in the 3D scene.void
setMarkerFile(java.lang.String value)
Sets full path of point object icon files in 3D scenes, which means that the icon in png format is used to symbolize the point geometry object in the 3D scene.void
setMarkerScale(double value)
Sets zoom ratio of icon files of point objects in 3D scenes.java.lang.String
toString()
Exports each property of the current GeoStyle3D object.
-
-
-
Constructor Detail
-
GeoStyle3D
public GeoStyle3D()
Constructs a new 3D object.
-
GeoStyle3D
public GeoStyle3D(GeoStyle3D style)
Constructs a new object identical to the given GeoStyle3D object.- Parameters:
style
- The specified GeoStyle3D object.- Throws:
ArgumentNullException
- If the introduced parameter is null or released.
-
-
Method Detail
-
getFillForeColor
public Color getFillForeColor()
Returns the foreground color of the fill symbol. When the fill mode is the gradient fill, the color is the end fill color.- Returns:
- Color Color The foreground color of the fill symbol.
- Default:
- The default value is Color [A=255, R=255, G=255, B=255].
-
setFillForeColor
public void setFillForeColor(Color value)
Sets the foreground color of the fill symbol. When the fill mode is the gradient fill, the color is the gradient end fill color.- Parameters:
value
- The foreground color used to set the fill symbols.
-
getLineColor
public Color getLineColor()
Gets the outline line symbol color of the line or region geometric objects in the 3D scene.- Returns:
- Color
-
setLineColor
public void setLineColor(Color value)
Sets or sets the outline line symbol color of the line or region geometric objects in the 3D scene.- Parameters:
value
- the background color used to set the fill symbols.
-
setMarkerScale
public void setMarkerScale(double value)
Sets zoom ratio of icon files of point objects in 3D scenes.- Parameters:
value
- zoom radio
-
setLineWidth
public void setLineWidth(double value)
Gets or sets the width of the line symbol of GeoLine object or the outline of GeoRegion object. For GeoLine symbol, the unit is pixel; for GeoLine3D object, the unit is meter.- Parameters:
value
- The width of the line symbol.
-
getMarkerColor
public Color getMarkerColor()
Gets the color of the marker symbol of the marker geometric object in the 3D scene.- Returns:
- The color of the marker symbol of the marker geometric object in the 3D scene.
-
setMarkerColor
public void setMarkerColor(Color value)
Sets the color of the marker symbol of the marker geometric object in the 3D scene.- Parameters:
value
- The color of the marker symbol.
-
setLineSymbolID
public void setLineSymbolID(int value)
Sets numbers of line symbol of line objects in 3D scenes. This number used to mark unique line symbol.- Parameters:
value
- the number of specified line symbol.
-
setMarkerAnchorPoint
public void setMarkerAnchorPoint(Point2D value)
Sets anchor point of landmark, and the anchor point location depends on the picture that used by this anchor point. If the anchor point put at the bottom left of picture, the location is (0,0); If the anchor point put at the top right of picture, the location is (1,1).- Parameters:
value
- specify anchor point location.
-
getBottomAltitude
public double getBottomAltitude()
Gets the bottom altitude of the GeoStyle3D object. The bottom elevation value is the vertical distance from the geometric object bottom to the datum in the 3D scene.- Returns:
- The bottom altitude of the geometry object.
-
setBottomAltitude
public void setBottomAltitude(double value)
Sets the bottom altitude of the GeoStyle3D object. The bottom elevation value is the vertical distance from the geometric object bottom to the datum in the 3D scene.- Parameters:
value
- The bottom altitude of the geometry object
-
getExtendedHeight
public double getExtendedHeight()
Gets the extended height of the geometry object in the scene.- Returns:
- The extended height of the geometry object in the scene.
-
setExtendedHeight
public void setExtendedHeight(double value)
Sets the extended height of the geometric object in the 3D scene.- Parameters:
value
- The extended height of the geometry object in the scene.
-
getAltitudeMode
public AltitudeMode getAltitudeMode()
Gets the altitude mode of the geometric object in the 3D scene.- Returns:
- The altitude mode of the geometric object in the 3D scene.
-
setAltitudeMode
public void setAltitudeMode(AltitudeMode altitudeMode)
Sets the altitude mode of the geometric object in the 3D scene.- Parameters:
altitudeMode
- altitude mode.
-
clone
public GeoStyle3D clone()
Returns a copy of the current GeoStyle3D object.- Overrides:
clone
in classjava.lang.Object
- Returns:
- Gets a GeoStyle3D object generated from the clone operation.
-
dispose
public void dispose()
Releases the object.
-
toString
public java.lang.String toString()
Exports each property of the current GeoStyle3D object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Each property of the current GeoStyle3D object.
-
setMarkerFile
public void setMarkerFile(java.lang.String value)
Sets full path of point object icon files in 3D scenes, which means that the icon in png format is used to symbolize the point geometry object in the 3D scene.- Parameters:
value
- the full path of specified icon files.
-
-