|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Property for defining a clipping plane for datasets. More...
#include <mitkClippingProperty.h>


Public Types | |
| typedef std::string | ValueType |
| The type used for string-based value representation. More... | |
Public Member Functions | |
| mitkClassMacro (ClippingProperty, BaseProperty) | |
| Pointer | Clone () const |
| mitkNewMacro2Param (ClippingProperty, const Point3D &, const Vector3D &) | |
| bool | GetClippingEnabled () const |
| Check whether clipping is enabled. More... | |
| void | SetClippingEnabled (bool enabled) |
| Enable or disable clipping. More... | |
| const Point3D & | GetOrigin () const |
| Get the origin point of the clipping plane. More... | |
| void | SetOrigin (const Point3D &origin) |
| Set the origin point of the clipping plane. More... | |
| const Vector3D & | GetNormal () const |
| Get the normal vector of the clipping plane. More... | |
| void | SetNormal (const Vector3D &normal) |
| Set the normal vector of the clipping plane. More... | |
| std::string | GetValueAsString () const override |
| Return the clipping state and plane parameters as a string. More... | |
| bool | ToJSON (nlohmann::json &j) const override |
| Serialize the clipping property to JSON. More... | |
| bool | FromJSON (const nlohmann::json &j) override |
| Deserialize the clipping property from JSON. More... | |
| BaseProperty & | operator= (const BaseProperty &property) |
| Assign a property value to this instance. More... | |
Public Member Functions inherited from mitk::BaseProperty | |
| mitkClassMacroItkParent (BaseProperty, itk::Object) | |
| Pointer | Clone () const |
| bool | operator== (const BaseProperty &property) const |
| Compare two properties for equality. More... | |
| BaseProperty & | operator= (const BaseProperty &property) |
| Assign a property value to this instance. More... | |
| bool | AssignProperty (const BaseProperty &property) |
| Assign a property value to this instance and report success. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| ClippingProperty () | |
| ClippingProperty (const ClippingProperty &other) | |
| ClippingProperty (const Point3D &origin, const Vector3D &normal) | |
| mitkCloneMacro (ClippingProperty) | |
Protected Member Functions inherited from mitk::BaseProperty | |
| BaseProperty () | |
| BaseProperty (const BaseProperty &other) | |
| ~BaseProperty () override | |
Protected Attributes | |
| bool | m_ClippingEnabled |
| Point3D | m_Origin |
| Vector3D | m_Normal |
Additional Inherited Members | |
Static Public Attributes inherited from mitk::BaseProperty | |
| static const std::string | VALUE_CANNOT_BE_CONVERTED_TO_STRING |
| Default return value for properties that cannot be converted to a string. More... | |
Property for defining a clipping plane for datasets.
Stores a clipping plane defined by an origin point and a normal vector, along with an enabled/disabled flag. When enabled, the clipping plane can be used by renderers to clip the associated data object.
When constructed with an origin and normal, clipping is automatically enabled. The default constructor creates a disabled clipping property with origin and normal at (0, 0, 0).
Definition at line 39 of file mitkClippingProperty.h.
| typedef std::string mitk::ClippingProperty::ValueType |
The type used for string-based value representation.
Definition at line 45 of file mitkClippingProperty.h.
|
protected |
|
protected |
|
protected |
| Pointer mitk::ClippingProperty::Clone | ( | ) | const |
|
overridevirtual |
Deserialize the clipping property from JSON.
Reads "Enabled", "Origin", and "Normal" fields.
| [in] | j | The JSON object containing clipping data. |
true. Implements mitk::BaseProperty.
| bool mitk::ClippingProperty::GetClippingEnabled | ( | ) | const |
Check whether clipping is enabled.
true if clipping is enabled, false otherwise. | const Vector3D& mitk::ClippingProperty::GetNormal | ( | ) | const |
Get the normal vector of the clipping plane.
| const Point3D& mitk::ClippingProperty::GetOrigin | ( | ) | const |
Get the origin point of the clipping plane.
|
overridevirtual |
Return the clipping state and plane parameters as a string.
Reimplemented from mitk::BaseProperty.
| mitk::ClippingProperty::mitkClassMacro | ( | ClippingProperty | , |
| BaseProperty | |||
| ) |
|
protected |
| mitk::ClippingProperty::mitkNewMacro2Param | ( | ClippingProperty | , |
| const Point3D & | , | ||
| const Vector3D & | |||
| ) |
|
static |
| BaseProperty& mitk::BaseProperty::operator= |
Assign a property value to this instance.
Performs a polymorphic assignment from the given property. The assignment succeeds only if the source and target properties are of the same type. The subclass-specific Assign() method is called to perform the actual value copy.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling. The copy assignment operator of the subclass should be disabled and the base class operator should be made visible using "using" statements.
| [in] | property | The property whose value should be assigned to this instance. |
| void mitk::ClippingProperty::SetClippingEnabled | ( | bool | enabled | ) |
Enable or disable clipping.
Marks the property as modified if the state changes.
| [in] | enabled | true to enable clipping, false to disable. |
| void mitk::ClippingProperty::SetNormal | ( | const Vector3D & | normal | ) |
Set the normal vector of the clipping plane.
Marks the property as modified if the new normal differs from the current one.
| [in] | normal | The new normal vector. |
| void mitk::ClippingProperty::SetOrigin | ( | const Point3D & | origin | ) |
Set the origin point of the clipping plane.
Marks the property as modified if the new origin differs from the current one.
| [in] | origin | The new origin point. |
|
overridevirtual |
Serialize the clipping property to JSON.
Serializes "Enabled", "Origin", and "Normal" fields.
| [out] | j | The JSON object to write the value into. |
true. Implements mitk::BaseProperty.
|
protected |
Definition at line 126 of file mitkClippingProperty.h.
|
protected |
Definition at line 129 of file mitkClippingProperty.h.
|
protected |
Definition at line 128 of file mitkClippingProperty.h.