Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ContourElement::ContourModelVertex Struct Reference

Represents a single vertex of a contour. More...

#include <mitkContourElement.h>

Collaboration diagram for mitk::ContourElement::ContourModelVertex:

Public Member Functions

 ContourModelVertex (const mitk::Point3D &point, bool active=false)
 Construct a vertex at the given position. More...
 
 ContourModelVertex (const ContourModelVertex &other)
 Copy constructor. More...
 
bool operator== (const ContourModelVertex &other) const
 Equality comparison operator. More...
 

Public Attributes

bool IsControlPoint
 Flag indicating whether this vertex is a control point. More...
 
mitk::Point3D Coordinates
 The 3D world coordinates of this vertex. More...
 

Detailed Description

Represents a single vertex of a contour.

Each vertex stores its 3D coordinates and a flag indicating whether it is a control point (i.e., a point with special semantic meaning such as being used for interpolation or rendering).

Definition at line 56 of file mitkContourElement.h.

Constructor & Destructor Documentation

◆ ContourModelVertex() [1/2]

mitk::ContourElement::ContourModelVertex::ContourModelVertex ( const mitk::Point3D &  point,
bool  active = false 
)
inline

Construct a vertex at the given position.

Parameters
[in]pointCoordinates in 3D space.
[in]activeIf true, the vertex is marked as a control point. Default is false.

Definition at line 62 of file mitkContourElement.h.

◆ ContourModelVertex() [2/2]

mitk::ContourElement::ContourModelVertex::ContourModelVertex ( const ContourModelVertex &  other)
inline

Copy constructor.

Parameters
[in]otherThe vertex to copy from.

Definition at line 67 of file mitkContourElement.h.

Member Function Documentation

◆ operator==()

bool mitk::ContourElement::ContourModelVertex::operator== ( const ContourModelVertex &  other) const

Equality comparison operator.

Parameters
[in]otherThe vertex to compare against.
Returns
True if both coordinates and the control point flag are equal.

Member Data Documentation

◆ Coordinates

mitk::Point3D mitk::ContourElement::ContourModelVertex::Coordinates

The 3D world coordinates of this vertex.

Definition at line 80 of file mitkContourElement.h.

◆ IsControlPoint

bool mitk::ContourElement::ContourModelVertex::IsControlPoint

Flag indicating whether this vertex is a control point.

Control points receive special treatment, e.g., they may be rendered differently or used as anchors for interpolation schemes.

Definition at line 77 of file mitkContourElement.h.


The documentation for this struct was generated from the following file: