ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
albaViewManager Class Reference

#include <albaViewManager.h>

Inheritance diagram for albaViewManager:
Inheritance graph
[legend]
Collaboration diagram for albaViewManager:
Collaboration graph
[legend]

Public Member Functions

 albaViewManager ()
 
 ~albaViewManager ()
 
void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void FillMenu (wxMenu *menu)
 
bool IsVisibleInMenu (albaView *v)
 
void VmeAdd (albaVME *n)
 
void VmeRemove (albaVME *n)
 
void VmeSelect (albaVME *vme)
 
void VmeShow (albaVME *vme, bool show)
 
void VmeModified (albaVME *vme)
 
virtual void ViewAdd (albaView *view, bool visibleInMenu=true)
 
void ViewSelected (albaView *view)
 
void Activate (albaView *view)
 
virtual albaViewViewCreate (int id)
 
virtual albaViewViewCreate (wxString label)
 
void ViewInsert (albaView *view)
 
virtual void ViewDelete (albaView *view)
 
virtual void ViewDeleteAll ()
 
void CameraReset (bool sel=false)
 
void CameraReset (albaVME *vme)
 
void CameraUpdate (bool only_selected=false)
 
void CameraFlyToMode ()
 
void PropertyUpdate (bool fromTag=false)
 
albaViewGetSelectedView ()
 
albaVMEGetCurrentRoot ()
 
albaViewGetList ()
 
albaViewGetFromList (const char *label)
 
albaView ** GetListTemplate ()
 
void OnQuit ()
 
albaViewGetView (int id, int mult)
 
void SetMouse (albaDeviceButtonsPadMouse *mouse)
 
albaGUIGetSettingsGui ()
 
void OpenOnlyViewForType (int chose)
 
void MaximizeViewOnOpen (int chose)
 
void EnableViewSettings (bool enable=true)
 

Protected Member Functions

void InitializeSettings ()
 

Protected Attributes

albaDeviceButtonsPadMousem_Mouse
 
albaViewm_ViewList
 
albaViewm_ViewTemplate [MAXVIEW]
 
int m_TemplateNum
 
albaObserverm_Listener
 
albaVMERootm_RootVme
 
albaVMEm_SelectedVme
 
albaViewm_SelectedView
 
albaRWIBasem_SelectedRWI
 
albaViewm_ViewBeingCreated
 
albaViewm_ViewMatrixID [MAXVIEW][MAXVIEW]
 
std::vector< long > m_IdInvisibleMenuList
 
albaGUIm_SettingsGui
 
wxColour m_ViewColorBackground
 
int m_ViewMaximize
 
int m_ViewOpenOnlyOne
 

Friends

class albaViewManagerTest
 

Detailed Description

An implementation of albaViewManager with [D]ynamic view [C]reation feature.

Definition at line 57 of file albaViewManager.h.

Constructor & Destructor Documentation

◆ albaViewManager()

albaViewManager::albaViewManager ( )

◆ ~albaViewManager()

albaViewManager::~albaViewManager ( )

Member Function Documentation

◆ SetListener()

void albaViewManager::SetListener ( albaObserver Listener)
inline

Definition at line 63 of file albaViewManager.h.

◆ OnEvent()

virtual void albaViewManager::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ FillMenu()

void albaViewManager::FillMenu ( wxMenu *  menu)

Fill the main menù with plugged views.

◆ IsVisibleInMenu()

bool albaViewManager::IsVisibleInMenu ( albaView v)

Check if the view 'v' should be hidden from the 'View' menu.

◆ VmeAdd()

void albaViewManager::VmeAdd ( albaVME n)

Add the vme to all views.

◆ VmeRemove()

void albaViewManager::VmeRemove ( albaVME n)

Remove the vme from all views.

◆ VmeSelect()

void albaViewManager::VmeSelect ( albaVME vme)

Show the selection of the vme in all views.

◆ VmeShow()

void albaViewManager::VmeShow ( albaVME vme,
bool  show 
)

Show/Hide the vme in the selected view.

◆ VmeModified()

void albaViewManager::VmeModified ( albaVME vme)

inform the views that a vme was modified

◆ ViewAdd()

virtual void albaViewManager::ViewAdd ( albaView view,
bool  visibleInMenu = true 
)
virtual

Add the View to the view-list.

◆ ViewSelected()

void albaViewManager::ViewSelected ( albaView view)

Pass the selected render window to the mouse device.

◆ Activate()

void albaViewManager::Activate ( albaView view)

Activate the view from software to simulate the click on the view (used by remote).

◆ ViewCreate() [1/2]

virtual albaView * albaViewManager::ViewCreate ( int  id)
virtual

Create a view at index 'id' of the view-list.

◆ ViewCreate() [2/2]

virtual albaView * albaViewManager::ViewCreate ( wxString  label)
virtual

Create a view given the type.

◆ ViewInsert()

void albaViewManager::ViewInsert ( albaView view)

Insert the view into the view-list, fill the view with the vme tree and select the selected vme.

◆ ViewDelete()

virtual void albaViewManager::ViewDelete ( albaView view)
virtual

Remove the view from the view-list and delete it.

◆ ViewDeleteAll()

virtual void albaViewManager::ViewDeleteAll ( )
virtual

Delete all view.

◆ CameraReset() [1/2]

