Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

vtkKWEBoundingBoxWidget2D Class Reference

Manages a 3D bounding box on a 2D image actor. More...

#include <vtkKWEBoundingBoxWidget2D.h>

Inheritance diagram for vtkKWEBoundingBoxWidget2D:
Inheritance graph
[legend]
Collaboration diagram for vtkKWEBoundingBoxWidget2D:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  BeginResizeEvent = 1000, ResizingEvent, EndResizeEvent, BoundsChangedEvent,
  ExtentsChangedEvent
}

Public Member Functions

virtual void SetEnabled (int)
virtual void SetProcessEvents (int)
virtual void SetRepresentation (vtkKWEBoundingBoxRepresentation2D *)
virtual void CreateDefaultRepresentation ()

 vtkTypeRevisionMacro (vtkKWEBoundingBoxWidget2D, vtkAbstractWidget)
void PrintSelf (ostream &os, vtkIndent indent)

virtual void SetFade (int)
virtual int GetFade ()
virtual void FadeOn ()
virtual void FadeOff ()

virtual void SetShowSliceScaleBar (int)
virtual int GetShowSliceScaleBar ()
virtual void ShowSliceScaleBarOn ()
virtual void ShowSliceScaleBarOff ()

Static Public Member Functions

static vtkKWEBoundingBoxWidget2DNew ()

Protected Member Functions

 vtkKWEBoundingBoxWidget2D ()
 ~vtkKWEBoundingBoxWidget2D ()
void SetEnabledStateOfSliceScaleBar ()

Protected Attributes

int ShowSliceScaleBar
double LastComputedBounds [6]
int LastComputedExtent [6]



void SetCursor (int)
static void OnMouseMoveCallback (vtkAbstractWidget *)
static void OnLeftButtonDownCallback (vtkAbstractWidget *)
static void OnLeftButtonUpCallback (vtkAbstractWidget *)

Detailed Description

Manages a 3D bounding box on a 2D image actor.

The widget can be placed on one of the orthogonal (axial/sagittal/coronal) image actors and be used to specify bounds (or extents). The widget includes a slice scale (with 2 handles) to manipulate the extents along Z and 4 handles to manipulate the bounding box.

If bounds are changed, the widget invokes a BoundsChangedEvent along with a pointer to 6 tuple double containing the new bounds.

If extents are changed, the widget invokes a ExtentsChangedEvent along with a pointer to 6 tuple integer containing the new extent.

Needless to say, a BoundsChangedEvent will be invoked every time an ExtentsChangedEvent is invoked. The converse is not always true.

Definition at line 48 of file vtkKWEBoundingBoxWidget2D.h.


Member Enumeration Documentation

anonymous enum

Events emitted by the widget BTX

Enumerator:
BeginResizeEvent 
ResizingEvent 
EndResizeEvent 
BoundsChangedEvent 
ExtentsChangedEvent 

Definition at line 79 of file vtkKWEBoundingBoxWidget2D.h.


Constructor & Destructor Documentation

vtkKWEBoundingBoxWidget2D::vtkKWEBoundingBoxWidget2D (  )  [protected]
vtkKWEBoundingBoxWidget2D::~vtkKWEBoundingBoxWidget2D (  )  [protected]

Member Function Documentation

static vtkKWEBoundingBoxWidget2D* vtkKWEBoundingBoxWidget2D::New (  )  [static]

Instantiate this class.

Reimplemented from vtkObject.

vtkKWEBoundingBoxWidget2D::vtkTypeRevisionMacro ( vtkKWEBoundingBoxWidget2D  ,
vtkAbstractWidget   
)

Standard methods for a VTK class.

void vtkKWEBoundingBoxWidget2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

virtual void vtkKWEBoundingBoxWidget2D::SetEnabled ( int   )  [virtual]

The method for activiating and deactiviating this widget. This method must be overridden because it is a composite widget and does more than its superclass' vtkAbstractWidget::SetEnabled() method.

Reimplemented from vtkAbstractWidget.

virtual void vtkKWEBoundingBoxWidget2D::SetProcessEvents ( int   )  [virtual]

See superclass doc

Reimplemented from vtkAbstractWidget.

virtual void vtkKWEBoundingBoxWidget2D::SetFade ( int   )  [virtual]

This serves to fade the representation into the background. If faded, ProcessEvents is automatically turned off, ie the widget will not respond to events.

virtual int vtkKWEBoundingBoxWidget2D::GetFade (  )  [virtual]

This serves to fade the representation into the background. If faded, ProcessEvents is automatically turned off, ie the widget will not respond to events.

virtual void vtkKWEBoundingBoxWidget2D::FadeOn (  )  [virtual]

This serves to fade the representation into the background. If faded, ProcessEvents is automatically turned off, ie the widget will not respond to events.

virtual void vtkKWEBoundingBoxWidget2D::FadeOff (  )  [virtual]

This serves to fade the representation into the background. If faded, ProcessEvents is automatically turned off, ie the widget will not respond to events.

virtual void vtkKWEBoundingBoxWidget2D::SetRepresentation ( vtkKWEBoundingBoxRepresentation2D  )  [virtual]

Set the representation

virtual void vtkKWEBoundingBoxWidget2D::CreateDefaultRepresentation (  )  [virtual]

See superclass for documentation

Implements vtkAbstractWidget.

virtual void vtkKWEBoundingBoxWidget2D::SetShowSliceScaleBar ( int   )  [virtual]

If set, it must be set prior to enabling the widget. Default is ON.

virtual int vtkKWEBoundingBoxWidget2D::GetShowSliceScaleBar (  )  [virtual]

If set, it must be set prior to enabling the widget. Default is ON.

virtual void vtkKWEBoundingBoxWidget2D::ShowSliceScaleBarOn (  )  [virtual]

If set, it must be set prior to enabling the widget. Default is ON.

virtual void vtkKWEBoundingBoxWidget2D::ShowSliceScaleBarOff (  )  [virtual]

If set, it must be set prior to enabling the widget. Default is ON.

static void vtkKWEBoundingBoxWidget2D::OnMouseMoveCallback ( vtkAbstractWidget  )  [static, protected]
static void vtkKWEBoundingBoxWidget2D::OnLeftButtonDownCallback ( vtkAbstractWidget  )  [static, protected]
static void vtkKWEBoundingBoxWidget2D::OnLeftButtonUpCallback ( vtkAbstractWidget  )  [static, protected]
void vtkKWEBoundingBoxWidget2D::SetCursor ( int   )  [protected]
void vtkKWEBoundingBoxWidget2D::SetEnabledStateOfSliceScaleBar (  )  [protected]

Member Data Documentation

Definition at line 114 of file vtkKWEBoundingBoxWidget2D.h.

Definition at line 117 of file vtkKWEBoundingBoxWidget2D.h.

Definition at line 118 of file vtkKWEBoundingBoxWidget2D.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines