public class CameraMode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXTRA |
static int |
FREE |
static int |
INTRA |
Constructor and Description |
---|
CameraMode(javax.media.j3d.Canvas3D canvas,
com.sun.j3d.utils.universe.SimpleUniverse universe)
Equips the canvas with a camera mode
|
Modifier and Type | Method and Description |
---|---|
void |
addMembraneViewListener(MembraneViewListener listener) |
void |
forwardButton(int bt,
Molecule_3D ref) |
static javax.vecmath.Point3f |
getCurrentEyePosition() |
int |
getMode()
Returns the currently active cameramode
|
boolean |
isEnabled() |
void |
moveY(float diff) |
void |
setEnabled(boolean b)
en- or disables the movable camera.
|
void |
setMouseSensitivity(double mouseFactor)
Sets the mousesensitivity synchroniously for rotation, zoom and
translation
|
void |
setRotateEnable(boolean b) |
void |
setViewByMode(int mode,
javax.vecmath.Point3f center)
sets the view by the mode.
|
void |
setZoomEnable(boolean b) |
public static final int EXTRA
public static final int INTRA
public static final int FREE
public CameraMode(javax.media.j3d.Canvas3D canvas, com.sun.j3d.utils.universe.SimpleUniverse universe)
canvas
- universe
- public void setMouseSensitivity(double mouseFactor)
mouseFactor
- public void setViewByMode(int mode, javax.vecmath.Point3f center)
mode
- center
- public void addMembraneViewListener(MembraneViewListener listener)
public int getMode()
public void setEnabled(boolean b)
b
- public void setZoomEnable(boolean b)
public boolean isEnabled()
public void forwardButton(int bt, Molecule_3D ref)
public void moveY(float diff)
public void setRotateEnable(boolean b)
public static javax.vecmath.Point3f getCurrentEyePosition()