uk.ac.ed.java3d_handler
Class Java3DModel
java.lang.Object
uk.ac.ed.java3d_handler.Java3DModel
public class Java3DModel
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOVE_VIEW
public static final int MOVE_VIEW
- See Also:
- Constant Field Values
ZOOM_VIEW
public static final int ZOOM_VIEW
- See Also:
- Constant Field Values
ROTATE_VIEW
public static final int ROTATE_VIEW
- See Also:
- Constant Field Values
SELECT
public static final int SELECT
- See Also:
- Constant Field Values
MOVE_SELECTED
public static final int MOVE_SELECTED
- See Also:
- Constant Field Values
ROTATE_SELECTED
public static final int ROTATE_SELECTED
- See Also:
- Constant Field Values
SCALE_SELECTED
public static final int SCALE_SELECTED
- See Also:
- Constant Field Values
NUMBER_OF_MODES
public static final int NUMBER_OF_MODES
- See Also:
- Constant Field Values
NOT_ALLOWED
public static final int NOT_ALLOWED
- See Also:
- Constant Field Values
ALLOWED
public static final int ALLOWED
- See Also:
- Constant Field Values
SINGLE_SELECTION
public static final int SINGLE_SELECTION
- See Also:
- Constant Field Values
MULTIPLE_SELECTION
public static final int MULTIPLE_SELECTION
- See Also:
- Constant Field Values
TRANSLATE_ONLY
public static final int TRANSLATE_ONLY
- See Also:
- Constant Field Values
ROTATE_ONLY
public static final int ROTATE_ONLY
- See Also:
- Constant Field Values
SCALE_ONLY
public static final int SCALE_ONLY
- See Also:
- Constant Field Values
TRANSLATE_AND_ROTATE
public static final int TRANSLATE_AND_ROTATE
- See Also:
- Constant Field Values
TRANSLATE_AND_SCALE
public static final int TRANSLATE_AND_SCALE
- See Also:
- Constant Field Values
ROTATE_AND_SCALE
public static final int ROTATE_AND_SCALE
- See Also:
- Constant Field Values
ORIGIN_FOCUSED_ROTATE_ONLY
public static final int ORIGIN_FOCUSED_ROTATE_ONLY
- See Also:
- Constant Field Values
ORIGIN_FOCUSED_ROTATE_AND_SCALE
public static final int ORIGIN_FOCUSED_ROTATE_AND_SCALE
- See Also:
- Constant Field Values
DEFAULT_MODE
public static final int DEFAULT_MODE
- See Also:
- Constant Field Values
DEFAULT_VIEW_POSITION
public static final int DEFAULT_VIEW_POSITION
- See Also:
- Constant Field Values
DEFAULT_VIEW_PROJECTION
public static final int DEFAULT_VIEW_PROJECTION
- See Also:
- Constant Field Values
DEFAULT_ALLOW_VIEW_TRANSFORM
public static final int DEFAULT_ALLOW_VIEW_TRANSFORM
- See Also:
- Constant Field Values
DEFAULT_ALLOW_VIEW_POSITION_SWITCHING
public static final int DEFAULT_ALLOW_VIEW_POSITION_SWITCHING
- See Also:
- Constant Field Values
DEFAULT_ALLOW_VIEW_PROJECTION_SWITCHING
public static final int DEFAULT_ALLOW_VIEW_PROJECTION_SWITCHING
- See Also:
- Constant Field Values
DEFAULT_ALLOW_SELECTION
public static final int DEFAULT_ALLOW_SELECTION
- See Also:
- Constant Field Values
DEFAULT_ALLOW_TRANSFORMATION
public static final int DEFAULT_ALLOW_TRANSFORMATION
- See Also:
- Constant Field Values
mode
protected int mode
allow_view_transformation
protected int allow_view_transformation
allow_view_position_switching
protected int allow_view_position_switching
allow_view_projection_switching
protected int allow_view_projection_switching
allow_selection
protected int allow_selection
allow_transformation
protected int allow_transformation
allow_printing
protected boolean allow_printing
allow_saving
protected boolean allow_saving
default_view_position
protected int default_view_position
default_view_projection
protected int default_view_projection
mode_listeners
protected ArrayList mode_listeners
view_listeners
protected ArrayList view_listeners
canvas_listeners
protected ArrayList canvas_listeners
handler
protected Java3DHandler handler
Java3DModel
public Java3DModel(Java3DHandler handler)
getHandler
public Java3DHandler getHandler()
setMode
public void setMode(int mode)
getMode
public int getMode()
getDefaultViewPosition
public int getDefaultViewPosition()
setDefaultViewPosition
public void setDefaultViewPosition(int default_view_position)
getDefaultViewProjection
public int getDefaultViewProjection()
setDefaultViewProjection
public void setDefaultViewProjection(int default_view_projection)
reset
public void reset()
isViewTransformationAllowed
public int isViewTransformationAllowed()
allowViewTransformation
public void allowViewTransformation(int allow_view_transform)
isViewPositionSwitchingAllowed
public int isViewPositionSwitchingAllowed()
alllowViewPositionSwitching
public void alllowViewPositionSwitching(int allow_view_position_switching)
isViewSwitchingProjectionAllowed
public int isViewSwitchingProjectionAllowed()
alllowViewProjectionSwitching
public void alllowViewProjectionSwitching(int allow_view_projection_switching)
isSelectionAllowed
public int isSelectionAllowed()
allowSelection
public void allowSelection(int allow_selection)
isTransformationAllowed
public int isTransformationAllowed()
allowTransformation
public void allowTransformation(int allow_transform)
isPrintingAllowed
public boolean isPrintingAllowed()
allowPrinting
public void allowPrinting(boolean allow_printing)
isSavingAllowed
public boolean isSavingAllowed()
allowSaving
public void allowSaving(boolean allow_saving)
saveCanvas
public void saveCanvas()
printCanvas
public void printCanvas()
addModeListener
public void addModeListener(Java3DModel.ModeListener listener)
removeModeListener
public void removeModeListener(Java3DModel.ModeListener listener)
addViewListener
public void addViewListener(Java3DModel.ViewListener listener)
removeViewListener
public void removeViewListener(Java3DModel.ViewListener listener)
addCanvasListener
public void addCanvasListener(Java3DModel.CanvasListener listener)
removeCanvasListener
public void removeCanvasListener(Java3DModel.CanvasListener listener)
fireModeChangedEvent
protected void fireModeChangedEvent(int mode,
int old_mode)
fireDefaultViewProjectionChangedEvent
protected void fireDefaultViewProjectionChangedEvent(int view_position)
fireDefaultViewPositionChangedEvent
protected void fireDefaultViewPositionChangedEvent(int view_projection)
fireViewResetEvent
protected void fireViewResetEvent()
fireCanvasSaveEvent
protected void fireCanvasSaveEvent()
fireCanvasPrintEvent
protected void fireCanvasPrintEvent()