Go to the documentation of this file.
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();}
236 #endif // BALL_VIEW_KERNEL_REPRESENTATIONMANAGER_H
RepresentationList::const_iterator RepresentationsConstIterator
ConstIterator to the Representations.
void update_(Representation &rep)
std::list< Representation * > RepresentationList
void rebuildAllRepresentations()
UpdateRepresentationThread * thread_
const vector< ClippingPlane * > & getClippingPlanes() const
bool updateRunning() const
Return true, if a Representation is currently beeing updated.
Size getNumberOfRepresentations() const
Get the number of the Representations.
bool isBeeingRendered(const Representation *rep) const
Used by UpdateRepresentationThread.
bool remove(Representation &representation, bool send_message=true)
RepresentationManager(MainControl *mc=0)
HashSet< Representation * > beeing_rendered_
bool has(const Representation &representation) const
Test if a Representation is inserted.
void focusRepresentation(const Representation &rep)
void restoreRepresentations(const INIFile &in, const vector< const Composite * > &new_systems)
vector< ClippingPlane * > clipping_planes_
void storeRepresentations(INIFile &out)
RepresentationManager(const RepresentationManager &pm)
RepresentationList removedComposite(const Composite &composite, bool update=true)
void clear()
Clears also the representations.
void insertClippingPlane(ClippingPlane *plane)
MainControl * main_control_
RepresentationList::iterator RepresentationsIterator
Iteration to the Representations.
virtual ~RepresentationManager()
RepresentationsConstIterator end() const
Const Iterator pointing behind the last Representation.
void finishedRendering(Representation *rep)
BALL_EXPORT bool operator==(const String &s1, const String &s2)
RepresentationList getRepresentationsOf(const Composite &composite)
bool insert(Representation &representation, bool send_message=true)
Representation * popRepresentationToUpdate()
bool removeClippingPlane(ClippingPlane *plane)
Representation * createRepresentation()
Create a Representation and insert it.
#define BALL_CREATE(name)
HashSet< Representation * > beeing_updated_
void finishedUpdate_(Representation *rep)
bool willBeUpdated(const Representation &rep) const
Return true if a Representation will be updated.
RepresentationList representations_
bool startRendering(Representation *rep)
RepresentationsIterator begin()
Iterator to the first Representation.
RepresentationsConstIterator begin() const
ConstIterator to the first Representation.
void dump(std::ostream &s, Size depth=0) const
Dump the internal state to an output stream.
const RepresentationList & getRepresentations() const
Get the list with the Representations.
RepresentationsIterator end()
Iterator pointing behind the last Representation.
HashSet< Representation * > to_update_