Node that controls full-scene antialiasing. More...
#include <Inventor/nodes/SoFullSceneAntialiasing.h>
Public Types | |
enum | Filter { POINTS = SoFullSceneAntialiasingElement::POINTS, LINES = SoFullSceneAntialiasingElement::LINES, POLYGONS = SoFullSceneAntialiasingElement::POLYGONS, TEXT = SoFullSceneAntialiasingElement::TEXT, ALL = SoFullSceneAntialiasingElement::ALL } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoFullSceneAntialiasing () | |
virtual void | setOverride (const SbBool state) |
virtual SbBool | isOverride () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | on |
SoSFBitMask | filter |
This class controls full-scene antialiasing. This node can be used to enable or disable the antialiasing mode on a part of a scene graph.
This node has no effect if full-scene antialiasing is not supported in the graphics hardware or has not been enabled. Full-scene antialiasing can be enabled by defining a graphic configuration template, by calling the setAntialiasing() method in SoSceneManager and some viewer classes, or (on some systems) by the user through the system display properties dialog.
The filter field allows you to select what kind of nodes (derived from SoShape) will be antialiased. For certain primitives antialiasing may be undesirable. For example, bitmap text (SoText2, etc.) may be "blurred" by antialiasing.
The filter result is highly dependent on your graphics hardware.
Note: The quality level specified by the setAntialiasing() method cannot be changed during a traversal because it depends on the pixel format.
on | TRUE |
filter | ALL |
SoGLGraphicConfigTemplate, SoWinGLWidget::setAntialiasing()
Defines the types of rendering shapes.
POINTS |
The shape is render based on points (Ex: SoPointSet). |
LINES |
The shape is render based on lines (Ex: SoLineSet). |
POLYGONS |
The shape is render based on polygons (Ex: SoFaceSet). |
TEXT |
The shape is a text and follows the special filter for texts. |
ALL |
No specific filter for antialiasing (Default). |
SoFullSceneAntialiasing::SoFullSceneAntialiasing | ( | ) |
Constructor.
static SoType SoFullSceneAntialiasing::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoFullSceneAntialiasing::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
virtual SbBool SoFullSceneAntialiasing::isOverride | ( | ) | const [inline, virtual] |
Returns the state of the override field.
Reimplemented from SoNode.
virtual void SoFullSceneAntialiasing::setOverride | ( | const SbBool | state | ) | [inline, virtual] |
A bit-wise combination of LINES, POINTS, POLYGONS, and TEXT that determines which primitive types should be antialiased.
Default = ALL. The default value can be set using the environment variable OIV_FULL_SCENE_ANTIALIASING_FILTER. Valid values are ALL, or any combination of LINES, POINTS, POLYGONS, and TEXT.
The rules to determine if the antialiasing extension should stay enabled or should be disabled are described in the following tables:
|
|
||||||||||||||||||||||||||||||||||
|
|
Enables/disables full-scene antialiasing.
Default = TRUE. The default value can be set using the environment variable OIV_FULL_SCENE_ANTIALIASING (0 = FALSE, 1 = TRUE).