ALBA
albaGizmoCrossRotateTranslate.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGizmoCrossRotateTranslate
5 Authors: 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
18//======================== WORK IN PROGRESS !!!!! ========================
19//======================== WORK IN PROGRESS !!!!! ========================
20//======================== WORK IN PROGRESS !!!!! ========================
21//======================== WORK IN PROGRESS !!!!! ========================
22//======================== WORK IN PROGRESS !!!!! ========================
23//======================== WORK IN PROGRESS !!!!! ========================
24//======================== WORK IN PROGRESS !!!!! ========================
25//======================== WORK IN PROGRESS !!!!! ========================
26//======================== WORK IN PROGRESS !!!!! ========================
27
28#ifndef __albaGizmoCrossRotateTranslate_H__
29#define __albaGizmoCrossRotateTranslate_H__
30
31//----------------------------------------------------------------------------
32// Include:
33//----------------------------------------------------------------------------
34#include "albaDefines.h"
35#include "albaVMESurface.h"
36#include "albaGizmoInterface.h"
37
38//----------------------------------------------------------------------------
39// forward references :
40//----------------------------------------------------------------------------
41
42class albaViewVTK;
45
46
54{
55public:
56
59
60 enum NORMAL {X = 0, Y = 1, Z = 2};
61
62
63 enum COMPONENT {GREW = 0, GTAEW, GTPEW, GRNS , GTANS , GTPNS };
64 enum COLOR {RED = 0, GREEN , BLUE };
65 void SetColor(int component, int color);
66
67 void Create(albaVME *input, albaObserver* listener = NULL, bool BuildGUI = true, int normal = X);
68 void SetInput(albaVME *vme);
69
71 void SetRenderWindowHeightPercentage(double percentage);
72
74 void SetAutoscale(bool autoscale);
75
77 void SetAlwaysVisible(bool alwaysVisible);
78
79 void SetRefSys(albaVME *refSys);
80
83 void SetAbsPose(albaMatrix *absPose);
85
86 void Show(bool show);
87
88 void SetName(albaString name);
89 albaString GetName() {return m_NameRTG;}
90 void OnEvent(albaEventBase *alba_event);
91
93
96
98};
99
100
101#endif
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Gizmo used to perform constrained roto-translation on a given plane.
void Create(albaVME *input, albaObserver *listener=NULL, bool BuildGUI=true, int normal=X)
void SetColor(int component, int color)
void Show(bool show)
Show the gizmo (not implemented)
albaGizmoCrossTranslate * m_GizmoCrossTranslate
void SetName(albaString name)
void SetAlwaysVisible(bool alwaysVisible)
Superclass override.
void OnEvent(albaEventBase *alba_event)
Events handling (not implemented)
void SetInput(albaVME *vme)
Set input vme for the gizmo: gizmo are tools used to manipulate VMEs and this variable holds a refere...
void SetRefSys(albaVME *refSys)
void SetAbsPose(albaMatrix *absPose)
Set/Get the gizmo abs pose at the current time stamp.
void SetAutoscale(bool autoscale)
Superclass override.
void SetRenderWindowHeightPercentage(double percentage)
Superclass override.
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
Gizmo used to perform constrained rotation around an axis.
Gizmo used to perform constrained translation.
Base class for operations and views gizmos.
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
albaVME -
Definition: albaVME.h:150
albaViewVTK is a View that got a RenderWindow and a SceneGraph
Definition: albaViewVTK.h:49