|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.GUIControl
Object which receives requests from graphical components and generates actions for an ActionExecutor.
Field Summary | |
static boolean |
debugflag
|
static boolean |
viewportsInJInternalFrames
|
Constructor Summary | |
GUIControl(J3DBase base,
ActionQueue queue)
Constructor that initializes the J3DBase and ActionQueue objects. |
Method Summary | |
void |
addDistanceMeasurer()
|
void |
addLight(int type,
java.lang.String name)
|
void |
addLight(java.lang.String type,
java.lang.String name)
|
void |
addLine(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2)
|
void |
addLine(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction)
|
void |
addLineSegment(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2)
|
void |
addPlane(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2,
javax.vecmath.Point3d p3)
|
void |
addPlane(javax.vecmath.Point3d point,
javax.vecmath.Vector3d normal)
|
void |
addPlane(javax.vecmath.Vector4d plane)
|
void |
addPoint(javax.vecmath.Point3d point)
|
void |
addView(java.lang.String s)
Adds a view to the scene graph |
void |
addViewport()
Adds a viewport showing the default view |
void |
addViewport(java.lang.String viewName)
|
void |
addViewport(VcView v)
Creates action to add a viewport window tothe application and pushes it into queue. |
void |
addViewportInGUI(VcView v)
Adds a viewport window that will show the view determined by the input VcView parameter. |
void |
changeLaserArrayColor(VcLaserArray array,
double red,
double green,
double blue)
|
void |
changeLaserSpotSize(VcLaserArray array,
double size)
|
void |
changeLightColor(java.lang.String light,
int red,
int green,
int blue)
|
void |
changeLightColor(VcLight light,
int red,
int green,
int blue)
|
void |
changeLightState(java.lang.String lightName,
int onOff)
|
void |
changeLightState(VcLight light,
boolean b)
|
void |
changeMovementPolicy(java.lang.String strView,
java.lang.String strPolicy)
|
void |
changeMovementPolicy(VcView vcView,
int projectionPolicy)
|
void |
changePointLightAttenuation(VcPointLight point,
double constant,
double linear,
double quadratic)
|
void |
changeProjectionPolicy(java.lang.String strView,
java.lang.String strPolicy)
|
void |
changeProjectionPolicy(VcView vcView,
int projectionPolicy)
|
void |
changeResizePolicy(java.lang.String strView,
java.lang.String strPolicy)
|
void |
changeResizePolicy(VcView vcView,
int projectionPolicy)
|
void |
changeSpotConcentration(java.lang.String spotLightName,
double concentration)
|
void |
changeSpotConcentration(VcSpotLight spot,
double concentration)
|
void |
changeSpotSpreadAngle(java.lang.String spotName,
double angle)
|
void |
changeSpotSpreadAngle(VcSpotLight spot,
double angle)
|
void |
changeViewInViewport(java.lang.String viewportName,
java.lang.String viewName)
|
void |
changeViewInViewport(Viewport viewport,
VcView view)
|
void |
clearBagGizmos(int clearRange)
|
void |
disableMessageInViewports()
|
void |
dumpContentEdgesToFile()
|
void |
enableMessageInViewports(java.lang.String s)
|
void |
finishLineArray()
|
void |
frameObjectInView(VcView v,
VcObject obj)
|
void |
frameObjectsInView(java.lang.String label)
|
void |
frameObjectsInView(VcView v)
|
boolean |
getDebugFlag()
|
J3DBase |
getJ3DBase()
Returns the J3DBase object used by this object. |
double |
getMeasuredDistance(java.lang.String measurerName)
|
ViewportWindowManager |
getViewportManager()
|
XMLConverter |
getXMLConverter()
|
void |
importFile(java.lang.String filename)
Loads a content file (currently, only VRML2.0 format is supported). |
void |
loadFile(java.lang.String filename)
Loads a file describing an environment configuration |
void |
lookAt(java.lang.String view,
java.lang.String vcObject)
|
void |
lookAt(VcView view,
VcObject vcObj)
|
void |
measureDistance(DistanceMeasurer measurer)
|
void |
removeFromScene(java.lang.String objectName)
|
void |
removeFromScene(VcObject vcObject)
|
void |
renameVcObject(java.lang.String oldName,
java.lang.String newName)
Changes the label of the VcObject called oldName to newName. |
void |
renameVcObject(VcObject vcObj,
java.lang.String newName)
Sets the label of VcObject vcObj to a given String |
void |
rotateX(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
rotateX(TransformMode mode,
VcObject vcObj,
double value)
|
void |
rotateY(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
rotateY(TransformMode mode,
VcObject vcObj,
double value)
|
void |
rotateZ(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
rotateZ(TransformMode mode,
VcObject vcObj,
double value)
|
void |
saveFile(java.lang.String filename)
Saves a file describing an environment configuration. |
void |
saveJPGFile(java.lang.String filename)
|
void |
saveJPGFile(java.lang.String viewportName,
java.lang.String filename)
|
void |
saveJPGFile(Viewport viewport,
java.lang.String filename)
|
void |
saveJPGFile(Viewport viewport,
java.lang.String filename,
int w,
int h)
|
void |
saveJPGFileSync(java.lang.String filename)
Saves a snapshot from Default View in a JPEG file This method enforces synchronous execution, i.e. the method will not return untill the action is completed |
void |
saveJPGFileSync(java.lang.String viewportName,
java.lang.String filename)
Saves a snapshot from a given view in a JPEG file This method enforces synchronous execution, i.e. the method will not return untill the action is completed |
void |
saveJPGFileSync(Viewport viewport,
java.lang.String filename)
Saves a snapshot from a given viewport in a JPEG file This method enforces synchronous execution, i.e. the method will not return untill the action is completed |
void |
saveTXTFile(java.lang.String filename)
|
void |
scale(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
scale(TransformMode mode,
VcObject vcObj,
double value)
|
void |
scaleX(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
scaleX(TransformMode mode,
VcObject vcObj,
double value)
|
void |
scaleY(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
scaleY(TransformMode mode,
VcObject vcObj,
double value)
|
void |
scaleZ(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
scaleZ(TransformMode mode,
VcObject vcObj,
double value)
|
void |
selectionChanged(SelectionChangedEvent event)
Implements SelectionChangeListener. |
void |
setActionExecutor(ActionExecutor executor)
|
void |
setColorAlternation(boolean b)
|
void |
setDebugFlag(boolean b)
|
void |
setEditionPane(FrameSwitcherPane editionSwitcherPane)
|
void |
setFieldOfView(java.lang.String strView,
double d)
|
void |
setFieldOfView(VcView view,
double d)
|
void |
setGizmoColor(byte r,
byte g,
byte b)
|
void |
setLaserArrayGrid(VcLaserArray array,
int nx,
int ny,
double dx,
double dy)
|
void |
setLineLength(double length)
|
void |
setMeasurerDirection(java.lang.String measurerName,
int direction,
java.lang.String axisName)
|
void |
setMeasurerDirection(java.lang.String measurerName,
int direction,
TransformScope axis)
|
void |
setPlaneWidth(double length)
|
void |
setPointWidth(double length)
|
void |
setSelectionPane(FrameSwitcherPane selectionSwitcherPane)
|
void |
setViewInViewport(int viewportIndex,
VcView view)
Sets a viewport to show a given view |
void |
setViewportLocation(int viewportIndex,
boolean internal,
int x,
int y,
int width,
int height)
Sets the location in screen of a given viewport |
void |
setViewportManager(ViewportWindowManager manager)
Sets the viewport window manager to be used by VirtualCamera |
void |
startLineArray()
|
void |
toggleHelpingGrid()
Toggles presence of the helping grid in the virtual world. |
void |
translate(VcObject obj,
TransformMode mode,
javax.vecmath.Point3d destination)
|
void |
translateX(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
translateX(TransformMode mode,
VcObject vcObj,
double value)
|
void |
translateY(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
translateY(TransformMode mode,
VcObject vcObj,
double value)
|
void |
translateZ(java.lang.String modeName,
java.lang.String objectName,
double value)
|
void |
translateZ(TransformMode mode,
VcObject vcObj,
double value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean debugflag
public static boolean viewportsInJInternalFrames
Constructor Detail |
public GUIControl(J3DBase base, ActionQueue queue)
Method Detail |
public void loadFile(java.lang.String filename)
filename
- complete location of the file to be loadedpublic void importFile(java.lang.String filename)
filename
- complete location of the file to be loadedpublic void saveFile(java.lang.String filename)
filename
- complete location of the file to be savedpublic void setViewportManager(ViewportWindowManager manager)
manager
- the window managerpublic void setViewInViewport(int viewportIndex, VcView view)
viewportIndex
- index of viewport whose view will be changedview
- new VcView to be shown by the viewportpublic void setViewportLocation(int viewportIndex, boolean internal, int x, int y, int width, int height)
viewportIndex
- index of viewport whose location will be changedinternal
- true if viewport should be shown internal to main window, false otherwisex
- X location of viewport in screeny
- Y location of viewport in screenwidth
- new width of viewport windowheight
- new height of viewport windowpublic void setSelectionPane(FrameSwitcherPane selectionSwitcherPane)
public void setEditionPane(FrameSwitcherPane editionSwitcherPane)
public J3DBase getJ3DBase()
public XMLConverter getXMLConverter()
public void addViewport()
public void addView(java.lang.String s)
s
- name of the view to be addedpublic ViewportWindowManager getViewportManager()
public void changeViewInViewport(java.lang.String viewportName, java.lang.String viewName)
public void changeViewInViewport(Viewport viewport, VcView view)
public void addViewport(VcView v)
v
- VcView that will be shown by the new viewport.public void addViewport(java.lang.String viewName)
public void addViewportInGUI(VcView v)
v
- VcView shown by new viewport window. Must be non null.public void renameVcObject(VcObject vcObj, java.lang.String newName)
public void renameVcObject(java.lang.String oldName, java.lang.String newName)
public void toggleHelpingGrid()
public void translate(VcObject obj, TransformMode mode, javax.vecmath.Point3d destination)
public void translateX(java.lang.String modeName, java.lang.String objectName, double value)
public void translateX(TransformMode mode, VcObject vcObj, double value)
public void translateY(java.lang.String modeName, java.lang.String objectName, double value)
public void translateY(TransformMode mode, VcObject vcObj, double value)
public void translateZ(java.lang.String modeName, java.lang.String objectName, double value)
public void translateZ(TransformMode mode, VcObject vcObj, double value)
public void rotateX(java.lang.String modeName, java.lang.String objectName, double value)
public void rotateX(TransformMode mode, VcObject vcObj, double value)
public void rotateY(java.lang.String modeName, java.lang.String objectName, double value)
public void rotateY(TransformMode mode, VcObject vcObj, double value)
public void rotateZ(java.lang.String modeName, java.lang.String objectName, double value)
public void rotateZ(TransformMode mode, VcObject vcObj, double value)
public void scaleX(java.lang.String modeName, java.lang.String objectName, double value)
public void scaleX(TransformMode mode, VcObject vcObj, double value)
public void scaleY(java.lang.String modeName, java.lang.String objectName, double value)
public void scaleY(TransformMode mode, VcObject vcObj, double value)
public void scaleZ(java.lang.String modeName, java.lang.String objectName, double value)
public void scaleZ(TransformMode mode, VcObject vcObj, double value)
public void scale(java.lang.String modeName, java.lang.String objectName, double value)
public void scale(TransformMode mode, VcObject vcObj, double value)
public void changeProjectionPolicy(VcView vcView, int projectionPolicy)
public void changeProjectionPolicy(java.lang.String strView, java.lang.String strPolicy)
public void changeMovementPolicy(VcView vcView, int projectionPolicy)
public void changeMovementPolicy(java.lang.String strView, java.lang.String strPolicy)
public void changeResizePolicy(VcView vcView, int projectionPolicy)
public void changeResizePolicy(java.lang.String strView, java.lang.String strPolicy)
public void setFieldOfView(java.lang.String strView, double d)
public void setFieldOfView(VcView view, double d)
public void setActionExecutor(ActionExecutor executor)
public void setLaserArrayGrid(VcLaserArray array, int nx, int ny, double dx, double dy)
public void changeLaserArrayColor(VcLaserArray array, double red, double green, double blue)
public void changeLaserSpotSize(VcLaserArray array, double size)
public void addLight(int type, java.lang.String name)
public void addLight(java.lang.String type, java.lang.String name)
public void changeLightColor(VcLight light, int red, int green, int blue)
public void changeLightColor(java.lang.String light, int red, int green, int blue)
public void changeLightState(VcLight light, boolean b)
public void changeLightState(java.lang.String lightName, int onOff)
public void changePointLightAttenuation(VcPointLight point, double constant, double linear, double quadratic)
public void changeSpotSpreadAngle(VcSpotLight spot, double angle)
public void changeSpotSpreadAngle(java.lang.String spotName, double angle)
public void changeSpotConcentration(VcSpotLight spot, double concentration)
public void changeSpotConcentration(java.lang.String spotLightName, double concentration)
public void removeFromScene(java.lang.String objectName)
public void removeFromScene(VcObject vcObject)
public void saveJPGFile(Viewport viewport, java.lang.String filename)
public void saveJPGFileSync(Viewport viewport, java.lang.String filename)
viewport
- viewport from which generate the snapshotfilename
- Name of the output filepublic void saveJPGFile(Viewport viewport, java.lang.String filename, int w, int h)
public void saveTXTFile(java.lang.String filename)
public void saveJPGFile(java.lang.String viewportName, java.lang.String filename)
public void saveJPGFileSync(java.lang.String viewportName, java.lang.String filename)
viewportName
- Name of the view from which generate the snapshotfilename
- Name of the output filepublic void saveJPGFile(java.lang.String filename)
public void saveJPGFileSync(java.lang.String filename)
filename
- Name of the output filepublic void enableMessageInViewports(java.lang.String s)
public void disableMessageInViewports()
public boolean getDebugFlag()
public void setDebugFlag(boolean b)
public void frameObjectInView(VcView v, VcObject obj)
public void frameObjectsInView(VcView v)
public void frameObjectsInView(java.lang.String label)
public void lookAt(VcView view, VcObject vcObj)
public void lookAt(java.lang.String view, java.lang.String vcObject)
public void addDistanceMeasurer()
public void setMeasurerDirection(java.lang.String measurerName, int direction, java.lang.String axisName)
public void setMeasurerDirection(java.lang.String measurerName, int direction, TransformScope axis)
public double getMeasuredDistance(java.lang.String measurerName)
public void measureDistance(DistanceMeasurer measurer)
public void addLine(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2)
public void setGizmoColor(byte r, byte g, byte b)
public void setColorAlternation(boolean b)
public void addLine(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction)
public void startLineArray()
public void addLineSegment(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2)
public void finishLineArray()
public void setLineLength(double length)
public void setPointWidth(double length)
public void setPlaneWidth(double length)
public void addPlane(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2, javax.vecmath.Point3d p3)
public void addPlane(javax.vecmath.Vector4d plane)
public void addPlane(javax.vecmath.Point3d point, javax.vecmath.Vector3d normal)
public void addPoint(javax.vecmath.Point3d point)
public void clearBagGizmos(int clearRange)
public void selectionChanged(SelectionChangedEvent event)
selectionChanged
in interface SelectionChangeListener
event
- Contains information about the change in selection.public void dumpContentEdgesToFile()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |