Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoAccumulationAntialiasingParameters Class Reference

VSG extension Antialiasing parameters class for the accumulation buffer algorithm. More...

#include <Inventor/antialiasing/SoAccumulationAntialiasingParameters.h>

+ Inheritance diagram for SoAccumulationAntialiasingParameters:

Public Member Functions

 SoAccumulationAntialiasingParameters (const bool smooth, const int numPasses)
 Constructor which takes as input two parameters.
 
bool isSmooth () const
 Returns true if line and point smoothing is requested.
 
int getNumPasses () const
 Returns the number of rendering passes requested for the antialiasing process.
 
virtual ~SoAccumulationAntialiasingParameters ()
 
virtual SoAntialiasingParameterscopy () const
 Copy to a new instance.
 
- Public Member Functions inherited from SoAntialiasingParameters
virtual ~SoAntialiasingParameters ()
 Default destructor.
 

Detailed Description

VSG extension Antialiasing parameters class for the accumulation buffer algorithm.

This class provides the different parameters that can be set to configure the accumulation buffer antialiasing algorithm. These objects are used with the setAntialiasing() method in SoSceneManager and some viewer classes (e.g. SoWinGLWidget).

There are actually two kinds of antialiasing available: smoothing and multipass antialiasing. If smoothing is set to TRUE, smoothing is enabled. Smoothing uses OpenGL's line- and point-smoothing features to provide cheap antialiasing of lines and points. Line smoothing is an inexpensive solution for wire frame geometry. The value of numPasses controls multipass antialiasing. Each time a render action is applied, Open Inventor renders the scene numPasses times from slightly different camera positions, averaging the results. numPasses can be from one to 255, inclusive. Setting numPasses to one disables multipass antialiasing. You can use either, both, or neither of these antialiasing techniques. By default, both smoothing and multipass antialiasing are disabled.

Increasing the number of render passes can significantly reduce performance for large scenes. As a result this technique has generally been replaced by FSAA and FXAA techniques.

SEE ALSO

SoFullSceneAntialiasingParameters, SoFXAAParameters

Definition at line 59 of file SoAccumulationAntialiasingParameters.h.

Constructor & Destructor Documentation

◆ SoAccumulationAntialiasingParameters()

SoAccumulationAntialiasingParameters::SoAccumulationAntialiasingParameters ( const bool  smooth,
const int  numPasses 
)

Constructor which takes as input two parameters.

Parameters
smoothIndicates if we want to turn on line and point smoothing.
numPassesThe number of rendering passes we want to accumulate in the accumulation buffers. numPasses should be >= 1.

◆ ~SoAccumulationAntialiasingParameters()

virtual SoAccumulationAntialiasingParameters::~SoAccumulationAntialiasingParameters ( )
virtual

Member Function Documentation

◆ copy()

virtual SoAntialiasingParameters * SoAccumulationAntialiasingParameters::copy ( ) const
inlinevirtual

Copy to a new instance.

Implements SoAntialiasingParameters.

Definition at line 83 of file SoAccumulationAntialiasingParameters.h.

◆ getNumPasses()

int SoAccumulationAntialiasingParameters::getNumPasses ( ) const

Returns the number of rendering passes requested for the antialiasing process.

◆ isSmooth()

bool SoAccumulationAntialiasingParameters::isSmooth ( ) const

Returns true if line and point smoothing is requested.


The documentation for this class was generated from the following file: