|
ALBA
|
#include <albaLogicWithManagers.h>


Public Member Functions | |
| albaLogicWithManagers (albaGUIMDIFrame *mdiFrame=NULL) | |
| virtual | ~albaLogicWithManagers () |
| virtual void | OnEvent (albaEventBase *alba_event) |
| virtual void | Plug (albaView *view, bool visibleInMenu=true) |
| virtual void | Plug (albaOp *op, wxString menuPath="", bool canUndo=true, albaGUISettings *setting=NULL) |
| virtual void | Configure () |
| void | CreateToolBarsAndPanels () |
| virtual void | Init (int argc, char **argv) |
| void | PlugVMEManager (bool b) |
| void | PlugViewManager (bool b) |
| void | PlugOpManager (bool b) |
| void | PlugInteractionManger (bool b) |
| void | PlugWizardManager (bool b) |
| void | PlugSnapshotManager (bool b) |
| void | PlugProsthesisDBManager (albaString passPhrase="") |
| virtual void | Plug (albaWizard *wizard, wxString menuPath="") |
| virtual void | Show () |
| void | FillMenus () |
| albaUser * | GetUser () |
| void | SetApplicationStamp (albaString &app_stamp) |
| virtual void | HandleException () |
| int | AppEventFilter (wxEvent &event) |
| void | ALBAExpertModeOn () |
| void | ALBAExpertModeOff () |
| void | SetALBAExpertMode (int value) |
| void | SetFileExtension (albaString &extension) |
| virtual albaGUIMDIFrame * | GetTopWin () |
| void | PlugToolbar (bool plug) |
| void | PlugSidebar (bool plug) |
| void | PlugTimebar (bool plug) |
| void | PlugLogbar (bool plug) |
| virtual void | ShowSplashScreen () |
| virtual void | ShowSplashScreen (wxBitmap &splashImage, wxString message="", int x=0, int y=0, wxColour color= *wxBLACK) |
| bool | IsOperationRunning () |
| virtual const char * | GetMsfFileExtension () |
| virtual albaOpManager * | GetOpManager () const |
| virtual albaViewManager * | GetViewManager () |
| virtual void | PrintImage (albaVMEImage *img) |
| eventfilterFunc | GetEventFilterFunc () const |
| void | SetEventFilterFunc (eventfilterFunc val) |
| mmaApplicationLayout * | GetLayout () |
| virtual albaProsthesesDBManager * | GetProsthesesDBManager () |
| void | PlugStandardOperations () |
| void | PlugStandardViews () |
| albaString | GetAboutImage () const |
| void | SetAboutImage (albaString aboutImage) |
| virtual bool | IsVMEExpanded (albaVME *vme) |
| virtual void | CollapseVME (albaVME *vme) |
| virtual void | ExpandVME (albaVME *vme) |
| virtual const char * | GetAppBuildNum () |
| virtual void | SetAppBuildNum (char *buildNum) |
| virtual const char * | GetAlbaBuildNum () |
| virtual void | SetAlbaBuildNum (char *buildNum) |
Public Member Functions inherited from albaObserver | |
| albaObserver () | |
| virtual | ~albaObserver () |
| virtual void | OnEvent (albaEventBase *e)=0 |
Static Public Member Functions | |
| static void | ShowWebSite (wxString url) |
Protected Member Functions | |
| virtual void | UpdateTimeBounds () |
| virtual void | TimeSet (double t) |
| virtual void | CreateMenu () |
| virtual void | CreateStorage (albaEvent *e) |
| virtual void | CreateAndPlugToolbar () |
| virtual void | CreateToolbar () |
| virtual void | CreateControlPanel () |
| virtual void | CreateTimeBar () |
| virtual void | CreateLogPanel () |
| void | CreateNullLog () |
| void | EnableItem (int item, bool enable) |
| void | StoreLayout () |
| virtual void | RestoreLayout () |
| virtual void | OnFileNew () |
| virtual void | OnFileOpen (const char *file_to_open=NULL) |
| virtual void | OnFileHistory (int menuId) |
| virtual void | OnFileSave () |
| virtual void | OnFileSaveAs () |
| virtual void | OnQuit () |
| virtual void | ImportExternalFile (albaString &filename) |
| virtual void | VmeSelect (albaVME *vme) |
| virtual void | VmeSelected (albaVME *vme) |
| void | SelectLandmark (albaVMELandmark *lm, bool select) |
| virtual void | VmeDoubleClicked (albaEvent &e) |
| virtual void | VmeShow (albaVME *vme, bool visibility) |
| void | ShowLandmarkCloud (albaVMELandmarkCloud *lmc, bool visibility) |
| void | ShowInSideBar (albaVME *vme, bool visibility) |
| void | ShowLandmark (albaVMELandmark *lm, bool visibility) |
| virtual void | VmeModified (albaVME *vme) |
| virtual void | VmeAdd (albaVME *vme) |
| virtual void | VmeAdded (albaVME *vme) |
| virtual void | VmeRemove (albaVME *vme) |
| virtual void | VmeRemoving (albaVME *vme) |
| virtual void | VmeRemoved () |
| virtual void | VmeVisualModeChanged (albaVME *vme) |
| virtual void | VmeChooseMaterial (albaVME *vme, bool updateProperty) |
| virtual void | VmeUpdateProperties (albaVME *vme, bool updatePropertyFromTag) |
| virtual void | OpRunStarting () |
| virtual void | OpRunTerminated (int runOk) |
| virtual void | OpShowGui (bool push_gui, albaGUIPanel *panel) |
| virtual void | OpHideGui (bool view_closed) |
| virtual void | TreeContextualMenu (albaEvent &e) |
| virtual void | ViewContextualMenu (bool vme_menu) |
| virtual void | ViewCreate (int viewId) |
| virtual void | ViewCreated (albaView *v) |
| virtual void | ViewSelect () |
| virtual void | CameraUpdate () |
| virtual void | CameraReset () |
| virtual void | EnableCameraUpdateSkip () |
| virtual void | DisableCameraUpdateSkip () |
| void | UpdateMeasureUnit () |
| virtual void | EnableMenuAndToolbar () |
| virtual void | UpdateFrameTitle () |
| virtual void | ConfigureWizardManager () |
| virtual void | WizardRunStarting () |
| virtual void | WizardRunTerminated () |
| virtual void | CreateWizardToolbar () |
albaLogicWithManagers provide:
The PlugXXX functions must be called before the first Show(). In derived classes it is recommended to pass to albaLogicWithGUI::OnEvent() the unhandled events.
albaLogicWithManagers also provide the following standard operation:
albaLogicWithManagers also provide to enable/disable the user interface elements following the requirement of the application status.
Derived classes can replace any of these manager with a customized version.
It is Recommended that Derived Classes call albaLogicWithManagers::OnEvent to for every un-handled event.
USAGE - member function MUST be called in this order: – create a albaLogicWithManagers object (-> create the mainwindow) – call PlugXXX: to customize the GUI and the Managers – call Configure: to create the GUI and the managers – call Plug to plug-in operations and views – call Show it is before Init, to eventually show the Progress-bar during a Load – call Init(argc,argv) will call MSFNew or MSFLoad
Tech NOTE: Proper Initialization must follow this order 1- CTOR: 2- Configure: (create the GUI el. - cant be in the CTOR because calls virtual functions) in sub classes also create the manager 3- Plug Op, Plug View , ... 4- Show: 5- Init: Calls FileOpen or FileNew
Definition at line 113 of file albaLogicWithManagers.h.
| albaLogicWithManagers::albaLogicWithManagers | ( | albaGUIMDIFrame * | mdiFrame = NULL | ) |
|
virtual |
|
virtual |
Events management.
Implements albaObserver.
|
virtual |
Plug a new view.
|
virtual |
Plug a new operation and its undo flag: if the operation does not support undo the undo flag has no effect.
|
virtual |
Configure the application.
At this point are plugged all the managers, the side-bar docking panel. Are plugged also all the setting to the dialogs interface.
| void albaLogicWithManagers::CreateToolBarsAndPanels | ( | ) |
Creates menu and tool bars.
|
virtual |
Program Initialization.
|
inline |
Must be called before Configure.
Definition at line 142 of file albaLogicWithManagers.h.
|
inline |
Must be called before Configure.
Definition at line 145 of file albaLogicWithManagers.h.
|
inline |
Must be called before Configure.
Definition at line 148 of file albaLogicWithManagers.h.
|
inline |
Must be called before Configure.
Definition at line 151 of file albaLogicWithManagers.h.
|
inline |
Must be called before Configure.
Definition at line 154 of file albaLogicWithManagers.h.
|
inline |
Must be called before Configure.
Definition at line 157 of file albaLogicWithManagers.h.
| void albaLogicWithManagers::PlugProsthesisDBManager | ( | albaString | passPhrase = "" | ) |
|
virtual |
Plug a new wizard.
|
virtual |
Set the application stamp to the VMEManager and Shows the application.
| void albaLogicWithManagers::FillMenus | ( | ) |
Fill the View and operation menu's
|
inline |
Return the applications' user.
Definition at line 172 of file albaLogicWithManagers.h.
| void albaLogicWithManagers::SetApplicationStamp | ( | albaString & | app_stamp | ) |
Set the application stamp for the application, if set to OPEN_ALL_DATA let's the application to open all msf file.
As default the application stamp is the name of the application and it is set into the Show() method.
|
virtual |
Manage application exception and allow to save at least the tree.
| int albaLogicWithManagers::AppEventFilter | ( | wxEvent & | event | ) |
Manage application Events.
|
inline |
Set ALBA Expert Mode.
Definition at line 187 of file albaLogicWithManagers.h.
References GetALBAExpertMode().

