Class SoFullSceneAntialiasingParameters
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.antialiasing.SoAntialiasingParameters
com.openinventor.inventor.antialiasing.SoFullSceneAntialiasingParameters
Antialiasing parameters class for the FSAA algorithm.
This class provides the different parameters that can be set to configure the FSAA antialiasing algorithm. These objects are used with the setAntialiasing() method in
).
SoSceneManager
and some viewer classes (e.g.
invalid reference
SoWinGLWidget
Limitations
The high quality filter is available only on NVidia platforms and only if the extension GL_NV_multisample_filter_hint is available.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionSoFullSceneAntialiasingParameters
(int numSamples, boolean useHQ) Calls SoFullSceneAntialiasingParameters(numSamples, useHQ, com.openinventor.inventor.nodes.SoFullSceneAntialiasing.Filters.ALL.getValue()).SoFullSceneAntialiasingParameters
(int numSamples, boolean useHQ, int filterMask) Constructor that takes the different parameters that can be configured. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the requested combination of the different values ofSoFullSceneAntialiasing.Filter
.int
Returns the requested number of samples.boolean
Returns true if the high quality filter is requested.Methods inherited from class com.openinventor.inventor.antialiasing.SoAntialiasingParameters
copy
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoFullSceneAntialiasingParameters
public SoFullSceneAntialiasingParameters(int numSamples, boolean useHQ) Calls SoFullSceneAntialiasingParameters(numSamples, useHQ, com.openinventor.inventor.nodes.SoFullSceneAntialiasing.Filters.ALL.getValue()). -
SoFullSceneAntialiasingParameters
public SoFullSceneAntialiasingParameters(int numSamples, boolean useHQ, int filterMask) Constructor that takes the different parameters that can be configured.- Parameters:
numSamples
- The number of samples we want to enable in the window's pixel format.useHQ
- Indicates if the high quality filter provided by NVidia should be enabled.filterMask
- Is a combination ofSoFullSceneAntialiasing.Filter
enum values to define the primitives affected by the FSAA.
-
-
Method Details
-
useHighQualityFilter
public boolean useHighQualityFilter()Returns true if the high quality filter is requested. -
getNumSamples
public int getNumSamples()Returns the requested number of samples. The window's pixel format will have up to this number of samples. If the graphic device doesn't support this number of samples a lower number will be used. -
getFilterMask
public int getFilterMask()Returns the requested combination of the different values ofSoFullSceneAntialiasing.Filter
.
-