OpenStructure
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()

OverlayManager ( QWidget *  ref = 0)

◆ ~OverlayManager()

Member Function Documentation

◆ ActivateOverlay() [1/2]

void ActivateOverlay ( const String name)

activate overlay by name

◆ ActivateOverlay() [2/2]

void ActivateOverlay ( int  id)

activate overlay by id

◆ AddOverlay()

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

add overlay, returning a unique id

◆ Attach()

void Attach ( OverlayManagerObserver obs)

attach an observer to this manager

◆ DeleteActiveOverlay()

void DeleteActiveOverlay ( )

◆ DeleteAllOverlays()

void DeleteAllOverlays ( )

◆ DeleteOverlay() [1/2]

void DeleteOverlay ( const String name)

delete overlay by name

◆ DeleteOverlay() [2/2]

void DeleteOverlay ( int  id)

delete overlay by id

◆ Detach()

void Detach ( OverlayManagerObserver obs)

detach an observer from this manager

◆ GetActiveOverlay()

OverlayPtr GetActiveOverlay ( ) const

return currently active overlay

◆ GetIDList()

std::vector<int> GetIDList ( ) const

return list with all current overlay ids

◆ GetOverlayId()

int GetOverlayId ( const String name)

◆ GetOverlayName()

String GetOverlayName ( int  id)

◆ IsActive() [1/2]

bool IsActive ( const String name)

◆ IsActive() [2/2]

bool IsActive ( int  id)

◆ IsLocked() [1/2]

bool IsLocked ( const String name)

◆ IsLocked() [2/2]

bool IsLocked ( int  id)

◆ IsVisible() [1/2]

bool IsVisible ( const String name)

◆ IsVisible() [2/2]

bool IsVisible ( int  id)

◆ OnDraw()

void OnDraw ( QPainter &  pnt,
DataViewerPanel dvp 
) const

◆ OnKeyEvent()

bool OnKeyEvent ( QKeyEvent *  e,
DataViewerPanel dvp 
) const

◆ OnMouseEvent()

bool OnMouseEvent ( QMouseEvent *  e,
DataViewerPanel dvp,
const QPoint &  lastmouse 
) const

◆ RequestRedraw()

void RequestRedraw ( )

◆ RetrieveOverlay() [1/2]

OverlayPtr RetrieveOverlay ( const String name)

retrieve overlay by name

◆ RetrieveOverlay() [2/2]

OverlayPtr RetrieveOverlay ( int  id)

retrieve overlay by id

◆ SetOverlayLock() [1/2]

void SetOverlayLock ( const String name,
bool  visible 
)

lock/unlock overlay by name

◆ SetOverlayLock() [2/2]

void SetOverlayLock ( int  id,
bool  visible 
)

lock/unlock overlay by id

◆ SetOverlayVisibility() [1/2]

void SetOverlayVisibility ( const String name,
bool  visible 
)

show/hide overlay by name

◆ SetOverlayVisibility() [2/2]

void SetOverlayVisibility ( int  id,
bool  visible 
)

show/hide overlay by id


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