15 #ifndef __vtkMRMLGlyphableVolumeSliceDisplayNode_h 16 #define __vtkMRMLGlyphableVolumeSliceDisplayNode_h 22 #include "vtkPolyData.h" 25 class vtkTransformPolyDataFilter;
40 void PrintSelf ( ostream& os, vtkIndent indent )
override;
54 void WriteXML ( ostream& of,
int indent )
override;
63 const char*
GetNodeTagName ()
override {
return "GlyphableVolumeSliceDisplayNode";}
100 virtual vtkPolyData* GetSliceOutputPolyData();
110 virtual void SetSliceImagePort(vtkAlgorithmOutput *imagePort);
111 vtkGetObjectMacro(SliceImagePort, vtkAlgorithmOutput);
115 virtual vtkAlgorithmOutput* GetSliceOutputPort();
119 virtual void SetSlicePositionMatrix(vtkMatrix4x4 *matrix);
123 virtual void SetSliceGlyphRotationMatrix(vtkMatrix4x4 *matrix);
140 colorModeFunctionOfScalar = 2,
141 colorModeUseCellScalars = 3
150 vtkGetMacro ( ColorMode,
int );
151 vtkSetMacro ( ColorMode,
int );
156 this->SetColorMode ( this->colorModeSolid );
162 this->SetColorMode ( this->colorModeScalar );
169 this->SetColorMode ( this->colorModeFunctionOfScalar );
180 this->SetColorMode ( this->colorModeUseCellScalars );
200 virtual void SetInputToPolyDataPipeline(vtkAlgorithmOutput* glyphPolyData);
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
virtual vtkPointSet * GetOutputMesh()
void SetColorModeToScalar()
Color according to the tensors using various scalar invariants.
static vtkMRMLModelDisplayNode * New()
void SetColorModeToSolid()
Color by solid color (for example the whole fiber bundle red. blue, etc.)
MRML node to represent a display property of 3D surface model.
virtual vtkAlgorithmOutput * GetOutputMeshConnection()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, UnstructuredGrid)
void UpdateReferences() override
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
vtkTransform * SliceToXYTransform
void SetColorModeToFunctionOfScalar()
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent display properties for tractography.
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
vtkTransformPolyDataFilter * SliceToXYTransformer
vtkMatrix4x4 * SliceToXYMatrix
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
void operator=(const vtkMRMLModelDisplayNode &)
void PrintSelf(ostream &os, vtkIndent indent) override
vtkAlgorithmOutput * SliceImagePort
virtual void UpdateAssignedAttribute() override
Abstract Superclass for all specific types of MRML nodes.
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void SetColorModeToUseCellScalars()