120 propList->SetProperty(
"PlaneOrientationProperty",
151 lt->ChangeOpacityForAll(0.25);
152 lt->ChangeOpacity(17, 0.88);
226 for (mitk::PropertyList::PropertyMap::const_iterator it = propList->
GetMap()->begin();
227 it != propList->
GetMap()->end();
232 std::string serializername = std::string(prop->GetNameOfClass()) +
"Serializer";
233 std::list<itk::LightObject::Pointer> allSerializers =
234 itk::ObjectFactoryBase::CreateAllInstance(serializername.c_str());
235 MITK_TEST_CONDITION(allSerializers.size() > 0, std::string(
"Creating serializers for ") + serializername);
236 if (allSerializers.size() == 0)
238 MITK_TEST_OUTPUT(<<
"serialization not possible, skipping " << prop->GetNameOfClass());
241 if (allSerializers.size() > 1)
243 MITK_TEST_OUTPUT(<<
"Warning: " << allSerializers.size() <<
" serializers found for " << prop->GetNameOfClass()
244 <<
"testing only the first one.");
249 if (serializer != NULL)
252 TiXmlElement *valueelement = NULL;
260 MITK_TEST_CONDITION(valueelement != NULL, std::string(
"Serialize property with ") + serializername);
262 if (valueelement == NULL)
270 if (deserializedProp.IsNotNull())
273 "deserialized property equals initial property for type " << prop->GetNameOfClass());
279 << allSerializers.begin()->GetPointer()->GetNameOfClass())
itk::SmartPointer< Self > Pointer
void SetTableValue(IdentifierType id, ValueType value)
virtual void SetProperty(const BaseProperty *_arg)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
int mitkPropertySerializationTest(int, char *[])
Test for all PropertySerializer classes.
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
Key-value list holding instances of BaseProperty.
void FillVector3D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z)
virtual BaseProperty::Pointer Deserialize(TiXmlElement *)
Deserializes given TiXmlElement.
#define MITK_TEST_OUTPUT(x)
Output some text.
The LevelWindow class Class to store level/window values.
Abstract base class for properties.
virtual TiXmlElement * Serialize()
Serializes given BaseProperty object.
#define MITK_TEST_CONDITION(COND, MSG)
void TestAllProperties(const mitk::PropertyList *propList)
Base class for objects that serialize BaseProperty types.
void FillVector4D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z, mitk::ScalarType t)
specializations of GenericLookupTable
const PropertyMap * GetMap() const