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

Function IsOn

Modules/Core/include/mitkDataNode.h:686–692  ·  view source on GitHub ↗

* \brief Convenience access method for boolean properties (instances * of BoolProperty). Return value is the value of the property. If the property is * not found, the value of \a defaultIsOn is returned. * * Thus, the return value has a different meaning than in the * GetBoolProperty method! * \sa GetBoolProperty */

Source from the content-addressed store, hash-verified

684 * \sa GetBoolProperty
685 */
686 bool IsOn(const char *propertyKey, const mitk::BaseRenderer *renderer, bool defaultIsOn = true) const
687 {
688 if (propertyKey == nullptr)
689 return defaultIsOn;
690 GetBoolProperty(propertyKey, defaultIsOn, renderer);
691 return defaultIsOn;
692 }
693
694 /**
695 * \brief Convenience access method for visibility properties (instances

Callers 2

IsVisibleFunction · 0.70
IsVisibleMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected