vtkMRMLModelNode Class Reference

#include <vtkMRMLModelNode.h>

Inheritance diagram for vtkMRMLModelNode:
vtkMRMLDisplayableNode vtkMRMLStorableNode vtkMRMLTransformableNode vtkMRMLNode vtkObject vtkMRMLAnnotationNode vtkMRMLFESurfaceNode vtkMRMLFiberBundleNode vtkMRMLAnnotationControlPointsNode vtkMRMLAnnotationStickyNode vtkMRMLAnnotationFiducialNode vtkMRMLAnnotationLinesNode vtkMRMLAnnotationAngleNode vtkMRMLAnnotationRulerNode

List of all members.

Public Member Functions

void AddCellScalars (vtkDataArray *array)
void AddPointScalars (vtkDataArray *array)
virtual void ApplyTransform (vtkMatrix4x4 *transformMatrix)
virtual void ApplyTransform (vtkAbstractTransform *transform)
virtual bool CanApplyNonLinearTransforms ()
int CompositeScalars (const char *backgroundName, const char *overlayName, float overlayMin, float overlayMax, int showOverlayPositive, int showOverlayNegative, int reverseOverlay)
virtual void Copy (vtkMRMLNode *node)
 Copy the node's attributes to this object.
virtual vtkMRMLStorageNodeCreateDefaultStorageNode ()
virtual vtkMRMLNodeCreateNodeInstance ()
 MRMLNode methods.
const charGetActiveCellScalarName (const char *type)
const charGetActivePointScalarName (const char *type)
virtual const charGetDefaultWriteFileExtension ()
vtkMRMLModelDisplayNodeGetModelDisplayNode ()
virtual const charGetNodeTagName ()
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ProcessMRMLEvents (vtkObject *, unsigned long, void *)
void RemoveScalars (const char *scalarName)
int SetActiveCellScalars (const char *scalarName, int attributeType)
int SetActivePointScalars (const char *scalarName, int attributeType)
int SetActiveScalars (const char *scalarName, const char *typeName)
virtual void SetAndObservePolyData (vtkPolyData *PolyData)
void UpdateScene (vtkMRMLScene *scene)
 vtkTypeMacro (vtkMRMLModelNode, vtkMRMLDisplayableNode)

Static Public Member Functions

static vtkMRMLModelNodeNew ()

Protected Member Functions

void operator= (const vtkMRMLModelNode &)
 vtkMRMLModelNode (const vtkMRMLModelNode &)
 vtkMRMLModelNode ()
 ~vtkMRMLModelNode ()

Constructor & Destructor Documentation

vtkMRMLModelNode::vtkMRMLModelNode (  )  [protected]
vtkMRMLModelNode::~vtkMRMLModelNode (  )  [protected]
vtkMRMLModelNode::vtkMRMLModelNode ( const vtkMRMLModelNode  )  [protected]

Member Function Documentation

void vtkMRMLModelNode::AddCellScalars ( vtkDataArray *  array  ) 
void vtkMRMLModelNode::AddPointScalars ( vtkDataArray *  array  ) 

add an array to the polydata's point/cell data

References vtkMRMLDisplayableNode::PolyData.

Referenced by CompositeScalars(), and vtkMRMLFreeSurferModelOverlayStorageNode::ReadData().

virtual void vtkMRMLModelNode::ApplyTransform ( vtkMatrix4x4 *  transformMatrix  )  [inline, virtual]
void vtkMRMLModelNode::ApplyTransform ( vtkAbstractTransform *  transform  )  [virtual]
virtual bool vtkMRMLModelNode::CanApplyNonLinearTransforms (  )  [inline, virtual]
int vtkMRMLModelNode::CompositeScalars ( const char backgroundName,
const char overlayName,
float  overlayMin,
float  overlayMax,
int  showOverlayPositive,
int  showOverlayNegative,
int  reverseOverlay 
)

