2 #include "Annotation.h"
3 #include "AnnotationPage.h"
4 using namespace System;
5 using namespace System::Collections::Generic;
6 using namespace System::Text;
7 using namespace System::Drawing;
29 m_ptArr =
gcnew array<PointF>(1);
52 property Type AnnotationType
54 virtual Type
get()
override
56 return Annotations::Type::Point;
59 virtual void Draw(GraphicsPath^ gp,array<PointF>^ ptArr)
override
61 RectangleF rect(ptArr[0].X-10,ptArr[0].Y-10,20,20);
63 PointF pt((ptArr[0].X-10+ptArr[0].X+10)/2,ptArr[0].Y-10);
64 PointF pt2(ptArr[0].X-10,(ptArr[0].Y-10 + ptArr[0].Y+10)/2);
65 gp->AddLine(pt.X,pt.Y,ptArr[0].X,ptArr[0].Y+(ptArr[0].Y-pt.Y));
67 gp->AddLine(pt2.X,pt2.Y,ptArr[0].X+(ptArr[0].X-pt2.X),ptArr[0].Y);
74 virtual void Move(
int cx,
int cy)
override;
80 double GetDistance(System::Drawing::PointF start, PointF end);
SinglePointAnnotation(Pen^ pen, MSTAnnotationPage^ page)
Constructor of a class.
Definition: SinglePointAnnotation.h:27
Definition: AnnotationPage.h:95
Definition: SinglePointAnnotation.h:19
Point(Pen^ pen, MSTAnnotationPage^ page)
Constructor of a class.
Definition: SinglePointAnnotation.h:45
Definition: SinglePointAnnotation.h:37
Definition: Annotation.h:45