|
ALBA
|
#include <albaGizmoPath.h>


Public Types | |
| enum | ID_TEXT_SIDE { ID_LEFT_TEXT_SIDE = 0 , ID_RIGTH_TEXT_SIDE } |
| enum | SentPoseID { ABS_POSE = albaInteractorGenericMouse::MOUSE_UP+1 } |
Public Types inherited from albaGizmoInterface | |
| enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Protected Types | |
| enum | CONSTRAINT_MODALITY_ID { FREE = 0 , BOUNDS , SNAP_VERTEX , CONSTRAINT_MODALITY_NUMBERS } |
Protected Member Functions | |
| void | CreateVMEGizmo () |
| void | DestroyVMEGizmo () |
| void | SetVersor (int axis, double versor[3], albaMatrix &matrix) |
| void | Constructor (albaVME *imputVme, albaObserver *listener, const char *name) |
| void | Destructor () |
| void | CreateInteractor () |
| void | FindGizmoAbsPose (double s) |
| void | FindBoundaryVerticesID (double s, int &idMin, int &idMax, double &sFromIdMin) |
| void | ComputeLocalPointPositionBetweenVertices (double distP0s, int idP0, int idP1, double pOut[3]) |
| void | ComputeLocalNormal (int idP0, int idP1, double viewUp[3], double normal[3]) |
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) |
Static Protected Member Functions | |
| static void | BuildVector (double p0[3], double p1[3], double vOut[3]) |
| static void | BuildVector (double coeff, const double *inVector, double *outVector) |
| static void | AddVectors (double p0[3], double p1[3], double sum[3]) |
Protected Attributes | |
| albaString | m_Name |
| albaVMEGizmo * | m_VmeGizmoPath |
| albaInteractorCompositorMouse * | m_GizmoInteractor |
| albaInteractorGenericMouse * | m_LeftMouseInteractor |
| albaGUI * | m_GizmoGui |
| albaVME * | m_ConstraintPolyline |
| vtkLineSource * | m_LineSource |
| double | m_CurvilinearAbscissa |
| int | m_ConstraintModality |
| int | m_TextVisibility |
| bool | m_TextSidePosition |
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 |
Gizmo constrained to arbitrary path...
to use this object instanciate it in your client and listen for ID_TRANSFORM events with albaGizmoPath::ABS_POSE argument;
REFACTOR NOTE: this object should be the expanded to support mouse interaction
Definition at line 45 of file albaGizmoPath.h.
| Enumerator | |
|---|---|
| ID_LEFT_TEXT_SIDE | |
| ID_RIGTH_TEXT_SIDE | |
Definition at line 53 of file albaGizmoPath.h.
| Enumerator | |
|---|---|
| ABS_POSE | |
Definition at line 59 of file albaGizmoPath.h.
|
protected |
| Enumerator | |
|---|---|
| FREE | |
| BOUNDS | |
| SNAP_VERTEX | |
| CONSTRAINT_MODALITY_NUMBERS | |
Definition at line 150 of file albaGizmoPath.h.
| albaGizmoPath::albaGizmoPath | ( | albaVME * | inputVme, |
| albaObserver * | Listener = NULL, |
||
| const char * | name = "GizmoPath", |
||
| int | textVisibility = 0 |
||
| ) |
|
virtual |
| void albaGizmoPath::SetCurvilinearAbscissa | ( | double | s | ) |
Set position along constraint polyline.
| double albaGizmoPath::GetCurvilinearAbscissa | ( | ) |
|
inline |
Set the constraint polyline: any VME can be provided but its output must be a albaVMEOutputPolyline.
Definition at line 67 of file albaGizmoPath.h.
|
virtual |
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for faster rendering.
Reimplemented from albaGizmoInterface.
|
virtual |
This method is used to change the input: this VME is used only to reparent the gizmo to the root.
Reimplemented from albaGizmoInterface.
|
inline |
return the gizmo object
Definition at line 81 of file albaGizmoPath.h.
|
virtual |
Get the gizmo abs pose.
Reimplemented from albaGizmoInterface.
| void albaGizmoPath::SetColor | ( | double | col[3] | ) |
Set the gizmo color.
| void albaGizmoPath::SetLineLength | ( | double | lineLength | ) |
set the length of the gizmo default representation ie a 2d line REFACTOR NOTE: graphical representation should be defined by subclasses...
| void albaGizmoPath::SetConstraintModalityToSnapVertex | ( | ) |
Set/Get the gizmo moving modality, default is free.
| void albaGizmoPath::SetConstraintModalityToFree | ( | ) |
| void albaGizmoPath::SetConstraintModalityToBounds | ( | ) |
|
inline |
Definition at line 97 of file albaGizmoPath.h.
|
virtual |
Events handling method.
Reimplemented from albaGizmoInterface.
|
inline |
Definition at line 102 of file albaGizmoPath.h.
|
inline |
Definition at line 103 of file albaGizmoPath.h.
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 127 of file albaGizmoPath.h.
|
protected |
Definition at line 128 of file albaGizmoPath.h.
|
protected |
Definition at line 129 of file albaGizmoPath.h.
|
protected |
Definition at line 130 of file albaGizmoPath.h.
|
protected |
Definition at line 131 of file albaGizmoPath.h.
|
protected |
Definition at line 134 of file albaGizmoPath.h.
|
protected |
Definition at line 136 of file albaGizmoPath.h.
|
protected |
Definition at line 144 of file albaGizmoPath.h.
|
protected |
Definition at line 145 of file albaGizmoPath.h.
|
protected |
Definition at line 147 of file albaGizmoPath.h.
|
protected |
Definition at line 148 of file albaGizmoPath.h.