Interface Visualization
public interface Visualization
Visualization to visualize results of a rule.
- Since:
- 9.10.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(Component component, double transparency) Adds a component to this visualization.void
addComponents
(Collection<? extends Component> components, double transparency) Adds a collection of components to this visualization.void
addComponentsWithColor
(Collection<? extends Component> components, ARGBColor color) Adds a collection of components with color to the visualization.void
addComponentWithColor
(Component component, ARGBColor color) Adds a component with a color to this visualization.void
addFootprints
(double bottomElevation, double topElevation) Adds the footprints between the given elevations to this visualization.void
addFootprints
(Component component) Adds the footprints on the elevation of the component to this visualization.void
addSection
(Plane sectionPlane) Adds a section plane to this visualization.void
addSections
(Collection<Plane> sectionPlanes) Adds the given section planes to this visualization.void
addVisualizationItem
(VisualizationItem visualizationItem) Adds a visualization item to this visualization.void
addVisualizationItems
(Collection<VisualizationItem> visualizationItems) Adds a collection ofVisualizationItem
to this visualization.static Visualization
create()
Creates an emptyVisualization
with no components, section planes or visualization items.Returns the colored components of the visualization as a map from color to the component list.Returns the section planes of this visualization.Returns the visible components.Returns the visualization items of this visualization.void
setVisibleComponents
(Collection<Component> components) Sets visible components that are shown with original color.
-
Method Details
-
create
Creates an emptyVisualization
with no components, section planes or visualization items.- Returns:
- the new visualization
- Since:
- 9.12.0
-
addVisualizationItem
Adds a visualization item to this visualization.- Parameters:
visualizationItem
- the visualization item.- Since:
- 9.10.2
-
addVisualizationItems
Adds a collection ofVisualizationItem
to this visualization.- Parameters:
visualizationItems
- the visualization items- Since:
- 9.10.2
-
getVisualizationItems
Collection<VisualizationItem> getVisualizationItems()Returns the visualization items of this visualization.- Returns:
- the visualization items.
- Since:
- 9.12.0
-
addComponent
Adds a component to this visualization. Color of the component is not changed.- Parameters:
component
- the componenttransparency
- the transparency from 0.0 to 1.0- Since:
- 9.10.2
-
addComponents
Adds a collection of components to this visualization.- Parameters:
components
- the componentstransparency
- the transparency from 0.0 to 1.0- Since:
- 9.10.2
-
addComponentWithColor
Adds a component with a color to this visualization.- Parameters:
component
- the componentcolor
- the color- Since:
- 9.10.2
-
addComponentsWithColor
Adds a collection of components with color to the visualization.- Parameters:
components
- the componentscolor
- the color- Since:
- 9.10.2
-
getComponentsWithColor
Returns the colored components of the visualization as a map from color to the component list.- Returns:
- the map from color to the component list
- Since:
- 9.12.0
-
addFootprints
void addFootprints(double bottomElevation, double topElevation) Adds the footprints between the given elevations to this visualization. The elevations are inclusive.- Parameters:
bottomElevation
- the bottom elevationtopElevation
- the top elevation- Since:
- 9.10.2
-
addFootprints
Adds the footprints on the elevation of the component to this visualization.- Parameters:
component
- the component- Since:
- 9.10.2
-
addSection
Adds a section plane to this visualization.- Parameters:
sectionPlane
- the section plane- Since:
- 9.10.2
-
addSections
Adds the given section planes to this visualization.- Parameters:
sectionPlanes
- the section planes- Since:
- 9.10.2
-
getSections
Collection<Plane> getSections()Returns the section planes of this visualization.- Returns:
- the section planes
- Since:
- 9.12.0
-
getVisibleComponents
Returns the visible components.- Returns:
- the visible components
- Since:
- 9.12.0
-
setVisibleComponents
Sets visible components that are shown with original color.- Parameters:
components
- the visible components- Since:
- 9.12.0
-