56 float scaleFactor = 0.015;
61 double nonScalingLength = displayHeight * mmPerDisplayUnit * scaleFactor;
70 double degrees = 100.0;
72 temp[0] = n1[0] * cos(degrees) - n1[1] * sin(degrees);
73 temp[1] = n1[0] * sin(degrees) + n1[1] * cos(degrees);
75 temp2[0] = n1[0] * cos(-degrees) - n1[1] * sin(-degrees);
76 temp2[1] = n1[0] * sin(-degrees) + n1[1] * cos(-degrees);
89 double length = p0.EuclideanDistanceTo(p1);
96 Superclass::PrintSelf(os, indent);
112 return Superclass::Equals(other);
Point< ScalarType, 2 > Point2D
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
const unsigned int FEATURE_ID_LENGTH
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void SetArrowTipScaleFactor(float scale)
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
float m_ArrowTipScaleFactor
MITKCORE_EXPORT const ScalarType eps
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own...
Implementation of PlanarFigure representing an arrow through two control points.