43#include <OpenFlipper/common/RendererInfo.hh>
49 return renderManager_;
53 return postProcessorManager_;
56RendererInfo::RendererInfo():
71RenderManager::RenderManager()
148 std::cerr <<
"RenderManager::setActive illegal viewer id: " << _id << std::endl;
159 std::cerr <<
"Out of range error when setting active renderer" << std::endl;
165 std::cerr <<
"RenderManager::setActive illegal viewer id: " << _id << std::endl;
217PostProcessorInfo::PostProcessorInfo():
225PostProcessorManager::PostProcessorManager()
281 if ( _viewerId < 0 ) {
282 std::cerr <<
"PostProcessorManager::setActive illegal viewer id: " << _viewerId << std::endl;
299 std::cerr <<
"PostProcessorManager::setActive illegal viewer id: " << _id << std::endl;
365 if ( _viewerId < 0 ) {
366 std::cerr <<
"PostProcessorManager::append illegal viewer id: " << _viewerId << std::endl;
377 std::cerr <<
"Out of range error when setting active post processor" << std::endl;
385 std::cerr <<
"PostProcessorManager::append illegal viewer id: " << _id << std::endl;
404 if ( _viewerId < 0 ) {
405 std::cerr <<
"PostProcessorManager::insert illegal viewer id: " << _viewerId << std::endl;
416 std::cerr <<
"Out of range error when setting active post processor" << std::endl;
424 std::cerr <<
"PostProcessorManager::insert illegal viewer id: " << _id << std::endl;
Interface to add global image post processor functions from within plugins.
void setActive(unsigned int _active, int _viewerId)
set the active post processor for viewer
unsigned int activeId(int _id, int _chainIdx=0)
Get the id of the active post processor for viewer at chain index.
PostProcessorInfo * newPostProcessor(QString _name)
Get a new post processor Instance.
size_t available()
number of available post processor
std::vector< PostProcessorInfo > availablePostProcessors_
Vector holding all available post processors.
int numActive(int _id)
Get the number of active post processors for viewer.
PostProcessorInfo * getPostProcessor(QString _name)
get post processor with the given name
void append(unsigned int _active, int _viewerId)
Append the active post processor to the chain for viewer.
std::vector< std::vector< unsigned int > > activePostProcessors_
The currently active post processor chain.
void remove(int _id, int _chainIdx)
Remove a post processor at the specified chain index.
PostProcessorInfo * active(int _id, int _chainIdx=0)
Get the current active post processor for viewer at chain index.
PostProcessorInfo * operator[](unsigned int _id)
Get the post processor with the given id.
void insert(unsigned int _active, int _chainIdx, int _viewerId)
Insert the active post processor to the chain for viewer.
bool postProcessorExists(QString _name)
Check if a post processor with the given name exists.
Interface to add additional rendering functions from within plugins.
int countRenderers(ACG::SceneGraph::DrawModes::DrawMode _mode)
count renderers for a DrawMode (excluding the default renderer)
void setActive(unsigned int _active, int _id)
set the active renderer
RendererInfo * active(int _id)
Get the current active renderer.
RendererInfo * newRenderer(QString _name)
Get a new renderer Instance.
std::vector< unsigned int > activeRenderers_
The currently active renderer ids.
int getRendererId(QString _name)
get renderer id with the given name
RendererInfo * operator[](unsigned int _id)
Get the renderer with the given id.
size_t available()
number of available renderers
unsigned int activeId(int _id)
Get the id of the active renderer.
bool rendererExists(QString _name)
Check if a renderer with the given name exists.
RendererInfo * getRenderer(QString _name)
get renderer with the given name
std::vector< RendererInfo > availableRenderers_
Vector holding all available renderers.