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.",
47 "Set backface culling on. This makes transparent meshes work, " 48 "but only draws outside mesh walls " 49 "(eg. navigating inside meshes will not work).",
54 "Set frontface culling on. Can be used to make transparent " 55 "meshes work from inside the meshes.",
60 "How to represent model visually",
61 QString::number(VTK_SURFACE),
63 << QString::number(VTK_SURFACE)
64 << QString::number(VTK_WIREFRAME)
65 << QString::number(VTK_POINTS));
66 std::map<QString,QString> representationNames;
67 representationNames[QString::number(VTK_SURFACE)] =
"Surface";
68 representationNames[QString::number(VTK_WIREFRAME)] =
"Wireframe";
69 representationNames[QString::number(VTK_POINTS)] =
"Points";
79 "Edge color, used when edges are visible.",
84 "Ambient color coefficient",
90 "Diffuse color coefficient",
96 "Specular color coefficient",
102 "Specular color power",
109 void MeshPropertyData::addProperty(
PropertyPtr property)
129 QVariant orgval =
mProperties[i]->getValueAsVariant();
130 mProperties[i]->setValueFromVariant(item.readVariant(orgval));
BoolPropertyBasePtr mUseColorFromPolydataScalars
static BoolPropertyPtr initialize(const QString &uid, QString name, QString help, bool value, QDomNode root=QDomNode())
DoublePropertyPtr mVisSize
void writeVariant(const QVariant &val)
void parseXml(QDomNode dataNode)
BoolPropertyPtr mFrontfaceCulling
DoublePropertyPtr mAmbient
Utility class for describing a bounded numeric range.
DoublePropertyPtr mSpecularPower
DoublePropertyPtr mDiffuse
Helper class for storing one string value in an xml document.
StringPropertyPtr mRepresentation
boost::shared_ptr< class Property > PropertyPtr
BoolPropertyPtr mBackfaceCulling
void addXml(QDomNode &dataNode)
void changed()
emit when the underlying data value is changed: The user interface will be updated.
static StringPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList range, QDomNode root=QDomNode())
std::vector< PropertyPtr > mProperties
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
ColorPropertyPtr mEdgeColor
static ColorPropertyPtr initialize(const QString &uid, QString name, QString help, QColor value, QDomNode root=QDomNode())
BoolPropertyPtr mEdgeVisibility
DoublePropertyPtr mSpecular
Namespace for all CustusX production code.