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>
Object()
Default constructor.
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_
const RepresentationList & getRepresentations() const
Get the list with the Representations.
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)
RepresentationManager(MainControl *mc=0)
bool remove(Representation &representation, bool send_message=true)
UpdateRepresentationThread * thread_
HashSet< Representation * > RepresentationSet
const vector< ClippingPlane * > & getClippingPlanes() const
friend class UpdateRepresentationThread
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.
bool insert(Representation &representation, bool send_message=true)
RepresentationsConstIterator begin() const
ConstIterator to the first Representation.
void clear()
Clears also the representations.
void finishedRendering(Representation *rep)
friend class Representation
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.
#define BALL_CREATE(name)
std::list< Representation * > RepresentationList
TMutex< BALL_DEFAULT_MUTEX_TYPE > Mutex