|
inline |
Definition at line 188 of file albaLogicWithManagers.h.
References GetALBAExpertMode().

|
inline |
Definition at line 189 of file albaLogicWithManagers.h.
References GetALBAExpertMode().

|
inline |
Set the file extension.
Definition at line 192 of file albaLogicWithManagers.h.
|
inlinevirtual |
Returns the pointer to the main panel of the application.
Definition at line 195 of file albaLogicWithManagers.h.
|
inline |
Sets the flag to know if Toolbar should be built.
Definition at line 198 of file albaLogicWithManagers.h.
|
inline |
Sets the flag to know if Side bar should be built.
Definition at line 200 of file albaLogicWithManagers.h.
|
inline |
Sets the flag to know if Time bar should be built.
Definition at line 202 of file albaLogicWithManagers.h.
|
inline |
Sets the flag to know if Log bar should be built.
Definition at line 204 of file albaLogicWithManagers.h.
|
virtual |
Show the splash screen for the application.
To define your own splash screen image simply overwrite the SPLASH_SCREEN image into the picture factory by plugging your .xpm image.
|
virtual |
Used to give a splash screen image directly from the bitmap without converting it in xpm.
|
static |
|
inline |
Returns true if there is a Running Operation.
Definition at line 218 of file albaLogicWithManagers.h.
|
inlinevirtual |
Definition at line 221 of file albaLogicWithManagers.h.
|
inlinevirtual |
Definition at line 224 of file albaLogicWithManagers.h.
|
inlinevirtual |
Definition at line 226 of file albaLogicWithManagers.h.
|
virtual |
|
inline |
Definition at line 230 of file albaLogicWithManagers.h.
|
inline |
Definition at line 232 of file albaLogicWithManagers.h.
|
inline |
Get application layout.
Definition at line 235 of file albaLogicWithManagers.h.
|
virtual |
| void albaLogicWithManagers::PlugStandardOperations | ( | ) |
Plugs a list of standard operations, importer and exporters included.
| void albaLogicWithManagers::PlugStandardViews | ( | ) |
Plugs a list of standard operations, importer and exporters included.
|
inline |
Returns AboutImage.
Definition at line 247 of file albaLogicWithManagers.h.
|
inline |
Sets AboutImage.
Definition at line 250 of file albaLogicWithManagers.h.
|
virtual |
Return True if the VME is Expanded on Tree.
|
virtual |
Collapse the VME on the Tree.
|
virtual |
Expand the VME on the Tree
|
virtual |
Get the App Build Number.
|
virtual |
Set the App Build Number.
|
virtual |
Set Alba Build Number.
|
virtual |
Get Alba Build Number.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Redefined to add View,Op,Import,Export menu.
|
protectedvirtual |
create a new storage object
|
protectedvirtual |
This method creates and add the Toolbar, for specific app toolbar override the CreateToolBar method.
|
protectedvirtual |
This method creates the toolbar, override this method for specific app toolbars.
|
protectedvirtual |
Virtual method to create the side bar.
|
protectedvirtual |
Virtual method to create the time bar.
|
protectedvirtual |
Virtual method to create the log bar.
|
protected |
Create a null logger.
This is used when no log is due.
|
protected |
Enable/disable a Toolbar or Menu Item.
|
protected |
Stores application layout.
|
protectedvirtual |
Restores application layout.
|
protectedvirtual |
FILE NEW evt.
handler
|
protectedvirtual |
FILE OPEN evt.
handler. By default (file_to_open = NULL) it ask the user to choose a file to open, otherwise it open the given one.
|
protectedvirtual |
FILE HISTORY evt.
handler
|
protectedvirtual |
FILE SAVE evt.
handler
|
protectedvirtual |
FILE SAVEAS evt.
handler
|
protectedvirtual |
Called on Quit event.
|
protectedvirtual |
Called when a user drag a non msf or zmsf file over the application.
Example: dragging a VTK file over the application cause the application to inport it through the importer.
|
protectedvirtual |
Respond to a VME_SELECT evt.
Update the selection on the tree and view representation.
|
protectedvirtual |
Respond to a VME_SELECTED evt.
Update the selection on the tree and view representation.
|
protected |
Called from VmeSelect to select a LM.
|
protectedvirtual |
Respond to a VME_DCLICKED evt.
Manage the 'Double click' on Selected VME.
|
protectedvirtual |
Show/Hide the vme.
|
protected |
Called from VmeShow to show a LM cloud.
|
protected |
Show VME in the side bar.
|
protected |
|
protectedvirtual |
Respond to a vme Modified evt.
|
protectedvirtual |
Add a new vme to the tree.
|
protectedvirtual |
Respond to a VME_ADDED evt.
propagate evt. to SideBar,ViewManager,ecc..
|
protectedvirtual |
Remove a vme from the tree.
|
protectedvirtual |
Respond to a VME_REMOVING evt.
propagate evt. to SideBar,ViewManager,ecc..
|
protectedvirtual |
called from VME after removing
|
protectedvirtual |
|
protectedvirtual |
Build a dialog to show all available materials.
|
protectedvirtual |
|
protectedvirtual |
Called when an operation starts.
Disable all menu and lock the Selection
|
protectedvirtual |
Called when an operation stops.
Re-enable all menu and unlock the Selection
|
protectedvirtual |
Show the gui of the running operation or the settings of the selected view.
|
protectedvirtual |
Hide the setting's gui when a view is destroyed.
|
protectedvirtual |
Show contextual menu for tree when right mouse click arrives.
|
protectedvirtual |
Show contextual menu for views when right mouse click arrives.
|
protectedvirtual |
Create a new view.
|
protectedvirtual |
A new View has Been Created - Logic must create the View Frame.
|
protectedvirtual |
Select a view and update the display list for the tree.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
enter in Camera Update Skip Modality, useful to avoid flickering or incomplete visualizations
|
protectedvirtual |
exit the Camera Update Skip Modality
|
protected |
Called when user change the measure unit from menù Options.
|
protectedvirtual |
Enable/Disable menu items when an operation start/end running.
|
protectedvirtual |
Called after FileOpen or Save operation.
|
protectedvirtual |
to be added
|
protectedvirtual |
Called when an wizard starts.
Disable all menu and lock the Selection
|
protectedvirtual |
Called when an wizard stops.
Re-enable all menu and unlock the Selection
|
protectedvirtual |
Redefined to add Print buttons.
|
protected |
Definition at line 436 of file albaLogicWithManagers.h.
|
protected |
Definition at line 437 of file albaLogicWithManagers.h.
|
protected |
Definition at line 438 of file albaLogicWithManagers.h.
|
protected |
Definition at line 439 of file albaLogicWithManagers.h.
|
protected |
Definition at line 440 of file albaLogicWithManagers.h.
|
protected |
Definition at line 441 of file albaLogicWithManagers.h.
|
protected |
Definition at line 442 of file albaLogicWithManagers.h.
|
protected |
Definition at line 443 of file albaLogicWithManagers.h.
|
protected |
Definition at line 444 of file albaLogicWithManagers.h.
|
protected |
Definition at line 447 of file albaLogicWithManagers.h.
|
protected |
Definition at line 448 of file albaLogicWithManagers.h.
|
protected |
Definition at line 450 of file albaLogicWithManagers.h.
|
protected |
Definition at line 452 of file albaLogicWithManagers.h.
|
protected |
Definition at line 454 of file albaLogicWithManagers.h.
|
protected |
Definition at line 455 of file albaLogicWithManagers.h.
|
protected |
Definition at line 456 of file albaLogicWithManagers.h.
|
protected |
Definition at line 457 of file albaLogicWithManagers.h.
|
protected |
Definition at line 458 of file albaLogicWithManagers.h.
|
protected |
Definition at line 460 of file albaLogicWithManagers.h.
|
protected |
Definition at line 461 of file albaLogicWithManagers.h.
|
protected |
Definition at line 462 of file albaLogicWithManagers.h.
|
protected |
Definition at line 463 of file albaLogicWithManagers.h.
|
protected |
Definition at line 464 of file albaLogicWithManagers.h.
|
protected |
Definition at line 465 of file albaLogicWithManagers.h.
|
protected |
Definition at line 467 of file albaLogicWithManagers.h.
|
protected |
Definition at line 469 of file albaLogicWithManagers.h.
|
protected |
Definition at line 470 of file albaLogicWithManagers.h.
|
protected |
Definition at line 472 of file albaLogicWithManagers.h.
|
protected |
Definition at line 473 of file albaLogicWithManagers.h.
|
protected |
Definition at line 474 of file albaLogicWithManagers.h.
|
protected |
Applications' user.
Definition at line 476 of file albaLogicWithManagers.h.
|
protected |
Definition at line 478 of file albaLogicWithManagers.h.
|
protected |
Definition at line 479 of file albaLogicWithManagers.h.
|
protected |
Definition at line 480 of file albaLogicWithManagers.h.
|
protected |
Definition at line 481 of file albaLogicWithManagers.h.
|
protected |
Definition at line 482 of file albaLogicWithManagers.h.
|
protected |
Definition at line 483 of file albaLogicWithManagers.h.
|
protected |
Definition at line 484 of file albaLogicWithManagers.h.
|
protected |
Definition at line 485 of file albaLogicWithManagers.h.
|
protected |
Definition at line 486 of file albaLogicWithManagers.h.
|
protected |
Definition at line 488 of file albaLogicWithManagers.h.
|
protected |
Definition at line 489 of file albaLogicWithManagers.h.
|
protected |
Definition at line 490 of file albaLogicWithManagers.h.
|
protected |
Definition at line 491 of file albaLogicWithManagers.h.
|
protected |
Definition at line 492 of file albaLogicWithManagers.h.
|
protected |
Definition at line 493 of file albaLogicWithManagers.h.
|
protected |
Definition at line 494 of file albaLogicWithManagers.h.
|
protected |
Definition at line 495 of file albaLogicWithManagers.h.
|
protected |
Definition at line 497 of file albaLogicWithManagers.h.
|
protected |
Definition at line 498 of file albaLogicWithManagers.h.
|
protected |
Definition at line 499 of file albaLogicWithManagers.h.
|
protected |
Definition at line 501 of file albaLogicWithManagers.h.
|
protected |
Definition at line 503 of file albaLogicWithManagers.h.
|
protected |
Definition at line 504 of file albaLogicWithManagers.h.
|
protected |
Variable that allows to determine if the application is Quitting or not.
Definition at line 506 of file albaLogicWithManagers.h.
|
protected |
Flag to plug or not the Menu into the application. Default is true.
Definition at line 507 of file albaLogicWithManagers.h.
|
protected |
Flag to plug or not the Toolbar into the application. Default is true.
Definition at line 508 of file albaLogicWithManagers.h.
|
protected |
Flag to plug or not the Side-bar into the application. Default is true.
Definition at line 509 of file albaLogicWithManagers.h.
|
protected |
Store the style of the sidebar. Old style (ALBA 1.x): SINGLE_NOTEBOOK or new style (ALBA 2.x): DOUBLE_NOTEBOOK.
Definition at line 510 of file albaLogicWithManagers.h.
|
protected |
Flag to plug or not the Time-bar into the application. Default is true.
Definition at line 511 of file albaLogicWithManagers.h.
|
protected |
Flag to plug or not the Log area into the application. Default is true.
Definition at line 512 of file albaLogicWithManagers.h.
|
protected |
Flag to show storage setting default is false.
Definition at line 513 of file albaLogicWithManagers.h.
|
protected |
Flag to show storage setting default is false.
Definition at line 514 of file albaLogicWithManagers.h.
|
protected |
Definition at line 515 of file albaLogicWithManagers.h.
|
protected |
Definition at line 516 of file albaLogicWithManagers.h.