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)
48 Q_PROPERTY(
bool clippingConfigurationButtonVisible READ clippingConfigurationButtonVisible WRITE setClippingConfigurationButtonVisible)
59 bool visibility()const;
61 bool sliceIntersectionVisible()const;
62 int sliceIntersectionThickness()const;
63 double sliceIntersectionOpacity()const;
64 bool clippingConfigurationButtonVisible()const;
66 bool scalarsVisibility()const;
67 QString activeScalarName()const;
80 void setScalarRangeMode(ControlMode controlMode);
81 ControlMode scalarRangeMode()
const;
84 double minimumValue()
const;
87 double maximumValue()
const;
92 void minMaxValuesChanged(
double min,
double max);
95 void scalarRangeModeValueChanged(ControlMode value);
98 void displayNodeChanged();
101 void clippingToggled(
bool);
104 void clippingConfigurationButtonClicked();
114 void setMRMLModelOrHierarchyNode(
vtkMRMLNode* modelNode);
116 void setVisibility(
bool);
117 void setClipping(
bool);
119 void setSliceIntersectionVisible(
bool);
120 void setSliceDisplayMode(
int);
121 void setSliceIntersectionThickness(
int);
122 void setSliceIntersectionOpacity(
double);
125 void setRepresentation(
int);
126 void setPointSize(
double);
127 void setLineWidth(
double);
128 void setShowFaces(
int);
129 void setColor(
const QColor&);
130 void setOpacity(
double);
131 void setEdgeVisibility(
bool);
132 void setEdgeColor(
const QColor&);
133 void setLighting(
bool);
134 void setInterpolation(
int);
136 void setScalarsVisibility(
bool);
137 void setActiveScalarName(
const QString&);
140 void setScalarsDisplayRange(
double min,
double max);
141 void setTresholdEnabled(
bool b);
142 void setThresholdRange(
double min,
double max);
145 void setScalarRangeMode(
int scalarRangeMode);
148 void setMinimumValue(
double min);
149 void setMaximumValue(
double max);
152 void setClippingConfigurationButtonVisible(
bool);
155 void updateWidgetFromMRML();
156 void updateNodeFromProperty();
160 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.