ALBA
|
#include <albaView.h>
Public Types | |
enum | VIEW_WIDGET_ID { ID_FIRST = MINID , ID_PRINT_INFO , ID_HELP , ID_LAST } |
Public Member Functions | |
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) | |
Public Attributes | |
int | m_Mult |
int | m_Id |
bool | m_Plugged |
albaView * | m_Next |
Protected Member Functions | |
bool | FindPickedVme (vtkAssemblyPath *ap=NULL) |
virtual albaGUI * | CreateGui () |
Protected Attributes | |
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) |
albaView is the base class for 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)
albaView doesn't have a Scenegraph, nor knowledge about VTK /sa albaViewVTK.
albaView can be the base class for composed Views.
Definition at line 78 of file albaView.h.
IDs for the GUI.
Enumerator | |
---|---|
ID_FIRST | |
ID_PRINT_INFO | |
ID_HELP | |
ID_LAST |
Definition at line 165 of file albaView.h.
albaView::albaView | ( | const wxString & | label = "View" | ) |
|
virtual |
albaView::albaAbstractTypeMacro | ( | albaView | , |
albaObject | |||
) |
|
inlinevirtual |
Definition at line 86 of file albaView.h.
|
virtual |
process the events sent by subjects
Implements albaObserver.
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewPlot, albaViewVTK, and albaViewHTML.
Definition at line 88 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 89 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 91 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 92 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 93 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 94 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 95 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound.
Definition at line 96 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 98 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 99 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, and albaViewVTK.
Definition at line 101 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, and albaViewVTK.
Definition at line 102 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewPlot, and albaViewVTK.
Definition at line 103 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, and albaViewVTK.
Definition at line 104 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
Definition at line 105 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound, and albaViewVTK.
Definition at line 106 of file albaView.h.
|
inlinevirtual |
Called to update all components that depends on Application Options.
Reimplemented in albaViewCompound.
Definition at line 109 of file albaView.h.
|
inlinevirtual |
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 in albaViewCompound, and albaViewVTK.
Definition at line 115 of file albaView.h.
|
inlinevirtual |
return the status of the node within this view.
es: NON_VISIBLE,VISIBLE_ON, ...
Reimplemented in albaViewCompound, albaViewPlot, and albaViewVTK.
Definition at line 119 of file albaView.h.
References NODE_NON_VISIBLE.
return the current pipe for the specified vme (if any exist at this moment)
Reimplemented in albaViewPlot, and albaViewVTK.
Definition at line 122 of file albaView.h.
|
inline |
Definition at line 124 of file albaView.h.
|
inline |
Definition at line 125 of file albaView.h.
|
inline |
Definition at line 126 of file albaView.h.
|
inline |
Definition at line 127 of file albaView.h.
|
inlinevirtual |
Definition at line 129 of file albaView.h.
|
inlinevirtual |
Definition at line 130 of file albaView.h.
|
inlinevirtual |
Definition at line 131 of file albaView.h.
void albaView::DeleteGui | ( | ) |
destroy the Gui
|
inlinevirtual |
Definition at line 136 of file albaView.h.
|
inlinevirtual |
Reimplemented in albaViewCompound.
Definition at line 138 of file albaView.h.
|
inlinevirtual |
Set the vtk RenderWindow size.
Used only for Linux (not necessary for Windows)
Reimplemented in albaViewCompound, and albaViewVTK.
Definition at line 141 of file albaView.h.
|
virtual |
Perform a picking according to the screen position (x,y) and return true on success.
Reimplemented in albaViewCompound, and albaViewVTK.
|
virtual |
Perform a picking according to the absolute matrix given and return true on success.
Reimplemented in albaViewCompound, and albaViewVTK.
|
virtual |
Write into the double array the position picked during Pick method.
Reimplemented in albaViewCompound.
|
inlinevirtual |
Return the picked VME during the Pick method.
Return NULL if VME is not found
Reimplemented in albaViewCompound.
Definition at line 153 of file albaView.h.
|
inlinevirtual |
Return the corresponding vtkProp3D of the picked VME.
Definition at line 156 of file albaView.h.
|
inlinevirtual |
Return the number of visible VMEs.
Definition at line 159 of file albaView.h.
|
virtual |
Print a dump of this object into the Log area.
Reimplemented in albaViewVTK.
|
inlinevirtual |
Retrieve html information.
Definition at line 174 of file albaView.h.
|
inline |
Return the picker used to pick the in the render window.
Definition at line 177 of file albaView.h.
|
virtual |
return an xpm-icon that can be used to represent this view
|
inlinevirtual |
Definition at line 182 of file albaView.h.
|
pure virtual |
Implemented in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
|
inline |
Returns CanSpin.
Definition at line 187 of file albaView.h.
|
inline |
Sets CanSpin.
Definition at line 190 of file albaView.h.
|
protected |
Find the VME picked.
|
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 in albaViewCompound, albaViewHTML, albaViewPlot, and albaViewVTK.
|
protected |
Definition at line 193 of file albaView.h.
|
protected |
Definition at line 194 of file albaView.h.
|
protected |
Definition at line 195 of file albaView.h.
|
protected |
Definition at line 196 of file albaView.h.
|
protected |
Definition at line 197 of file albaView.h.
|
protected |
Definition at line 198 of file albaView.h.
|
protected |
Definition at line 199 of file albaView.h.
|
protected |
the picker used to pick the in the render window
Definition at line 201 of file albaView.h.
|
protected |
Used to pick in a VTK Render window.
Definition at line 202 of file albaView.h.
|
protected |
Pointer to the picked vme. It is initialized on picking.
Definition at line 204 of file albaView.h.
|
protected |
Pointer to the picked vme Prop3D. It is initialized on picking.
Definition at line 205 of file albaView.h.
|
protected |
Definition at line 206 of file albaView.h.
|
protected |
perform ResetCamera only for the first vme shown into the view
Definition at line 207 of file albaView.h.
|
protected |
Definition at line 209 of file albaView.h.
|
protected |
Definition at line 210 of file albaView.h.
|
protected |
Definition at line 212 of file albaView.h.
|
protected |
Definition at line 214 of file albaView.h.
|
protected |
Definition at line 215 of file albaView.h.
int albaView::m_Mult |
Used to store the multiplicity of the view type created (e.g. the 3rd view surface created).
Definition at line 232 of file albaView.h.
int albaView::m_Id |
Used to store the view type created (e.g. view surface).
Definition at line 233 of file albaView.h.
bool albaView::m_Plugged |
Definition at line 234 of file albaView.h.
albaView* albaView::m_Next |
Definition at line 235 of file albaView.h.