void albaViewManager::CameraReset ( bool  sel = false)

Reset the camera to fit the selected vme (if sel = true) or all (if sel = false).

apply to the selected view only.

◆ CameraReset() [2/2]

void albaViewManager::CameraReset ( albaVME vme)

Reset the camera to fit the specified vme.

apply to the selected view only.

◆ CameraUpdate()

void albaViewManager::CameraUpdate ( bool  only_selected = false)

Update the camera for all opened views; optionally the Update can be limited for the selected view.

◆ CameraFlyToMode()

void albaViewManager::CameraFlyToMode ( )

Set the FlyTo mode for the selected view.

◆ PropertyUpdate()

void albaViewManager::PropertyUpdate ( bool  fromTag = false)

Call PropertyUpdate for all views.

◆ GetSelectedView()

albaView * albaViewManager::GetSelectedView ( )

Return the selected view.

◆ GetCurrentRoot()

albaVME * albaViewManager::GetCurrentRoot ( )
inline

Return the root of the vme tree.

Definition at line 130 of file albaViewManager.h.

◆ GetList()

albaView * albaViewManager::GetList ( )
inline

Return the created view-list.

Definition at line 133 of file albaViewManager.h.

◆ GetFromList()

albaView * albaViewManager::GetFromList ( const char *  label)

Return a view (defined by label) if is present on open wiews list.

◆ GetListTemplate()

albaView ** albaViewManager::GetListTemplate ( )
inline

Return the plugged view-list.

Definition at line 139 of file albaViewManager.h.

◆ OnQuit()

void albaViewManager::OnQuit ( )

Empty.

◆ GetView()

albaView * albaViewManager::GetView ( int  id,
int  mult 
)
inline

Return the view pointer from view's id and multiplicity.

Definition at line 145 of file albaViewManager.h.

◆ SetMouse()

void albaViewManager::SetMouse ( albaDeviceButtonsPadMouse mouse)

Initialize the action for the mouse device.

◆ GetSettingsGui()

albaGUI * albaViewManager::GetSettingsGui ( )

◆ OpenOnlyViewForType()

void albaViewManager::OpenOnlyViewForType ( int  chose)
inline

Definition at line 153 of file albaViewManager.h.

◆ MaximizeViewOnOpen()

void albaViewManager::MaximizeViewOnOpen ( int  chose)
inline

Definition at line 154 of file albaViewManager.h.

◆ EnableViewSettings()

void albaViewManager::EnableViewSettings ( bool  enable = true)

◆ InitializeSettings()

void albaViewManager::InitializeSettings ( )
protectedvirtual

Initialize the application settings.

Reimplemented from albaGUISettings.

Friends And Related Function Documentation

◆ albaViewManagerTest

friend class albaViewManagerTest
friend

test friend

Definition at line 185 of file albaViewManager.h.

Member Data Documentation

◆ m_Mouse

albaDeviceButtonsPadMouse* albaViewManager::m_Mouse
protected

Definition at line 162 of file albaViewManager.h.

◆ m_ViewList

albaView* albaViewManager::m_ViewList
protected

Definition at line 163 of file albaViewManager.h.

◆ m_ViewTemplate

albaView* albaViewManager::m_ViewTemplate[MAXVIEW]
protected

Definition at line 165 of file albaViewManager.h.

◆ m_TemplateNum

int albaViewManager::m_TemplateNum
protected

Definition at line 166 of file albaViewManager.h.

◆ m_Listener

albaObserver* albaViewManager::m_Listener
protected

Definition at line 168 of file albaViewManager.h.

◆ m_RootVme

albaVMERoot* albaViewManager::m_RootVme
protected

Definition at line 169 of file albaViewManager.h.

◆ m_SelectedVme

albaVME* albaViewManager::m_SelectedVme
protected

Definition at line 170 of file albaViewManager.h.

◆ m_SelectedView

albaView* albaViewManager::m_SelectedView
protected

Definition at line 171 of file albaViewManager.h.

◆ m_SelectedRWI

albaRWIBase* albaViewManager::m_SelectedRWI
protected

Definition at line 172 of file albaViewManager.h.

◆ m_ViewBeingCreated

albaView* albaViewManager::m_ViewBeingCreated
protected

Definition at line 173 of file albaViewManager.h.

◆ m_ViewMatrixID

albaView* albaViewManager::m_ViewMatrixID[MAXVIEW][MAXVIEW]
protected

Matrix to access views directly by (id, multiplicity)

Definition at line 174 of file albaViewManager.h.

◆ m_IdInvisibleMenuList

std::vector<long> albaViewManager::m_IdInvisibleMenuList
protected

List of views that are no visible into the 'View' menu item.

Definition at line 176 of file albaViewManager.h.

◆ m_SettingsGui

albaGUI* albaViewManager::m_SettingsGui
protected

Definition at line 178 of file albaViewManager.h.

◆ m_ViewColorBackground

wxColour albaViewManager::m_ViewColorBackground
protected

Definition at line 180 of file albaViewManager.h.

◆ m_ViewMaximize

int albaViewManager::m_ViewMaximize
protected

Definition at line 181 of file albaViewManager.h.

◆ m_ViewOpenOnlyOne

int albaViewManager::m_ViewOpenOnlyOne
protected

Definition at line 182 of file albaViewManager.h.


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