ALBA
|
#include <albaGizmoROI.h>
Public Member Functions | |
albaGizmoROI (albaVME *input, albaObserver *listener=NULL, int constraintModality=albaGizmoHandle::BOUNDS, albaVME *parent=NULL, bool showShadingPlane=false) | |
virtual | ~albaGizmoROI () |
virtual void | SetInput (albaVME *vme) |
virtual void | OnEvent (albaEventBase *alba_event) |
void | Highlight (int component) |
void | HighlightOff () |
void | Show (bool show) |
void | ShowHandles (bool show) |
void | ShowShadingPlane (bool show) |
void | ShowROI (bool show) |
void | SetConstrainRefSys (albaMatrix *constrain) |
void | SetBounds (double bounds[6]) |
double * | GetBounds () |
void | GetBounds (double bounds[6]) |
void | Reset () |
void | EnableMinimumHandleSize (bool value) |
void | SetMinimumHandleSize (double value) |
void | EnableMinimumDistanceBetweenGizmo (bool value) |
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 | Highlight (int component, bool highlight) |
void | UpdateHandlePositions () |
void | UpdateOutlineBounds () |
virtual void | UpdateGizmosLength () |
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_ActiveGizmoComponent |
int | m_ConstraintModality |
albaGizmoHandle * | m_GHandle [6] |
double | m_Center [6][3] |
albaGizmoBoundingBox * | m_OutlineGizmo |
double | m_Accumulator |
double | m_MinimumHandleSize |
bool | m_EnableMinimumHandleSize |
bool | m_EnableMinimumDistanceBetweenGizmo |
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 | albaGizmoROITest |
Additional Inherited Members | |
Public Types inherited from albaGizmoInterface | |
enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
5 5
| | | | | | | | 0| 3 |1 3| 1 |2 | | | |
|_________| |_________| 4 4 Z Z ^ ^ | | ->X ->Y
3
| | | | 0| 5 |1 | | |_________| 2 Y ^ | ->X
Gizmo composed of 6 albaGizmoHandle and 1 albaGizmoBoundingBox used to select a region of interest.
This object works by creating smaller components that are parented to the input vme ie works in local coordinates. In order to use it in your client create an instance of it and ask for the region of interest.
Definition at line 77 of file albaGizmoROI.h.
albaGizmoROI::albaGizmoROI | ( | albaVME * | input, |
albaObserver * | listener = NULL , |
||
int | constraintModality = albaGizmoHandle::BOUNDS , |
||
albaVME * | parent = NULL , |
||
bool | showShadingPlane = false |
||
) |
|
virtual |
|
virtual |
Set input vme for the gizmo.
Reimplemented from albaGizmoInterface.
|
virtual |
Events handling.
Reimplemented from albaGizmoInterface.
void albaGizmoROI::Highlight | ( | int | component | ) |
Highlight the given component and set highlight to false for the others.
void albaGizmoROI::HighlightOff | ( | ) |
Set highlight to false for all gizmo components.
|
virtual |
Show the gizmo.
Reimplemented from albaGizmoInterface.
void albaGizmoROI::ShowHandles | ( | bool | show | ) |
Show gizmo handles.
void albaGizmoROI::ShowShadingPlane | ( | bool | show | ) |
Show shading planes.
void albaGizmoROI::ShowROI | ( | bool | show | ) |
Show gizmo cube.
void albaGizmoROI::SetConstrainRefSys | ( | albaMatrix * | constrain | ) |
Set the constrain ref sys.
void albaGizmoROI::SetBounds | ( | double | bounds[6] | ) |
Set/Get the gizmo bounds.
double * albaGizmoROI::GetBounds | ( | ) |
void albaGizmoROI::GetBounds | ( | double | bounds[6] | ) |
void albaGizmoROI::Reset | ( | ) |
Reset the gizmo.
|
inline |
Minimum handles size.
Definition at line 123 of file albaGizmoROI.h.
|
inline |
Definition at line 124 of file albaGizmoROI.h.
|
inline |
Definition at line 125 of file albaGizmoROI.h.
|
protected |
Highlight one component of the gizmo and turn off the highlight others; setting highlight to false it is turned off to all gizmos' components.
|
protected |
After one handle movement recenter other handles.
|
protected |
Update gizmo outline bounds based on handles position.
This method must be called each time a gizmo handle is moved
|
protectedvirtual |
Update the gizmos length.
This function determines how Gizmos will be resized while moving. Superclasses should redefine this in order to change the way gizmos are resized.
|
protectedvirtual |
Process events from gizmo components.
Reimplemented from albaGizmoInterface.
|
friend |
friend test
Definition at line 163 of file albaGizmoROI.h.
|
protected |
Register the active gizmo component at MOUSE_DOWN.
Definition at line 133 of file albaGizmoROI.h.
|
protected |
Definition at line 150 of file albaGizmoROI.h.
|
protected |
Array holding the six gizmo handles.
Definition at line 153 of file albaGizmoROI.h.
|
protected |
Definition at line 154 of file albaGizmoROI.h.
|
protected |
The gizmo bounding box.
Definition at line 155 of file albaGizmoROI.h.
|
protected |
Definition at line 157 of file albaGizmoROI.h.
|
protected |
Definition at line 158 of file albaGizmoROI.h.
|
protected |
Definition at line 159 of file albaGizmoROI.h.
|
protected |
Definition at line 160 of file albaGizmoROI.h.