|
ALBA
|
#include <albaGizmoPathRuler.h>


Public Member Functions | |
| albaGizmoPathRuler (albaVME *input, albaObserver *listener=NULL, int ticksNumber=1, int originTickId=0, double ticksHeigth=50, double ticksDistance=20, bool enableShorterTicks=true) | |
| virtual | ~albaGizmoPathRuler () |
| void | SetCurvilinearAbscissa (double s) |
| double | GetCurvilinearAbscissa () |
| double | GetGizmoPathCurvilinearAbscissa (int index) |
| void | SetConstraintPolyline (albaVME *constraintPolyline) |
| void | SetTicksHeigth (double height) |
| double | GetTicksHeigth () |
| void | SetTicksDistance (double distance) |
| double | GetTicksDistance () |
| int | GetTicksNumber () |
| void | SetColor (double col[3]) |
| void | SetColor (int idGizmo, double col[3]) |
| void | SetColor (double abscissa, double col[3]) |
| void | HighlightExtremes (double col[3], int bound1, int bound2, int center, bool inside=false) |
| void | HighlightExtremes (double col[3], double bound1, double bound2, double center, bool inside=false) |
| void | SetInput (albaVME *vme) |
| void | OnEvent (albaEventBase *alba_event) |
| void | Show (bool show) |
| albaVMEGizmo * | GetOutput (int tickId) |
| void | SetAbsPose (albaMatrix *absPose) |
| albaMatrix * | GetAbsPose (int tickId) |
| albaGUI * | GetGui () |
| void | SetGizmoLabelsVisibility (bool value) |
| void | ResetLabelsVisibility () |
| void | CustomIndexLabelVisibility (int index, int flag) |
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 Member Functions | |
| void | BuildGizmos () |
| void | DestroyGizmos () |
| void | OnEventGizmoGui (albaEventBase *alba_event) |
| void | OnEventGizmoComponents (albaEventBase *alba_event) |
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 | |
| int | m_TicksNumber |
| int | m_OriginTickID |
| double | m_TicksHeigth |
| double | m_TicksDistance |
| double | m_CurvilinearAbscissa |
| bool | m_EnableShorterTicks |
| std::vector< albaGizmoPath * > | m_GizmoPathVector |
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 |
Additional Inherited Members | |
Public Types inherited from albaGizmoInterface | |
| enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
A gizmo representing a ruler that can move on a polyline.
REFACTOR NOTE: this object should be expanded to support mouse interaction
usage example:
m_GizmoPathRuler = new albaGizmoPathRuler(m_ConstraintVME, this,10, 5, 30, 5); m_GizmoPathRuler->SetColor(red);
these should be removed since Show should be enough... anyway for the moment Show is not working as expected so... for (int i = 0;i < m_GizmoPathRuler->GetTicksNumber(); i++) { view->VmeShow(m_GizmoPathRuler->GetOutput(i), true); }
m_GizmoPathRuler->Show(true);
set the new constraint to the gizmo m_GizmoPathRuler->SetConstraintPolyline(m_ConstraintVME);
create the gizmo at s = 0 m_GizmoPathRuler->SetCurvilinearAbscissa(0);
Definition at line 59 of file albaGizmoPathRuler.h.
| albaGizmoPathRuler::albaGizmoPathRuler | ( | albaVME * | input, |
| albaObserver * | listener = NULL, |
||
| int | ticksNumber = 1, |
||
| int | originTickId = 0, |
||
| double | ticksHeigth = 50, |
||
| double | ticksDistance = 20, |
||
| bool | enableShorterTicks = true |
||
| ) |
|
virtual |
| void albaGizmoPathRuler::SetCurvilinearAbscissa | ( | double | s | ) |
Set position of the origin tick along constraint polyline; other ticks will follow.
|
inline |
Definition at line 69 of file albaGizmoPathRuler.h.
|
inline |
Definition at line 70 of file albaGizmoPathRuler.h.
| void albaGizmoPathRuler::SetConstraintPolyline | ( | albaVME * | constraintPolyline | ) |
Set the constraint polyline: any VME can be provided but its output must be a albaVMEOutputPolyline.
| void albaGizmoPathRuler::SetTicksHeigth | ( | double | height | ) |
|
inline |
Definition at line 84 of file albaGizmoPathRuler.h.
| void albaGizmoPathRuler::SetTicksDistance | ( | double | distance | ) |
|
inline |
Definition at line 87 of file albaGizmoPathRuler.h.
|
inline |
Definition at line 89 of file albaGizmoPathRuler.h.
| void albaGizmoPathRuler::SetColor | ( | double | col[3] | ) |
Set the gizmo color.
| void albaGizmoPathRuler::SetColor | ( | int | idGizmo, |
| double | col[3] | ||
| ) |
| void albaGizmoPathRuler::SetColor | ( | double | abscissa, |
| double | col[3] | ||
| ) |
| void albaGizmoPathRuler::HighlightExtremes | ( | double | col[3], |
| int | bound1, | ||
| int | bound2, | ||
| int | center, | ||
| bool | inside = false |
||
| ) |
| void albaGizmoPathRuler::HighlightExtremes | ( | double | col[3], |
| double | bound1, | ||
| double | bound2, | ||
| double | center, | ||
| bool | inside = false |
||
| ) |
|
virtual |
This method is used to change the input: this VME is used only to reparent the gizmo to the root.
Reimplemented from albaGizmoInterface.
|
virtual |
Events handling.
Reimplemented from albaGizmoInterface.
|
virtual |
Show the gizmo.
Reimplemented from albaGizmoInterface.
|
inline |
return the gizmo object
Definition at line 114 of file albaGizmoPathRuler.h.
|
virtual |
Set the gizmo pose; not yet implemented!!!
Reimplemented from albaGizmoInterface.
| albaMatrix * albaGizmoPathRuler::GetAbsPose | ( | int | tickId | ) |
get the abs pose for each tick
|
inlinevirtual |
not yet available...
Reimplemented from albaGizmoInterface.
Definition at line 124 of file albaGizmoPathRuler.h.
| void albaGizmoPathRuler::SetGizmoLabelsVisibility | ( | bool | value | ) |
| void albaGizmoPathRuler::ResetLabelsVisibility | ( | ) |
| void albaGizmoPathRuler::CustomIndexLabelVisibility | ( | int | index, |
| int | flag | ||
| ) |
|
protected |
|
protected |
|
protectedvirtual |
Gizmo gui events handling; not yet implemented...
Reimplemented from albaGizmoInterface.
|
protectedvirtual |
Gizmo components events handling.
Reimplemented from albaGizmoInterface.
|
protected |
Definition at line 137 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 138 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 139 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 140 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 141 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 142 of file albaGizmoPathRuler.h.
|
protected |
Definition at line 150 of file albaGizmoPathRuler.h.