public class ProjectionControlJ3D extends ProjectionControl
Modifier and Type | Field and Description |
---|---|
static int |
X_MINUS
View of the negative X face of the display cube
|
static int |
X_PLUS
View of the postive X face of the display cube
|
static int |
Y_MINUS
View of the negative Y face of the display cube
|
static int |
Y_PLUS
View of the postive Y face of the display cube
|
static int |
Z_MINUS
View of the negative Z face of the display cube
|
static int |
Z_PLUS
View of the postive Z face of the display cube
|
INVSCALE2D, matrix, MATRIX2D_LENGTH, MATRIX2D_MAJOR, MATRIX2D_MINOR, MATRIX3D_LENGTH, MATRIX3D_MAJOR, MATRIX3D_MINOR, SCALE2D
Constructor and Description |
---|
ProjectionControlJ3D(DisplayImpl d)
Construct a new ProjectionControl for the display.
|
Modifier and Type | Method and Description |
---|---|
void |
addPair(Switch sw,
DataRenderer re) |
void |
clearSwitches(DataRenderer re)
clear all 'pairs' in switches that involve re
|
void |
setAspect(double[] aspect)
Set the aspect for the axes.
|
void |
setMatrix(double[] m)
Set the projection matrix.
|
void |
setOrthoView(int view)
Set the projection so the requested view is displayed.
|
clone, equals, getAspectCartesian, getMatrix, getSavedProjectionMatrix, getSaveString, matrix2DTo3D, matrix3DTo2D, matrixDConvert, resetProjection, saveProjection, setAspectCartesian, setSaveString, syncControl, toString
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks
public static final int X_PLUS
public static final int X_MINUS
public static final int Y_PLUS
public static final int Y_MINUS
public static final int Z_PLUS
public static final int Z_MINUS
public ProjectionControlJ3D(DisplayImpl d) throws VisADException
d
- display whose projection will be controlled by thisVisADException
ProjectionControl.resetProjection().
public void setMatrix(double[] m) throws VisADException, RemoteException
setMatrix
in class ProjectionControl
m
- new projection matrixVisADException
- VisAD errorRemoteException
- remote errorpublic void setAspect(double[] aspect) throws VisADException, RemoteException
setAspect
in class ProjectionControl
aspect
- ratios (dimension 3) for the X, Y, and Z axesVisADException
- aspect is null or wrong dimension or other errorRemoteException
- remote errorProjectionControl.saveProjection()
public void addPair(Switch sw, DataRenderer re)
public void clearSwitches(DataRenderer re)
clearSwitches
in class ProjectionControl
public void setOrthoView(int view) throws VisADException, RemoteException
view
- one of the static view fields (X_PLUS, X_MINUS, etc). This
will set the view so the selected face is orthogonal to
the display.VisADException
- VisAD failure.RemoteException
- Java RMI failure.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.