|
ALBA
|
#include <albaGizmoRotateFan.h>


Public Types | |
| enum | AXIS { X = 0 , Y , Z } |
Public Types inherited from albaGizmoInterface | |
| enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Public Member Functions | |
| albaGizmoRotateFan (albaVME *input, albaObserver *listener=NULL) | |
| virtual | ~albaGizmoRotateFan () |
| void | SetInput (albaVME *vme) |
| albaVME * | GetInput () |
| void | SetListener (albaObserver *Listener) |
| virtual void | OnEvent (albaEventBase *alba_event) |
| void | SetAxis (int axis) |
| int | GetAxis () |
| void | Show (bool show) |
| void | SetRadius (double radius) |
| double | GetRadius () |
| void | SetAbsPose (albaMatrix *absPose) |
| void | SetMediator (albaObserver *mediator) |
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 | MIRROR_STATUS { OFF = 0 , ON } |
Protected Member Functions | |
| void | CreatePipeline () |
| void | SetColor (double col[3]) |
| void | SetColor (double colR, double colG, double colB) |
| double | PointPickedToStartTheta (double xp, double yp, double zp) |
| void | SetRefSysMatrix (albaMatrix *matrix) |
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) |
Protected Attributes | |
| albaVME * | m_InputVme |
| albaObserver * | m_Listener |
| int | m_ActiveAxis |
| vtkSphereSource * | m_Sphere |
| vtkTransform * | m_RotateFanTransform |
| vtkTransformPolyDataFilter * | m_RotateFanTPDF |
| vtkTransform * | m_ChangeFanAxisTransform |
| vtkTransformPolyDataFilter * | m_ChangeFanAxisTPDF |
| albaVMEGizmo * | m_GizmoFan |
| double | m_StartTheta |
| double | m_EndTheta |
| int | m_MirrorStatus |
| vtkTransform * | m_MirrorTr |
| vtkTransform * | m_BufferTr |
| vtkTransformPolyDataFilter * | m_MirrorTPDF |
| albaRefSys * | m_RefSys |
Protected Attributes inherited from albaGizmoInterface | |
| albaObserver * | m_Mediator |
| albaString | m_Name |
| albaVME * | m_InputVME |
| int | m_Modality |
| albaObserver * | m_Listener |
| albaVME * | m_RefSysVME |
| bool | m_Visibility |
| double | m_RenderWindowHeightPercentage |
| bool | m_AlwaysVisible |
| bool | m_Autoscale |
Friends | |
| class | albaGizmoRotateFanTest |
Basic gizmo component used to give rotation angle feedback.
This gizmo draws a fan centered at rotation origin giving visual feedback for rotation angle value.
z x y
^ ^ ^
| | |p
| /| | /| | /|
| / | |/ | | / |
x-------> y y-------> z z-------> x
X Y Z
This component notifies the listener with the activeGizmoAxis
and the localRotationAngle around the activGizmoAxis
albaString activeGizmoAxis = *(event->GetString()); // "X", "Y" or "Z" string double localRotationAngle = event->GetDouble();
Definition at line 58 of file albaGizmoRotateFan.h.
|
protected |
| Enumerator | |
|---|---|
| OFF | |
| ON | |
Definition at line 159 of file albaGizmoRotateFan.h.
| albaGizmoRotateFan::albaGizmoRotateFan | ( | albaVME * | input, |
| albaObserver * | listener = NULL |
||
| ) |
|
virtual |
|
virtual |
Set the gizmo generating vme; the gizmo will be centered on this vme.
Reimplemented from albaGizmoInterface.
|
inline |
Definition at line 67 of file albaGizmoRotateFan.h.
|
inline |
Set the event receiver object.
Definition at line 74 of file albaGizmoRotateFan.h.
|
virtual |
Events handling.
Reimplemented from albaGizmoInterface.
| void albaGizmoRotateFan::SetAxis | ( | int | axis | ) |
Set/Get gizmo axis, default axis is X.
| int albaGizmoRotateFan::GetAxis | ( | ) |
Get gizmo axis.
|
virtual |
Show gizmo.
Reimplemented from albaGizmoInterface.
| void albaGizmoRotateFan::SetRadius | ( | double | radius | ) |
Set/Get the radius of the gizmo.
| double albaGizmoRotateFan::GetRadius | ( | ) |
|
virtual |
Set the abs pose.
Reimplemented from albaGizmoInterface.
| void albaGizmoRotateFan::SetMediator | ( | albaObserver * | mediator | ) |
Superclass override.
|
protected |
gizmo data
Create vtk objects needed
|
protected |
m_Gizmo color setting facilities for gizmo segments;
|
protected |
|
protected |
Get the start theta from abs pick coordinates.
|
protected |
Set the reference system matrix.
Reference system type is set to CUSTOM.
|
friend |
Test Friend.
Definition at line 178 of file albaGizmoRotateFan.h.
|
protected |
Register input vme.
Definition at line 118 of file albaGizmoRotateFan.h.
|
protected |
Register the event receiver object.
Definition at line 122 of file albaGizmoRotateFan.h.
|
protected |
Register the gizmo axis.
Definition at line 125 of file albaGizmoRotateFan.h.
|
protected |
Create the sphere.
Definition at line 128 of file albaGizmoRotateFan.h.
|
protected |
Transform to rotate the fan around Z axis after creation to match new m_StartTheta angle.
Definition at line 132 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 134 of file albaGizmoRotateFan.h.
|
protected |
sphere transform
Definition at line 137 of file albaGizmoRotateFan.h.
|
protected |
rotate PDF for sphere
Definition at line 140 of file albaGizmoRotateFan.h.
|
protected |
Fan gizmo.
Definition at line 143 of file albaGizmoRotateFan.h.
|
protected |
Start angle and end angle.
Definition at line 156 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 157 of file albaGizmoRotateFan.h.
|
protected |
Register the mirror status of the fan; default status is off.
Definition at line 162 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 164 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 165 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 166 of file albaGizmoRotateFan.h.
|
protected |
Definition at line 175 of file albaGizmoRotateFan.h.