| 
    ALBA
    
   | 
 
#include <albaGizmoCrossRotateFan.h>


Public Types | |
| enum | AXIS { X = 0 , Y , Z } | 
  Public Types inherited from albaGizmoInterface | |
| enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } | 
Public Member Functions | |
| albaGizmoCrossRotateFan (albaVME *input, albaObserver *listener=NULL) | |
| virtual | ~albaGizmoCrossRotateFan () | 
| 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) | 
  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_Gizmo | 
| 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
^               ^              ^
|               |              |
|   /|          |  /|          |   /|
| /  |          |/  |          | /  |
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 70 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
| Enumerator | |
|---|---|
| OFF | |
| ON | |
Definition at line 168 of file albaGizmoCrossRotateFan.h.
| albaGizmoCrossRotateFan::albaGizmoCrossRotateFan | ( | 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 79 of file albaGizmoCrossRotateFan.h.
References m_InputVme.
      
  | 
  inline | 
Set the event receiver object.
Definition at line 86 of file albaGizmoCrossRotateFan.h.
References m_Listener.
      
  | 
  virtual | 
Events handling.
Reimplemented from albaGizmoInterface.
| void albaGizmoCrossRotateFan::SetAxis | ( | int | axis | ) | 
Set/Get gizmo axis, default axis is X.
| int albaGizmoCrossRotateFan::GetAxis | ( | ) | 
Get gizmo axis.
      
  | 
  virtual | 
Show gizmo.
Reimplemented from albaGizmoInterface.
| void albaGizmoCrossRotateFan::SetRadius | ( | double | radius | ) | 
Set/Get the radius of the gizmo.
| double albaGizmoCrossRotateFan::GetRadius | ( | ) | 
      
  | 
  virtual | 
Set the abs pose.
Reimplemented from albaGizmoInterface.
      
  | 
  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 187 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Register input vme.
Definition at line 127 of file albaGizmoCrossRotateFan.h.
Referenced by GetInput().
      
  | 
  protected | 
Register the event receiver object.
Definition at line 131 of file albaGizmoCrossRotateFan.h.
Referenced by SetListener().
      
  | 
  protected | 
Register the gizmo axis.
Definition at line 134 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Create the sphere.
Definition at line 137 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Transform to rotate the fan around Z axis after creation to match new m_StartTheta angle.
Definition at line 141 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 143 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
sphere transform
Definition at line 146 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
rotate PDF for sphere
Definition at line 149 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Fan gizmo.
Definition at line 152 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Start angle and end angle.
Definition at line 165 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 166 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Register the mirror status of the fan; default status is off.
Definition at line 171 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 173 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 174 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 175 of file albaGizmoCrossRotateFan.h.
      
  | 
  protected | 
Definition at line 184 of file albaGizmoCrossRotateFan.h.