BALL
1.4.79
|
#include <BALL/VIEW/KERNEL/representationManager.h>
Public Types | |
Type definitions | |
typedef HashSet< Representation * > | RepresentationSet |
typedef RepresentationList::iterator | RepresentationsIterator |
Iteration to the Representations. More... | |
typedef RepresentationList::const_iterator | RepresentationsConstIterator |
ConstIterator to the Representations. More... | |
Public Member Functions | |
Constructors and Destructor | |
RepresentationManager (MainControl *mc=0) | |
RepresentationManager (const RepresentationManager &pm) | |
virtual | ~RepresentationManager () |
Public Member Functions inherited from BALL::Object | |
Object () | |
Default constructor. More... | |
Object (const Object &object) | |
Copy constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
const Object & | operator= (const Object &) |
bool | operator== (const Object &object) const |
bool | operator!= (const Object &object) const |
bool | operator< (const Object &object) const |
bool | operator<= (const Object &object) const |
bool | operator>= (const Object &object) const |
bool | operator> (const Object &object) const |
int | compare (const Object &object) const |
virtual bool | isValid () const |
virtual void | dump (::std::ostream &s=std::cout, Size depth=0) const |
Handle | getHandle () const |
Public Member Functions inherited from BALL::AutoDeletable | |
virtual | ~AutoDeletable () |
void * | operator new (size_t size) |
void | operator delete (void *ptr) |
void * | operator new (size_t size, void *ptr) |
void | operator delete (void *ptr, void *) |
bool | isAutoDeletable () const |
void | setAutoDeletable (bool enable) |
Friends | |
class | Representation |
class | UpdateRepresentationThread |
class | BALLThread |
class | MainControl |
Additional Inherited Members | |
Static Public Member Functions inherited from BALL::Object | |
static Handle | getNextHandle () |
static Handle | getNewHandle () |
Static Public Member Functions inherited from BALL::AutoDeletable | |
static void | clearLastPtr () |
Protected Member Functions inherited from BALL::AutoDeletable | |
AutoDeletable () | |
AutoDeletable (const AutoDeletable &auto_deletable, bool deep=false) | |
RepresentationManager manages the graphical Representation objects and all GeometricObject. All Representation objects which shall be inserted should be created using createRepresentation(). When the RepresentationManager is destroyed, all inserted Representation are deleted. The RepresentationManager has also the capability for multithreaded updateing of the Representation's:\ Representation::update() calls RepresentationManager::update_(Representation)\ if the code is build with support for multithreading. The update itself is done in an instance of UpdateRepresentationThread.
Definition at line 45 of file representationManager.h.
typedef RepresentationList::const_iterator BALL::VIEW::RepresentationManager::RepresentationsConstIterator |
ConstIterator to the Representations.
Definition at line 68 of file representationManager.h.
Definition at line 62 of file representationManager.h.
typedef RepresentationList::iterator BALL::VIEW::RepresentationManager::RepresentationsIterator |
Iteration to the Representations.
Definition at line 65 of file representationManager.h.
BALL::VIEW::RepresentationManager::RepresentationManager | ( | MainControl * | mc = 0 | ) |
Default Constructor The MainControl is needed for sending Messages.
BALL::VIEW::RepresentationManager::RepresentationManager | ( | const RepresentationManager & | pm | ) |
Copy constructor
|
virtual |
Destructor
|
inline |
Iterator to the first Representation.
Definition at line 134 of file representationManager.h.
|
inline |
ConstIterator to the first Representation.
Definition at line 138 of file representationManager.h.
|
virtual |
Clears also the representations.
Reimplemented from BALL::Object.
Representation* BALL::VIEW::RepresentationManager::createRepresentation | ( | ) |
Create a Representation and insert it.
void BALL::VIEW::RepresentationManager::dump | ( | std::ostream & | s, |
Size | depth = 0 |
||
) | const |
Dump the internal state to an output stream.
|
inline |
Iterator pointing behind the last Representation.
Definition at line 142 of file representationManager.h.
|
inline |
Const Iterator pointing behind the last Representation.
Definition at line 146 of file representationManager.h.
void BALL::VIEW::RepresentationManager::finishedRendering | ( | Representation * | rep | ) |
|
protected |
void BALL::VIEW::RepresentationManager::focusRepresentation | ( | const Representation & | rep | ) |
|
inline |
Definition at line 168 of file representationManager.h.
|
inline |
Get the number of the Representations.
Definition at line 121 of file representationManager.h.
|
inline |
Get the list with the Representations.
Definition at line 117 of file representationManager.h.
RepresentationList BALL::VIEW::RepresentationManager::getRepresentationsOf | ( | const Composite & | composite | ) |
Get a list of Representation, which were build for a Composite. Method is called in MainControl, after receiving CompositeChangedMessage.
bool BALL::VIEW::RepresentationManager::has | ( | const Representation & | representation | ) | const |
Test if a Representation is inserted.
bool BALL::VIEW::RepresentationManager::insert | ( | Representation & | representation, |
bool | send_message = true |
||
) |
Insert a Representation If send_message is set to true, a RepresentationMessage with type ADD is send to notify all ModularWidget's.
void BALL::VIEW::RepresentationManager::insertClippingPlane | ( | ClippingPlane * | plane | ) |
bool BALL::VIEW::RepresentationManager::isBeeingRendered | ( | const Representation * | rep | ) | const |
Used by UpdateRepresentationThread.
const RepresentationManager& BALL::VIEW::RepresentationManager::operator= | ( | const RepresentationManager & | pm | ) |
bool BALL::VIEW::RepresentationManager::operator== | ( | const RepresentationManager & | pm | ) | const |
|
protected |
void BALL::VIEW::RepresentationManager::rebuildAllRepresentations | ( | ) |
bool BALL::VIEW::RepresentationManager::remove | ( | Representation & | representation, |
bool | send_message = true |
||
) |
Delete a representation. It will be removed from the list of representations, its GeometricObject will be deleted. If send_message is set to true, a RepresentationMessage with type REMOVE is send to notify all ModularWidget's.
bool BALL::VIEW::RepresentationManager::removeClippingPlane | ( | ClippingPlane * | plane | ) |
RepresentationList BALL::VIEW::RepresentationManager::removedComposite | ( | const Composite & | composite, |
bool | update = true |
||
) |
Clean up after a Composite was removed. Method is called in MainControl, after removal of a composite (e.g. a System) and it removes all representations, which contain the Composite. It can also update all Representations, which have still have other Composites than the one to be deleted.
void BALL::VIEW::RepresentationManager::restoreRepresentations | ( | const INIFile & | in, |
const vector< const Composite * > & | new_systems | ||
) |
bool BALL::VIEW::RepresentationManager::startRendering | ( | Representation * | rep | ) |
void BALL::VIEW::RepresentationManager::storeRepresentations | ( | INIFile & | out | ) |
|
protected |
bool BALL::VIEW::RepresentationManager::updateRunning | ( | ) | const |
Return true, if a Representation is currently beeing updated.
bool BALL::VIEW::RepresentationManager::willBeUpdated | ( | const Representation & | rep | ) | const |
Return true if a Representation will be updated.
|
friend |
Definition at line 50 of file representationManager.h.
|
friend |
Definition at line 51 of file representationManager.h.
|
friend |
Definition at line 48 of file representationManager.h.
|
friend |
Definition at line 49 of file representationManager.h.
|
protected |
Definition at line 216 of file representationManager.h.
|
protected |
Definition at line 217 of file representationManager.h.
|
protected |
Definition at line 220 of file representationManager.h.
|
protected |
Definition at line 230 of file representationManager.h.
|
protected |
Definition at line 227 of file representationManager.h.
|
protected |
Definition at line 214 of file representationManager.h.
|
protected |
Definition at line 228 of file representationManager.h.
|
protected |
Definition at line 226 of file representationManager.h.
|
protected |
Definition at line 218 of file representationManager.h.
|
mutableprotected |
Definition at line 224 of file representationManager.h.