Interface VisualizationItem<T extends VisualizationItem<T>>
- Type Parameters:
T
- the specific type of visualization item this visualization item is
public interface VisualizationItem<T extends VisualizationItem<T>>
Represents a visualization item with color.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<VisualizationItem>
createAngle
(Vector3d origin, Vector3d firstDirection, Vector3d secondDirection) Creates an angle visualization with the degrees shown between the two direction segments.static VisualizationItem
createArea
(Area area, double elevation) Creates a visualization of an area.static VisualizationItem
createBoundingBox
(AABB3d aabb) Creates a visualization for an axis aligned bounding box.static List<VisualizationItem>
createDimension
(Vector3d startPoint, Vector3d endPoint) Creates a dimension visualization.getColor()
Returns the color of the visualization item.Returns a copy of this visualization item with the specified color.
-
Method Details
-
createDimension
Creates a dimension visualization. A bi-directional arrow and a text displaying the length will be visualized.- Parameters:
startPoint
- the start pointendPoint
- the end point- Returns:
- the list of visualization items that make up the bi-directional arrow and the text
- Since:
- 9.10.2
-
createBoundingBox
Creates a visualization for an axis aligned bounding box.- Parameters:
aabb
- the axis aligned bounding box- Returns:
- the axis aligned bounding box visualization
- Since:
- 9.10.2
-
createArea
Creates a visualization of an area.- Parameters:
area
- the areaelevation
- the elevation- Returns:
- the visualization of the area
- Since:
- 9.10.2
-
createAngle
static List<VisualizationItem> createAngle(Vector3d origin, Vector3d firstDirection, Vector3d secondDirection) Creates an angle visualization with the degrees shown between the two direction segments.- Parameters:
origin
- the origin pointfirstDirection
- the first directionsecondDirection
- the second direction- Returns:
- the angle visualization
- Since:
- 9.10.2
-
getColor
ARGBColor getColor()Returns the color of the visualization item.- Returns:
- the color
- Since:
- 9.10.2
-
withColor
Returns a copy of this visualization item with the specified color.- Parameters:
color
- the specified color- Returns:
- a copy of this visualization item with its color replaced by the given color
- Since:
- 9.10.2
-