VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkResliceCursor Class Reference

Geometry for a reslice cursor. More...

#include <vtkResliceCursor.h>

Inheritance diagram for vtkResliceCursor:
[legend]
Collaboration diagram for vtkResliceCursor:
[legend]

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkResliceCursorNewInstance () const
 
virtual vtkPolyDataGetPolyData ()
 Get the 3D PolyData representation. More...
 
virtual vtkPolyDataGetCenterlineAxisPolyData (int axis)
 Get the slab and centerline polydata along an axis. More...
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Printself method. More...
 
virtual vtkPlaneGetPlane (int n)
 Get the planes that represent normals along the X, Y and Z. More...
 
virtual void Update ()
 Build the polydata. More...
 
vtkMTimeType GetMTime () override
 Get the MTime. More...
 
virtual void Reset ()
 Reset the cursor to the default position, ie with the axes, normal to each other and axis aligned and with the cursor pointed at the center of the image. More...
 
virtual void SetImage (vtkImageData *)
 Set the image (3D) that we are slicing. More...
 
virtual vtkImageDataGetImage ()
 Set the image (3D) that we are slicing. More...
 
virtual void SetCenter (double, double, double)
 Set/Get the cente of the reslice cursor. More...
 
virtual void SetCenter (double center[3])
 Set/Get the cente of the reslice cursor. More...
 
virtual doubleGetCenter ()
 Set/Get the cente of the reslice cursor. More...
 
virtual void GetCenter (double &, double &, double &)
 Set/Get the cente of the reslice cursor. More...
 
virtual void GetCenter (double[3])
 Set/Get the cente of the reslice cursor. More...
 
virtual void SetThickness (double, double, double)
 Set/Get the thickness of the cursor. More...
 
virtual void SetThickness (double[3])
 Set/Get the thickness of the cursor. More...
 
virtual doubleGetThickness ()
 Set/Get the thickness of the cursor. More...
 
virtual void GetThickness (double &, double &, double &)
 Set/Get the thickness of the cursor. More...
 
virtual void GetThickness (double[3])
 Set/Get the thickness of the cursor. More...
 
virtual void SetThickMode (vtkTypeBool)
 Enable disable thick mode. More...
 
virtual vtkTypeBool GetThickMode ()
 Enable disable thick mode. More...
 
virtual void ThickModeOn ()
 Enable disable thick mode. More...
 
virtual void ThickModeOff ()
 Enable disable thick mode. More...
 
virtual doubleGetXAxis ()
 Get the computed axes directions. More...
 
virtual void GetXAxis (double &, double &, double &)
 Get the computed axes directions. More...
 
virtual void GetXAxis (double[3])
 Get the computed axes directions. More...
 
virtual doubleGetYAxis ()
 Get the computed axes directions. More...
 
virtual void GetYAxis (double &, double &, double &)
 Get the computed axes directions. More...
 
virtual void GetYAxis (double[3])
 Get the computed axes directions. More...
 
virtual doubleGetZAxis ()
 Get the computed axes directions. More...
 
virtual void GetZAxis (double &, double &, double &)
 Get the computed axes directions. More...
 
virtual void GetZAxis (double[3])
 Get the computed axes directions. More...
 
virtual void SetXAxis (double, double, double)
 Get the computed axes directions. More...
 
virtual void SetXAxis (double[3])
 Get the computed axes directions. More...
 
virtual void SetYAxis (double, double, double)
 Get the computed axes directions. More...
 
virtual void SetYAxis (double[3])
 Get the computed axes directions. More...
 
virtual void SetZAxis (double, double, double)
 Get the computed axes directions. More...
 
virtual void SetZAxis (double[3])
 Get the computed axes directions. More...
 
virtual doubleGetAxis (int i)
 Get the computed axes directions. More...
 
virtual void SetHole (int)
 Show a hole in the center of the cursor, so its easy to see the pixels within the hole. More...
 
virtual int GetHole ()
 Show a hole in the center of the cursor, so its easy to see the pixels within the hole. More...
 
virtual void SetHoleWidth (double)
 Set the width of the hole in mm. More...
 
virtual double GetHoleWidth ()
 Set the width of the hole in mm. More...
 
virtual void SetHoleWidthInPixels (double)
 Set the width of the hole in pixels. More...
 
virtual double GetHoleWidthInPixels ()
 Set the width of the hole in pixels. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkTypeBool IsTypeOf (const char *type)
 
static vtkResliceCursorSafeDownCast (vtkObjectBase *o)
 
static vtkResliceCursorNew ()
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkResliceCursor ()
 
 ~vtkResliceCursor () override
 
virtual void BuildCursorGeometry ()
 
virtual void BuildPolyData ()
 
virtual void BuildCursorTopology ()
 
virtual void BuildCursorTopologyWithHole ()
 
