ALBA
albaInteractorGeneric6DOF.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorGeneric6DOF
5 Authors: Marco Petrone
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 __albaInteractorGeneric6DOF_h
18#define __albaInteractorGeneric6DOF_h
19
20#include "albaInteractor6DOF.h"
21
28{
29public:
31
33 virtual void OnEvent(albaEventBase *event);
34
36 virtual void OnMove(albaEventInteraction *e);
37
44 void SetDifferentialMoving(bool flag) {m_DifferentialMoving=flag;}
45 bool GetDifferentialMoving() {return m_DifferentialMoving != 0;}
46 void DifferentialMovingOn() {SetDifferentialMoving(true);}
47 void DifferentialMovingOff() {SetDifferentialMoving(false);}
48
49protected:
52
54 void Update();
55
57 double m_OutputOrientation[3];
58 double m_OutputPosition[3];
59 double m_PivotPosition[3];
60
62
63private:
64 albaInteractorGeneric6DOF(const albaInteractorGeneric6DOF&); // Not implemented.
65 void operator=(const albaInteractorGeneric6DOF&); // Not implemented.
66};
67
68#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.
base class for 3D interaction modalities with 6DOF
implements 6DOF move of objects in the scene.
albaTypeMacro(albaInteractorGeneric6DOF, albaInteractor6DOF)
void SetDifferentialMoving(bool flag)
Enable/Disable differential moving.
virtual void OnMove(albaEventInteraction *e)
manage move events
void Update()
Update the transform.
virtual void OnEvent(albaEventBase *event)
Process events coming from tracker.
virtual ~albaInteractorGeneric6DOF()
albaTransform - class for homogeneous transformations.
Definition: albaTransform.h:53