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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static List<VisualizationItem>createAngle(Vector3d origin, Vector3d firstDirection, Vector3d secondDirection)Creates an angle visualization with the degrees shown between the two direction segments.static VisualizationItemcreateArea(Area area, double elevation)Creates a visualization of an area.static VisualizationItemcreateBoundingBox(AABB3d aabb)Creates a visualization for an axis aligned bounding box.static List<VisualizationItem>createDimension(Vector3d startPoint, Vector3d endPoint)Creates a dimension visualization.ARGBColorgetColor()Returns the color of the visualization item.TwithColor(ARGBColor color)Returns a copy of this visualization item with the specified color.
-
-
-
Method Detail
-
createDimension
static List<VisualizationItem> createDimension(Vector3d startPoint, Vector3d endPoint)
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
static VisualizationItem createBoundingBox(AABB3d aabb)
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
static VisualizationItem createArea(Area area, double elevation)
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
-
-