Take scalar fields and composite them into a new one. New array will have values from the background array where the overlay is +/- if showOverlayPositive/Negative are 0. overlayMin and Max are used to adjust the color transfer function points, both should be positive, as they are mirrored around 0. -Min to Min gives the gap where the curvature will show through. New array name is backgroundName+overlayName Returns 1 on success, 0 on failure. Based on code from K. Teich, MGH

References vtkMRMLScene::AddNode(), AddPointScalars(), vtkMRMLFreeSurferProceduralColorNode::Custom, GetModelDisplayNode(), New(), vtkMRMLDisplayableNode::PolyData, vtkMRMLNode::Scene, vtkMRMLDisplayNode::SetActiveScalarName(), vtkMRMLDisplayNode::SetAndObserveColorNodeID(), and vtkMRMLProceduralColorNode::SetType().

void vtkMRMLModelNode::Copy ( vtkMRMLNode node  )  [virtual]
vtkMRMLStorageNode * vtkMRMLModelNode::CreateDefaultStorageNode (  )  [virtual]
vtkMRMLNode * vtkMRMLModelNode::CreateNodeInstance ( void   )  [virtual]
const char * vtkMRMLModelNode::GetActiveCellScalarName ( const char type  ) 
const char * vtkMRMLModelNode::GetActivePointScalarName ( const char type  ) 

Get the currently active Point/Cell array name, type = scalars, vectors, normals, tcoords, tensors, null checks all in that order for an active array. Returns an empty string if it can't find one.

References vtkMRMLDisplayableNode::PolyData.

Referenced by vtkSlicerViewerWidget::SetModelDisplayProperty().

virtual const char* vtkMRMLModelNode::GetDefaultWriteFileExtension (  )  [inline, virtual]

Return a default file extension for writting

vtkMRMLModelDisplayNode* vtkMRMLModelNode::GetModelDisplayNode (  )  [inline]
virtual const char* vtkMRMLModelNode::GetNodeTagName (  )  [inline, virtual]
vtkMRMLModelNode * vtkMRMLModelNode::New (  )  [static]
void vtkMRMLModelNode::operator= ( const vtkMRMLModelNode  )  [protected]
void vtkMRMLModelNode::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void vtkMRMLModelNode::ProcessMRMLEvents ( vtkObject caller,
unsigned long  event,
void *  callData 
) [virtual]
void vtkMRMLModelNode::RemoveScalars ( const char scalarName  ) 

remove an array from the polydata's point/cell data

References vtkMRMLDisplayableNode::PolyData.

int vtkMRMLModelNode::SetActiveCellScalars ( const char scalarName,
int  attributeType 
)
int vtkMRMLModelNode::SetActivePointScalars ( const char scalarName,
int  attributeType 
)
int vtkMRMLModelNode::SetActiveScalars ( const char scalarName,
const char typeName 
)

Set the active poly data Point/Cell scalar array, checks for the scalarName as being a valid Point/Cell array, and then will set it to be the active attribute type as designated by typeName (scalars if null or empty). typeName is one of the valid strings as returned from vtkDataSetAttributes::GetAttributeTypeAsString, SetActiveScalars converts it to an integer type to pass onto the Point/Cell methods Also updates the display node's active scalars

References GetModelDisplayNode(), vtkMRMLDisplayableNode::PolyData, SCALARS, SetActiveCellScalars(), SetActivePointScalars(), and vtkMRMLDisplayNode::SetActiveScalarName().

Referenced by vtkMRMLFreeSurferModelOverlayStorageNode::ReadData(), and vtkSlicerViewerWidget::SetModelDisplayProperty().

void vtkMRMLModelNode::SetAndObservePolyData ( vtkPolyData *  PolyData  )  [virtual]
void vtkMRMLModelNode::UpdateScene ( vtkMRMLScene scene  )  [virtual]
vtkMRMLModelNode::vtkTypeMacro ( vtkMRMLModelNode  ,
vtkMRMLDisplayableNode   
)

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1