Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
vtkSlicerTransformLogic Class Reference

#include <Modules/Loadable/Transforms/Logic/vtkSlicerTransformLogic.h>

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

Public Types

typedef vtkMRMLAbstractLogic Superclass
 
enum  TransformKind {
  TRANSFORM_OTHER, TRANSFORM_LINEAR, TRANSFORM_BSPLINE, TRANSFORM_GRID,
  TRANSFORM_THINPLATESPLINE
}
 
- Public Types inherited from vtkMRMLAbstractLogic
typedef vtkObject Superclass
 
typedef void(vtkMRMLAbstractLogic::* TaskFunctionPointer) (void *clientdata)
 

Public Member Functions

vtkMRMLTransformNodeAddTransform (const char *filename, vtkMRMLScene *scene)
 
Read transform from file More...
 
vtkMRMLTransformNodeConvertToGridTransform (vtkMRMLTransformNode *inputTransformNode, vtkMRMLVolumeNode *referenceVolumeNode=nullptr, vtkMRMLTransformNode *existingOutputTransformNode=nullptr)
 
vtkMRMLVolumeNodeCreateDisplacementVolumeFromTransform (vtkMRMLTransformNode *inputTransformNode, vtkMRMLVolumeNode *referenceVolumeNode=nullptr, bool magnitude=true, vtkMRMLVolumeNode *existingOutputVolumeNode=nullptr)
 
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
int SaveTransform (const char *filename, vtkMRMLTransformNode *transformNode)
 
Write transform's data to a specified file More...
 
- Public Member Functions inherited from vtkMRMLAbstractLogic
virtual vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene. More...
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic)
 
void SetMRMLScene (vtkMRMLScene *newScene)
 Set and observe the MRMLScene. More...
 

Static Public Member Functions

static void GetNodesBounds (const std::vector< vtkMRMLDisplayableNode *> &nodes, double bounds[6])
 
static void GetNodesRASBounds (const std::vector< vtkMRMLDisplayableNode *> &nodes, double bounds[6])
 
static void GetTransformedNodes (vtkMRMLScene *scene, vtkMRMLTransformNode *transformNode, std::vector< vtkMRMLDisplayableNode *> &transformedNodes, bool recursive=true)
 
static bool GetTransformedPointSamplesAsMagnitudeImage (vtkImageData *outputMagnitudeImage, vtkMRMLTransformNode *inputTransformNode, vtkMatrix4x4 *ijkToRAS, bool transformToWorld=true)
 
static bool GetTransformedPointSamplesAsVectorImage (vtkImageData *outputVectorImage, vtkMRMLTransformNode *inputTransformNode, vtkMatrix4x4 *ijkToRAS, bool transformToWorld=true)
 
static TransformKind GetTransformKind (vtkMRMLTransformNode *transformNode)
 
static bool GetVisualization2d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMRMLSliceNode *sliceNode, vtkMRMLMarkupsNode *glyphPointsNode=nullptr)
 
static bool GetVisualization2d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *sliceToRAS, double *fieldOfViewOrigin, double *fieldOfViewSize, vtkPoints *samplePositions_RAS=nullptr)
 
static bool GetVisualization3d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *roiToRAS, int *roiSize, vtkPoints *samplePositions_RAS=nullptr)
 
static bool GetVisualization3d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMRMLNode *regionNode, vtkMRMLMarkupsNode *glyphPointsNode=nullptr)
 
static const char * GetVisualizationDisplacementMagnitudeScalarName ()
 
static bool hardenTransform (vtkMRMLTransformableNode *node)
 
static int IsTypeOf (const char *type)
 
static vtkSlicerTransformLogicNew ()
 The Usual vtk class functions. More...
 
static vtkSlicerTransformLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

void operator= (const vtkSlicerTransformLogic &)
 
 vtkSlicerTransformLogic ()
 
 vtkSlicerTransformLogic (const vtkSlicerTransformLogic &)
 
 ~vtkSlicerTransformLogic () override
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any. More...
 
int InvokePendingModifiedEvent ()
 
void Modified () override
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=nullptr)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
 ~vtkMRMLAbstractLogic () override
 

Static Protected Member Functions

