java.lang.Object | ||
↳ | com.carto.vectorelements.VectorElement | |
↳ | com.carto.vectorelements.Polygon3D |
A geometric 3d polygon that can be displayed on the map.
3d polygons can be concave and have multiple overlapping holes.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Polygon3D(PolygonGeometry geometry, Polygon3DStyle style, float height)
Constructs a Polygon3D object from a geometry object and a style.
| |||||||||||
Polygon3D(MapPosVector poses, Polygon3DStyle style, float height)
Constructs a Polygon3D object from a vector of map positions and a style.
| |||||||||||
Polygon3D(MapPosVector poses, MapPosVectorVector holes, Polygon3DStyle style, float height)
Constructs a Polygon3D object from a vector of map positions, a vector of holes and a style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
PolygonGeometry |
getGeometry()
Returns the geometry object that defines the location of this vector element.
| ||||||||||
float |
getHeight()
Returns the height of this 3d polygon.
| ||||||||||
MapPosVectorVector |
getHoles()
Returns the holes of the 3d polygon.
| ||||||||||
MapPosVector |
getPoses()
Returns the vertices that define this 3d polygon.
| ||||||||||
Polygon3DStyle |
getStyle()
Returns the style of this 3d polygon.
| ||||||||||
void |
setGeometry(PolygonGeometry geometry)
Sets the location for this 3d polygon.
| ||||||||||
void |
setHeight(float height)
Sets the height for this 3d polygon.
| ||||||||||
void |
setHoles(MapPosVectorVector holes)
Sets the holes of the 3d polygon.
| ||||||||||
void |
setPoses(MapPosVector poses)
Sets the vertices that define this 3d polygon.
| ||||||||||
void |
setStyle(Polygon3DStyle style)
Sets the style for this 3d polygon.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a Polygon3D object from a geometry object and a style.
geometry | The geometry object that defines the location and holes of this 3d polygon. |
---|---|
style | The style that defines what this 3d polygon looks like. |
height | The height of this 3d polygon in meters. |
Constructs a Polygon3D object from a vector of map positions and a style.
poses | The vector of map positions that defines the location of this 3d polygon. |
---|---|
style | The style that defines what this 3d polygon looks like. |
height | The height of this 3d polygon in meters. |
Constructs a Polygon3D object from a vector of map positions, a vector of holes and a style.
poses | The vector of map positions that defines the location of this 3d polygon. |
---|---|
holes | The vector of holes that defines the locations of holes of this 3d polygon. |
style | The style that defines what this 3d polygon looks like. |
height | The height of this 3d polygon in meters. |
Returns the geometry object that defines the location of this vector element.
Returns the height of this 3d polygon.
Returns the holes of the 3d polygon.
Returns the vertices that define this 3d polygon.
Returns the style of this 3d polygon.
Sets the location for this 3d polygon.
geometry | The new geometry object that defines the location and holes of this 3d polygon. |
---|
Sets the height for this 3d polygon.
height | The new height for this 3d polygon in meters. |
---|
Sets the holes of the 3d polygon.
holes | The list of holes of the 3d polygon. |
---|
Sets the vertices that define this 3d polygon.
Note: holes are not affected by this call.
poses | The new vector of map positions that define this 3d polygon. |
---|
Sets the style for this 3d polygon.
style | The new style that defines what this 3d polygon looks like. |
---|