* \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 */
| 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 |