static void CreateGrid (vtkPolyData *outputGrid_RAS, vtkMRMLTransformDisplayNode *displayNode, int numGridPoints[3], vtkPolyData *outputWarpedGrid_RAS=nullptr)
 Add lines to the gridPolyData to make it a grid. If warpedGrid is specified then a warped grid is generated, too. More...
 
static void GetContourVisualization2d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *sliceToRAS, double *fieldOfViewOrigin, double *fieldOfViewSize)
 
static void GetContourVisualization3d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *roiToRAS, int *roiSize)
 
static void GetGlyphVisualization2d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *sliceToRAS, double *fieldOfViewOrigin, double *fieldOfViewSize, vtkPoints *samplePositions_RAS=nullptr)
 
static void GetGlyphVisualization3d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *roiToRAS, int *roiSize, vtkPoints *samplePositions_RAS=nullptr)
 
static int GetGridSubdivision (vtkMRMLTransformDisplayNode *displayNode)
 Return the number of samples in each grid. More...
 
static void GetGridVisualization2d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *sliceToRAS, double *fieldOfViewOrigin, double *fieldOfViewSize)
 
static void GetGridVisualization3d (vtkPolyData *output_RAS, vtkMRMLTransformDisplayNode *displayNode, vtkMatrix4x4 *roiToRAS, int *roiSize)
 
static void GetMarkupsAsPoints (vtkMRMLMarkupsNode *markupsNode, vtkPoints *samplePoints_RAS)
 Get markup points as vtkPoints in RAS coordinate system. More...
 
static void GetTransformedPointSamples (vtkPointSet *outputPointSet, vtkMRMLTransformNode *inputTransformNode, vtkPoints *samplePositions_RAS, bool transformToWorld=true)
 
static void GetTransformedPointSamples (vtkPointSet *outputPointSet_RAS, vtkMRMLTransformNode *inputTransformNode, vtkMatrix4x4 *gridToRAS, int *gridSize, bool transformToWorld=true)
 
static void GetTransformedPointSamplesOnRoi (vtkPointSet *outputPointSet_RAS, vtkMRMLTransformNode *inputTransformNode, vtkMatrix4x4 *roiToRAS, int *roiSize, double pointSpacingMm, int pointGroupSize=1, int *numGridPoints=nullptr)
 
static void GetTransformedPointSamplesOnSlice (vtkPointSet *outputPointSet_RAS, vtkMRMLTransformNode *inputTransformNode, vtkMatrix4x4 *sliceToRAS, double *fieldOfViewOrigin, double *fieldOfViewSize, double pointSpacing, int pointGroupSize=1, int *numGridPoints=nullptr, vtkPoints *samplePositions_RAS=nullptr)
 
- Static Protected Member Functions inherited from vtkMRMLAbstractLogic
static void MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLLogicCallback is a static function to relay modified events from the logics. More...
 
static void MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLNodesCallback is a static function to relay modified events from the nodes. More...
 
static void MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 

Detailed Description

Definition at line 52 of file vtkSlicerTransformLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 58 of file vtkSlicerTransformLogic.h.

Member Enumeration Documentation

◆ TransformKind

Enumerator
TRANSFORM_OTHER 
TRANSFORM_LINEAR 
TRANSFORM_BSPLINE 
TRANSFORM_GRID 
TRANSFORM_THINPLATESPLINE 

Definition at line 160 of file vtkSlicerTransformLogic.h.

Constructor & Destructor Documentation

◆ vtkSlicerTransformLogic() [1/2]

vtkSlicerTransformLogic::vtkSlicerTransformLogic ( )
protected

◆ ~vtkSlicerTransformLogic()

vtkSlicerTransformLogic::~vtkSlicerTransformLogic ( )
overrideprotected

◆ vtkSlicerTransformLogic() [2/2]

vtkSlicerTransformLogic::vtkSlicerTransformLogic ( const vtkSlicerTransformLogic )
protected

Member Function Documentation

◆ AddTransform()

vtkMRMLTransformNode* vtkSlicerTransformLogic::AddTransform ( const char *  filename,
vtkMRMLScene scene 
)


Read transform from file

◆ ConvertToGridTransform()

vtkMRMLTransformNode* vtkSlicerTransformLogic::ConvertToGridTransform ( vtkMRMLTransformNode inputTransformNode,
vtkMRMLVolumeNode referenceVolumeNode = nullptr,
vtkMRMLTransformNode existingOutputTransformNode = nullptr 
)

