@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.FloatColorBufferSize
java.awt.Component.BaselineResizeBehavior
Scene.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_ALIGNMENT
BROWSER, 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, setViewportRegion
getAreaPeer, getFullSceneAntialiasingQuality, getGLGraphicsConfig, getGLSharedContext, hasOpenGlStereoConfiguration, haveContext, isDoubleBuffer, isFullSceneAntialiasingEnabled, paint, setFullSceneAntialiasing, setFullSceneAntialiasing, setGLGraphicsConfigTemplate, setOpenGlStereoConfiguration, update
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
action, 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, validate
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBackgroundColor, getGLRenderAction, getType, getViewportRegion, redrawOnSelectionChange, setBackgroundColor, setGLRenderAction, setViewportRegion
getBackgroundIndex, getRedrawPriority, getSize, getTransparencyType, isAutoRedraw, isClearBeforeRender, redrawOverlay, scheduleRedraw, setAntialiasing, setAutoRedraw, setBackgroundIndex, setClearBeforeRender, setRedrawPriority, setSize, setTransparencyType
public 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.Object
java.lang.Throwable
public void addNotify()
SwDrawingArea
addNotify
in class SwRenderArea
Canvas
public void removeNotify()
SwDrawingArea
removeNotify
in class SwRenderArea
Component
public void addSceneHandler(SceneHandler s)
addSceneHandler
in interface Scene
public void deleteSceneHandler(SceneHandler s)
deleteSceneHandler
in interface Scene
public void deleteSceneHandlers()
deleteSceneHandlers
in interface Scene
public void notifySceneHandlers()
notifySceneHandlers
in interface Scene
public void notifySceneHandlers(java.lang.Object arg)
notifySceneHandlers
in interface Scene
arg
- an argumentpublic boolean hasChanged()
hasChanged
in interface Scene
public void clearChanged()
clearChanged
in interface Scene
public void setAllChanged()
setAllChanged
in interface Scene
public SwPreferences getPreferencesPanel()
getPreferencesPanel
in interface SwScene
public boolean isDrawStyleUpdated()
isDrawStyleUpdated
in interface Scene
public boolean isBufferingTypeUpdated()
isBufferingTypeUpdated
in interface Scene
public boolean isViewingUpdated()
isViewingUpdated
in interface Scene
public boolean isCameraUpdated()
isCameraUpdated
in interface SwScene
public boolean isHeadlightUpdated()
isHeadlightUpdated
in interface SwScene
public void setDrawStyle(int type, Scene.DrawStyle style)
setDrawStyle
in interface Scene
type
- 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 Scene
type
- may be SwScene.INTERACTIVE or SwScene.STILLpublic void setCurrentDrawStyle(Scene.DrawStyle style)
setCurrentDrawStyle
in interface Scene
style
- 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 Scene
type
- may be Scene.BufferType.BUFFER_SINGLE
Scene.BufferType.BUFFER_DOUBLE Scene.BufferType.BUFFER_INTERACTIVEpublic Scene.BufferType getBufferingType()
getBufferingType
in interface Scene
public void setDoubleBuffer(boolean onOrOff)
setDoubleBuffer
in interface Scene
setDoubleBuffer
in class SwDrawingArea
SwDrawingArea.isDoubleBuffer()
public void setSceneSpeed(float speed)
setSceneSpeed
in interface SwScene
public float getSceneSpeed()
getSceneSpeed
in interface SwScene
public Scene.ViewingModes getMode()
public void setMode(Scene.ViewingModes newMode, java.awt.AWTEvent e)
setMode
in interface Scene
newMode
- 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 SwScene
public void viewAll()
public void setCameraSceneGraph(SoNode cameraSceneGraph)
public SoNode getCameraSceneGraph()
public void saveHomePosition()
saveHomePosition
in interface Scene
public void resetToHomePosition()
resetToHomePosition
in interface Scene
public void setViewing(boolean onOrOff, java.awt.AWTEvent event)
setViewing
in interface Scene
public boolean isViewing()
public void setAnimationEnabled(boolean flag)
setAnimationEnabled
in interface Scene
public boolean isAnimationEnabled()
isAnimationEnabled
in interface Scene
public void setAnimating(boolean flag)
setAnimating
in interface Scene
public boolean isAnimating()
isAnimating
in interface Scene
public void stopAnimating()
stopAnimating
in interface Scene
public void setSeekMode(boolean onOrOff)
setSeekMode
in interface Scene
public boolean isSeekMode()
isSeekMode
in interface Scene
public void setInteractiveFlag(boolean flag)
setInteractiveFlag
in interface Scene
public boolean getInteractiveFlag()
getInteractiveFlag
in interface Scene
public void interactiveCountInc()
interactiveCountInc
in interface Scene
public void interactiveCountDec()
interactiveCountDec
in interface Scene
public int getInteractiveCount()
getInteractiveCount
in interface Scene
public void setAutoClipping(boolean onOrOff)
setAutoClipping
in interface Scene
public boolean isAutoClipping()
isAutoClipping
in interface Scene
public void setStereoOffset(float dist)
setStereoOffset
in interface Scene
getStereoOffset()
,
#setStereoBuffer
public float getStereoOffset()
getStereoOffset
in interface Scene
setStereoOffset(float)
,
#setStereoBuffer
public void setStereoSwitch(boolean flag)
setStereoSwitch
in interface Scene
flag
- true the eyes are switchedpublic boolean getStereoSwitch()
getStereoSwitch
in interface Scene
setStereoSwitch(boolean)
public void setStereoMode(int stereo_mode) throws java.lang.UnsupportedOperationException
setStereoMode
in interface Scene
java.lang.UnsupportedOperationException
public int getStereoMode()
getStereoMode
in interface Scene
setStereoMode(int)
public void copyView(double eventTime)
public void pasteView(double eventTime)
public void setDetailSeek(boolean onOrOff)
setDetailSeek
in interface SwScene
public boolean isDetailSeek()
isDetailSeek
in interface SwScene
public void setSeekTime(float seconds)
setSeekTime
in interface SwScene
public float getSeekTime()
getSeekTime
in interface SwScene
public void setSeekRadius(float radius)
radius
- radius of ray pickseekToPoint
public 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 SwScene
public void setFeedbackVisibility(boolean flag)
setFeedbackVisibility
in interface SwScene
public boolean isFeedbackVisible()
isFeedbackVisible
in interface SwScene
public void setFeedbackSize(int newSize)
setFeedbackSize
in interface SwScene
public int getFeedbackSize()
getFeedbackSize
in interface SwScene
public 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 SwScene
SoPerspectiveCamera
,
SoOrthographicCamera
public void setCameraZoom(float zoom)
setCameraZoom
in interface SwScene
public float getCameraZoom()
getCameraZoom
in interface SwScene
public java.lang.Class getCameraClass()
getCameraClass
in interface SwScene
public void changeCameraValues(SoCamera newCamera)
changeCameraValues
in interface SwScene
public void toggleCameraClass()
toggleCameraClass
in interface SwScene
public void adjustCameraClippingPlanes()
adjustCameraClippingPlanes
in interface SwScene
public void rotateCamera(SbRotation rot)
rotateCamera
in interface SwScene
rot
- rotation parameterpublic void panCamera(SbVec2f newLocator)
public void tiltCamera(float deltaAngle)
tiltCamera
in interface SwScene
public void spinCamera(SbVec2f newLocator)
spinCamera
in interface SwScene
public void dollyCamera(SbVec2s newLocator)
dollyCamera
in interface SwScene
public void rollCamera(SbVec2s newLocator)
rollCamera
in interface SwScene
public abstract void xAxisCameraAction(float newVal)
SwScene
xAxisCameraAction
in interface SwScene
public abstract void yAxisCameraAction(float newVal)
SwScene
yAxisCameraAction
in interface SwScene
public void zAxisCameraAction(float newVal)
zAxisCameraAction
in interface SwScene
public void xPlaneCameraAction(float newVal)
xPlaneCameraAction
in interface SwScene
public void yPlaneCameraAction(float newVal)
yPlaneCameraAction
in interface SwScene
public void zPlaneCameraAction(float newVal)
zPlaneCameraAction
in interface SwScene
public void setLocator(int x, int y)
public SbVec2s getLocator()
public void setSceneGraph(SoNode newScene)
setSceneGraph
in interface SwScene
setSceneGraph
in class SwRenderArea
public SoNode getSceneGraph()
getSceneGraph
in interface SwScene
getSceneGraph
in class SwRenderArea
public void setHeadlight(boolean onOrOff)
setHeadlight
in interface SwScene
public boolean isHeadlight()
isHeadlight
in interface SwScene
public SoDirectionalLight getHeadlight()
getHeadlight
in interface SwScene
public void setCursorEnabled(boolean flag)
setCursorEnabled
in interface SwScene
public void updateCursor()
public boolean isCursorEnabled()
isCursorEnabled
in interface SwScene
public SoSFTime getRealTime()
public boolean isInteractive()
isInteractive
in class SwRenderArea
public 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 SwScene
public float getSeekDistance()
getSeekDistance
in interface SwScene
public void setSeekDistAsPercentage(boolean percentage)
setSeekDistAsPercentage
in interface SwScene
public boolean isSeekDistAsPercentage()
isSeekDistAsPercentage
in interface SwScene
public void recomputeSceneSize()
public void arrowKeyPressed(SoKeyboardEvent.Keys key)
SwActiveAreaKeyboard
public 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()
SwRenderArea
redraw
in interface Scene
redraw
in class SwRenderArea
SwRenderArea.scheduleRedraw()
,
SwRenderArea.setAutoRedraw(boolean)
,
SwRenderArea.isAutoRedraw()
public abstract java.lang.String[] getMouseResourcesName()
getMouseResourcesName
in interface SwScene
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com