ALBA
|
#include <albaGizmoHandle.h>
Public Types | |
enum | CONSTRAINT_MODALITY { BOUNDS = 0 , FREE } |
enum | GIZMOTYPE { XMIN = 0 , XMAX , YMIN , YMAX , ZMIN , ZMAX } |
Public Member Functions | |
albaGizmoHandle (albaVME *input, albaObserver *listener=NULL, int constraintModality=BOUNDS, albaVME *parent=NULL, bool showShadingPlane=false) | |
virtual | ~albaGizmoHandle () |
void | SetInput (albaVME *vme) |
albaVME * | GetInput () |
void | SetListener (albaObserver *Listener) |
albaObserver * | GetListener () |
virtual void | OnEvent (albaEventBase *alba_event) |
void | Highlight (bool highlight) |
void | Show (bool show) |
void | ShowOn () |
void | ShowOff () |
bool | GetShow () |
void | SetLength (double length) |
double | GetLength () |
void | SetAbsPose (albaMatrix *absPose) |
albaMatrix * | GetAbsPose () |
void | SetPose (albaMatrix *pose) |
albaMatrix * | GetPose () |
void | SetConstrainRefSys (albaMatrix *constrain) |
albaMatrix * | GetConstrainRefSys () |
void | SetPivotMatrix (albaMatrix &matrix) |
albaMatrix & | GetPivotMatrix () |
void | SetType (int type) |
int | GetType () |
void | ShowShadingPlane (bool show) |
void | ShowShadingPlaneOn () |
void | ShowShadingPlaneOff () |
bool | GetShowShadingPlaneOn () |
void | UpdateShadingPlaneDimension (double b[6]) |
void | SetBounds (double bounds[6]) |
void | GetBounds (double bounds[6]) |
void | GetHandleCenter (int type, double HandleCenter[3]) |
void | SetBBCenters (double bounds[6]) |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
void | SetTranslationIntervals (double bounds[6]) |
void | CreatePipeline () |
void | SetColor (double col[3]) |
void | SetColor (double colR, double colG, double colB) |
void | GetColor (double color[3]) |
void | Update () |
Friends | |
class | albaGizmoROITest |
class | albaGizmoHandleTest |
ZMAX --- _ |___| _ | | _ ___ _ | | | | | | z
XMIN| | | | | | XMAX ^
YMAX --- _ |___| _ | | _ ___ _ | | | | | |
XMIN| | | | | | XMAX
ZMAX |_ ___ _|
YMIN
Create a gizmo handle from the bounding box of the vme passed in the constructor. Handle initial position and moving constrains are set depending on the handle type which can be albaGizmoHandle::XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX.
Definition at line 90 of file albaGizmoHandle.h.
Enumerator | |
---|---|
BOUNDS | |
FREE |
Definition at line 150 of file albaGizmoHandle.h.
Enumerator | |
---|---|
XMIN | |
XMAX | |
YMIN | |
YMAX | |
ZMIN | |
ZMAX |
Definition at line 161 of file albaGizmoHandle.h.
albaGizmoHandle::albaGizmoHandle | ( | albaVME * | input, |
albaObserver * | listener = NULL , |
||
int | constraintModality = BOUNDS , |
||
albaVME * | parent = NULL , |
||
bool | showShadingPlane = false |
||
) |
Create a handle, input vme must be different from NULL and default handle type is XMIN.
|
virtual |
void albaGizmoHandle::SetInput | ( | albaVME * | vme | ) |
Set the gizmo generating vme; the gizmo will be centered on this vme.
|
inline |
Definition at line 102 of file albaGizmoHandle.h.
|
inline |
Set the event receiver object.
Definition at line 109 of file albaGizmoHandle.h.
|
inline |
Get the event receiver object.
Definition at line 112 of file albaGizmoHandle.h.
|
virtual |
Events handling.
Implements albaObserver.
void albaGizmoHandle::Highlight | ( | bool | highlight | ) |
Highlight the gizmo: this change its color to yellow.
void albaGizmoHandle::Show | ( | bool | show | ) |
Show the gizmo.
|
inline |
Definition at line 126 of file albaGizmoHandle.h.
|
inline |
Definition at line 127 of file albaGizmoHandle.h.
|
inline |
Definition at line 128 of file albaGizmoHandle.h.
void albaGizmoHandle::SetLength | ( | double | length | ) |
Set/Get the length of the handle The handle dimensions are: (Length) x (Length) ax (Length/2)
double albaGizmoHandle::GetLength | ( | ) |
void albaGizmoHandle::SetAbsPose | ( | albaMatrix * | absPose | ) |
Set the gizmo abs pose.
albaMatrix * albaGizmoHandle::GetAbsPose | ( | ) |
Get the gizmo abs pose.
void albaGizmoHandle::SetPose | ( | albaMatrix * | pose | ) |
Set the gizmo local pose.
albaMatrix * albaGizmoHandle::GetPose | ( | ) |
Get the gizmo abs pose.
void albaGizmoHandle::SetConstrainRefSys | ( | albaMatrix * | constrain | ) |
Set the constrain ref sys.
albaMatrix * albaGizmoHandle::GetConstrainRefSys | ( | ) |
Get the constrain ref sys.
|
inline |
DEPRECATED: To be removed!
Set the pivot matrix.
Definition at line 155 of file albaGizmoHandle.h.
|
inline |
DEPRECATED: To be removed! Get the pivot matrix.
Definition at line 159 of file albaGizmoHandle.h.
void albaGizmoHandle::SetType | ( | int | type | ) |
Set the gizmo type.
Type can be albaGizmoHandle::XMIN, XMAX, YMIN, YMAX, ZMIN, ZMAX. Place the gizmo on the bounding box and set its constrain
|
inline |
Return the gizmo's type.
Definition at line 169 of file albaGizmoHandle.h.
void albaGizmoHandle::ShowShadingPlane | ( | bool | show | ) |
Show shading plane.
|
inline |
Definition at line 173 of file albaGizmoHandle.h.
|
inline |
Definition at line 174 of file albaGizmoHandle.h.
|
inline |
Definition at line 175 of file albaGizmoHandle.h.
void albaGizmoHandle::UpdateShadingPlaneDimension | ( | double | b[6] | ) |
Since handles position has changed shading plane bounds must be recomputed.
void albaGizmoHandle::SetBounds | ( | double | bounds[6] | ) |
Update the handle position given the bounding box.
void albaGizmoHandle::GetBounds | ( | double | bounds[6] | ) |
void albaGizmoHandle::GetHandleCenter | ( | int | type, |
double | HandleCenter[3] | ||
) |
Return the center of the handle.
void albaGizmoHandle::SetBBCenters | ( | double | bounds[6] | ) |
DEPRECATED: To be removed, use SetBounds instead.
|
protected |
Set translation intervals.
|
protected |
Create vtk objects needed.
|
protected |
Set the gizmo color.
|
protected |
Set the gizmo color.
|
protected |
Get the gizmo color.
|
protected |
|
friend |
friend test
Definition at line 266 of file albaGizmoHandle.h.
|
friend |
Definition at line 267 of file albaGizmoHandle.h.
|
protected |
Register input vme.
Definition at line 195 of file albaGizmoHandle.h.
|
protected |
Cube source.
Definition at line 197 of file albaGizmoHandle.h.
|
protected |
Definition at line 199 of file albaGizmoHandle.h.
|
protected |
Definition at line 200 of file albaGizmoHandle.h.
|
protected |
translate PDF for box
Definition at line 202 of file albaGizmoHandle.h.
|
protected |
translate PDF for box
Definition at line 203 of file albaGizmoHandle.h.
|
protected |
translation transform for box
Definition at line 205 of file albaGizmoHandle.h.
|
protected |
translation transform for box
Definition at line 206 of file albaGizmoHandle.h.
|
protected |
translate PDF for box
Definition at line 208 of file albaGizmoHandle.h.
|
protected |
translate PDF for box
Definition at line 209 of file albaGizmoHandle.h.
|
protected |
translation transform for box
Definition at line 211 of file albaGizmoHandle.h.
|
protected |
translation transform for box
Definition at line 212 of file albaGizmoHandle.h.
|
protected |
rotate PDF for box
Definition at line 214 of file albaGizmoHandle.h.
|
protected |
rotate PDF for box
Definition at line 215 of file albaGizmoHandle.h.
|
protected |
rotation transform for box
Definition at line 217 of file albaGizmoHandle.h.
|
protected |
rotation transform for box
Definition at line 218 of file albaGizmoHandle.h.
|
protected |
Interactor style compositor.
Definition at line 223 of file albaGizmoHandle.h.
|
protected |
Generic Interactor style.
Definition at line 225 of file albaGizmoHandle.h.
|
protected |
Register the event receiver object.
Definition at line 236 of file albaGizmoHandle.h.
|
protected |
Register the gizmo type.
Definition at line 238 of file albaGizmoHandle.h.
|
protected |
Definition at line 240 of file albaGizmoHandle.h.
|
protected |
Definition at line 241 of file albaGizmoHandle.h.
|
protected |
The Pivot Matrix.
Definition at line 243 of file albaGizmoHandle.h.
|
protected |
Definition at line 247 of file albaGizmoHandle.h.
|
protected |
Definition at line 249 of file albaGizmoHandle.h.
|
protected |
Definition at line 251 of file albaGizmoHandle.h.
|
protected |
Definition at line 253 of file albaGizmoHandle.h.
|
protected |
Definition at line 254 of file albaGizmoHandle.h.
|
protected |
Definition at line 256 of file albaGizmoHandle.h.
|
protected |
Definition at line 258 of file albaGizmoHandle.h.
|
protected |
Definition at line 260 of file albaGizmoHandle.h.
|
protected |
Definition at line 262 of file albaGizmoHandle.h.