Convert the input transform to a grid transform. If referenceVolumeNode is specified then it will determine the origin, spacing, extent, and orientation of the displacement field. If existingOutputTransformNode is specified then instead of creating a new transform node, that existing node will be updated.

◆ CreateDisplacementVolumeFromTransform()

vtkMRMLVolumeNode* vtkSlicerTransformLogic::CreateDisplacementVolumeFromTransform ( vtkMRMLTransformNode inputTransformNode,
vtkMRMLVolumeNode referenceVolumeNode = nullptr,
bool  magnitude = true,
vtkMRMLVolumeNode existingOutputVolumeNode = nullptr 
)

Create a volume node that contains the transform displacement in each voxel. If magnitude is true then a scalar volume is created, each voxel containing the magnitude of the displacement. If magnitude is false then a 3-component scalar volume is created, each voxel containing the displacement vector. referenceVolumeNode specifies the volume origin, spacing, extent, and orientation. If existingOutputVolumeNode is specified then instead of creating a new volume node, that existing node will be updated.

◆ CreateGrid()

static void vtkSlicerTransformLogic::CreateGrid ( vtkPolyData *  outputGrid_RAS,
vtkMRMLTransformDisplayNode displayNode,
int  numGridPoints[3],
vtkPolyData *  outputWarpedGrid_RAS = nullptr 
)
staticprotected

Add lines to the gridPolyData to make it a grid. If warpedGrid is specified then a warped grid is generated, too.

◆ GetClassName()

virtual const char* vtkSlicerTransformLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ GetContourVisualization2d()

static void vtkSlicerTransformLogic::GetContourVisualization2d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  sliceToRAS,
double *  fieldOfViewOrigin,
double *  fieldOfViewSize 
)
staticprotected

Generate contours for 2D transform visualization

See also
GetVisualization2d

◆ GetContourVisualization3d()

static void vtkSlicerTransformLogic::GetContourVisualization3d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  roiToRAS,
int *  roiSize 
)
staticprotected

Generate contours for 3D transform visualization

See also
GetVisualization3d

◆ GetGlyphVisualization2d()

static void vtkSlicerTransformLogic::GetGlyphVisualization2d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  sliceToRAS,
double *  fieldOfViewOrigin,
double *  fieldOfViewSize,
vtkPoints *  samplePositions_RAS = nullptr 
)
staticprotected

Generate glyph for 2D transform visualization If samplePositions_RAS is specified then those samples will be used as glyph starting points instead of a regular grid.

See also
GetVisualization2d

◆ GetGlyphVisualization3d()

static void vtkSlicerTransformLogic::GetGlyphVisualization3d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  roiToRAS,
int *  roiSize,
vtkPoints *  samplePositions_RAS = nullptr 
)
staticprotected

Generate glyph for 3D transform visualization If samplePositions_RAS is specified then those samples will be used as glyph starting points instead of a regular grid.

See also
GetVisualization3d

◆ GetGridSubdivision()

static int vtkSlicerTransformLogic::GetGridSubdivision ( vtkMRMLTransformDisplayNode displayNode)
staticprotected

Return the number of samples in each grid.

◆ GetGridVisualization2d()

static void vtkSlicerTransformLogic::GetGridVisualization2d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  sliceToRAS,
double *  fieldOfViewOrigin,
double *  fieldOfViewSize 
)
staticprotected

Generate grid for 2D transform visualization

See also
GetVisualization2d

◆ GetGridVisualization3d()

static void vtkSlicerTransformLogic::GetGridVisualization3d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  roiToRAS,
int *  roiSize 
)
staticprotected

Generate grid for 3D transform visualization

See also
GetVisualization3d

◆ GetMarkupsAsPoints()

static void vtkSlicerTransformLogic::GetMarkupsAsPoints ( vtkMRMLMarkupsNode markupsNode,
vtkPoints *  samplePoints_RAS 
)
staticprotected

Get markup points as vtkPoints in RAS coordinate system.

◆ GetNodesBounds()

static void vtkSlicerTransformLogic::GetNodesBounds ( const std::vector< vtkMRMLDisplayableNode *> &  nodes,
double  bounds[6] 
)
static

Return the bounding box around the list of given nodes using GetBounds. Only the nodes with a valid bounding box are taken into account.

See also
GetNodesRASBounds()

◆ GetNodesRASBounds()

