MCPcopy Create free account
hub / github.com/MITK/MITK / TestSetOpacity

Method TestSetOpacity

Modules/Multilabel/Testing/mitkLabelTest.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void TestSetOpacity()
58 {
59 mitk::Label::Pointer label = mitk::Label::New();
60 CPPUNIT_ASSERT_MESSAGE("Initial label has wrong opacity", mitk::Equal(label->GetOpacity(), 0.6f));
61
62 label->SetOpacity(0.32f);
63 CPPUNIT_ASSERT_MESSAGE("Label has wrong opacity", mitk::Equal(label->GetOpacity(), 0.32f));
64 }
65
66 void TestSetName()
67 {

Callers

nothing calls this directly

Calls 4

NewFunction · 0.50
EqualFunction · 0.50
GetOpacityMethod · 0.45
SetOpacityMethod · 0.45

Tested by

no test coverage detected