| 116 | } |
| 117 | |
| 118 | bool mitk::Material::Assignable(const Material &other) const |
| 119 | { |
| 120 | try |
| 121 | { |
| 122 | const auto &otherinstance = |
| 123 | dynamic_cast<const Self &>(other); // dear compiler, please don't optimize this away! Thanks. |
| 124 | otherinstance.GetOpacity(); |
| 125 | return true; |
| 126 | } |
| 127 | catch (const std::bad_cast &) |
| 128 | { |
| 129 | } |
| 130 | return false; |
| 131 | } |
| 132 | |
| 133 | mitk::Material &mitk::Material::operator=(const mitk::Material &other) |
| 134 | { |