@Deprecated
public abstract class SwDrawingArea
extends java.awt.Canvas
SwRenderArea
,
Serialized FormConstructor and Description |
---|
SwDrawingArea()
Deprecated.
Creates an SwDrawingArea.
|
SwDrawingArea(SwGLGraphicsConfigTemplate tplt)
Deprecated.
Creates an SwDrawingArea.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Deprecated.
Creates the peer of the drawing area.
|
com.openinventor.inventor.awt.peer.SwDrawingAreaPeer |
getAreaPeer()
Deprecated.
Internal use only.
|
float |
getFullSceneAntialiasingQuality()
Deprecated.
Returns current FSAA quality.
|
SwGLGraphicsConfig |
getGLGraphicsConfig()
Deprecated.
|
SbGLShareContext |
getGLSharedContext()
Deprecated.
Returns the information needed to make OpenGL render contexts
share OpenGL objects, for example, display lists and texture objects.
|
boolean |
hasOpenGlStereoConfiguration()
Deprecated.
Return true if an stereo Open Gl configuration is selected.
|
boolean |
haveContext()
Deprecated.
|
boolean |
isDoubleBuffer()
Deprecated.
Gets the double buffering mode of this component.
|
boolean |
isFullSceneAntialiasingEnabled()
Deprecated.
Returns TRUE if FSAA is currently enabled.
|
void |
paint(java.awt.Graphics g)
Deprecated.
Paints this area
|
void |
removeNotify()
Deprecated.
Destroys the peer of the drawing area.
|
void |
setDoubleBuffer(boolean flag)
Deprecated.
Turns double buffering on/off on this area (default on).
|
void |
setFullSceneAntialiasing(boolean enable)
Deprecated.
Enables or disables full-scene antialiasing (FSAA).
FSAA is supported via the ARB_multisample OpenGL extension. |
void |
setFullSceneAntialiasing(boolean enable,
float quality)
Deprecated.
Enables or disables full-scene antialiasing (FSAA).
FSAA is supported via the ARB_multisample OpenGL extension. |
void |
setGLGraphicsConfigTemplate(SwGLGraphicsConfigTemplate template)
Deprecated.
Specifies a template used when this drawing area is notified.
|
void |
setOpenGlStereoConfiguration(boolean flag)
Deprecated.
This method is called internally and should not be called directly by programs.
|
void |
update(java.awt.Graphics g)
Deprecated.
Update this area
|
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 SwDrawingArea()
public SwDrawingArea(SwGLGraphicsConfigTemplate tplt)
tplt
- a template to customize the graphics configuration.public void setGLGraphicsConfigTemplate(SwGLGraphicsConfigTemplate template)
template
- an OpenGL configuration template that is used to search
for the best graphic configuration available.public SwGLGraphicsConfig getGLGraphicsConfig()
public void addNotify() throws java.lang.UnsupportedOperationException
addNotify
in class java.awt.Canvas
java.lang.UnsupportedOperationException
Canvas
public void removeNotify()
removeNotify
in class java.awt.Component
Component
public boolean haveContext()
public com.openinventor.inventor.awt.peer.SwDrawingAreaPeer getAreaPeer()
public void setDoubleBuffer(boolean flag) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the graphic configuration can not
be applied (graphic board may not support double buffer). In such case,
the previous configuration is reset.isDoubleBuffer()
public boolean isDoubleBuffer()
setDoubleBuffer(boolean)
public void setOpenGlStereoConfiguration(boolean flag) throws java.lang.UnsupportedOperationException
SwActiveArea.setStereoMode(int)
instead to select an available
stereo viewing mode.
Select or unselect a graphic configuration for this area that support OpenGl stereoscopy. (default false) When in stereo mode, which may not work on all machines, the scene is rendered twice (in the left and right buffers) with an offset between the two views to simulate stereo viewing. Stereo glasses have to be used to see the effect. Stereo viewing is only possible with a graphics board that has support for stereo.
java.lang.UnsupportedOperationException
- if the graphic configuration can not
be applied (graphic board may not support stereo). In such case,
the previous configuration is reset.
hasOpenGlStereoConfiguration()
,
SwActiveArea.setStereoOffset(float)
public boolean hasOpenGlStereoConfiguration()
setOpenGlStereoConfiguration(boolean)
public void setFullSceneAntialiasing(boolean enable) throws java.lang.UnsupportedOperationException
enable
- Enables or disables FSAA rendering.java.lang.UnsupportedOperationException
public void setFullSceneAntialiasing(boolean enable, float quality) throws java.lang.UnsupportedOperationException
enable
- Enables or disables FSAA rendering.quality
- Specifies the level of quality of the antialiasing rendering. The
number of samples used in the antialiasing computation depends on
your graphics hardware and on your video driver. NVidia graphics
hardware can support number of samples * 2 levels of
quality (assuming the NV_multisample_filter_hint OpenGL extension
is available).java.lang.UnsupportedOperationException
public boolean isFullSceneAntialiasingEnabled()
public float getFullSceneAntialiasingQuality()
public void update(java.awt.Graphics g)
update
in class java.awt.Canvas
Canvas
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
Canvas
public SbGLShareContext getGLSharedContext()
com.openinventor.inventor.SoOffscreenRenderer#setGLSharedContext(SbGLShareContext)
,
com.openinventor.inventor.SoMPEGRenderer#setGLSharedContext(SbGLShareContext)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com