17#ifndef __albaInteractorGenericInterface_h
18#define __albaInteractorGenericInterface_h
class representing a constraint for the interaction This class is used to store constraint modality p...
Abstract class for general purpose interactor.
albaRefSys * m_PivotRefSys
the pivot point (only position is considered)
virtual void SetVME(albaVME *vme)
Set the node to be transformed.
albaInteractorConstraint * GetTranslationConstraint()
Get the translation constraint.
albaTransform * GetResultTransform()
albaMatrix * GetResultMatrix()
void SetScaleConstraint(albaInteractorConstraint *constrain)
Set the scaling constraint.
void SetTargetRefSys(albaRefSys *ref_sys)
bool GetTranslationFlag()
Return the translation flag.
albaTransform * m_ResultTransform
store the pointer to the matrix to be updated
void SetResultTransform(albaTransform *result)
The Result Transform is an optional transform to which the interactor concatenates the OutputTransfor...
void SetTranslationConstraint(albaInteractorConstraint *constrain)
Set the translation constraint.
virtual void EnableUniformScalingInternal(bool enable)
void EnableScaling(bool enable)
void EnableTranslation(bool enable)
Set the translation/rotation/scale to on/off.
albaInteractorConstraint * GetScaleConstraint()
Get the scale constraint.
void EnableRotation(bool enable)
albaInteractorConstraint * m_TranslationConstraint
the constrain for translation
bool m_UniformScalingFlag
albaAbstractTypeMacro(albaInteractorGenericInterface, albaInteractor)
albaRefSys * m_TargetRefSys
the target ref_sys matrix
albaRefSys * GetPivotRefSys()
Return the Pivot frame.
virtual ~albaInteractorGenericInterface()
void SetSurfaceNormal(bool flag)
If Surface Snap modifier is on translation and rotation will be constrained to picked surfaces if pos...
virtual void EnableTranslationInternal(bool enable)
Dervived classes should override this methods in order to set internal flags in a consistent way.
albaInteractorConstraint * m_ScaleConstraint
the constrain for scaling
void SetPivotRefSys(albaRefSys *pivot_frame)
void EnableUniformScaling(bool enable)
void SetRotationConstraint(albaInteractorConstraint *constrain)
Set the rotation constraint.
virtual void EnableRotationInternal(bool enable)
virtual void EnableScalingInternal(bool enable)
void SetPivotRefSys(albaRefSys &pivot_frame)
Set the Pivot frame.
albaInteractorGenericInterface()
bool GetUniformScalingFlag()
void SetTargetRefSys(albaRefSys &ref_sys)
Set the Target reference system, i.e.
albaRefSys * GetTargetRefSys()
Get the Target ref sys, i.e.
albaInteractorConstraint * GetRotationConstraint()
Get the rotation constraint.
virtual void SetRendererAndView(vtkRenderer *ren, albaView *view)
redefined to set the renderer also in the constraint
ALBA_ID_DEC(MOVE_EVENT)
Issued when a move action has been performed.
void SetResultMatrix(albaMatrix *result)
The Result Matrix is an optional matrix to which the interactor concatenates the OutputTransform at e...
albaInteractorConstraint * m_RotationConstraint
the constrain for rotation
void SetSurfaceSnap(bool flag)
If Surface Snap modifier is on translation and rotation will be constrained to picked surfaces if pos...
Abstract class for ALBA interactors This class provides base interface and features of ALBA continuou...
albaMatrix - Time stamped 4x4 Matrix.
class representing reference system
albaView is the base class for Views in alba.