16#ifndef __albaViewVTK_H__
17#define __albaViewVTK_H__
69 ID_ROLLOUT_ATTACH_CAMERA = Superclass::ID_LAST,
121 void GetImage(wxBitmap &bmp,
int magnification = 1);
134 virtual bool Pick(
int x,
int y);
161 virtual void Print(std::ostream& os,
const int tabs=0);
This component allow to manage camera animation into a view.
albaAttachCamera is tool to attach the camera present in albaRWI to the selected VME.
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.
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.
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.
albaTextKit is tool to visualize text into a given albaRWI.
albaViewVTK is a View that got a RenderWindow and a SceneGraph
virtual void Create()
create rwi
virtual void VmeShow(albaVME *vme, bool show)
Called to show/hide vme.
virtual void VmeAdd(albaVME *vme)
Add the vme to the view's scene-graph.
virtual void VmeSelect(albaVME *vme, bool select)
virtual bool Pick(int x, int y)
Perform a picking according to the screen position (x,y) and return true on success.
albaLightKit * m_LightKit
virtual void CameraSet(int camera_position)
albaAnimate * m_AnimateKit
virtual void VmeDeletePipe(albaVME *vme)
Delete vme's visual pipe.
int m_StereoType
Indicate the stereo type to use with the view.
virtual void VmeUpdateProperty(albaVME *vme, bool fromTag=false)
Called to update visual pipe properties of the vme passed as argument.
void GetImage(wxBitmap &bmp, int magnification=1)
Return a pointer to the image of the renderwindow.
virtual void OnPreResetCamera()
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 vtkRenderer * GetBackRenderer()
virtual bool Pick(albaMatrix &m)
Perform a picking according to the absolute matrix given and return true on success.
albaAttachCamera * m_AttachCamera
virtual albaView * Copy(albaObserver *Listener, bool lightCopyEnabled=false)
clone the object
std::map< albaString, albaVisualPipeInfo > albaPipeMap
virtual albaPipe * GetNodePipe(albaVME *vme)
Return a pointer to the visual pipe of the node passed as argument.
albaViewVTK(const wxString &label="vtkView", int camera_position=CAMERA_PERSPECTIVE, bool show_axes=true, bool show_grid=false, int stereo=0, bool show_orientator=false, int axesType=albaAxes::TRIAD)
constructor
albaPipeMap m_PipeMap
Map used to store visual pipeline associated with vme types.
virtual void OnPostResetCamera()
virtual vtkRenderer * GetFrontRenderer()
void SetMouse(albaDeviceButtonsPadMouse *mouse)
Set the mouse device to use inside the view.
virtual void SetBackgroundColor(wxColor color)
albaTypeMacro(albaViewVTK, albaView)
RTTI macro.
virtual void CameraUpdate()
virtual void VmeRemove(albaVME *vme)
Remove the vme from the view's scene-graph.
virtual void OnEvent(albaEventBase *alba_event)
listen to other object events
virtual void CameraReset(albaVME *vme=NULL)
VIEW_VTK_WIDGET_ID
IDs for the GUI.
virtual int GetNodeStatus(albaVME *vme)
Set the visualization status for the node (visible, not visible, mutex, ...)
virtual ~albaViewVTK()
constructor
virtual vtkRenderWindow * GetRenderWindow()
int m_CameraPositionId
Integer representing a preset for camera position, focal point and view up.
virtual albaSceneGraph * GetSceneGraph()
virtual void GetVisualPipeName(albaVME *node, albaString &pipe_name)
Return the visual pipe's name.
void SetWindowSize(int w, int h)
Set the vtk RenderWindow size.
virtual void Print(std::ostream &os, const int tabs=0)
print a dump of this object
bool m_ShowAxes
Flag used to show/hide axes in low left corner of the view.
virtual void VmeCreatePipe(albaVME *vme)
Create the visual pipe for the node passed as argument.
virtual albaGUI * CreateGui()
Internally used to create a new instance of the GUI.
void PlugVisualPipe(albaString vme_type, albaString pipe_type, long visibility=VISIBLE)
Plug a visual pipe for a particular vme.
virtual albaRWIBase * GetRWI()
virtual int GetCameraPosition()
albaView is the base class for Views in alba.
Struct containing information regarding visual pipe plugged into the view.