20 : mPatientModelService(patientModelService)
21 , mCylinderText(
"Cylinder")
23 , mSphereText(
"Sphere")
30 for (
unsigned i=0; i<mProperties.size(); ++i)
32 XmlOptionItem item(mProperties[i]->getUid(), dataNode.toElement());
39 for (
unsigned i=0; i<mProperties.size(); ++i)
41 XmlOptionItem item(mProperties[i]->getUid(), dataNode.toElement());
42 QVariant orgval = mProperties[i]->getValueAsVariant();
43 mProperties[i]->setValueFromVariant(item.
readVariant(orgval));
47 void MeshTextureData::addProperty(
PropertyPtr property)
49 mProperties.push_back(property);
53 void MeshTextureData::initialize()
56 mTextureImage->setValueName(
"Texture image");
57 mTextureImage->setHelp(
"Select an imported 2D image to use as texture.");
58 mTextureImage->setOnly2DImagesFilter(
true);
59 this->addProperty(mTextureImage);
62 "The texture is applied in predefined geometric shapes. Select the shape which gives the best fit to your mesh.",
68 this->addProperty(mTextureShape);
70 mScaleX =
DoubleProperty::initialize(
"texture_scale_X",
"Scale X",
"How many times to draw the image along the X axis.", 1, DoubleRange(1,100000,1), 0);
71 this->addProperty(mScaleX);
73 mScaleY =
DoubleProperty::initialize(
"texture_scale_Y",
"Scale Y",
"How many times to draw the image along the Y axis.", 1, DoubleRange(1,100000,1), 0);
74 this->addProperty(mScaleY);
76 mPositionX =
DoubleProperty::initialize(
"texture_position_X",
"Position X",
"Where to start drawing the image along the X axis.", 0, DoubleRange(-100000,100000,0.01), 2);
77 this->addProperty(mPositionX);
79 mPositionY =
DoubleProperty::initialize(
"texture_position_Y",
"Position Y",
"Where to start drawing the image along the Y axis.", 0, DoubleRange(-100000,100000,0.01), 2);
80 this->addProperty(mPositionY);
83 this->addProperty(mRepeat);
133 return mTextureImage;
138 return mTextureShape;