ALBA
albaInteractorDICOMImporter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorDICOMImporter
5 Authors: Paolo Quadrani , Stefano Perticoni
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaInteractorDICOMImporter_h
18#define __albaInteractorDICOMImporter_h
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
25#include "albaMTime.h"
26
27//----------------------------------------------------------------------------
28// forward declarations :
29//----------------------------------------------------------------------------
30class vtkCamera;
31class vtkPlaneSource;
32class vtkActor;
33class albaRWI;
34class albaRWIBase;
35
61{
62public:
64
67
69 virtual void OnMouseMove();
70
73
74 virtual void SetRendererAndView(vtkRenderer *ren, albaView *view);
75
76 void SetRWI(albaRWI *rwi);
77
78 void CalculateSideDragged(double * pos);
79
80 virtual void OnEvent(albaEventBase *event);
81
83 virtual void OnLeftButtonUp();
84
85 void GetPlaneBounds(double *bounds);
86
87 void SetSliceBounds(double *bounds);
88
90
92
93protected:
96
98
99
100 vtkPlaneSource *m_CropPlane;
101 vtkActor *m_CropActor;
105 double m_SliceSize[2];
106 double m_Delta;
108 wxStockCursor m_CurrentArrow;
109
110private:
112 void operator=(const albaInteractorDICOMImporter&); // Not implemented.
113};
114#endif
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Event class to transport a triggering button and a position from pointing devices.
implements mouse move of camera in the scene.
Implements mouse move of the camera in the scene and notify the listener with world coordinates on le...
virtual void OnMouseMove()
redefined to send the picking world coordinates also
void SetRWI(albaRWI *rwi)
void GetPlaneBounds(double *bounds)
virtual ~albaInteractorDICOMImporter()
virtual void OnLeftButtonDown(albaEventInteraction *e)
redefined to send the picking world coordinates also
virtual int StartInteraction(albaDeviceButtonsPadMouse *mouse)
Start the interaction with the given device.
albaTypeMacro(albaInteractorDICOMImporter, albaInteractorCameraMove)
virtual void OnEvent(albaEventBase *event)
Process events coming from tracker.
virtual void OnLeftButtonUp()
redefined to send the picking world coordinates also
virtual void SetRendererAndView(vtkRenderer *ren, albaView *view)
Set/Get the renderer this interactor is attached to.
void CalculateSideDragged(double *pos)
void SetSliceBounds(double *bounds)
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
Definition: albaRWIBase.h:61
albaView is the base class for Views in alba.
Definition: albaView.h:79