22#include "albaServiceClient.h"
23#include "albaAbsLogicManager.h"
39class vtkALBARayCast3DPicker;
88 virtual albaView*
Copy(
albaObserver *Listener,
bool lightCopyEnabled =
false) {m_LightCopyEnabled = lightCopyEnabled;
return NULL;};
106 virtual void GetImage(wxBitmap &bmp,
int magnification = 1) {};
131 virtual albaGUI*
GetGui() {
if(m_Gui == NULL) CreateGui(); assert(m_Gui);
return m_Gui;};
138 virtual void OnSize(wxSizeEvent &size_event) {};
144 virtual bool Pick(
int x,
int y);
162 virtual void Print(std::ostream& os,
const int tabs=0);
206 double m_PickedPosition[3];
VME_VISIBILITY_ID
VME visibility attribute when plugging visual pipe.
NODE_STATUS_ID
status of a SceneNode – do not change, it is used by albaCheckTree also
This abstract class manages function calls coming from devices and issue specific events to interacto...
Implementation of the message object for the Subject/Observer design pattern.
class name: albaGUIHolder Secialized panel in which a developer can put a albaGUI.
albaGUI is a panel with function to easily create GUI.
Abstract class for ALBA interactors This class provides base interface and features of ALBA continuou...
albaMatrix - Time stamped 4x4 Matrix.
Abstract superclass for all ALBA classes implementing RTTI APIs.
Interface implementing the Observer of the Subject/Observer design pattern.
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
albaString - performs common string operations on c-strings.
albaView is the base class for Views in alba.
vtkALBARayCast3DPicker * m_Picker3D
Used to pick in a VTK Render window.
albaObserver * m_Listener
virtual albaGUI * GetGui()
virtual int GetNodeStatus(albaVME *vme)
return the status of the node within this view.
virtual wxFrame * GetFrame()
virtual wxWindow * GetWindow()
virtual char ** GetIcon()
return an xpm-icon that can be used to represent this view
virtual void SetFrame(wxFrame *f)
void SetLabel(wxString label)
virtual albaGUI * CreateGui()
Internally used to create a new instance of the GUI.
virtual wxColor GetBackgroundColor()
void SetName(wxString name)
virtual void CameraReset(albaVME *node=NULL)
wxColor m_BackgroundColor
virtual bool Pick(int x, int y)
Perform a picking according to the screen position (x,y) and return true on success.
virtual void SetWindowSize(int w, int h)
Set the vtk RenderWindow size.
virtual void CameraUpdate()
albaView(const wxString &label="View")
virtual void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
vtkCellPicker * GetPicker2D()
Return the picker used to pick the in the render window.
virtual void SetMouse(albaDeviceButtonsPadMouse *mouse)
void SetCanSpin(bool canSpin)
Sets CanSpin.
virtual void OnSize(wxSizeEvent &size_event)
virtual bool Pick(albaMatrix &m)
Perform a picking according to the absolute matrix given and return true on success.
vtkProp3D * m_PickedProp
Pointer to the picked vme Prop3D. It is initialized on picking.
virtual vtkProp3D * GetPickedProp()
Return the corresponding vtkProp3D of the picked VME.
VIEW_WIDGET_ID
IDs for the GUI.
virtual void VmeAdd(albaVME *vme)
virtual void GetImage(wxBitmap &bmp, int magnification=1)
virtual void VmeDeletePipe(albaVME *vme)
virtual void VmeUpdateProperty(albaVME *vme, bool fromTag=false)
int m_Id
Used to store the view type created (e.g. view surface).
virtual albaView * Copy(albaObserver *Listener, bool lightCopyEnabled=false)
int m_NumberOfVisibleVme
perform ResetCamera only for the first vme shown into the view
virtual albaSceneGraph * GetSceneGraph()
virtual bool FindPokedVme(albaDevice *device, albaMatrix &point_pose, vtkProp3D *&picked_prop, albaVME *&picked_vme, albaInteractor *&picked_behavior)
Find the pocked VME at button down.
virtual void SetListener(albaObserver *Listener)
virtual void VmeShow(albaVME *vme, bool show)
virtual albaVME * GetPickedVme()
Return the picked VME during the Pick method.
int m_Mult
Used to store the multiplicity of the view type created (e.g. the 3rd view surface created).
virtual void OptionsUpdate()
Called to update all components that depends on Application Options.
virtual void VmeCreatePipe(albaVME *vme)
wxPrintData * m_PrintData
bool FindPickedVme(vtkAssemblyPath *ap=NULL)
Find the VME picked.
albaVME * m_PickedVME
Pointer to the picked vme. It is initialized on picking.
virtual void Print(std::ostream &os, const int tabs=0)
Print a dump of this object into the Log area.
virtual bool IsVmeShowed(albaVME *vme)
albaAbstractTypeMacro(albaView, albaObject)
virtual void VmeRemove(albaVME *vme)
virtual albaPipe * GetNodePipe(albaVME *vme)
return the current pipe for the specified vme (if any exist at this moment)
bool GetCanSpin() const
Returns CanSpin.
virtual void GetPickedPosition(double pos[3])
Write into the double array the position picked during Pick method.
vtkCellPicker * m_Picker2D
the picker used to pick the in the render window
virtual void VmeSelect(albaVME *vme, bool select)
virtual int GetNumberOfVisibleVME()
Return the number of visible VMEs.
virtual void SetBackgroundColor(wxColor color)=0
virtual const char * GetHTMLText()
Retrieve html information.
void DeleteGui()
destroy the Gui
virtual albaRWIBase * GetRWI()