virtual void BuildCursorTopologyWithoutHole ()
 
virtual void BuildCursorGeometryWithoutHole ()
 
virtual void BuildCursorGeometryWithHole ()
 
virtual void ComputeAxes ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkTypeBool ThickMode
 
int Hole
 
double HoleWidth
 
double HoleWidthInPixels
 
double Thickness [3]
 
double Center [3]
 
double XAxis [3]
 
double YAxis [3]
 
double ZAxis [3]
 
vtkImageDataImage
 
vtkPolyDataPolyData
 
vtkPolyDataCenterlineAxis [3]
 
vtkPlaneCollectionReslicePlanes
 
vtkTimeStamp PolyDataBuildTime
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Geometry for a reslice cursor.

This class represents a reslice cursor. It consists of two cross sectional hairs, with an optional thickness. The crosshairs hairs may have a hole in the center. These may be translated or rotated independent of each other in the view. The result is used to reslice the data along these cross sections. This allows the user to perform multi-planar thin or thick reformat of the data on an image view, rather than a 3D view.

See also
vtkResliceCursorWidget vtkResliceCursor vtkResliceCursorPolyDataAlgorithm vtkResliceCursorRepresentation vtkResliceCursorThickLineRepresentation vtkResliceCursorActor vtkImagePlaneWidget
Tests:
vtkResliceCursor (Tests)

Definition at line 46 of file vtkResliceCursor.h.

Member Typedef Documentation

Definition at line 49 of file vtkResliceCursor.h.

Constructor & Destructor Documentation

vtkResliceCursor::vtkResliceCursor ( )
protected
vtkResliceCursor::~vtkResliceCursor ( )
overrideprotected

Member Function Documentation

static vtkTypeBool vtkResliceCursor::IsTypeOf ( const char *  type)
static
virtual vtkTypeBool vtkResliceCursor::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObjectBase.

static vtkResliceCursor* vtkResliceCursor::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkResliceCursor::NewInstanceInternal ( ) const
protectedvirtual
vtkResliceCursor* vtkResliceCursor::NewInstance ( ) const
static vtkResliceCursor* vtkResliceCursor::New ( )
static
virtual void vtkResliceCursor::SetImage ( vtkImageData )
virtual

Set the image (3D) that we are slicing.

virtual vtkImageData* vtkResliceCursor::GetImage ( )
virtual

Set the image (3D) that we are slicing.

virtual void vtkResliceCursor::SetCenter ( double  ,
double  ,
double   
)
virtual

Set/Get the cente of the reslice cursor.

virtual void vtkResliceCursor::SetCenter ( double  center[3])
virtual

Set/Get the cente of the reslice cursor.

virtual double* vtkResliceCursor::GetCenter ( )
virtual

Set/Get the cente of the reslice cursor.

virtual void vtkResliceCursor::GetCenter ( double ,
double ,
double  
)
virtual

Set/Get the cente of the reslice cursor.

virtual void vtkResliceCursor::GetCenter ( double  [3])
virtual

Set/Get the cente of the reslice cursor.

virtual void vtkResliceCursor::SetThickness ( double  ,
double  ,
double   
)
virtual

Set/Get the thickness of the cursor.

virtual void vtkResliceCursor::SetThickness ( double  [3])
virtual

Set/Get the thickness of the cursor.

virtual double* vtkResliceCursor::GetThickness ( )
virtual

Set/Get the thickness of the cursor.

virtual void vtkResliceCursor::GetThickness ( double ,
double ,
double  
)
virtual

Set/Get the thickness of the cursor.

virtual void vtkResliceCursor::GetThickness ( double  [3])
virtual

Set/Get the thickness of the cursor.

virtual void vtkResliceCursor::SetThickMode ( vtkTypeBool  )
virtual

Enable disable thick mode.

Default is to enable it.

virtual vtkTypeBool vtkResliceCursor::GetThickMode ( )
virtual

Enable disable thick mode.

Default is to enable it.

virtual void vtkResliceCursor::ThickModeOn ( )
virtual

Enable disable thick mode.

Default is to enable it.

virtual void vtkResliceCursor::ThickModeOff ( )
virtual

Enable disable thick mode.

Default is to enable it.

virtual vtkPolyData* vtkResliceCursor::GetPolyData ( )
virtual

Get the 3D PolyData representation.

virtual vtkPolyData* vtkResliceCursor::GetCenterlineAxisPolyData ( int  axis)
virtual

Get the slab and centerline polydata along an axis.

void vtkResliceCursor::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Printself method.

Reimplemented from vtkObject.

virtual vtkPlane* vtkResliceCursor::GetPlane ( int  n)
virtual

Get the planes that represent normals along the X, Y and Z.

