15 #ifndef __vtkMRMLModelDisplayNode_h 16 #define __vtkMRMLModelDisplayNode_h 23 class vtkAlgorithmOutput;
24 class vtkAssignAttribute;
25 class vtkGeometryFilter;
30 class vtkUnstructuredGrid;
41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
57 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
66 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "ModelDisplay";}
71 virtual void SetInputMeshConnection(vtkAlgorithmOutput* meshConnection);
72 virtual void SetInputPolyDataConnection(vtkAlgorithmOutput* polyDataConnection);
77 virtual vtkAlgorithmOutput* GetInputMeshConnection();
78 virtual vtkAlgorithmOutput* GetInputPolyDataConnection();
82 virtual vtkPointSet* GetInputMesh();
83 virtual vtkPolyData* GetInputPolyData();
84 virtual vtkUnstructuredGrid* GetInputUnstructuredGrid();
93 virtual vtkPointSet* GetOutputMesh();
94 virtual vtkPolyData* GetOutputPolyData();
95 virtual vtkUnstructuredGrid* GetOutputUnstructuredGrid();
100 virtual vtkAlgorithmOutput* GetOutputMeshConnection();
101 virtual vtkAlgorithmOutput* GetOutputPolyDataConnection();
119 virtual void SetActiveScalar(
const char *scalarName,
int location);
127 void SetThresholdEnabled(
bool enabled);
128 vtkBooleanMacro(ThresholdEnabled,
bool);
133 vtkGetMacro(ThresholdEnabled,
bool);
137 void SetThresholdRange(
double min,
double max);
138 void SetThresholdRange(
double range[2]);
142 void GetThresholdRange(
double range[2]);
143 double* GetThresholdRange();
144 double GetThresholdMin();
145 double GetThresholdMax();
150 vtkGetMacro(SliceDisplayMode,
int);
151 vtkSetMacro(SliceDisplayMode,
int);
152 void SetSliceDisplayModeToIntersection();
153 void SetSliceDisplayModeToProjection();
154 void SetSliceDisplayModeToDistanceEncodedProjection();
157 static const char* GetSliceDisplayModeAsString(
int id);
158 static int GetSliceDisplayModeFromString(
const char* name);
164 virtual void SetAndObserveDistanceEncodedProjectionColorNodeID(
const char *colorNodeID);
167 virtual const char* GetDistanceEncodedProjectionColorNodeID();
171 virtual vtkDataArray* GetActiveScalarArray();
181 void *callData) VTK_OVERRIDE;
184 virtual void SetInputToMeshPipeline(vtkAlgorithmOutput* meshConnection);
188 virtual void UpdateAssignedAttribute();
192 virtual void UpdateScalarRange();
225 double ThresholdRangeTemp[2];
vtkAssignAttribute * AssignAttribute
Show full model projected on the slice, colored by distance from slice plane.
virtual void SetScalarRangeFlag(int)
virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE
Copy the node's attributes to this object.
MRML node to represent a display property of 3D surface model.
vtkGeometryFilter * ConvertToPolyDataFilter
Show full model projected on the slice (similar to MIP view of images)
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
virtual void SetActiveScalarName(const char *)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
vtkThreshold * ThresholdFilter
Show model in slice view as intersection with slice.
void operator=(const vtkMRMLDisplayNode &)
Abstract MRML node to represent color information.
virtual void SetActiveAttributeLocation(int)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void WriteXML(ostream &of, int indent) VTK_OVERRIDE
Abstract class that contains graphical display properties for displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
vtkPassThrough * PassThrough
virtual void ReadXMLAttributes(const char **atts) VTK_OVERRIDE