OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Data Structures | Public Member Functions
OverlayManager Class Reference

#include <overlay_manager.hh>

Public Member Functions

 OverlayManager (QWidget *ref=0)
 
 ~OverlayManager ()
 
void Attach (OverlayManagerObserver *obs)
 
void Detach (OverlayManagerObserver *obs)
 
int AddOverlay (const OverlayPtr &ov, bool make_active=true)
 
void ActivateOverlay (const String &name)
 
void ActivateOverlay (int id)
 
void SetOverlayVisibility (const String &name, bool visible)
 
void SetOverlayVisibility (int id, bool visible)
 
void SetOverlayLock (const String &name, bool visible)
 
void SetOverlayLock (int id, bool visible)
 
OverlayPtr GetActiveOverlay () const
 
OverlayPtr RetrieveOverlay (const String &name)
 
OverlayPtr RetrieveOverlay (int id)
 
std::vector< int > GetIDList () const
 
void DeleteOverlay (const String &name)
 
void DeleteOverlay (int id)
 
void DeleteAllOverlays ()
 
void DeleteActiveOverlay ()
 
void OnDraw (QPainter &pnt, DataViewerPanel *dvp) const
 
bool OnMouseEvent (QMouseEvent *e, DataViewerPanel *dvp, const QPoint &lastmouse) const
 
bool OnKeyEvent (QKeyEvent *e, DataViewerPanel *dvp) const
 
bool IsVisible (const String &name)
 
bool IsVisible (int id)
 
bool IsLocked (const String &name)
 
bool IsLocked (int id)
 
bool IsActive (const String &name)
 
bool IsActive (int id)
 
String GetOverlayName (int id)
 
int GetOverlayId (const String &name)
 
void RequestRedraw ()
 

Detailed Description

Definition at line 48 of file overlay_manager.hh.

Constructor & Destructor Documentation

OverlayManager ( QWidget *  ref = 0)

Member Function Documentation

void ActivateOverlay ( const String name)

activate overlay by name

void ActivateOverlay ( int  id)

activate overlay by id

int AddOverlay ( const OverlayPtr ov,
bool  make_active = true 
)

add overlay, returning a unique id

void Attach ( OverlayManagerObserver obs)

attach an observer to this manager

void DeleteActiveOverlay ( )
void DeleteAllOverlays ( )
void DeleteOverlay ( const String name)

delete overlay by name

void DeleteOverlay ( int  id)

delete overlay by id

void Detach ( OverlayManagerObserver obs)

detach an observer from this manager

OverlayPtr GetActiveOverlay ( ) const

return currently active overlay

std::vector<int> GetIDList ( ) const

return list with all current overlay ids

int GetOverlayId ( const String name)
String GetOverlayName ( int  id)
bool IsActive ( const String name)
bool IsActive ( int  id)
bool IsLocked ( const String name)
bool IsLocked ( int  id)
bool IsVisible ( const String name)
bool IsVisible ( int  id)
void OnDraw ( QPainter &  pnt,
DataViewerPanel dvp 
) const
bool OnKeyEvent ( QKeyEvent *  e,
DataViewerPanel dvp 
) const
bool OnMouseEvent ( QMouseEvent *  e,
DataViewerPanel dvp,
const QPoint &  lastmouse 
) const
void RequestRedraw ( )
OverlayPtr RetrieveOverlay ( const String name)

retrieve overlay by name

OverlayPtr RetrieveOverlay ( int  id)

retrieve overlay by id

void SetOverlayLock ( const String name,
bool  visible 
)

lock/unlock overlay by name

void SetOverlayLock ( int  id,
bool  visible 
)

lock/unlock overlay by id

void SetOverlayVisibility ( const String name,
bool  visible 
)

show/hide overlay by name

void SetOverlayVisibility ( int  id,
bool  visible 
)

show/hide overlay by id


The documentation for this class was generated from the following file: