22#include "albaServiceClient.h"
23#include "albaAbsLogicManager.h"
85 virtual albaView*
Copy(
albaObserver *Listener,
bool lightCopyEnabled =
false) {m_LightCopyEnabled = lightCopyEnabled;
return NULL;};
106 virtual void GetImage(wxBitmap &bmp,
int magnification = 1) {};
127 virtual albaGUI*
GetGui() {
if(m_Gui == NULL) CreateGui(); assert(m_Gui);
return m_Gui;};
134 virtual void OnSize(wxSizeEvent &size_event) {};
140 virtual bool Pick(
int x,
int y);
152 virtual void Print(std::ostream& os,
const int tabs=0);
194 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 albaGUIVMETree also
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.
Base class of the behaviors: a behavior is the interaction tool of a VME.
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.
albaObserver * m_Listener
virtual albaGUI * GetGui()
virtual int GetNodeStatus(albaVME *vme)
return the status of the node within this view.
virtual wxWindow * GetWindow()
virtual char ** GetIcon()
return an xpm-icon that can be used to represent this view
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
virtual void SetFrame(wxWindow *f)
vtkCellPicker * GetPicker2D()
Return the picker used to pick the in the render window.
void SetCanSpin(bool canSpin)
Sets CanSpin.
virtual void OnSize(wxSizeEvent &size_event)
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)
virtual bool IsSliceView()
Return true if the view shows a slice with a parallel camera; the slice views override it.
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 vtkRenderer * GetFrontRenderer()
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 wxWindow * GetFrame()
Return the page that shows the view in the view area (albaGUIViewPage)
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()