ALBA
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
albaViewPlot Class Reference

#include <albaViewPlot.h>

Inheritance diagram for albaViewPlot:
Inheritance graph
[legend]
Collaboration diagram for albaViewPlot:
Collaboration graph
[legend]

Public Types

typedef std::map< albaString, albaVisualPipeInfoalbaPipeMap
 
- Public Types inherited from albaView
enum  VIEW_WIDGET_ID { ID_FIRST = MINID , ID_PRINT_INFO , ID_HELP , ID_LAST }
 

Public Member Functions

 albaViewPlot (const wxString &label="plot View")
 
virtual ~albaViewPlot ()
 
 albaTypeMacro (albaViewPlot, albaView)
 
virtual albaViewCopy (albaObserver *Listener, bool lightCopyEnabled=false)
 
virtual void Create ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
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 int GetNodeStatus (albaVME *vme)
 
virtual albaPipeGetNodePipe (albaVME *vme)
 
virtual void VmeCreatePipe (albaVME *vme)
 
virtual void VmeDeletePipe (albaVME *vme)
 
virtual albaSceneGraphGetSceneGraph ()
 
virtual void SetBackgroundColor (wxColor color)
 
void PlugVisualPipe (albaString vme_type, albaString pipe_type, long visibility=VISIBLE)
 
void SetMouse (albaDeviceButtonsPadMouse *mouse)
 
- 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 albaViewCopy (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 albaRWIBaseGetRWI ()
 
virtual albaSceneGraphGetSceneGraph ()
 
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 albaPipeGetNodePipe (albaVME *vme)
 
wxString GetLabel ()
 
wxString GetName ()
 
void SetLabel (wxString label)
 
void SetName (wxString name)
 
virtual wxWindow * GetWindow ()
 
virtual wxFrame * GetFrame ()
 
virtual albaGUIGetGui ()
 
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 albaVMEGetPickedVme ()
 
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 albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 

Public Attributes

albaPipeMap m_PipeMap
 
- Public Attributes inherited from albaView
int m_Mult
 
int m_Id
 
bool m_Plugged
 
albaViewm_Next
 

Protected Member Functions

virtual albaGUICreateGui ()
 
void GetVisualPipeName (albaVME *vme, albaString &pipe_name)
 
- Protected Member Functions inherited from albaView
bool FindPickedVme (vtkAssemblyPath *ap=NULL)
 
virtual albaGUICreateGui ()
 

Protected Attributes

albaSceneGraphm_Sg
 
- Protected Attributes inherited from albaView
albaObserverm_Listener
 
wxString m_Label
 
wxString m_Name
 
wxWindow * m_Win
 
wxFrame * m_Frame
 
albaGUIm_Gui
 
albaGUIHolderm_Guih
 
vtkCellPicker * m_Picker2D
 
vtkALBARayCast3DPicker * m_Picker3D
 
albaVMEm_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 albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 

Detailed Description

albaViewPlot is a View that got a albaXYPlot and plot curves on a plane.

Definition at line 51 of file albaViewPlot.h.

Member Typedef Documentation

◆ albaPipeMap

Definition at line 110 of file albaViewPlot.h.

Constructor & Destructor Documentation

◆ albaViewPlot()

albaViewPlot::albaViewPlot ( const wxString &  label = "plot View")

◆ ~albaViewPlot()

virtual albaViewPlot::~albaViewPlot ( )
virtual

Member Function Documentation

◆ albaTypeMacro()

albaViewPlot::albaTypeMacro ( albaViewPlot  ,
albaView   
)

◆ Copy()

virtual albaView * albaViewPlot::Copy ( albaObserver Listener,
bool  lightCopyEnabled = false 
)
virtual

Reimplemented from albaView.

◆ Create()

virtual void albaViewPlot::Create ( )
virtual

Reimplemented from albaView.

◆ OnEvent()

virtual void albaViewPlot::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Reimplemented from albaView.

◆ VmeAdd()

virtual void albaViewPlot::VmeAdd ( albaVME vme)
virtual

IDs for the GUI.

Add the vme to the view's scene-graph

Reimplemented from albaView.

◆ VmeRemove()

virtual void albaViewPlot::VmeRemove ( albaVME vme)
virtual

Remove the vme from the view's scene-graph.

Reimplemented from albaView.

◆ VmeSelect()

virtual void albaViewPlot::VmeSelect ( albaVME vme,
bool  select 
)
virtual

Reimplemented from albaView.

◆ VmeShow()

virtual void albaViewPlot::VmeShow ( albaVME vme,
bool  show 
)
virtual

Called to show/hide vme.

Reimplemented from albaView.

◆ VmeUpdateProperty()

virtual void albaViewPlot::VmeUpdateProperty ( albaVME vme,
bool  fromTag = false 
)
virtual

Called to update visual pipe properties of the vme passed as argument.

If the 'fromTag' flag is true, the update is done by reading the visual parameters from tags.

Reimplemented from albaView.

◆ GetNodeStatus()

virtual int albaViewPlot::GetNodeStatus ( albaVME vme)
virtual

Set the visualization status for the node (visible, not visible, mutex, ...)

See also
albaSceneGraph

Reimplemented from albaView.

◆ GetNodePipe()

virtual albaPipe * albaViewPlot::GetNodePipe ( albaVME vme)
virtual

Return a pointer to the visual pipe of the node passed as argument.

It is used in albaSideBar to plug the visual pipe's GUI in the tabbed vme panel.

See also
albaSideBar

Reimplemented from albaView.

◆ VmeCreatePipe()

virtual void albaViewPlot::VmeCreatePipe ( albaVME vme)
virtual

Create the visual pipe for the node passed as argument.

To create visual pipe first check in m_PipeMap if custom visual pipe is defined, otherwise ask to vme which is its visual pipe.

Reimplemented from albaView.

◆ VmeDeletePipe()

virtual void albaViewPlot::VmeDeletePipe ( albaVME vme)
virtual

Delete vme's visual pipe.

It is called when vme is removed from visualization.

Reimplemented from albaView.

◆ GetSceneGraph()

virtual albaSceneGraph * albaViewPlot::GetSceneGraph ( )
inlinevirtual

Reimplemented from albaView.

Definition at line 106 of file albaViewPlot.h.

◆ SetBackgroundColor()

virtual void albaViewPlot::SetBackgroundColor ( wxColor  color)
virtual

Implements albaView.

◆ PlugVisualPipe()

void albaViewPlot::PlugVisualPipe ( albaString  vme_type,
albaString  pipe_type,
long  visibility = VISIBLE 
)

Plug a visual pipe for a particular vme.

It is used also to plug custom pipe.

◆ SetMouse()

void albaViewPlot::SetMouse ( albaDeviceButtonsPadMouse mouse)
virtual

Set the mouse device to use inside the view.

Reimplemented from albaView.

◆ CreateGui()

virtual albaGUI * albaViewPlot::CreateGui ( )
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.

◆ GetVisualPipeName()

void albaViewPlot::GetVisualPipeName ( albaVME vme,
albaString pipe_name 
)
protected

Return the visual pipe's name.

Member Data Documentation

◆ m_PipeMap

albaPipeMap albaViewPlot::m_PipeMap

Map used to store visual pipeline associated with vme types.

Definition at line 115 of file albaViewPlot.h.

◆ m_Sg

albaSceneGraph* albaViewPlot::m_Sg
protected

Definition at line 121 of file albaViewPlot.h.


The documentation for this class was generated from the following file: