@Deprecated public abstract class SwActiveArea extends SwRenderArea implements SwScene
It adds the notion of a camera to the SwRenderArea class. Whenever a new scene is specified with setSceneGraph(), the first camera encountered will be by default used as the edited camera. If no camera is found in the scene, the viewer will automatically create one. If the viewer type is SwScene.BROWSER then the camera is told to view the supplied scene graph but is not added beneath that scene graph root. If the viewer type is SwScene.EDITOR then the camera is added beneath the supplied scene graph root.
In addition to automatically creating a camera if needed, this base class also creates a headlight (directional light which is made to follow the camera), enables the user to change drawing styles (like wireframe or move wireframe), and buffering types. This base class also provides a convenient way to have the camera near and far clipping planes be automatically adjusted to minimize the clipping of objects in the scene.
SoSceneManager,
SoEvent,
SwDrawingArea,
SwRenderArea,
SwScene,
Serialized FormSwRenderArea.FloatColorBufferSizejava.awt.Component.BaselineResizeBehaviorScene.BufferType, Scene.DrawStyle, Scene.ViewingModes| Modifier and Type | Field and Description |
|---|---|
static int |
FIXED_NUM_TRIANGLES
Deprecated.
possible value of setDecimationStrategy's argument : try to fix number of
triangles drawn
|
static int |
FIXED_PERCENTAGE
Deprecated.
possible value of setDecimationStrategy's argument : use given decimation
percentage
|
static int |
FRAMES_PER_SECOND
Deprecated.
possible value of setDecimationStrategy's argument : try to fix frames per
second
|
static int |
NORMAL
Deprecated.
possible value of setDecimationStrategy's argument : no decimation set
|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBROWSER, EDITOR, INTERACTIVE, STILL| Constructor and Description |
|---|
SwActiveArea(boolean mouseInput,
boolean keybordInput,
int type)
Deprecated.
create an SwActiveArea
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFinishCallback(Callback c,
java.lang.Object userData)
Deprecated.
|
void |
addKeyboardDevice(SwKeyboardDevice d)
Deprecated.
This method allows devices to be enabled in an Inventor meaning.
|
void |
addMouseDevice(SwMouseDevice d)
Deprecated.
This method allows devices to be enabled in an Inventor meaning.
|
void |
addNotify()
Deprecated.
Creates the peer of the drawing area.
|
void |
addSceneHandler(SceneHandler s)
Deprecated.
adds a Scenehandler to the attached ones.
|
void |
addStartCallback(Callback c,
java.lang.Object userData)
Deprecated.
add/remove start and finish listener objects on the ActiveArea.
|
void |
adjustCameraClippingPlanes()
Deprecated.
auto clipping routine
|
void |
arrowKeyPressed(SoKeyboardEvent.Keys key)
Deprecated.
This method should only be used when handling keyboard events.
|
void |
changeCameraValues(SoCamera newCamera)
Deprecated.
This is called during a paste.
|
void |
clearChanged()
Deprecated.
clear the changed flag
|
void |
copyView(double eventTime)
Deprecated.
|
void |
deleteSceneHandler(SceneHandler s)
Deprecated.
remove a SceneHandler from the registred ones.
|
void |
deleteSceneHandlers()
Deprecated.
remove all SceneHandlers.
|
void |
dollyCamera(SbVec2s newLocator)
Deprecated.
|
void |
enableFullRenderingWhenStill(boolean onOff)
Deprecated.
|
void |
finalize()
Deprecated.
|
boolean |
getAltSwitchBack()
Deprecated.
flag to return to PICK after an Alt release (only meaningful when handling
key events)
|
Scene.BufferType |
getBufferingType()
Deprecated.
Gets the current buffering type in the main view.
|
SoCamera |
getCamera()
Deprecated.
Get the edited camera.
|
java.lang.Class |
getCameraClass()
Deprecated.
Get the camera type
|
SoNode |
getCameraSceneGraph()
Deprecated.
Gets the sub-scene graph to be viewed.
|
float |
getCameraZoom()
Deprecated.
Gets the camera current zoom value.
|
float |
getCurrentDecimationPercentage()
Deprecated.
|
int |
getDecimationStrategy()
Deprecated.
|
Scene.DrawStyle |
getDrawStyle(int type)
Deprecated.
Gets the current drawing style in the main view - The user can specify the
INTERACTIVE draw style (draw style used when the scene changes)
independently from the STILL style.
|
int |
getFeedbackSize()
Deprecated.
|
float |
getFixedPercentage()
Deprecated.
|
float |
getGoalFramesPerSecond()
Deprecated.
|
int |
getGoalNumberOfTriangles()
Deprecated.
|
SoDirectionalLight |
getHeadlight()
Deprecated.
gets the headlight
|
int |
getInteractiveCount()
Deprecated.
|
boolean |
getInteractiveFlag()
Deprecated.
|
SbVec2s |
getLocator()
Deprecated.
|
Scene.ViewingModes |
getMode()
Deprecated.
Gets the current viewing mode
|
abstract java.lang.String[] |
getMouseResourcesName()
Deprecated.
|
int |
getNumSamples()
Deprecated.
|
SwPreferences |
getPreferencesPanel()
Deprecated.
Return the default preferences panel for all SwActiveArea.
|
SoSFTime |
getRealTime()
Deprecated.
|
SoNode |
getSceneGraph()
Deprecated.
Gets the scene graph to render.
|
float |
getSceneSpeed()
Deprecated.
|
float |
getSeekDistance()
Deprecated.
|
float |
getSeekRadius()
Deprecated.
|
float |
getSeekTime()
Deprecated.
|
int |
getStereoMode()
Deprecated.
|
float |
getStereoOffset()
Deprecated.
Gets the offset between the left and right camera, when using stereo mode.
|
boolean |
getStereoSwitch()
Deprecated.
|
boolean |
hasChanged()
Deprecated.
check if the SwActiveArea object has changed
|
void |
interactiveCountDec()
Deprecated.
Invokes the finish viewing callbacks.
|
void |
interactiveCountInc()
Deprecated.
Invokes the start viewing callbacks.
|
boolean |
isAnimating()
Deprecated.
|
boolean |
isAnimationEnabled()
Deprecated.
|
boolean |
isAutoClipping()
Deprecated.
get whether the auto clipping mode is turned on or off.
|
boolean |
isBufferingTypeUpdated()
Deprecated.
|
boolean |
isCameraUpdated()
Deprecated.
|
boolean |
isCursorEnabled()
Deprecated.
Get whether the ActiveArea is allowed to change the cursor
|
boolean |
isDetailSeek()
Deprecated.
gets wether detail seek mode is on or off.
|
boolean |
isDrawStyleUpdated()
Deprecated.
|
boolean |
isFeedbackVisible()
Deprecated.
|
boolean |
isFullRenderingWhenStill()
Deprecated.
|
boolean |
isHeadlight()
Deprecated.
gets whether the headlight Turn on or off.
|
boolean |
isHeadlightUpdated()
Deprecated.
|
boolean |
isInteractive()
Deprecated.
|
boolean |
isSeekDistAsPercentage()
Deprecated.
|
boolean |
isSeekMode()
Deprecated.
get whether the seek mode is turned on or off.
|
boolean |
isStillNow()
Deprecated.
|
boolean |
isViewing()
Deprecated.
get whether the ActiveArea is turned on or off.
|
boolean |
isViewingUpdated()
Deprecated.
|
void |
notifySceneHandlers()
Deprecated.
send a notification to the registred SceneHandlers
|
void |
notifySceneHandlers(java.lang.Object arg)
Deprecated.
send a notification to the registered SceneHandlers with an argument
|
void |
panCamera(SbVec2f newLocator)
Deprecated.
Moves the camera into the plane defined by the camera forward vector and
the focal point to follow the new mouse location.
|
void |
pasteView(double eventTime)
Deprecated.
|
void |
recomputeSceneSize()
Deprecated.
This can be used to let the ActiveArea know that the scene graph has
changed so that the ActiveArea can recompute things like speed which depend
on the scene graph size.
|
void |
redraw()
Deprecated.
Calling this forces the render area to be redrawn as soon as possible.
|
void |
removeFinishCallback(Callback c,
java.lang.Object userData)
Deprecated.
|
void |
removeNotify()
Deprecated.
Destroys the peer of the drawing area.
|
void |
removeStartCallback(Callback c,
java.lang.Object userData)
Deprecated.
|
void |
resetToHomePosition()
Deprecated.
Restores the camera values
|
void |
rollCamera(SbVec2s newLocator)
Deprecated.
|
void |
rotateCamera(SbRotation rot)
Deprecated.
Rotates the camera around pt of interest by given rotation
|
void |
saveHomePosition()
Deprecated.
Saves the camera values
|
boolean |
seekToPoint(SbVec2s mouseLocation)
Deprecated.
This routine is used by subclasses to initiate the seek animation.
|
void |
setAllChanged()
Deprecated.
Set all parameter as changed
|
void |
setAltSwitchBack(boolean flag)
Deprecated.
Set the altSwitchBack flag.
|
void |
setAnimating(boolean flag)
Deprecated.
|
void |
setAnimationEnabled(boolean flag)
Deprecated.
|
void |
setAutoClipping(boolean onOrOff)
Deprecated.
Set the auto clipping plane.
|
void |
setBufferingType(Scene.BufferType type)
Deprecated.
Sets the current buffering type in the main view.
|
void |
setCamera(SoCamera newCamera)
Deprecated.
Set the edited camera.
|
void |
setCameraClass(java.lang.Class camera_class)
Deprecated.
Set the camera type that will be created by the ActiveArea if no cameras
are found in the scene graph.
|
void |
setCameraClassChangedTask(java.lang.Runnable task)
Deprecated.
This method provides a simple way to be informed about the interactive
camera type change.
|
void |
setCameraSceneGraph(SoNode cameraSceneGraph)
Deprecated.
Sets the sub-scene graph to be used for #viewAll computation.
|
void |
setCameraZoom(float zoom)
Deprecated.
Sets the camera given zoom value (in degree for perspective cameras).
|
void |
setCurrentDrawStyle(Scene.DrawStyle style)
Deprecated.
Sets the current drawing style.
|
void |
setCursorEnabled(boolean flag)
Deprecated.
Set whether the ActiveArea is allowed to change the cursor.
|
void |
setDecimationPercentageCallback(SwLargeModelViewingCB callback,
java.lang.Object userData)
Deprecated.
|
void |
setDecimationStrategy(int strategy)
Deprecated.
|
void |
setDetailSeek(boolean onOrOff)
Deprecated.
Routine to determine whether or not to orient camera on picked point
(detail on) or center of the object's bounding box (detail off).
|
void |
setDoubleBuffer(boolean onOrOff)
Deprecated.
redefine this to call the ActiveArea setBufferingType() method instead.
|
void |
setDrawStyle(int type,
Scene.DrawStyle style)
Deprecated.
Sets the current drawing style in the main view - The user can specify the
INTERACTIVE draw style (draw style used when the scene changes)
independently from the STILL style.
|
void |
setFeedbackSize(int newSize)
Deprecated.
|
void |
setFeedbackVisibility(boolean flag)
Deprecated.
|
void |
setFixedPercentage(float goal)
Deprecated.
|
void |
setFramesPerSecondCallback(SwLargeModelViewingCB callback,
java.lang.Object userData)
Deprecated.
|
void |
setGoalFramesPerSecond(float goal)
Deprecated.
|
void |
setGoalNumberOfTriangles(int goal)
Deprecated.
|
void |
setHeadlight(boolean onOrOff)
Deprecated.
Turns the headlight on/off.
|
void |
setInteractiveFlag(boolean flag)
Deprecated.
flag indicating whether doing interactive work or not
|
void |
setLocator(int x,
int y)
Deprecated.
|
void |
setMode(Scene.ViewingModes newMode,
java.awt.AWTEvent e)
Deprecated.
Sets the current viewing mode in the main view
|
void |
setNumSamples(int numFrames)
Deprecated.
|
void |
setPlane(SbVec3f newNormal,
SbVec3f newRight)
Deprecated.
|
void |
setSceneGraph(SoNode newScene)
Deprecated.
Sets the scene graph to render.
|
void |
setSceneSpeed(float speed)
Deprecated.
|
void |
setSeekDistance(float distance)
Deprecated.
|
void |
setSeekDistAsPercentage(boolean percentage)
Deprecated.
|
void |
setSeekMode(boolean onOrOff)
Deprecated.
Externally set the ActiveArea into/out off seek mode (default OFF).
|
void |
setSeekRadius(float radius)
Deprecated.
Set the radius of ray used for picking.
|
void |
setSeekTime(float seconds)
Deprecated.
Set the time a seek takes to change to the new camera location.
|
void |
setStereoMode(int stereo_mode)
Deprecated.
Define the mono/stereoscopic mode.
|
void |
setStereoOffset(float dist)
Deprecated.
Sets the offset between the left and right camera, when using stereo mode.
|
void |
setStereoSwitch(boolean flag)
Deprecated.
Switch left and right eyes of a stereo viewing mode.
|
void |
setViewing(boolean onOrOff,
java.awt.AWTEvent event)
Deprecated.
Sets whether the ActiveArea is turned on or off.
|
void |
spinCamera(SbVec2f newLocator)
Deprecated.
|
void |
stopAnimating()
Deprecated.
|
void |
tiltCamera(float deltaAngle)
Deprecated.
|
void |
toggleCameraClass()
Deprecated.
This routine will toggle the current camera from perspective to
orthographic, and from orthographic back to perspective.
|
void |
updateCursor()
Deprecated.
update the cursor on the ActiveArea
|
void |
updateMode(java.awt.AWTEvent e)
Deprecated.
update current mode.
|
void |
viewAll()
Deprecated.
See the whole scene from the camera.
|
abstract void |
xAxisCameraAction(float newVal)
Deprecated.
Operate an action on the camera along the X axis.
|
void |
xPlaneCameraAction(float newVal)
Deprecated.
No behaviour by default
|
abstract void |
yAxisCameraAction(float newVal)
Deprecated.
Operate an action on the camera along the Y axis.
|
void |
yPlaneCameraAction(float newVal)
Deprecated.
No behaviour by default
|
void |
zAxisCameraAction(float newVal)
Deprecated.
Depending on the type of the camera, supports the zoom or dolly action.
|
void |
zPlaneCameraAction(float newVal)
Deprecated.
By default, the same as zAxisCameraAction
|
getAntialiasing, getBackgroundColor, getBackgroundIndex, getDefaultRedrawPriority, getFloatingPointRenderingPrecision, getGLRenderAction, getInvalidateCacheMode, getMPEGRecorder, getRedrawPriority, getSceneManager, getSortedTrianglesNumCaches, getSortedTrianglesSortFrequency, getTransparencyType, getViewportRegion, isAutoRedraw, isClearBeforeRender, isFloatingColorBufferSupported, processSoEvent, redrawOnSelectionChange, redrawOverlay, scheduleRedraw, setAntialiasing, setAutoRedraw, setBackgroundColor, setBackgroundIndex, setClearBeforeRender, setFloatingColorBuffer, setGLRenderAction, setInvalidateCacheMode, setMPEGRecorder, setOverlayColorMap, setRedrawPriority, setSize, setTransparencyType, setViewportRegiongetAreaPeer, getFullSceneAntialiasingQuality, getGLGraphicsConfig, getGLSharedContext, hasOpenGlStereoConfiguration, haveContext, isDoubleBuffer, isFullSceneAntialiasingEnabled, paint, setFullSceneAntialiasing, setFullSceneAntialiasing, setGLGraphicsConfigTemplate, setOpenGlStereoConfiguration, updatecreateBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategyaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validateequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBackgroundColor, getGLRenderAction, getType, getViewportRegion, redrawOnSelectionChange, setBackgroundColor, setGLRenderAction, setViewportRegiongetBackgroundIndex, getRedrawPriority, getSize, getTransparencyType, isAutoRedraw, isClearBeforeRender, redrawOverlay, scheduleRedraw, setAntialiasing, setAutoRedraw, setBackgroundIndex, setClearBeforeRender, setRedrawPriority, setSize, setTransparencyTypepublic static final int NORMAL
public static final int FIXED_NUM_TRIANGLES
public static final int FRAMES_PER_SECOND
public static final int FIXED_PERCENTAGE
public SwActiveArea(boolean mouseInput,
boolean keybordInput,
int type)
mouseInput - true to register the mouse listenerkeybordInput - true to register the keyboard listenertype - SwScene.BROWSER or SwScene.EDITORpublic void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void addNotify()
SwDrawingAreaaddNotify in class SwRenderAreaCanvaspublic void removeNotify()
SwDrawingArearemoveNotify in class SwRenderAreaComponentpublic void addSceneHandler(SceneHandler s)
addSceneHandler in interface Scenepublic void deleteSceneHandler(SceneHandler s)
deleteSceneHandler in interface Scenepublic void deleteSceneHandlers()
deleteSceneHandlers in interface Scenepublic void notifySceneHandlers()
notifySceneHandlers in interface Scenepublic void notifySceneHandlers(java.lang.Object arg)
notifySceneHandlers in interface Scenearg - an argumentpublic boolean hasChanged()
hasChanged in interface Scenepublic void clearChanged()
clearChanged in interface Scenepublic void setAllChanged()
setAllChanged in interface Scenepublic SwPreferences getPreferencesPanel()
getPreferencesPanel in interface SwScenepublic boolean isDrawStyleUpdated()
isDrawStyleUpdated in interface Scenepublic boolean isBufferingTypeUpdated()
isBufferingTypeUpdated in interface Scenepublic boolean isViewingUpdated()
isViewingUpdated in interface Scenepublic boolean isCameraUpdated()
isCameraUpdated in interface SwScenepublic boolean isHeadlightUpdated()
isHeadlightUpdated in interface SwScenepublic void setDrawStyle(int type,
Scene.DrawStyle style)
setDrawStyle in interface Scenetype - may be SwScene.INTERACTIVE or SwScene.STILL
STILL defaults to VIEW_AS_IS. INTERACTIVE defaults to
VIEW_NO_TEXTURE on machine that do not support fast texturing,
VIEW_SAME_AS_STILL otherwise.style - may be Scene.DrawStyle.VIEW_AS_IS Scene.DrawStyle.VIEW_HIDDEN_LINE
Scene.DrawStyle.VIEW_NO_TEXTURE
Scene.DrawStyle.VIEW_LOW_COMPLEXITY Scene.DrawStyle.VIEW_LINE
Scene.DrawStyle.VIEW_POINT Scene.DrawStyle.VIEW_BBOX
Scene.DrawStyle.VIEW_LOW_RES_LINE
Scene.DrawStyle.VIEW_LOW_RES_POINT
Scene.DrawStyle.VIEW_SAME_AS_STILLpublic Scene.DrawStyle getDrawStyle(int type)
getDrawStyle in interface Scenetype - may be SwScene.INTERACTIVE or SwScene.STILLpublic void setCurrentDrawStyle(Scene.DrawStyle style)
setCurrentDrawStyle in interface Scenestyle - may be SwScene.DrawStyle.VIEW_AS_IS
SwScene.DrawStyle.VIEW_HIDDEN_LINE
SwScene.DrawStyle.VIEW_NO_TEXTURE
SwScene.DrawStyle.VIEW_LOW_COMPLEXITY SwScene.DrawStyle.VIEW_LINE
SwScene.DrawStyle.VIEW_POINT SwScene.DrawStyle.VIEW_BBOX
SwScene.DrawStyle.VIEW_LOW_RES_LINE
SwScene.DrawStyle.VIEW_LOW_RES_POINT
SwScene.DrawStyle.VIEW_SAME_AS_STILLpublic void setBufferingType(Scene.BufferType type)
setBufferingType in interface Scenetype - may be Scene.BufferType.BUFFER_SINGLE
Scene.BufferType.BUFFER_DOUBLE Scene.BufferType.BUFFER_INTERACTIVEpublic Scene.BufferType getBufferingType()
getBufferingType in interface Scenepublic void setDoubleBuffer(boolean onOrOff)
setDoubleBuffer in interface ScenesetDoubleBuffer in class SwDrawingAreaSwDrawingArea.isDoubleBuffer()public void setSceneSpeed(float speed)
setSceneSpeed in interface SwScenepublic float getSceneSpeed()
getSceneSpeed in interface SwScenepublic Scene.ViewingModes getMode()
public void setMode(Scene.ViewingModes newMode, java.awt.AWTEvent e)
setMode in interface ScenenewMode - may be com.openinventor.util.Scene.ViewingModes.PICK_MODE
com.openinventor.util.Scene.ViewingModes.VIEW_MODE
com.openinventor.util.Scene.ViewingModes.PAN_MODE
com.openinventor.util.Scene.ViewingModes.PAN_MODE_ACTIVE
com.openinventor.util.Scene.ViewingModes.SPIN_MODE_ACTIVE
com.openinventor.util.Scene.ViewingModes.DOLLY_MODE_ACTIVE
com.openinventor.util.Scene.ViewingModes.ROLL_MODE_ACTIVE
com.openinventor.util.Scene.ViewingModes.SEEK_MODEe - is used by registered listeners.public void updateMode(java.awt.AWTEvent e)
updateMode in interface SwScenepublic void viewAll()
public void setCameraSceneGraph(SoNode cameraSceneGraph)
public SoNode getCameraSceneGraph()
public void saveHomePosition()
saveHomePosition in interface Scenepublic void resetToHomePosition()
resetToHomePosition in interface Scenepublic void setViewing(boolean onOrOff,
java.awt.AWTEvent event)
setViewing in interface Scenepublic boolean isViewing()
public void setAnimationEnabled(boolean flag)
setAnimationEnabled in interface Scenepublic boolean isAnimationEnabled()
isAnimationEnabled in interface Scenepublic void setAnimating(boolean flag)
setAnimating in interface Scenepublic boolean isAnimating()
isAnimating in interface Scenepublic void stopAnimating()
stopAnimating in interface Scenepublic void setSeekMode(boolean onOrOff)
setSeekMode in interface Scenepublic boolean isSeekMode()
isSeekMode in interface Scenepublic void setInteractiveFlag(boolean flag)
setInteractiveFlag in interface Scenepublic boolean getInteractiveFlag()
getInteractiveFlag in interface Scenepublic void interactiveCountInc()
interactiveCountInc in interface Scenepublic void interactiveCountDec()
interactiveCountDec in interface Scenepublic int getInteractiveCount()
getInteractiveCount in interface Scenepublic void setAutoClipping(boolean onOrOff)
setAutoClipping in interface Scenepublic boolean isAutoClipping()
isAutoClipping in interface Scenepublic void setStereoOffset(float dist)
setStereoOffset in interface ScenegetStereoOffset(),
#setStereoBufferpublic float getStereoOffset()
getStereoOffset in interface ScenesetStereoOffset(float),
#setStereoBufferpublic void setStereoSwitch(boolean flag)
setStereoSwitch in interface Sceneflag - true the eyes are switchedpublic boolean getStereoSwitch()
getStereoSwitch in interface ScenesetStereoSwitch(boolean)public void setStereoMode(int stereo_mode)
throws java.lang.UnsupportedOperationException
setStereoMode in interface Scenejava.lang.UnsupportedOperationExceptionpublic int getStereoMode()
getStereoMode in interface ScenesetStereoMode(int)public void copyView(double eventTime)
public void pasteView(double eventTime)
public void setDetailSeek(boolean onOrOff)
setDetailSeek in interface SwScenepublic boolean isDetailSeek()
isDetailSeek in interface SwScenepublic void setSeekTime(float seconds)
setSeekTime in interface SwScenepublic float getSeekTime()
getSeekTime in interface SwScenepublic void setSeekRadius(float radius)
radius - radius of ray pickseekToPointpublic float getSeekRadius()
public boolean seekToPoint(SbVec2s mouseLocation)
Note: if detailSeek is on, the point and normal correspond to the exact
3D location under the cursor.
if detailSeek if off, the object bbox center and the camera
orientation are instead returned.
seekToPoint in interface SwScenepublic void setFeedbackVisibility(boolean flag)
setFeedbackVisibility in interface SwScenepublic boolean isFeedbackVisible()
isFeedbackVisible in interface SwScenepublic void setFeedbackSize(int newSize)
setFeedbackSize in interface SwScenepublic int getFeedbackSize()
getFeedbackSize in interface SwScenepublic void setCameraClassChangedTask(java.lang.Runnable task)
public void setCamera(SoCamera newCamera)
public SoCamera getCamera()
public void setCameraClass(java.lang.Class camera_class)
setCameraClass in interface SwSceneSoPerspectiveCamera,
SoOrthographicCamerapublic void setCameraZoom(float zoom)
setCameraZoom in interface SwScenepublic float getCameraZoom()
getCameraZoom in interface SwScenepublic java.lang.Class getCameraClass()
getCameraClass in interface SwScenepublic void changeCameraValues(SoCamera newCamera)
changeCameraValues in interface SwScenepublic void toggleCameraClass()
toggleCameraClass in interface SwScenepublic void adjustCameraClippingPlanes()
adjustCameraClippingPlanes in interface SwScenepublic void rotateCamera(SbRotation rot)
rotateCamera in interface SwScenerot - rotation parameterpublic void panCamera(SbVec2f newLocator)
public void tiltCamera(float deltaAngle)
tiltCamera in interface SwScenepublic void spinCamera(SbVec2f newLocator)
spinCamera in interface SwScenepublic void dollyCamera(SbVec2s newLocator)
dollyCamera in interface SwScenepublic void rollCamera(SbVec2s newLocator)
rollCamera in interface SwScenepublic abstract void xAxisCameraAction(float newVal)
SwScenexAxisCameraAction in interface SwScenepublic abstract void yAxisCameraAction(float newVal)
SwSceneyAxisCameraAction in interface SwScenepublic void zAxisCameraAction(float newVal)
zAxisCameraAction in interface SwScenepublic void xPlaneCameraAction(float newVal)
xPlaneCameraAction in interface SwScenepublic void yPlaneCameraAction(float newVal)
yPlaneCameraAction in interface SwScenepublic void zPlaneCameraAction(float newVal)
zPlaneCameraAction in interface SwScenepublic void setLocator(int x,
int y)
public SbVec2s getLocator()
public void setSceneGraph(SoNode newScene)
setSceneGraph in interface SwScenesetSceneGraph in class SwRenderAreapublic SoNode getSceneGraph()
getSceneGraph in interface SwScenegetSceneGraph in class SwRenderAreapublic void setHeadlight(boolean onOrOff)
setHeadlight in interface SwScenepublic boolean isHeadlight()
isHeadlight in interface SwScenepublic SoDirectionalLight getHeadlight()
getHeadlight in interface SwScenepublic void setCursorEnabled(boolean flag)
setCursorEnabled in interface SwScenepublic void updateCursor()
public boolean isCursorEnabled()
isCursorEnabled in interface SwScenepublic SoSFTime getRealTime()
public boolean isInteractive()
isInteractive in class SwRenderAreapublic boolean getAltSwitchBack()
public void setAltSwitchBack(boolean flag)
public void addMouseDevice(SwMouseDevice d)
public void addKeyboardDevice(SwKeyboardDevice d)
public void addStartCallback(Callback c, java.lang.Object userData)
public void addFinishCallback(Callback c, java.lang.Object userData)
public void removeStartCallback(Callback c, java.lang.Object userData)
public void removeFinishCallback(Callback c, java.lang.Object userData)
public void setSeekDistance(float distance)
setSeekDistance in interface SwScenepublic float getSeekDistance()
getSeekDistance in interface SwScenepublic void setSeekDistAsPercentage(boolean percentage)
setSeekDistAsPercentage in interface SwScenepublic boolean isSeekDistAsPercentage()
isSeekDistAsPercentage in interface SwScenepublic void recomputeSceneSize()
public void arrowKeyPressed(SoKeyboardEvent.Keys key)
SwActiveAreaKeyboardpublic void setDecimationStrategy(int strategy)
public int getDecimationStrategy()
public void setGoalNumberOfTriangles(int goal)
public int getGoalNumberOfTriangles()
public void setGoalFramesPerSecond(float goal)
public float getGoalFramesPerSecond()
public void setFixedPercentage(float goal)
public float getFixedPercentage()
public void enableFullRenderingWhenStill(boolean onOff)
public boolean isFullRenderingWhenStill()
public boolean isStillNow()
public void setFramesPerSecondCallback(SwLargeModelViewingCB callback, java.lang.Object userData)
public void setNumSamples(int numFrames)
public int getNumSamples()
public void setDecimationPercentageCallback(SwLargeModelViewingCB callback, java.lang.Object userData)
public float getCurrentDecimationPercentage()
public void redraw()
SwRenderArearedraw in interface Sceneredraw in class SwRenderAreaSwRenderArea.scheduleRedraw(),
SwRenderArea.setAutoRedraw(boolean),
SwRenderArea.isAutoRedraw()public abstract java.lang.String[] getMouseResourcesName()
getMouseResourcesName in interface SwSceneGenerated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com