Package elki.visualization.parallel3d
Class OpenGL3DParallelCoordinates.Instance<O extends NumberVector>
- java.lang.Object
-
- elki.visualization.parallel3d.OpenGL3DParallelCoordinates.Instance<O>
-
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
java.util.EventListener
,javax.media.opengl.GLEventListener
- Enclosing class:
- OpenGL3DParallelCoordinates<O extends NumberVector>
public static class OpenGL3DParallelCoordinates.Instance<O extends NumberVector> extends java.lang.Object implements javax.media.opengl.GLEventListener
Visualizer instance.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
OpenGL3DParallelCoordinates.Instance.Shared<O>
Shared data for visualization modules.protected static class
OpenGL3DParallelCoordinates.Instance.State
States of the UI.
-
Field Summary
Fields Modifier and Type Field Description (package private) Arcball1DOFAdapter
arcball
Arcball controller.(package private) javax.media.opengl.awt.GLCanvas
canvas
The OpenGL canvas(package private) static boolean
DEBUG
Flag to enable debug rendering.(package private) javax.swing.JFrame
frame
Frame(package private) javax.media.opengl.glu.GLU
glu
GLU utility class.(package private) SimpleMenuOverlay
menuOverlay
Menu overlay.(package private) java.awt.event.MouseAdapter
menuStarter
Handler to open the menu.(package private) SimpleMessageOverlay
messageOverlay
Message overlay.private Parallel3DRenderer<O>
prenderer
3D parallel coordinates renderer.(package private) OpenGL3DParallelCoordinates.Instance.Shared<O>
shared
(package private) OpenGL3DParallelCoordinates.Instance.State
state
Current state.
-
Constructor Summary
Constructors Constructor Description Instance(Relation<? extends O> rel, ProjectionParallel proj, OpenGL3DParallelCoordinates.Settings<O> settings, StylingPolicy stylepol, StyleLibrary stylelib)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
display(javax.media.opengl.GLAutoDrawable drawable)
void
dispose(javax.media.opengl.GLAutoDrawable drawable)
void
init(javax.media.opengl.GLAutoDrawable drawable)
(package private) void
initLabels()
protected void
relayout(java.lang.String parname)
void
reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
void
run()
protected void
setLayout(Layout newlayout)
Callback from layouting thread.private void
startLayoutThread()
void
stop()
(package private) void
switchState(OpenGL3DParallelCoordinates.Instance.State newstate)
Switch the current state.
-
-
-
Field Detail
-
DEBUG
static final boolean DEBUG
Flag to enable debug rendering.- See Also:
- Constant Field Values
-
frame
javax.swing.JFrame frame
Frame
-
glu
javax.media.opengl.glu.GLU glu
GLU utility class.
-
prenderer
private Parallel3DRenderer<O extends NumberVector> prenderer
3D parallel coordinates renderer.
-
canvas
javax.media.opengl.awt.GLCanvas canvas
The OpenGL canvas
-
arcball
Arcball1DOFAdapter arcball
Arcball controller.
-
menuOverlay
SimpleMenuOverlay menuOverlay
Menu overlay.
-
messageOverlay
SimpleMessageOverlay messageOverlay
Message overlay.
-
menuStarter
java.awt.event.MouseAdapter menuStarter
Handler to open the menu.
-
state
OpenGL3DParallelCoordinates.Instance.State state
Current state.
-
shared
OpenGL3DParallelCoordinates.Instance.Shared<O extends NumberVector> shared
-
-
Constructor Detail
-
Instance
public Instance(Relation<? extends O> rel, ProjectionParallel proj, OpenGL3DParallelCoordinates.Settings<O> settings, StylingPolicy stylepol, StyleLibrary stylelib)
Constructor.- Parameters:
rel
- Relationproj
- Projectionsettings
- Settingsstylepol
- Styling policystylelib
- Style library
-
-
Method Detail
-
initLabels
void initLabels()
-
relayout
protected void relayout(java.lang.String parname)
-
startLayoutThread
private void startLayoutThread()
-
run
public void run()
-
stop
public void stop()
-
init
public void init(javax.media.opengl.GLAutoDrawable drawable)
- Specified by:
init
in interfacejavax.media.opengl.GLEventListener
-
switchState
void switchState(OpenGL3DParallelCoordinates.Instance.State newstate)
Switch the current state.- Parameters:
newstate
- State to switch to.
-
reshape
public void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
- Specified by:
reshape
in interfacejavax.media.opengl.GLEventListener
-
display
public void display(javax.media.opengl.GLAutoDrawable drawable)
- Specified by:
display
in interfacejavax.media.opengl.GLEventListener
-
setLayout
protected void setLayout(Layout newlayout)
Callback from layouting thread.- Parameters:
newlayout
- New layout.
-
dispose
public void dispose(javax.media.opengl.GLAutoDrawable drawable)
- Specified by:
dispose
in interfacejavax.media.opengl.GLEventListener
-
-