52 #include <OpenFlipper/common/RendererInfo.hh>
58 return renderManager_;
62 return postProcessorManager_;
65 RendererInfo::RendererInfo():
80 RenderManager::RenderManager()
157 std::cerr <<
"RenderManager::setActive illegal viewer id: " << _id << std::endl;
168 std::cerr <<
"Out of range error when setting active renderer" << std::endl;
174 std::cerr <<
"RenderManager::setActive illegal viewer id: " << _id << std::endl;
226 PostProcessorInfo::PostProcessorInfo():
234 PostProcessorManager::PostProcessorManager()
290 if ( _viewerId < 0 ) {
291 std::cerr <<
"PostProcessorManager::setActive illegal viewer id: " << _viewerId << std::endl;
308 std::cerr <<
"PostProcessorManager::setActive illegal viewer id: " << _id << std::endl;
374 if ( _viewerId < 0 ) {
375 std::cerr <<
"PostProcessorManager::append illegal viewer id: " << _viewerId << std::endl;
386 std::cerr <<
"Out of range error when setting active post processor" << std::endl;
394 std::cerr <<
"PostProcessorManager::append illegal viewer id: " << _id << std::endl;
413 if ( _viewerId < 0 ) {
414 std::cerr <<
"PostProcessorManager::insert illegal viewer id: " << _viewerId << std::endl;
425 std::cerr <<
"Out of range error when setting active post processor" << std::endl;
433 std::cerr <<
"PostProcessorManager::insert illegal viewer id: " << _id << std::endl;
int countRenderers(ACG::SceneGraph::DrawModes::DrawMode _mode)
count renderers for a DrawMode (excluding the default renderer)
void remove(int _id, int _chainIdx)
Remove a post processor at the specified chain index.
std::vector< std::vector< unsigned int > > activePostProcessors_
The currently active post processor chain.
unsigned int available()
number of available post processor
std::vector< PostProcessorInfo > availablePostProcessors_
Vector holding all available post processors.
bool postProcessorExists(QString _name)
Check if a post processor with the given name exists.
void append(unsigned int _active, int _viewerId)
Append the active post processor to the chain for viewer.
PostProcessorInfo * getPostProcessor(QString _name)
get post processor with the given name
Interface to add additional rendering functions from within plugins.
void setActive(unsigned int _active, int _viewerId)
set the active post processor for viewer
PostProcessorInfo * operator[](unsigned int _id)
Get the post processor with the given id.
PostProcessorInfo * newPostProcessor(QString _name)
Get a new post processor Instance.
RendererInfo * active(int _id)
Get the current active renderer.
void insert(unsigned int _active, int _chainIdx, int _viewerId)
Insert the active post processor to the chain for viewer.
unsigned int available()
number of available renderers
int numActive(int _id)
Get the number of active post processors for viewer.
RendererInfo * operator[](unsigned int _id)
Get the renderer with the given id.
bool rendererExists(QString _name)
Check if a renderer with the given name exists.
RendererInfo * newRenderer(QString _name)
Get a new renderer Instance.
unsigned int activeId(int _id)
Get the id of the active renderer.
PostProcessorInfo * active(int _id, int _chainIdx=0)
Get the current active post processor for viewer at chain index.
Interface to add global image post processor functions from within plugins.
std::vector< unsigned int > activeRenderers_
The currently active renderer ids.
int getRendererId(QString _name)
get renderer id with the given name
void setActive(unsigned int _active, int _id)
set the active renderer
RendererInfo * getRenderer(QString _name)
get renderer with the given name
unsigned int activeId(int _id, int _chainIdx=0)
Get the id of the active post processor for viewer at chain index.
std::vector< RendererInfo > availableRenderers_
Vector holding all available renderers.