@Deprecated public class SwRenderArea extends SwDrawingArea
SoSceneManager
to manage rendering and event handling.
Events that occur in the render area can be handled by the application or by the nodes in the scene graph. When an event occurs, it is first passed to the application event listeners objects registered with the add***Listeners methods on the RenderArea. If these listeners do not exist or do not set the passed event to consumed (to set an event consumed, use the method event.consume()) the event is translated to an SoEvent for further processing. The SoEvent is sent to that scene graph by way of an SoHandleEventAction.
SoSceneManager
,
SoEvent
,
SwDrawingArea
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
SwRenderArea.FloatColorBufferSize
Deprecated.
|
Constructor and Description |
---|
SwRenderArea()
Deprecated.
create an SwRenderArea
|
SwRenderArea(boolean mouseInput,
boolean keybordInput)
Deprecated.
create an SwRenderArea
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Deprecated.
Creates the peer of the drawing area.
|
void |
getAntialiasing(boolean[] smoothing,
int[] numPasses)
Deprecated.
Get Anti-aliasing methods.
|
SbColor |
getBackgroundColor()
Deprecated.
Gets the window background color when in RGB mode.
|
int |
getBackgroundIndex()
Deprecated.
Gets the window background color when in color index mode.
|
static long |
getDefaultRedrawPriority()
Deprecated.
get the default priority number.
|
SwRenderArea.FloatColorBufferSize |
getFloatingPointRenderingPrecision()
Deprecated.
Returns the floating point rendering precision.
|
SoGLRenderAction |
getGLRenderAction()
Deprecated.
This method return the SoGLRenderAction which is current in SceneManager
|
SoGLRenderAction.InvalidateCacheModes |
getInvalidateCacheMode()
Deprecated.
Returns the current cache invalidation mode.
|
SoMPEGRenderer |
getMPEGRecorder()
Deprecated.
Returns the recorder used for MPEG encoding.
|
long |
getRedrawPriority()
Deprecated.
Gets the priority of the redraw sensor
|
SoNode |
getSceneGraph()
Deprecated.
Gets the scene graph to render
|
SoSceneManager |
getSceneManager()
Deprecated.
Gets the scene manager
|
int |
getSortedTrianglesNumCaches()
Deprecated.
Get Sorted Triangles Num Caches
|
int |
getSortedTrianglesSortFrequency()
Deprecated.
Get Sorted Triangles Sort Frequency
|
SoGLRenderAction.TransparencyTypes |
getTransparencyType()
Deprecated.
Get Transparency type
|
SbViewportRegion |
getViewportRegion()
Deprecated.
Gets current viewport region to use for rendering
|
boolean |
isAutoRedraw()
Deprecated.
get whether render area will automatically redraw
|
boolean |
isClearBeforeRender()
Deprecated.
Get whether window clearing is Enable
|
static boolean |
isFloatingColorBufferSupported()
Deprecated.
Returns true if floating point rendering is available.
|
boolean |
isInteractive()
Deprecated.
|
void |
processSoEvent(SoEvent e)
Deprecated.
This method allows RenderArea to process SoEvents.
|
void |
redraw()
Deprecated.
Calling this forces the render area to be redrawn as soon as possible.
|
void |
redrawOnSelectionChange(SoSelection s)
Deprecated.
Call this convenience method to have this render area redraw whenever the
selection list changes in the passed node.
|
void |
redrawOverlay()
Deprecated.
|
void |
removeNotify()
Deprecated.
Destroys the peer of the drawing area.
|
void |
scheduleRedraw()
Deprecated.
Schedule a redraw to happen when necessary or as soon as possible depending
of the auto redraw mode (see
setAutoRedraw
). |
void |
setAntialiasing(boolean smoothing,
int numPasses)
Deprecated.
Set Anti-aliasing methods.
|
void |
setAutoRedraw(boolean trueOrFalse)
Deprecated.
The render area will automatically redraw whenever something in the scene
graph changes.
|
void |
setBackgroundColor(SbColor c)
Deprecated.
Sets the window background color when in RGB mode.
|
void |
setBackgroundIndex(int index)
Deprecated.
Sets the window background color when in color index mode.
|
void |
setClearBeforeRender(boolean trueOrFalse)
Deprecated.
Enable/prevent window clearing from happening before a rendering starts
(default is clearBeforeRender true).
|
void |
setFloatingColorBuffer(boolean enable,
SwRenderArea.FloatColorBufferSize size)
Deprecated.
Enables/disables floating point rendering using 16- or 32-bit components.
|
void |
setGLRenderAction(SoGLRenderAction ra)
Deprecated.
Access to GL render action
|
void |
setInvalidateCacheMode(SoGLRenderAction.InvalidateCacheModes cache_mode)
Deprecated.
Set the current cache invalidation mode.
|
void |
setMPEGRecorder(SoMPEGRenderer recorder)
Deprecated.
Sets the recorder used for MPEG encoding.
|
void |
setOverlayColorMap(int startIndex,
int num,
SbColor[] colors)
Deprecated.
|
void |
setRedrawPriority(long priority)
Deprecated.
Sets the priority of the redraw sensor.
|
void |
setSceneGraph(SoNode newScene)
Deprecated.
Sets the scene graph to render
|
void |
setSize(SbVec2s v)
Deprecated.
set the size of the SwRenderArea form a SbVec2s
|
void |
setTransparencyType(SoGLRenderAction.TransparencyTypes type)
Deprecated.
Transparency level setting methods which specifies how transparent objects
are rendered (quality/speed trade off).
|
void |
setViewportRegion(SbViewportRegion newRegion)
Deprecated.
Sets current viewport region to use for rendering
|
getAreaPeer, getFullSceneAntialiasingQuality, getGLGraphicsConfig, getGLSharedContext, hasOpenGlStereoConfiguration, haveContext, isDoubleBuffer, isFullSceneAntialiasingEnabled, paint, setDoubleBuffer, 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
public SwRenderArea()
public SwRenderArea(boolean mouseInput, boolean keybordInput)
mouseInput
- true to register the mouse listenerkeybordInput
- true to register the keyboard listenerpublic void addNotify()
SwDrawingArea
addNotify
in class SwDrawingArea
Canvas
public void removeNotify()
SwDrawingArea
removeNotify
in class SwDrawingArea
Component
public void processSoEvent(SoEvent e)
public void setSize(SbVec2s v)
v
- new dimensionpublic void setSceneGraph(SoNode newScene)
public SoNode getSceneGraph()
public void setBackgroundColor(SbColor c)
public SbColor getBackgroundColor()
public void setBackgroundIndex(int index)
public int getBackgroundIndex()
public void setViewportRegion(SbViewportRegion newRegion)
public SbViewportRegion getViewportRegion()
public void setTransparencyType(SoGLRenderAction.TransparencyTypes type)
type
- see SoGLRenderAction.setTransparencyType(com.openinventor.inventor.actions.SoGLRenderAction.TransparencyTypes)
for the possible
valuespublic int getSortedTrianglesSortFrequency()
public int getSortedTrianglesNumCaches()
public SoGLRenderAction.TransparencyTypes getTransparencyType()
public void setAntialiasing(boolean smoothing, int numPasses)
public void getAntialiasing(boolean[] smoothing, int[] numPasses)
public void setClearBeforeRender(boolean trueOrFalse)
public boolean isClearBeforeRender()
public void setAutoRedraw(boolean trueOrFalse)
redraw()
,
scheduleRedraw()
,
isAutoRedraw()
public boolean isAutoRedraw()
public void setRedrawPriority(long priority)
public long getRedrawPriority()
public static long getDefaultRedrawPriority()
public void redraw()
scheduleRedraw()
,
setAutoRedraw(boolean)
,
isAutoRedraw()
public void redrawOverlay()
public void scheduleRedraw()
setAutoRedraw
). If auto-redraw is true (default), a redraw is done whenever
something in the scene graph changes, otherwise a redraw is done
"as soon as possible".redraw()
,
setAutoRedraw(boolean)
,
isAutoRedraw()
public void redrawOnSelectionChange(SoSelection s)
public SoSceneManager getSceneManager()
public void setGLRenderAction(SoGLRenderAction ra)
public SoGLRenderAction getGLRenderAction()
public void setInvalidateCacheMode(SoGLRenderAction.InvalidateCacheModes cache_mode)
public SoGLRenderAction.InvalidateCacheModes getInvalidateCacheMode()
public void setMPEGRecorder(SoMPEGRenderer recorder)
recorder
- the recorder to be usedpublic SoMPEGRenderer getMPEGRecorder()
public void setFloatingColorBuffer(boolean enable, SwRenderArea.FloatColorBufferSize size)
public SwRenderArea.FloatColorBufferSize getFloatingPointRenderingPrecision()
public static boolean isFloatingColorBufferSupported()
public boolean isInteractive()
public void setOverlayColorMap(int startIndex, int num, SbColor[] colors)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com