ALBA
|
#include <albaGizmoCrossRotateAxis.h>
Public Types | |
enum | AXIS { X = 0 , Y , Z } |
enum | GIZMO_DIRECTION { EW = 0 , NS = 1 } |
Public Types inherited from albaGizmoInterface | |
enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Public Member Functions | |
albaGizmoCrossRotateAxis (albaVME *input, albaObserver *listener=NULL) | |
virtual | ~albaGizmoCrossRotateAxis () |
void | SetInput (albaVME *vme) |
albaVME * | GetInput () |
void | SetListener (albaObserver *Listener) |
virtual void | OnEvent (albaEventBase *alba_event) |
void | SetRotationAxis (int axis) |
int | GetAxis () |
void | SetGizmoDirection (int direction) |
int | GetGizmoDirection () |
void | Highlight (bool highlight) |
void | Show (bool show) |
void | ShowTranslationFeedbackArrows (bool show) |
double | GetRadius () |
void | SetIsActive (bool isActive) |
bool | GetIsActive () |
void | SetAbsPose (albaMatrix *absPose) |
albaMatrix * | GetAbsPose () |
albaInteractorGenericInterface * | GetInteractor () |
void | SetColor (double col[3]) |
void | SetColor (double colR, double colG, double colB) |
Public Member Functions inherited from albaGizmoInterface | |
void | SetName (albaString name) |
albaString | GetName () |
virtual void | SetInput (albaVME *vme) |
albaVME * | GetInput () |
void | SetMediator (albaObserver *mediator) |
albaObserver * | GetMediator () |
void | SetAutoscale (bool autoscale) |
bool | GetAutoscale () |
void | SetRenderWindowHeightPercentage (double percentage) |
double | GetRenderWindowHeightPercentage () |
void | SetAlwaysVisible (bool alwaysVisible) |
bool | GetAlwaysVisible () |
void | SetListener (albaObserver *listener) |
albaObserver * | GetListener () |
virtual void | OnEvent (albaEventBase *alba_event) |
virtual void | Show (bool show) |
void | SetModalityToLocal () |
void | SetModalityToGlobal () |
int | GetModality () |
virtual void | SetAbsPose (albaMatrix *absPose) |
virtual albaMatrix * | GetAbsPose () |
virtual albaGUI * | GetGui () |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Protected Types | |
enum | GIZMO_STATUS { SELECTED = 0 , NOT_SELECTED } |
Protected Member Functions | |
void | SetRefSysMatrix (albaMatrix *matrix) |
void | CreatePipeline () |
void | CreateFeedbackGizmoPipeline () |
void | CreateISA () |
Protected Member Functions inherited from albaGizmoInterface | |
albaGizmoInterface () | |
virtual | ~albaGizmoInterface () |
void | SendTransformMatrix (albaMatrix *matrix, int eventId, long arg) |
virtual void | OnEventGizmoGui (albaEventBase *alba_event) |
virtual void | OnEventGizmoComponents (albaEventBase *alba_event) |
Basic gizmo component used to perform constrained rotation around an axis.
Definition at line 63 of file albaGizmoCrossRotateAxis.h.
Enumerator | |
---|---|
EW | |
NS |
Definition at line 97 of file albaGizmoCrossRotateAxis.h.
|
protected |
z z y ^ ^ ^
----—> y ----—>x ----—> x
YZ XZ XY
Enumerator | |
---|---|
SELECTED | |
NOT_SELECTED |
Definition at line 186 of file albaGizmoCrossRotateAxis.h.
albaGizmoCrossRotateAxis::albaGizmoCrossRotateAxis | ( | albaVME * | input, |
albaObserver * | listener = NULL |
||
) |
|
virtual |
|
virtual |
Set the gizmo generating vme; the gizmo will be centered on this vme.
Reimplemented from albaGizmoInterface.
albaVME * albaGizmoCrossRotateAxis::GetInput | ( | ) |
void albaGizmoCrossRotateAxis::SetListener | ( | albaObserver * | Listener | ) |
Set the event receiver object.
|
virtual |
Events handling.
Reimplemented from albaGizmoInterface.
void albaGizmoCrossRotateAxis::SetRotationAxis | ( | int | axis | ) |
Set/Get the gizmo axis, default axis is X.
int albaGizmoCrossRotateAxis::GetAxis | ( | ) |
Get the gizmo axis.
void albaGizmoCrossRotateAxis::SetGizmoDirection | ( | int | direction | ) |
Set the gizmo visual representation: NS vs EW.
N | x E—x—W | S
x is the normal axis ie the gizmo is constraining rotation around it. Default is NS
|
inline |
Definition at line 112 of file albaGizmoCrossRotateAxis.h.
References m_GizmoDirection.
void albaGizmoCrossRotateAxis::Highlight | ( | bool | highlight | ) |
Highlight gizmo.
|
virtual |
Show the translation gizmo.
Reimplemented from albaGizmoInterface.
void albaGizmoCrossRotateAxis::ShowTranslationFeedbackArrows | ( | bool | show | ) |
Show the translation feedback arrows
double albaGizmoCrossRotateAxis::GetRadius | ( | ) |
Get the radius of the gizmo.
void albaGizmoCrossRotateAxis::SetIsActive | ( | bool | isActive | ) |
Set/Get the activation status of the gizmo, When the gizmo is active it is sending pose matrices to the listener.
bool albaGizmoCrossRotateAxis::GetIsActive | ( | ) |
|
virtual |
Set the abs pose.
Reimplemented from albaGizmoInterface.
|
virtual |
Get the gizmo abs pose.
Reimplemented from albaGizmoInterface.
albaInteractorGenericInterface * albaGizmoCrossRotateAxis::GetInteractor | ( | ) |
Get the gizmo interactor.
void albaGizmoCrossRotateAxis::SetColor | ( | double | col[3] | ) |
Gizmo color setting facilities for gizmo segments;.
void albaGizmoCrossRotateAxis::SetColor | ( | double | colR, |
double | colG, | ||
double | colB | ||
) |
|
protected |
Set the reference system matrix and the Pivot ref sys matrix.
Both reference system type are set to CUSTOM.
|
protected |
Create moving gizmo vtk objects.
|
protected |
Create motion feedback gizmo vtk objects.
|
protected |
Create isa stuff.
|
protected |
Definition at line 158 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 159 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 166 of file albaGizmoCrossRotateAxis.h.
|
protected |
Circle gizmo.
Definition at line 169 of file albaGizmoCrossRotateAxis.h.
|
protected |
Register input vme.
Definition at line 172 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 189 of file albaGizmoCrossRotateAxis.h.
Referenced by GetGizmoDirection().
|
protected |
Register the gizmo axis.
Definition at line 192 of file albaGizmoCrossRotateAxis.h.
|
protected |
Create the circle polydata.
Definition at line 195 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 196 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 197 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 198 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 200 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 202 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 203 of file albaGizmoCrossRotateAxis.h.
|
protected |
rotate PDF for gizmo
Definition at line 206 of file albaGizmoCrossRotateAxis.h.
|
protected |
rotation transform
Definition at line 209 of file albaGizmoCrossRotateAxis.h.
|
protected |
isa compositor
Definition at line 221 of file albaGizmoCrossRotateAxis.h.
|
protected |
isa generic
Definition at line 224 of file albaGizmoCrossRotateAxis.h.
|
protected |
Register the event receiver object.
Definition at line 228 of file albaGizmoCrossRotateAxis.h.
|
protected |
Register Gizmo status.
Definition at line 231 of file albaGizmoCrossRotateAxis.h.
|
protected |
Register gizmo radius.
Definition at line 234 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 236 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 238 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 239 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 240 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 241 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 243 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 244 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 245 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 246 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 248 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 249 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 250 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 251 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 252 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 253 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 254 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 256 of file albaGizmoCrossRotateAxis.h.
|
protected |
Definition at line 257 of file albaGizmoCrossRotateAxis.h.