15#ifndef __vtkMRMLModelDisplayNode_h
16#define __vtkMRMLModelDisplayNode_h
23class vtkAlgorithmOutput;
24class vtkAssignAttribute;
25class vtkGeometryFilter;
30class vtkUnstructuredGrid;
41 void PrintSelf(ostream& os, vtkIndent indent)
override;
57 void WriteXML(ostream& of,
int indent)
override;
Abstract MRML node to represent color information.
virtual void SetInputMeshConnection(vtkAlgorithmOutput *meshConnection)
virtual void UpdateAssignedAttribute() override
virtual vtkPolyData * GetOutputPolyData()
virtual vtkUnstructuredGrid * GetOutputUnstructuredGrid()
void SetThresholdEnabled(bool enabled)
void SetSliceDisplayModeToDistanceEncodedProjection()
void SetSliceDisplayModeToProjection()
virtual vtkAlgorithmOutput * GetInputMeshConnection()
vtkMRMLCopyContentMacro(vtkMRMLModelDisplayNode)
virtual vtkAlgorithmOutput * GetOutputMeshConnection()
virtual vtkDataArray * GetActiveScalarArray() override
Return the current active scalar array (based on active scalar name and location)
@ SliceDisplayDistanceEncodedProjection
Show full model projected on the slice, colored by distance from slice plane.
@ SliceDisplayProjection
Show full model projected on the slice (similar to MIP view of images)
@ SliceDisplayIntersection
Show model in slice view as intersection with slice.
void SetThresholdRange(double range[2])
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
virtual void SetAndObserveDistanceEncodedProjectionColorNodeID(const char *colorNodeID)
void SetActiveAttributeLocation(int location) override
virtual vtkMRMLColorNode * GetDistanceEncodedProjectionColorNode()
void SetSliceDisplayModeToIntersection()
virtual vtkAlgorithmOutput * GetInputPolyDataConnection()
void SetThresholdRange(double min, double max)
vtkThreshold * ThresholdFilter
virtual vtkPointSet * GetInputMesh()
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
virtual void SetInputPolyDataConnection(vtkAlgorithmOutput *polyDataConnection)
virtual const char * GetDistanceEncodedProjectionColorNodeID()
vtkPassThrough * PassThrough
void PrintSelf(ostream &os, vtkIndent indent) override
double ClippingCapOpacity
vtkAssignAttribute * AssignAttribute
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
static int GetSliceDisplayModeFromString(const char *name)
void SetActiveScalarName(const char *scalarName) override
vtkGeometryFilter * ConvertToPolyDataFilter
virtual vtkDataSet * GetScalarDataSet() override
vtkMRMLModelDisplayNode()
void GetThresholdRange(double range[2])
static vtkMRMLModelDisplayNode * New()
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
double * GetThresholdRange() VTK_SIZEHINT(2)
virtual vtkPolyData * GetInputPolyData()
virtual vtkUnstructuredGrid * GetInputUnstructuredGrid()
static const char * GetSliceDisplayModeAsString(int id)
Convert between slice display mode ID and name.
virtual vtkPointSet * GetOutputMesh()
virtual void SetInputToMeshPipeline(vtkAlgorithmOutput *meshConnection)
To be reimplemented in subclasses if the input of the pipeline changes.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
double ClippingCapColorHSVOffset[3]
double ThresholdRangeTemp[2]
Temporary variable to allow GetThresholdRange() method to return threshold range as a pointer.
virtual vtkAlgorithmOutput * GetOutputPolyDataConnection()
double BackfaceColorHSVOffset[3]