public class Polygon3DRoof
extends com.nutiteq.geometry.Polygon3D
Constructor and Description |
---|
Polygon3DRoof(List<com.nutiteq.components.MapPos> mapPoses,
List<List<com.nutiteq.components.MapPos>> mapPosesHoles,
float height,
float minHeight,
Roof roof,
int color,
int roofColor,
com.nutiteq.ui.Label label,
com.nutiteq.style.Polygon3DStyle polygonStyle,
Object userData)
Default constructor (can be used if single style is sufficient for all zoom levels).
|
Polygon3DRoof(List<com.nutiteq.components.MapPos> mapPoses,
List<List<com.nutiteq.components.MapPos>> mapPosesHoles,
float height,
float minHeight,
Roof roof,
int color,
int roofColor,
com.nutiteq.ui.Label label,
com.nutiteq.style.StyleSet<com.nutiteq.style.Polygon3DStyle> styles,
Object userData)
Constructor for the case when style depends on zoom level.
|
Modifier and Type | Method and Description |
---|---|
protected float |
calculateIntensity(com.nutiteq.components.Vector norm) |
void |
calculateInternalState()
Not part of public API.
|
void |
setRoof(Roof roof)
Set the roof.
|
calculateInternalClickPos, getHeight, getHolePolygonList, getInternalEnvelope, getInternalState, getStyleSet, getVertexList, setHeight, setHolePolygonList, setStyle, setStyleSet, setVertexList, toString
public Polygon3DRoof(List<com.nutiteq.components.MapPos> mapPoses, List<List<com.nutiteq.components.MapPos>> mapPosesHoles, float height, float minHeight, Roof roof, int color, int roofColor, com.nutiteq.ui.Label label, com.nutiteq.style.Polygon3DStyle polygonStyle, Object userData)
mapPoses
- vertices of the base polygon. Vertices are defined in the coordinate system of the layer this element is attached to.mapPosesHoles
- list of hole polygons. Can be null.roofType
- type of the roof.height
- height of the prism.roofHeight
- height of the roof.label
- the label for the polygon. Label is shown when the polygon is selected. Can be null.polygonStyle
- style for displaying the polygon (color, texture, etc).userData
- custom user data associated with the element.public Polygon3DRoof(List<com.nutiteq.components.MapPos> mapPoses, List<List<com.nutiteq.components.MapPos>> mapPosesHoles, float height, float minHeight, Roof roof, int color, int roofColor, com.nutiteq.ui.Label label, com.nutiteq.style.StyleSet<com.nutiteq.style.Polygon3DStyle> styles, Object userData)
mapPoses
- vertices of the base polygon. Vertices are defined in the coordinate system of the layer this element is attached to.mapPosesHoles
- list of hole polygons. Can be null.roofType
- type of the roof.height
- height of the prism.roofHeight
- height of the roof.label
- the label for the polygon. Label is shown when the polygon is selected. Can be null.styles
- style set defining how to display the polygon.userData
- custom user data associated with the element.public void setRoof(Roof roof)
roof
- new roof.public void calculateInternalState()
calculateInternalState
in class com.nutiteq.geometry.Polygon3D
protected float calculateIntensity(com.nutiteq.components.Vector norm)
calculateIntensity
in class com.nutiteq.geometry.Polygon3D
Copyright © 2014. All rights reserved.