cee::vis::TransparencyMode Class Reference

Controlling the technique used for transparency in the view. More...

Public Types

enum  Mode {
  AUTO, DEPTH_PEELING, DEPTH_PEELING_FRONT, WEIGHTED_AVERAGE,
  SIMPLE
}
 List of available transparency modes. More...
 

Public Member Functions

 TransparencyMode ()
 Constructs an empty object. More...
 
 TransparencyMode (const TransparencyMode &other)
 Constructs a background object as a copy of other. More...
 
TransparencyModeoperator= (const TransparencyMode &rhs)
 Assigns rhs to this background and returns a reference to this background. More...
 
Mode mode () const
 Returns the transparency mode. More...
 
unsigned int depthPeelingNumberOfPasses () const
 Returns number of depth peeling passes. More...
 

Static Public Member Functions

static TransparencyMode createDepthPeeling (unsigned int numPasses)
 Creates depth peeling with numPasses number of passes. More...
 
static TransparencyMode createDepthPeelingFront (unsigned int numPasses)
 Creates front depth peeling with numPasses number of passes. More...
 
static TransparencyMode createWeightedAverage ()
 Creates weighted average transparency. More...
 
static TransparencyMode createSimple ()
 Creates simple transparency. More...
 
static TransparencyMode createAuto ()
 Creates automatic transparency. More...
 

Detailed Description

Controlling the technique used for transparency in the view.

The transparency mode is set from View::setTransparencyMode().

Member Enumeration Documentation

List of available transparency modes.

Enumerator
AUTO 

Automatic transparency.

DEPTH_PEELING 

Depth peeling transparency.

DEPTH_PEELING_FRONT 

Front depth peeling transparency.

WEIGHTED_AVERAGE 

Weighted average transparency.

SIMPLE 

Simple transparency.

Constructor & Destructor Documentation

cee::vis::TransparencyMode::TransparencyMode ( )

Constructs an empty object.

cee::vis::TransparencyMode::TransparencyMode ( const TransparencyMode other)

Constructs a background object as a copy of other.

Member Function Documentation

TransparencyMode cee::vis::TransparencyMode::createAuto ( )
static

Creates automatic transparency.

TransparencyMode cee::vis::TransparencyMode::createDepthPeeling ( unsigned int  numPasses)
static

Creates depth peeling with numPasses number of passes.

TransparencyMode cee::vis::TransparencyMode::createDepthPeelingFront ( unsigned int  numPasses)
static

Creates front depth peeling with numPasses number of passes.

TransparencyMode cee::vis::TransparencyMode::createSimple ( )
static

Creates simple transparency.

TransparencyMode cee::vis::TransparencyMode::createWeightedAverage ( )
static

Creates weighted average transparency.

unsigned int cee::vis::TransparencyMode::depthPeelingNumberOfPasses ( ) const

Returns number of depth peeling passes.

TransparencyMode::Mode cee::vis::TransparencyMode::mode ( ) const

Returns the transparency mode.

TransparencyMode & cee::vis::TransparencyMode::operator= ( const TransparencyMode rhs)

Assigns rhs to this background and returns a reference to this background.