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();
136 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 mLineWidth
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.