static void vtkSlicerTransformLogic::GetNodesRASBounds ( const std::vector< vtkMRMLDisplayableNode *> &  nodes,
double  bounds[6] 
)
static

Return the RAS bounding box around the list of given nodes using GetRASBounds. Only the nodes with a valid bounding box are taken into account.

See also
GetNodesBounds()

◆ GetTransformedNodes()

static void vtkSlicerTransformLogic::GetTransformedNodes ( vtkMRMLScene scene,
vtkMRMLTransformNode transformNode,
std::vector< vtkMRMLDisplayableNode *> &  transformedNodes,
bool  recursive = true 
)
static

Return the list of nodes that are transformed by the given node. If recursive is True, this be recursively called on any transform node that might be transformed by the given node. Otherwise, only the nodes immediately transformed by the given transform are returned.

◆ GetTransformedPointSamples() [1/2]

static void vtkSlicerTransformLogic::GetTransformedPointSamples ( vtkPointSet *  outputPointSet,
vtkMRMLTransformNode inputTransformNode,
vtkPoints *  samplePositions_RAS,
bool  transformToWorld = true 
)
staticprotected

Takes samples from the displacement field specified by a point set and stores it in an unstructured grid. If transformToWorld is true then transform to world is returned, otherwise transform from world is returned.

◆ GetTransformedPointSamples() [2/2]

static void vtkSlicerTransformLogic::GetTransformedPointSamples ( vtkPointSet *  outputPointSet_RAS,
vtkMRMLTransformNode inputTransformNode,
vtkMatrix4x4 *  gridToRAS,
int *  gridSize,
bool  transformToWorld = true 
)
staticprotected

Takes samples from the displacement field specified by the transformation on a uniform grid and stores it in an unstructured grid. gridToRAS specifies the grid origin, direction, and spacing gridSize is a 3-component int array specifying the dimension of the grid If transformToWorld is true then transform to world is returned, otherwise transform from world is returned.

◆ GetTransformedPointSamplesAsMagnitudeImage()

static bool vtkSlicerTransformLogic::GetTransformedPointSamplesAsMagnitudeImage ( vtkImageData *  outputMagnitudeImage,
vtkMRMLTransformNode inputTransformNode,
vtkMatrix4x4 *  ijkToRAS,
bool  transformToWorld = true 
)
static

Take samples from the displacement field and store the magnitude in an image volume The extents of the output image must be set before calling this method. The origin and spacing attributes of the output image are ignored (origin, spacing, and axis directions are all specified by ijkToRAS). If transformToWorld is true then transform to world is returned, otherwise transform from world is returned. Returns true on success.

◆ GetTransformedPointSamplesAsVectorImage()

static bool vtkSlicerTransformLogic::GetTransformedPointSamplesAsVectorImage ( vtkImageData *  outputVectorImage,
vtkMRMLTransformNode inputTransformNode,
vtkMatrix4x4 *  ijkToRAS,
bool  transformToWorld = true 
)
static

Take samples from the displacement field and store the vector components in an image volume The extents of the output image must be set before calling this method. The origin and spacing attributes of the output image are ignored (origin, spacing, and axis directions are all specified by ijkToRAS). If transformToWorld is true then transform to world is returned, otherwise transform from world is returned. Returns true on success.

◆ GetTransformedPointSamplesOnRoi()

static void vtkSlicerTransformLogic::GetTransformedPointSamplesOnRoi ( vtkPointSet *  outputPointSet_RAS,
vtkMRMLTransformNode inputTransformNode,
vtkMatrix4x4 *  roiToRAS,
int *  roiSize,
double  pointSpacingMm,
int  pointGroupSize = 1,
int *  numGridPoints = nullptr 
)
staticprotected

Takes samples from the displacement field specified by the transformation on a 3D ROI and stores it in an unstructured grid. pointGroupSize: the number of points will be N*pointGroupSize (the actual number will be returned in numGridPoints[3])

◆ GetTransformedPointSamplesOnSlice()

static void vtkSlicerTransformLogic::GetTransformedPointSamplesOnSlice ( vtkPointSet *  outputPointSet_RAS,
vtkMRMLTransformNode inputTransformNode,
vtkMatrix4x4 *  sliceToRAS,
double *  fieldOfViewOrigin,
double *  fieldOfViewSize,
double  pointSpacing,
int  pointGroupSize = 1,
int *  numGridPoints = nullptr,
vtkPoints *  samplePositions_RAS = nullptr 
)
staticprotected

