ALBA
|
#include <albaViewVTK.h>
Classes | |
struct | albaVisualPipeInfo |
Public Types | |
enum | VIEW_VTK_WIDGET_ID { ID_ROLLOUT_ATTACH_CAMERA = Superclass::ID_LAST , ID_ROLLOUT_TEXT_KIT , ID_ROLLOUT_LIGHT_KIT , ID_ROLLOUT_ANIMATE_KIT , ID_LAST } |
typedef std::map< albaString, albaVisualPipeInfo > | albaPipeMap |
Public Types inherited from albaView | |
enum | VIEW_WIDGET_ID { ID_FIRST = MINID , ID_PRINT_INFO , ID_HELP , ID_LAST } |
Public Member Functions | |
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) | |
virtual | ~albaViewVTK () |
albaTypeMacro (albaViewVTK, albaView) | |
virtual albaView * | Copy (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 albaPipe * | GetNodePipe (albaVME *vme) |
virtual void | VmeCreatePipe (albaVME *vme) |
virtual void | VmeDeletePipe (albaVME *vme) |
virtual void | CameraReset (albaVME *vme=NULL) |
virtual void | CameraSet (int camera_position) |
virtual void | CameraUpdate () |
virtual int | GetCameraPosition () |
virtual void | SetBackgroundColor (wxColor color) |
virtual albaSceneGraph * | GetSceneGraph () |
virtual albaRWIBase * | GetRWI () |
void | GetImage (wxBitmap &bmp, int magnification=1) |
virtual vtkRenderer * | GetFrontRenderer () |
virtual vtkRenderer * | GetBackRenderer () |
virtual vtkRenderWindow * | GetRenderWindow () |
virtual bool | FindPokedVme (albaDevice *device, albaMatrix &point_pose, vtkProp3D *&picked_prop, albaVME *&picked_vme, albaInteractor *&picked_behavior) |
virtual bool | Pick (int x, int y) |
virtual bool | Pick (albaMatrix &m) |
void | SetWindowSize (int w, int h) |
void | PlugVisualPipe (albaString vme_type, albaString pipe_type, long visibility=VISIBLE) |
void | SetMouse (albaDeviceButtonsPadMouse *mouse) |
virtual void | Print (std::ostream &os, const int tabs=0) |
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 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 | |
albaPipeMap | m_PipeMap |
albaRWI * | m_Rwi |
Public Attributes inherited from albaView | |
int | m_Mult |
int | m_Id |
bool | m_Plugged |
albaView * | m_Next |
Protected Member Functions | |
virtual albaGUI * | CreateGui () |
virtual void | OnPreResetCamera () |
virtual void | OnPostResetCamera () |
virtual void | GetVisualPipeName (albaVME *node, albaString &pipe_name) |
Protected Member Functions inherited from albaView | |
bool | FindPickedVme (vtkAssemblyPath *ap=NULL) |
virtual albaGUI * | CreateGui () |
Protected Attributes | |
albaSceneGraph * | m_Sg |
albaLightKit * | m_LightKit |
albaTextKit * | m_TextKit |
albaAttachCamera * | m_AttachCamera |
albaAnimate * | m_AnimateKit |
int | m_CameraPositionId |
bool | m_ShowAxes |
int | m_StereoType |
bool | m_ShowGrid |
bool | m_ShowOrientator |
int | m_AxesType |
Protected Attributes inherited from albaView | |
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) |
albaViewVTK is a View that got a RenderWindow and a SceneGraph
Definition at line 48 of file albaViewVTK.h.
typedef std::map<albaString, albaVisualPipeInfo> albaViewVTK::albaPipeMap |
Definition at line 148 of file albaViewVTK.h.
IDs for the GUI.
Enumerator | |
---|---|
ID_ROLLOUT_ATTACH_CAMERA | |
ID_ROLLOUT_TEXT_KIT | |
ID_ROLLOUT_LIGHT_KIT | |
ID_ROLLOUT_ANIMATE_KIT | |
ID_LAST |
Definition at line 67 of file albaViewVTK.h.
albaViewVTK::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
|
virtual |
constructor
albaViewVTK::albaTypeMacro | ( | albaViewVTK | , |
albaView | |||
) |
RTTI macro.
|
virtual |
clone the object
Reimplemented from albaView.
|
virtual |
create rwi
Reimplemented from albaView.
|
virtual |
listen to other object events
Reimplemented from albaView.
|
virtual |
Add the vme to the view's scene-graph.
Reimplemented from albaView.
|
virtual |
Remove the vme from the view's scene-graph.
Reimplemented from albaView.
|
virtual |
Reimplemented from albaView.
|
virtual |
Called to show/hide vme.
Reimplemented from albaView.
|
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.
|
virtual |
Set the visualization status for the node (visible, not visible, mutex, ...)
Reimplemented from albaView.
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.
Reimplemented from albaView.
|
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.
|
virtual |
Delete vme's visual pipe.
It is called when vme is removed from visualization.
Reimplemented from albaView.
|
virtual |
|
virtual |
Reimplemented from albaView.
|
virtual |
|
virtual |
Implements albaView.
|
inlinevirtual |
Reimplemented from albaView.
Definition at line 117 of file albaViewVTK.h.
|
inlinevirtual |
Reimplemented from albaView.
Definition at line 118 of file albaViewVTK.h.
|
virtual |
Return a pointer to the image of the renderwindow.
Reimplemented from albaView.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
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 from albaView.
|
virtual |
Perform a picking according to the screen position (x,y) and return true on success.
Reimplemented from albaView.
|
virtual |
Perform a picking according to the absolute matrix given and return true on success.
Reimplemented from albaView.
|
virtual |
Set the vtk RenderWindow size.
Used only for Linux (not necessary for Windows)
Reimplemented from albaView.
void albaViewVTK::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.
|
virtual |
Set the mouse device to use inside the view.
Reimplemented from albaView.
|
virtual |
print a dump of this object
Reimplemented from albaView.
|
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.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Return the visual pipe's name.
albaPipeMap albaViewVTK::m_PipeMap |
Map used to store visual pipeline associated with vme types.
Definition at line 153 of file albaViewVTK.h.
albaRWI* albaViewVTK::m_Rwi |
Definition at line 158 of file albaViewVTK.h.
|
protected |
Definition at line 165 of file albaViewVTK.h.
|
protected |
Definition at line 166 of file albaViewVTK.h.
|
protected |
Definition at line 167 of file albaViewVTK.h.
|
protected |
Definition at line 168 of file albaViewVTK.h.
|
protected |
Definition at line 169 of file albaViewVTK.h.
|
protected |
Integer representing a preset for camera position, focal point and view up.
Definition at line 171 of file albaViewVTK.h.
|
protected |
Flag used to show/hide axes in low left corner of the view.
Definition at line 172 of file albaViewVTK.h.
|
protected |
Indicate the stereo type to use with the view.
Definition at line 173 of file albaViewVTK.h.
|
protected |
Definition at line 174 of file albaViewVTK.h.
|
protected |
Definition at line 175 of file albaViewVTK.h.
|
protected |
Definition at line 176 of file albaViewVTK.h.