|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
13 #include <QDomDocument>
16 #include "vtkProperty.h"
26 void MeshPropertyData::initialize()
36 "If your polydata has a scalar array with color data in you can use that to color the mesh.",
41 "Visualized size of points, glyphs etc.",
53 "Set backface culling on. This makes transparent meshes work, "
54 "but only draws outside mesh walls "
55 "(eg. navigating inside meshes will not work).",
60 "Set frontface culling on. Can be used to make transparent "
61 "meshes work from inside the meshes.",
66 "How to represent model visually",
67 QString::number(VTK_SURFACE),
69 << QString::number(VTK_SURFACE)
70 << QString::number(VTK_WIREFRAME)
71 << QString::number(VTK_POINTS));
72 std::map<QString,QString> representationNames;
73 representationNames[QString::number(VTK_SURFACE)] =
"Surface";
74 representationNames[QString::number(VTK_WIREFRAME)] =
"Wireframe";
75 representationNames[QString::number(VTK_POINTS)] =
"Points";
85 "Edge color, used when edges are visible.",
90 "Ambient color coefficient",
96 "Diffuse color coefficient",
102 "Specular color coefficient",
108 "Specular color power",
115 void MeshPropertyData::addProperty(
PropertyPtr property)
135 QVariant orgval =
mProperties[i]->getValueAsVariant();
DoublePropertyPtr mSpecular
static BoolPropertyPtr initialize(const QString &uid, QString name, QString help, bool value, QDomNode root=QDomNode())
DoublePropertyPtr mLineWidth
void writeVariant(const QVariant &val)
void addXml(QDomNode &dataNode)
Namespace for all CustusX production code.
ColorPropertyPtr mEdgeColor
DoublePropertyPtr mAmbient
void changed()
emit when the underlying data value is changed: The user interface will be updated.
void parseXml(QDomNode dataNode)
DoublePropertyPtr mDiffuse
StringPropertyPtr mRepresentation
static ColorPropertyPtr initialize(const QString &uid, QString name, QString help, QColor value, QDomNode root=QDomNode())
DoublePropertyPtr mVisSize
BoolPropertyPtr mEdgeVisibility
boost::shared_ptr< class Property > PropertyPtr
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
BoolPropertyPtr mFrontfaceCulling
QVariant readVariant(const QVariant &defval=QVariant()) const
Helper class for storing one string value in an xml document.
DoublePropertyPtr mSpecularPower
BoolPropertyBasePtr mUseColorFromPolydataScalars
static StringPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList range, QDomNode root=QDomNode())
BoolPropertyPtr mBackfaceCulling
Utility class for describing a bounded numeric range.
std::vector< PropertyPtr > mProperties