| 228 | MITK_TEST_CONDITION(*myMP == *myMP2, "testing equality after .Initialize") |
| 229 | } |
| 230 | void testOperatorequality() |
| 231 | { |
| 232 | { |
| 233 | mitk::Material::Color color; |
| 234 | color.Set(0, 0, 0); |
| 235 | double opacity = 1.0f; |
| 236 | double rgb = 0; |
| 237 | double colorCoefficient = 0; |
| 238 | double specularCoefficient = 0; |
| 239 | double specularPower = 0; |
| 240 | |
| 241 | myMP = mitk::Material::New(rgb, rgb, rgb, colorCoefficient, specularCoefficient, specularPower, opacity); |
| 242 | double lineWidth = 1; |
| 243 | myMP->SetLineWidth(lineWidth); |
| 244 | mitk::Material::RepresentationType representation = mitk::Material::Wireframe; |
| 245 | myMP->SetRepresentation(representation); |
| 246 | mitk::Material::InterpolationType interpolation = mitk::Material::Flat; |
| 247 | myMP->SetInterpolation(interpolation); |
| 248 | myMP->SetSpecularColor(color); |
| 249 | std::string name = "Hans Wurst"; |
| 250 | myMP->SetName(name); |
| 251 | |
| 252 | mitk::Material::Color color2; |
| 253 | color2.Set(0, 0, 0); |
| 254 | double opacity2 = 1.0f; |
| 255 | double rgb2 = 0; |
| 256 | double colorCoefficient2 = 0; |
| 257 | double specularCoefficient2 = 0; |
| 258 | double specularPower2 = 0; |
| 259 | |
| 260 | mitk::Material::Pointer myMP2 = |
| 261 | mitk::Material::New(rgb2, rgb2, rgb2, colorCoefficient2, specularCoefficient2, specularPower2, opacity2); |
| 262 | double lineWidth2 = 1; |
| 263 | myMP2->SetLineWidth(lineWidth2); |
| 264 | mitk::Material::RepresentationType representation2 = mitk::Material::Wireframe; |
| 265 | myMP2->SetRepresentation(representation2); |
| 266 | mitk::Material::InterpolationType interpolation2 = mitk::Material::Flat; |
| 267 | myMP2->SetInterpolation(interpolation2); |
| 268 | myMP2->SetSpecularColor(color2); |
| 269 | std::string name2 = "Hans Wurst"; |
| 270 | myMP2->SetName(name2); |
| 271 | MITK_TEST_CONDITION(*myMP == *myMP2, "testing equality Operator") |
| 272 | } |
| 273 | { |
| 274 | mitk::Material::Color color; |
| 275 | color.Set(0, 0, 0); |
| 276 | double opacity = 1.0f; |
| 277 | double rgb = 0; |
| 278 | double colorCoefficient = 0; |
| 279 | double specularCoefficient = 0; |
| 280 | double specularPower = 0; |
| 281 | |
| 282 | myMP = mitk::Material::New(rgb, rgb, rgb, colorCoefficient, specularCoefficient, specularPower, opacity); |
| 283 | double lineWidth = 1; |
| 284 | myMP->SetLineWidth(lineWidth); |
| 285 | mitk::Material::RepresentationType representation = mitk::Material::Wireframe; |
| 286 | myMP->SetRepresentation(representation); |
| 287 | mitk::Material::InterpolationType interpolation = mitk::Material::Flat; |
no test coverage detected