17#ifndef __albaViewManager_H__
18#define __albaViewManager_H__
33class albaGUIViewPanel;
185 friend class albaViewManagerTest;
#define EXPORT_STL_VECTOR(declspec_, T_)
@ ID_VIEW_SETTING_MAXIMIZE
@ ID_VIEW_SETTING_OPEN_ONLY_ONE
@ ID_VIEW_SETTING_COLOR_DEFAULT
Implementation of the message object for the Subject/Observer design pattern.
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
albaGUI is a panel with function to easily create GUI.
Interface implementing the Observer of the Subject/Observer design pattern.
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
albaVMERoot - a VME is the root of a tree of VME nodes.
An implementation of albaViewManager with [D]ynamic view [C]reation feature.
void CameraFlyToMode()
Set the FlyTo mode for the selected view.
albaObserver * m_Listener
void VmeShow(albaVME *vme, bool show)
Show/Hide the vme in the selected view.
void CameraUpdate(bool only_selected=false)
Update the camera for all opened views; optionally the Update can be limited for the selected view.
virtual void ViewAdd(albaView *view, bool visibleInMenu=true)
Add the View to the view-list.
virtual albaView * ViewCreate(wxString label)
Create a view given the type.
void ViewSelected(albaView *view)
Pass the selected render window to the mouse device.
virtual albaView * ViewCreate(int id)
Create a view at index 'id' of the view-list.
albaView * m_SelectedView
albaRWIBase * m_SelectedRWI
void VmeSelect(albaVME *vme)
Show the selection of the vme in all views.
void OpenOnlyViewForType(int chose)
albaView * GetList()
Return the created view-list.
void InitializeSettings()
Initialize the application settings.
void FillMenu(wxMenu *menu)
Fill the main menù with plugged views.
bool IsVisibleInMenu(albaView *v)
Check if the view 'v' should be hidden from the 'View' menu.
void VmeModified(albaVME *vme)
inform the views that a vme was modified
void SetListener(albaObserver *Listener)
void Activate(albaView *view)
Activate the view from software to simulate the click on the view (used by remote).
virtual void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
void EnableViewSettings(bool enable=true)
std::vector< long > m_IdInvisibleMenuList
List of views that are no visible into the 'View' menu item.
albaView * GetFromList(const char *label)
Return a view (defined by label) if is present on open wiews list.
void VmeAdd(albaVME *n)
Add the vme to all views.
void SetMouse(albaDeviceButtonsPadMouse *mouse)
Initialize the action for the mouse device.
albaGUI * GetSettingsGui()
albaView * GetView(int id, int mult)
Return the view pointer from view's id and multiplicity.
albaView * m_ViewBeingCreated
wxColour m_ViewColorBackground
virtual void ViewDeleteAll()
Delete all view.
void ViewInsert(albaView *view)
Insert the view into the view-list, fill the view with the vme tree and select the selected vme.
void MaximizeViewOnOpen(int chose)
void PropertyUpdate(bool fromTag=false)
Call PropertyUpdate for all views.
void CameraReset(albaVME *vme)
Reset the camera to fit the specified vme.
albaView * GetSelectedView()
Return the selected view.
albaVME * GetCurrentRoot()
Return the root of the vme tree.
void CameraReset(bool sel=false)
Reset the camera to fit the selected vme (if sel = true) or all (if sel = false).
albaView ** GetListTemplate()
Return the plugged view-list.
albaDeviceButtonsPadMouse * m_Mouse
virtual void ViewDelete(albaView *view)
Remove the view from the view-list and delete it.
void VmeRemove(albaVME *n)
Remove the vme from all views.
albaView is the base class for Views in alba.