Package gov.nih.mipav.model.algorithms
Class ContourPlot.Points
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Points
- All Implemented Interfaces:
ContourPlot.Renderable
- Enclosing class:
ContourPlot
The Points class is a collection of 2D points that are to be represented
using the same
).
Also a global alpha multiplier which scales every points color alpha value, which can be used to introduce transparency
for all points of this collection, which may come in handy to visualize density when plotting a huge amount of points.
ContourPlot.Glyph (the graphical representation of a point).
A point instance in this collection has the following attributes.
- position - the 2D location of the point
- scaling - the scaling of the glyph it is represented with
- rotation - the rotation of the glyph it is represented with
- color - the color with wich the glyph it is renered
- picking color - the picking color with which the glyph is rendered into the (invisible) picking color attachment
of an
. This color may serve as an identifier of the object that can be queried from a location of the rendering canvas. It may take on a value in range of 0xff000001 to 0xffffffff (16.777.214 possible values) or 0.
invalid reference
FBO
ContourPlot.Points class features a global scaling parameter by which all
point instances of this collection will be scaled at rendering (
invalid reference
#setGlobalScaling(double)
- Author:
- hageldave
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DoubleSupplierprotected DoubleSupplierprotected DoubleSupplierprotected booleanprotected booleanprotected booleanprotected ArrayList<ContourPlot.PointDetails> protected boolean -
Constructor Summary
ConstructorsConstructorDescriptionPoints()Creates a newContourPlot.Pointsobject which usesfor displaying its points.invalid reference
DefaultGlyph#CIRCLE_F -
Method Summary
Modifier and TypeMethodDescriptionbooleanintersects(Rectangle2D rect) tests if thisContourPlot.Renderableintersects or contains the specified rectangle.booleanisDirty()if true, indicates that a call tois necessary to sync this objects GL resources to its current state.invalid reference
#updateGL(boolean)intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nih.mipav.model.algorithms.ContourPlot.Renderable
isHidden
-
Field Details
-
glyph
-
isDirty
protected boolean isDirty -
globalScaling
-
globalAlphaMultiplier
-
globalSaturationMultiplier
-
points
-
useVertexRounding
protected boolean useVertexRounding -
isGLDoublePrecision
protected boolean isGLDoublePrecision
-
-
Constructor Details
-
Points
public Points()Creates a newContourPlot.Pointsobject which usesfor displaying its points.invalid reference
DefaultGlyph#CIRCLE_F
-
-
Method Details
-
numPoints
public int numPoints()- Returns:
- the number of points in this in this
ContourPlot.Pointsobject.
-
isDirty
public boolean isDirty()Description copied from interface:ContourPlot.Renderableif true, indicates that a call tois necessary to sync this objects GL resources to its current state.invalid reference
#updateGL(boolean)- Specified by:
isDirtyin interfaceContourPlot.Renderable- Returns:
- true if dirty
-
intersects
Description copied from interface:ContourPlot.Renderabletests if thisContourPlot.Renderableintersects or contains the specified rectangle.- Specified by:
intersectsin interfaceContourPlot.Renderable- Parameters:
rect- rectangle to test- Returns:
- true when intersecting
-
getPointDetails
- Returns:
- the list of point details.
Make sure to callwhen manipulating.invalid reference
#setDirty()
-