Developer Documentation
PostProcessorManager Class Reference

Public Member Functions

bool postProcessorExists (QString _name)
 Check if a post processor with the given name exists. More...
 
PostProcessorInfonewPostProcessor (QString _name)
 Get a new post processor Instance. More...
 
PostProcessorInfogetPostProcessor (QString _name)
 get post processor with the given name More...
 
PostProcessorInfooperator[] (unsigned int _id)
 Get the post processor with the given id. More...
 
unsigned int available ()
 number of available post processor More...
 
void setActive (unsigned int _active, int _viewerId)
 set the active post processor for viewer More...
 
void setActive (QString _active, int _id)
 Set the active post processor for viewer. More...
 
unsigned int activeId (int _id, int _chainIdx=0)
 Get the id of the active post processor for viewer at chain index. More...
 
PostProcessorInfoactive (int _id, int _chainIdx=0)
 Get the current active post processor for viewer at chain index. More...
 
Support for multiple post-processors per viewer
void append (unsigned int _active, int _viewerId)
 Append the active post processor to the chain for viewer. More...
 
void append (QString _active, int _id)
 Append the active post processor to the chain for viewer. More...
 
void insert (unsigned int _active, int _chainIdx, int _viewerId)
 Insert the active post processor to the chain for viewer. More...
 
void insert (QString _active, int _chainIdx, int _id)
 Insert the active post processor to the chain for viewer. More...
 
void remove (int _id, int _chainIdx)
 Remove a post processor at the specified chain index. More...
 
int numActive (int _id)
 Get the number of active post processors for viewer. More...
 

Private Attributes

std::vector< PostProcessorInfoavailablePostProcessors_
 Vector holding all available post processors.
 
std::vector< std::vector< unsigned int > > activePostProcessors_
 The currently active post processor chain.
 

Detailed Description

Definition at line 220 of file RendererInfo.hh.

Member Function Documentation

PostProcessorInfo * PostProcessorManager::active ( int  _id,
int  _chainIdx = 0 
)

Get the current active post processor for viewer at chain index.

Parameters
_idViewerId
_chainIdxPost processor chain index
Returns
post processor

Definition at line 326 of file RendererInfo.cc.

unsigned int PostProcessorManager::activeId ( int  _id,
int  _chainIdx = 0 
)

Get the id of the active post processor for viewer at chain index.

Parameters
_idViewerId
_chainIdxPost processor chain index
Returns
post processor id

Definition at line 342 of file RendererInfo.cc.

void PostProcessorManager::append ( unsigned int  _active,
int  _viewerId 
)

Append the active post processor to the chain for viewer.

Parameters
_viewerIdviewer id
_activeid of the post processor

Definition at line 371 of file RendererInfo.cc.

void PostProcessorManager::append ( QString  _active,
int  _id 
)

Append the active post processor to the chain for viewer.

Parameters
_idviewer id
_activename of the post processor

Definition at line 390 of file RendererInfo.cc.

unsigned int PostProcessorManager::available ( )

number of available post processor

Returns
number of available post processor

Definition at line 283 of file RendererInfo.cc.

PostProcessorInfo * PostProcessorManager::getPostProcessor ( QString  _name)

get post processor with the given name

Parameters
_nameName of the post processor
Returns
pointer or 0 if it does not exist

Definition at line 265 of file RendererInfo.cc.

void PostProcessorManager::insert ( unsigned int  _active,
int  _chainIdx,
int  _viewerId 
)

Insert the active post processor to the chain for viewer.

Parameters
_viewerIdviewer id
_chainIdxPost processor chain index
_activeid of the post processor

Definition at line 410 of file RendererInfo.cc.

void PostProcessorManager::insert ( QString  _active,
int  _chainIdx,
int  _id 
)

Insert the active post processor to the chain for viewer.

Parameters
_activename of the post processor
_chainIdxPost processor chain index
_idviewer id

Definition at line 429 of file RendererInfo.cc.

PostProcessorInfo * PostProcessorManager::newPostProcessor ( QString  _name)

Get a new post processor Instance.

Parameters
_nameName of the new post processor
Returns
Pointer to post processor. If it exists, the existing one is returned!

Definition at line 253 of file RendererInfo.cc.

int PostProcessorManager::numActive ( int  _id)

Get the number of active post processors for viewer.

Parameters
_idViewerId
Returns
PostProcessor count

Definition at line 358 of file RendererInfo.cc.

PostProcessorInfo * PostProcessorManager::operator[] ( unsigned int  _id)

Get the post processor with the given id.

Parameters
_idId of the post processor
Returns

Definition at line 274 of file RendererInfo.cc.

bool PostProcessorManager::postProcessorExists ( QString  _name)

Check if a post processor with the given name exists.

Parameters
_nameName of the post processor
Returns
exists or not

Definition at line 243 of file RendererInfo.cc.

void PostProcessorManager::remove ( int  _id,
int  _chainIdx 
)

Remove a post processor at the specified chain index.

Parameters
_idviewer id
_chainIdxPost processor chain index

Definition at line 448 of file RendererInfo.cc.

void PostProcessorManager::setActive ( unsigned int  _active,
int  _viewerId 
)

set the active post processor for viewer

Parameters
_viewerIdviewer id
_activeid of the post processor

Definition at line 287 of file RendererInfo.cc.

void PostProcessorManager::setActive ( QString  _active,
int  _id 
)

Set the active post processor for viewer.

This will reset the current post processor chain to one active post processor (the given one)

Parameters
_idviewer id
_activename of the post processor

Definition at line 304 of file RendererInfo.cc.


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