ALBA
|
#include <albaViewCompound.h>
Public Types | |
enum | LAYOUT_CONFIGURATION_ID { GRID_LAYOUT = 0 , LAYOUT_1 , LAYOUT_2 , LAYOUT_3 , LAYOUT_CUSTOM } |
enum | VIEWCOMPOUND_WIDGET_ID { ID_DEFAULT_CHILD_VIEW = Superclass::ID_LAST , ID_LAYOUT_CHOOSER , ID_LAST } |
Public Types inherited from albaView | |
enum | VIEW_WIDGET_ID { ID_FIRST = MINID , ID_PRINT_INFO , ID_HELP , ID_LAST } |
Public Member Functions | |
albaViewCompound (const wxString &label="View Compound", int num_row=1, int num_col=2) | |
virtual | ~albaViewCompound () |
albaTypeMacro (albaViewCompound, albaView) | |
virtual void | PlugChildView (albaView *child) |
virtual void | PackageView () |
virtual albaView * | Copy (albaObserver *Listener, bool lightCopyEnabled=false) |
virtual void | Create () |
virtual void | CreateGuiView () |
virtual void | OnEvent (albaEventBase *alba_event) |
virtual void | VmeAdd (albaVME *vme) |
virtual void | VmeRemove (albaVME *vme) |
virtual void | VmeSelect (albaVME *node, bool select) |
virtual void | VmeShow (albaVME *vme, bool show) |
virtual void | VmeUpdateProperty (albaVME *vme, bool fromTag=false) |
virtual bool | IsVmeShowed (albaVME *vme) |
virtual void | CameraReset (albaVME *vme=NULL) |
virtual void | CameraUpdate () |
virtual int | GetNodeStatus (albaVME *vme) |
virtual void | SetWindowSize (int w, int h) |
virtual void | OnSize (wxSizeEvent &event) |
virtual void | OnLayout () |
virtual void | SetMouse (albaDeviceButtonsPadMouse *mouse) |
virtual albaSceneGraph * | GetSceneGraph () |
virtual albaRWIBase * | GetRWI () |
void | GetImage (wxBitmap &bmp, int magnification=1) |
virtual bool | FindPokedVme (albaDevice *device, albaMatrix &point_pose, vtkProp3D *&picked_prop, albaVME *&picked_vme, albaInteractor *&picked_behavior) |
virtual bool | Pick (int x, int y) |
virtual bool | Pick (albaMatrix &m) |
virtual void | GetPickedPosition (double pos[3]) |
virtual albaVME * | GetPickedVme () |
albaView * | GetSubView () |
albaView * | GetSubView (int idx) |
int | GetSubViewIndex () |
int | GetNumberOfSubView () |
virtual void | MaximizeSubView (int subview_id=0, bool maximize=true) |
bool | IsSubViewMaximized () |
virtual void | OptionsUpdate () |
virtual void | SetBackgroundColor (wxColor color) |
void | SetSubViewBackgroundColor (int subView, wxColor color) |
wxColor | GetSubViewBackgroundColor (int subView) |
int | GetLayoutConfiguration () const |
virtual void | SetLayoutConfiguration (int layoutConfiguration) |
Public Member Functions inherited from albaView | |
albaView (const wxString &label="View") | |
virtual | ~albaView () |
albaAbstractTypeMacro (albaView, albaObject) | |
virtual void | SetListener (albaObserver *Listener) |
virtual void | OnEvent (albaEventBase *alba_event) |
virtual albaView * | Copy (albaObserver *Listener, bool lightCopyEnabled=false) |
virtual void | Create () |
virtual void | VmeAdd (albaVME *vme) |
virtual void | VmeRemove (albaVME *vme) |
virtual void | VmeSelect (albaVME *vme, bool select) |
virtual void | VmeShow (albaVME *vme, bool show) |
virtual void | VmeUpdateProperty (albaVME *vme, bool fromTag=false) |
virtual bool | IsVmeShowed (albaVME *vme) |
virtual void | VmeCreatePipe (albaVME *vme) |
virtual void | VmeDeletePipe (albaVME *vme) |
virtual void | CameraReset (albaVME *node=NULL) |
virtual void | CameraUpdate () |
virtual void | SetMouse (albaDeviceButtonsPadMouse *mouse) |
virtual albaRWIBase * | GetRWI () |
virtual albaSceneGraph * | GetSceneGraph () |
virtual void | GetImage (wxBitmap &bmp, int magnification=1) |
virtual void | OptionsUpdate () |
virtual bool | FindPokedVme (albaDevice *device, albaMatrix &point_pose, vtkProp3D *&picked_prop, albaVME *&picked_vme, albaInteractor *&picked_behavior) |
virtual int | GetNodeStatus (albaVME *vme) |
virtual albaPipe * | GetNodePipe (albaVME *vme) |
wxString | GetLabel () |
wxString | GetName () |
void | SetLabel (wxString label) |
void | SetName (wxString name) |
virtual wxWindow * | GetWindow () |
virtual wxFrame * | GetFrame () |
virtual albaGUI * | GetGui () |
void | DeleteGui () |
virtual void | SetFrame (wxFrame *f) |
virtual void | OnSize (wxSizeEvent &size_event) |
virtual void | SetWindowSize (int w, int h) |
virtual bool | Pick (int x, int y) |
virtual bool | Pick (albaMatrix &m) |
virtual void | GetPickedPosition (double pos[3]) |
virtual albaVME * | GetPickedVme () |
virtual vtkProp3D * | GetPickedProp () |
virtual int | GetNumberOfVisibleVME () |
virtual void | Print (std::ostream &os, const int tabs=0) |
virtual const char * | GetHTMLText () |
vtkCellPicker * | GetPicker2D () |
virtual char ** | GetIcon () |
virtual wxColor | GetBackgroundColor () |
virtual void | SetBackgroundColor (wxColor color)=0 |
bool | GetCanSpin () const |
void | SetCanSpin (bool canSpin) |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Public Member Functions inherited from albaObject | |
albaObject () | |
virtual | ~albaObject () |
virtual void | Delete () |
virtual const char * | GetTypeName () const |
virtual bool | IsA (const char *type_name) const |
virtual bool | IsA (const albaTypeID &type_id) const |
virtual albaObject * | NewObjectInstance () const =0 |
virtual const albaTypeID & | GetTypeId () const |
virtual void | Print (std::ostream &os, const int indent=0) const |
albaObject (const albaObject &c) | |
Protected Member Functions | |
virtual albaGUI * | CreateGui () |
virtual void | LayoutSubView (int width, int height) |
Protected Member Functions inherited from albaView | |
bool | FindPickedVme (vtkAssemblyPath *ap=NULL) |
virtual albaGUI * | CreateGui () |
Protected Attributes | |
int | m_ViewRowNum |
int | m_ViewColNum |
int | m_NumOfPluggedChildren |
int | m_NumOfChildView |
int | m_LayoutConfiguration |
int | m_DefauldChildView |
int | m_SubViewMaximized |
int | m_LinkSubView |
wxSize | m_Size |
albaGUI * | m_GuiView |
wxWindow * | m_GuiViewWindow |
albaDeviceButtonsPadMouse * | m_Mouse |
std::vector< albaView * > | m_ChildViewList |
std::vector< albaView * > | m_PluggedChildViewList |
Protected Attributes inherited from albaView | |
albaObserver * | m_Listener |
wxString | m_Label |
wxString | m_Name |
wxWindow * | m_Win |
wxFrame * | m_Frame |
albaGUI * | m_Gui |
albaGUIHolder * | m_Guih |
vtkCellPicker * | m_Picker2D |
vtkALBARayCast3DPicker * | m_Picker3D |
albaVME * | m_PickedVME |
vtkProp3D * | m_PickedProp |
double | m_PickedPosition [3] |
int | m_NumberOfVisibleVme |
wxPrintData * | m_PrintData |
albaString | m_HTMLText |
wxColor | m_BackgroundColor |
bool | m_LightCopyEnabled |
bool | m_CanSpin |
Protected Attributes inherited from albaObject | |
bool | m_HeapFlag |
Additional Inherited Members | |
Static Public Member Functions inherited from albaObject | |
static const char * | GetStaticTypeName () |
static bool | IsStaticType (const char *type_name) |
static bool | IsStaticType (const albaTypeID &type_id) |
static const albaTypeID & | GetStaticTypeId () |
static albaObject * | SafeDownCast (albaObject *o) |
Public Attributes inherited from albaView | |
int | m_Mult |
int | m_Id |
bool | m_Plugged |
albaView * | m_Next |
albaViewCompound is the base class for Compound Views in ALBA.
The member function GetNodeStatus(vme) will be called by the albaGUICheckTree in order to update it's icons. (Note that albaGUICheckTree doesn't know about the SceneGraph anymore)
albaViewCompound doesn't have a Scenegraph, nor knowledge about VTK /sa albaViewVTK.
Definition at line 50 of file albaViewCompound.h.
Enumerator | |
---|---|
GRID_LAYOUT | |
LAYOUT_1 | |
LAYOUT_2 | |
LAYOUT_3 | |
LAYOUT_CUSTOM |
Definition at line 58 of file albaViewCompound.h.
IDs for the GUI.
Enumerator | |
---|---|
ID_DEFAULT_CHILD_VIEW | |
ID_LAYOUT_CHOOSER | |
ID_LAST |
Definition at line 118 of file albaViewCompound.h.
albaViewCompound::albaViewCompound | ( | const wxString & | label = "View Compound" , |
int | num_row = 1 , |
||
int | num_col = 2 |
||
) |
|
virtual |
albaViewCompound::albaTypeMacro | ( | albaViewCompound | , |
albaView | |||
) |
|
virtual |
Plug the child view into the compound view.
If the number of child view is less then row x col, the last plugged view will fill the remaining holes.
|
inlinevirtual |
Redefine this method to package the compounded view.
Definition at line 74 of file albaViewCompound.h.
|
virtual |
Reimplemented from albaView.
|
virtual |
Create the plugged sub-view and call virtual method CreateGuiView()
Reimplemented from albaView.
|
virtual |
Create the GUI on the bottom of the compounded view.
|
virtual |
process the events sent by subjects
Reimplemented from albaView.
|
virtual |
Add VME into plugged sub-views.
Reimplemented from albaView.
|
virtual |
Remove VME into plugged sub-views.
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Show/Hide VMEs into plugged sub-views.
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
return the status of the node within this view.
es: NON_VISIBLE,VISIBLE_ON, ... having albaViewCompound::GetNodeStatus allow albaGUICheckTree to not know about albaSceneGraph
Reimplemented from albaView.
|
virtual |
Set the vtk RenderWindow size.
Used only for Linux (not necessary for Windows)
Reimplemented from albaView.
|
virtual |
On size event.
Reimplemented from albaView.
|
virtual |
Set the size of the windowing double slider according to the size of the view.
|
virtual |
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Return a pointer to the image of all sub-views.
Reimplemented from albaView.
|
virtual |
Find the pocked VME at button down.
As argument the function needs the device which performed the action, and provides as result pointers to piked prop, vme and its behavior if it exists.
Reimplemented from albaView.
|
virtual |
Perform a picking according to the screen position (x,y) and return true on success.
Reimplemented from albaView.
|
virtual |
Perform a picking according to the absolute matrix given and return true on success.
Reimplemented from albaView.
|
virtual |
Write into the double array the position picked during Pick method.
Reimplemented from albaView.
|
virtual |
Return the picked VME during the Pick method.
Return NULL if VME is not found
Reimplemented from albaView.
albaView * albaViewCompound::GetSubView | ( | ) |
Return the sub-view in which the mouse is interacting with.
albaView * albaViewCompound::GetSubView | ( | int | idx | ) |
Return the sub-view with index idx.
int albaViewCompound::GetSubViewIndex | ( | ) |
Return the sub-view num index which the mouse is interacting with.
|
inline |
Return the number of child view.
Definition at line 174 of file albaViewCompound.h.
|
virtual |
Let the sub-view to be maximized inside the compounded view.
|
inline |
Return true is one of the plugged view is maximized.
Definition at line 182 of file albaViewCompound.h.
|
virtual |
Called to update all components that depends on Application Options.
Reimplemented from albaView.
|
virtual |
Implements albaView.
void albaViewCompound::SetSubViewBackgroundColor | ( | int | subView, |
wxColor | color | ||
) |
wxColor albaViewCompound::GetSubViewBackgroundColor | ( | int | subView | ) |
|
inline |
Returns LayoutConfiguration.
Definition at line 194 of file albaViewCompound.h.
|
virtual |
Sets LayoutConfiguration.
|
protectedvirtual |
Internally used to create a new instance of the GUI.
This function should be overridden by subclasses to create specialized GUIs. Each subclass should append its own widgets and define the enum of IDs for the widgets as an extension of the superclass enum. The last id value must be defined as "LAST_ID" to allow the subclass to continue the ID enumeration from it. For appending the widgets in the same panel GUI, each CreateGUI() function should first call the superclass' one.
Reimplemented from albaView.
|
protectedvirtual |
Arrange sub-view into the defined layout configuration.
|
protected |
number of rows to divide the compound view
Definition at line 212 of file albaViewCompound.h.
|
protected |
number of cols to divide the compound view
Definition at line 213 of file albaViewCompound.h.
|
protected |
number of plugged children view
Definition at line 214 of file albaViewCompound.h.
|
protected |
number of child view (is equal or greater then m_NumOfPluggedChildren)
Definition at line 215 of file albaViewCompound.h.
|
protected |
Arrange the subviews on different layout configuration.
Definition at line 217 of file albaViewCompound.h.
|
protected |
Definition at line 218 of file albaViewCompound.h.
|
protected |
contain the id of the sub-view to be maximized. -1 means that all sub-views are in normal size
Definition at line 220 of file albaViewCompound.h.
|
protected |
Definition at line 221 of file albaViewCompound.h.
|
protected |
size of the compound view
Definition at line 223 of file albaViewCompound.h.
|
protected |
Definition at line 224 of file albaViewCompound.h.
|
protected |
Definition at line 225 of file albaViewCompound.h.
|
protected |
Definition at line 226 of file albaViewCompound.h.
|
protected |
Child views vector.
Definition at line 229 of file albaViewCompound.h.
|
protected |
Plugged Child views vector.
Definition at line 230 of file albaViewCompound.h.