OverlayManager Class Reference

#include <overlay_manager.hh>

Data Structures

struct  OverlayInfo

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  ) 
~OverlayManager (  ) 

Member Function Documentation

void ActivateOverlay ( int  id  ) 

activate overlay by id

void ActivateOverlay ( const String name  ) 

activate overlay by name

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 ( int  id  ) 

delete overlay by id

void DeleteOverlay ( const String name  ) 

delete overlay by name

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 ( int  id  ) 
bool IsActive ( const String name  ) 
bool IsLocked ( int  id  ) 
bool IsLocked ( const String name  ) 
bool IsVisible ( int  id  ) 
bool IsVisible ( const String name  ) 
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 ( int  id  ) 

retrieve overlay by id

OverlayPtr RetrieveOverlay ( const String name  ) 

retrieve overlay by name

void SetOverlayLock ( int  id,
bool  visible 
)

lock/unlock overlay by id

void SetOverlayLock ( const String name,
bool  visible 
)

lock/unlock overlay by name

void SetOverlayVisibility ( int  id,
bool  visible 
)

show/hide overlay by id

void SetOverlayVisibility ( const String name,
bool  visible 
)

show/hide overlay by name


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1