Package gov.nih.mipav.model.algorithms
Interface ContourPlot.Renderable
-
- All Known Implementing Classes:
ContourPlot.Legend
,ContourPlot.Lines
,ContourPlot.Points
,ContourPlot.Text
,ContourPlot.Triangles
- Enclosing class:
- ContourPlot
public static interface ContourPlot.Renderable
Interface for an object that can be rendered by aContourPlot.Renderer
e.g. theContourPlot.GenericRenderer
. It is intended for objects that contain openGL resources such as aVertexArray
for example. For this reason the interface extends theAutoCloseable
interface for disposing of GL resources on#close()
. Its state can be dirty (isDirty()
) which means that the GL resources are not in sync with the object and implies that a call to the#updateGL(boolean)
method is necessary before rendering. The#initGL()
method has to be called once before the first rendering to allocate required GL resources.- Author:
- hageldave
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
intersects(java.awt.geom.Rectangle2D rect)
tests if thisContourPlot.Renderable
intersects or contains the specified rectangle.boolean
isDirty()
if true, indicates that a call to#updateGL(boolean)
is necessary to sync this objects GL resources to its current state.default boolean
isHidden()
Indicates whether this Renderable is hidden i.e. will not be drawn.
-
-
-
Method Detail
-
intersects
boolean intersects(java.awt.geom.Rectangle2D rect)
tests if thisContourPlot.Renderable
intersects or contains the specified rectangle.- Parameters:
rect
- rectangle to test- Returns:
- true when intersecting
-
isHidden
default boolean isHidden()
Indicates whether this Renderable is hidden i.e. will not be drawn.- Returns:
- true when hidden
-
isDirty
boolean isDirty()
if true, indicates that a call to#updateGL(boolean)
is necessary to sync this objects GL resources to its current state.- Returns:
- true if dirty
-
-