The argument passed to this method must be an integer in the range 0-2 (corresponding to the X, Y and Z axes.

virtual void vtkResliceCursor::Update ( )
virtual

Build the polydata.

virtual double* vtkResliceCursor::GetXAxis ( )
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetXAxis ( double ,
double ,
double  
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetXAxis ( double  [3])
virtual

Get the computed axes directions.

virtual double* vtkResliceCursor::GetYAxis ( )
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetYAxis ( double ,
double ,
double  
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetYAxis ( double  [3])
virtual

Get the computed axes directions.

virtual double* vtkResliceCursor::GetZAxis ( )
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetZAxis ( double ,
double ,
double  
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::GetZAxis ( double  [3])
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetXAxis ( double  ,
double  ,
double   
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetXAxis ( double  [3])
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetYAxis ( double  ,
double  ,
double   
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetYAxis ( double  [3])
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetZAxis ( double  ,
double  ,
double   
)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetZAxis ( double  [3])
virtual

Get the computed axes directions.

virtual double* vtkResliceCursor::GetAxis ( int  i)
virtual

Get the computed axes directions.

virtual void vtkResliceCursor::SetHole ( int  )
virtual

Show a hole in the center of the cursor, so its easy to see the pixels within the hole.

ON by default

virtual int vtkResliceCursor::GetHole ( )
virtual

Show a hole in the center of the cursor, so its easy to see the pixels within the hole.

ON by default

virtual void vtkResliceCursor::SetHoleWidth ( double  )
virtual

Set the width of the hole in mm.

virtual double vtkResliceCursor::GetHoleWidth ( )
virtual

Set the width of the hole in mm.

virtual void vtkResliceCursor::SetHoleWidthInPixels ( double  )
virtual

Set the width of the hole in pixels.

If set, this will override the hole with in mm.

virtual double vtkResliceCursor::GetHoleWidthInPixels ( )
virtual

Set the width of the hole in pixels.

If set, this will override the hole with in mm.

vtkMTimeType vtkResliceCursor::GetMTime ( )
overridevirtual

Get the MTime.

Check the MTime of the internal planes as well.

Reimplemented from vtkObject.

virtual void vtkResliceCursor::Reset ( )
virtual

Reset the cursor to the default position, ie with the axes, normal to each other and axis aligned and with the cursor pointed at the center of the image.

virtual void vtkResliceCursor::BuildCursorGeometry ( )
protectedvirtual
virtual void vtkResliceCursor::BuildPolyData ( )
protectedvirtual
virtual void vtkResliceCursor::BuildCursorTopology ( )
protectedvirtual
virtual void vtkResliceCursor::BuildCursorTopologyWithHole ( )
protectedvirtual
virtual void vtkResliceCursor::BuildCursorTopologyWithoutHole ( )
protectedvirtual
virtual void vtkResliceCursor::BuildCursorGeometryWithoutHole ( )
protectedvirtual
virtual void vtkResliceCursor::BuildCursorGeometryWithHole ( )
protectedvirtual
virtual void vtkResliceCursor::ComputeAxes ( )
protectedvirtual

Member Data Documentation

vtkTypeBool vtkResliceCursor::ThickMode
protected

Definition at line 178 of file vtkResliceCursor.h.

int vtkResliceCursor::Hole
protected

Definition at line 179 of file vtkResliceCursor.h.

double vtkResliceCursor::HoleWidth
protected

Definition at line 180 of file vtkResliceCursor.h.

double vtkResliceCursor::HoleWidthInPixels
protected

Definition at line 181 of file vtkResliceCursor.h.

double vtkResliceCursor::Thickness[3]
protected

Definition at line 182 of file vtkResliceCursor.h.

double vtkResliceCursor::Center[3]
protected

Definition at line 183 of file vtkResliceCursor.h.

double vtkResliceCursor::XAxis[3]
protected

Definition at line 184 of file vtkResliceCursor.h.

double vtkResliceCursor::YAxis[3]
protected

Definition at line 185 of file vtkResliceCursor.h.

double vtkResliceCursor::ZAxis[3]
protected

Definition at line 186 of file vtkResliceCursor.h.

vtkImageData* vtkResliceCursor::Image
protected

Definition at line 187 of file vtkResliceCursor.h.

vtkPolyData* vtkResliceCursor::PolyData
protected

Definition at line 188 of file vtkResliceCursor.h.

vtkPolyData* vtkResliceCursor::CenterlineAxis[3]
protected

Definition at line 190 of file vtkResliceCursor.h.

vtkPlaneCollection* vtkResliceCursor::ReslicePlanes
protected

Definition at line 192 of file vtkResliceCursor.h.

vtkTimeStamp vtkResliceCursor::PolyDataBuildTime
protected

Definition at line 193 of file vtkResliceCursor.h.


The documentation for this class was generated from the following file: