30 this->ClearPolyLines();
32 this->AppendPointToPolyLine(0, this->GetControlPoint(0));
33 this->AppendPointToPolyLine(0, this->GetControlPoint(1));
44 const Point3D &p0 = this->GetWorldControlPoint(0);
45 const Point3D &p1 = this->GetWorldControlPoint(1);
46 double length = p0.EuclideanDistanceTo(p1);
48 this->SetQuantity(FEATURE_ID_LENGTH, length);
53 Superclass::PrintSelf(os, indent);
61 return Superclass::Equals(other);
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
virtual bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own...
virtual void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
virtual void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
Implementation of PlanarFigure representing a line through two control points.
virtual void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.