21 #ifndef __qMRMLModelDisplayNodeWidget_h 22 #define __qMRMLModelDisplayNodeWidget_h 28 #include <ctkVTKObject.h> 31 #include "qSlicerModelsModuleWidgetsExport.h" 33 class qMRMLModelDisplayNodeWidgetPrivate;
45 Q_PROPERTY(
ControlMode scalarRangeMode READ scalarRangeMode WRITE setScalarRangeMode)
46 Q_PROPERTY(
double minimumValue READ minimumValue WRITE setMinimumValue)
47 Q_PROPERTY(
double maximumValue READ maximumValue WRITE setMaximumValue)
58 bool visibility()const;
60 bool sliceIntersectionVisible()const;
61 int sliceIntersectionThickness()const;
62 double sliceIntersectionOpacity()const;
64 bool scalarsVisibility()const;
65 QString activeScalarName()const;
77 void setScalarRangeMode(
ControlMode autoScalarRange);
81 double minimumValue()
const;
84 double maximumValue()
const;
89 void minMaxValuesChanged(
double min,
double max);
92 void scalarRangeModeValueChanged(
ControlMode value);
102 void setMRMLModelOrHierarchyNode(
vtkMRMLNode* modelNode);
104 void setVisibility(
bool);
105 void setClipping(
bool);
107 void setSliceIntersectionVisible(
bool);
108 void setSliceDisplayMode(
int);
109 void setSliceIntersectionThickness(
int);
110 void setSliceIntersectionOpacity(
double);
113 void setRepresentation(
int);
114 void setPointSize(
double);
115 void setLineWidth(
double);
116 void setShowFaces(
int);
117 void setColor(
const QColor&);
118 void setOpacity(
double);
119 void setEdgeVisibility(
bool);
120 void setEdgeColor(
const QColor&);
121 void setLighting(
bool);
122 void setInterpolation(
int);
124 void setScalarsVisibility(
bool);
125 void setActiveScalarName(
const QString&);
128 void setScalarsDisplayRange(
double min,
double max);
129 void setTresholdEnabled(
bool b);
130 void setThresholdRange(
double min,
double max);
133 void setScalarRangeMode(
int scalarRangeMode);
136 void setMinimumValue(
double min);
137 void setMaximumValue(
double max);
140 void updateWidgetFromMRML();
141 void updateNodeFromProperty();
145 QScopedPointer<qMRMLModelDisplayNodeWidgetPrivate>
d_ptr;
MRML node to represent a display property of 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
Abstract MRML node to represent color information.
Abstract Superclass for all specific types of MRML nodes.
MRML node for storing information about the active nodes in the scene.