Takes samples from the displacement field specified by the transformation on a slice and stores it in an unstructured grid. pointGroupSize: the number of points will be N*pointGroupSize (the actual number will be returned in numGridPoints[3]) samplePositions_RAS: if specified then instead of a regular grid, sample points on the slice will be used

◆ GetTransformKind()

static TransformKind vtkSlicerTransformLogic::GetTransformKind ( vtkMRMLTransformNode transformNode)
static

Returns TRANSFORM_LINEAR if the node contains a simple linear transform. Returns TRANSFORM_BSPLINE if the node contains a bspline transform with an optional additive or composite bulk component. Returns TRANSFORM_GRID if the node contains a simple grid transform. Returns TRANSFORM_THINPLATESPLINE if the node contains a simple thin plate spline transform. Returns TRANSFORM_OTHER in all other cases.

◆ GetVisualization2d() [1/2]

static bool vtkSlicerTransformLogic::GetVisualization2d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMRMLSliceNode sliceNode,
vtkMRMLMarkupsNode glyphPointsNode = nullptr 
)
static

Generate polydata for 2D transform visualization Return true on success.

◆ GetVisualization2d() [2/2]

static bool vtkSlicerTransformLogic::GetVisualization2d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  sliceToRAS,
double *  fieldOfViewOrigin,
double *  fieldOfViewSize,
vtkPoints *  samplePositions_RAS = nullptr 
)
static

Generate polydata for 2D transform visualization Return true on success.

◆ GetVisualization3d() [1/2]

static bool vtkSlicerTransformLogic::GetVisualization3d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMatrix4x4 *  roiToRAS,
int *  roiSize,
vtkPoints *  samplePositions_RAS = nullptr 
)
static

Generate polydata for 3D transform visualization roiToRAS defines the ROI origin and direction. roiSize defines the ROI size (in the ROI coordinate system spacing) . Return true on success.

◆ GetVisualization3d() [2/2]

static bool vtkSlicerTransformLogic::GetVisualization3d ( vtkPolyData *  output_RAS,
vtkMRMLTransformDisplayNode displayNode,
vtkMRMLNode regionNode,
vtkMRMLMarkupsNode glyphPointsNode = nullptr 
)
static

Generate polydata for 3D transform visualization Region node can be slice (vtkMRMLSliceNode), volume (vtkMRMLVolumeNode), region of interest (vtkMRMLMarkupsROINode), or model (vtkMRMLModelNode). If glyphPointsNode is specified and display mode is glyphs then the region is ignored and glyphs are drawn at the markup control points. Return true on success.

◆ GetVisualizationDisplacementMagnitudeScalarName()

static const char* vtkSlicerTransformLogic::GetVisualizationDisplacementMagnitudeScalarName ( )
static

Name of the scalar array that stores the displacement magnitude values in polydata returned by GetVisualization2d and GetVisualization3d.

◆ hardenTransform()

static bool vtkSlicerTransformLogic::hardenTransform ( vtkMRMLTransformableNode node)
static

Apply the associated transform to the transformable node. Return true on success, false otherwise. This method is kept for backward compatibility only, it is recommended to use vtkMRMLTransformableNode::HardenTransform() method instead.

◆ IsA()

virtual int vtkSlicerTransformLogic::IsA ( const char *  type)
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsTypeOf()

static int vtkSlicerTransformLogic::IsTypeOf ( const char *  type)
static

◆ New()

static vtkSlicerTransformLogic* vtkSlicerTransformLogic::New ( )
static

The Usual vtk class functions.

◆ operator=()

void vtkSlicerTransformLogic::operator= ( const vtkSlicerTransformLogic )
protected

◆ PrintSelf()

void vtkSlicerTransformLogic::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
inlineoverride

Definition at line 59 of file vtkSlicerTransformLogic.h.

◆ SafeDownCast()

static vtkSlicerTransformLogic* vtkSlicerTransformLogic::SafeDownCast ( vtkObject *  o)
static

◆ SaveTransform()

int vtkSlicerTransformLogic::SaveTransform ( const char *  filename,
vtkMRMLTransformNode transformNode 
)


Write transform's data to a specified file


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