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

Method GetOpacity

Modules/Core/src/Rendering/mitkAnnotation.cpp:256–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256bool mitk::Annotation::GetOpacity(float &opacity, const std::string &propertyKey) const
257{
258 mitk::FloatProperty::Pointer opacityprop = dynamic_cast<mitk::FloatProperty *>(GetProperty(propertyKey));
259 if (opacityprop.IsNull())
260 return false;
261
262 opacity = opacityprop->GetValue();
263 return true;
264}
265
266void mitk::Annotation::SetOpacity(float opacity, const std::string &propertyKey)
267{

Calls 3

GetPropertyFunction · 0.50
IsNullMethod · 0.45
GetValueMethod · 0.45