6#ifndef BALL_VIEW_KERNEL_REPRESENTATIONMANAGER_H
7#define BALL_VIEW_KERNEL_REPRESENTATIONMANAGER_H
9#ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
13#ifndef BALL_SYSTEM_MUTEX_H
17#include <QtCore/QCoreApplication>
18#include <QtCore/QWaitCondition>
32 class UpdateRepresentationThread;
118 {
return representations_;}
122 {
return representations_.size();}
135 {
return representations_.begin();}
139 {
return representations_.begin();}
143 {
return representations_.end();}
147 {
return representations_.end();}
#define BALL_CREATE(name)
std::list< Representation * > RepresentationList
RepresentationsConstIterator end() const
Const Iterator pointing behind the last Representation.
MainControl * main_control_
RepresentationList removedComposite(const Composite &composite, bool update=true)
HashSet< Representation * > beeing_rendered_
vector< ClippingPlane * > clipping_planes_
Representation * popRepresentationToUpdate()
HashSet< Representation * > beeing_updated_
bool removeClippingPlane(ClippingPlane *plane)
RepresentationList representations_
Representation * createRepresentation()
Create a Representation and insert it.
void dump(std::ostream &s, Size depth=0) const
Dump the internal state to an output stream.
bool willBeUpdated(const Representation &rep) const
Return true if a Representation will be updated.
void insertClippingPlane(ClippingPlane *plane)
HashSet< Representation * > to_update_
void restoreRepresentations(const INIFile &in, const vector< const Composite * > &new_systems)
UpdateRepresentationThread * thread_
HashSet< Representation * > RepresentationSet
const vector< ClippingPlane * > & getClippingPlanes() const
void update_(Representation &rep)
void finishedUpdate_(Representation *rep)
RepresentationList::iterator RepresentationsIterator
Iteration to the Representations.
bool startRendering(Representation *rep)
RepresentationList::const_iterator RepresentationsConstIterator
ConstIterator to the Representations.
RepresentationsConstIterator begin() const
ConstIterator to the first Representation.
void finishedRendering(Representation *rep)
RepresentationsIterator end()
Iterator pointing behind the last Representation.
bool has(const Representation &representation) const
Test if a Representation is inserted.
RepresentationList getRepresentationsOf(const Composite &composite)
void focusRepresentation(const Representation &rep)
void rebuildAllRepresentations()
Size getNumberOfRepresentations() const
Get the number of the Representations.
RepresentationsIterator begin()
Iterator to the first Representation.
bool isBeeingRendered(const Representation *rep) const
Used by UpdateRepresentationThread.
void storeRepresentations(INIFile &out)
bool updateRunning() const
Return true, if a Representation is currently beeing updated.