Documentation
 All Classes Functions Variables Properties
MST::Imaging::Annotations::Angle Class Reference

#include <MultiPointAnnotation.h>

Inheritance diagram for MST::Imaging::Annotations::Angle:
MST::Imaging::Annotations::MultiPointAnnotation MST::Imaging::Annotations::MSTAnnotation

Public Member Functions

 Angle (Pen^ pen, MSTAnnotationPage^ page)
 
virtual void Draw (GraphicsPath^ gp, array< PointF >^ptArr) override
 
virtual bool IntersectsRect (System::Drawing::Rectangle rect) override
 use to check annotation lies in rectangle or not. More...
 
virtual void Load (XmlElement^ element) override
 use to load annotation from XML. More...
 
virtual void Save (XmlDocument^ writer, XmlElement^ element) override
 use to save annotation in XML. More...
 
virtual void Draw (Graphics^ g, array< PointF >^ptArr, bool bShowSelection) override
 Used to draw annotations. More...
 
void AddArc (GraphicsPath^ path, array< PointF >^ptArr)
 use to add arc to graphic path. More...
 
- Public Member Functions inherited from MST::Imaging::Annotations::MultiPointAnnotation
 MultiPointAnnotation (Pen^ pen, MSTAnnotationPage^ page)
 Constructor of a class. More...
 
virtual bool HitTest (PointF pt) override
 It is overrided function and use to check point lies in annotation or not. More...
 
void addPoint (PointF pt)
 use to add new point to annotation. More...
 
- Public Member Functions inherited from MST::Imaging::Annotations::MSTAnnotation
 MSTAnnotation (Pen^ pen, MSTAnnotationPage^ page)
 Constructor of a class. More...
 
void DrawPoints (Graphics^ g)
 Draw Selection points of annotation. More...
 
array< PointF >^ GetNormalPoints ()
 Gives points array of annotation without any operation such as without rotation,zooming,flip etc. More...
 
void FlipGraphicsPath (GraphicsPath^ gp, float Width, float Height, bool bHorz, bool bVert)
 Flips annotation's graphics path. More...
 
void DrawString (Graphics^ g, String^ text, Point location)
 Draw String. More...
 
void DrawScale (GraphicsPath^ g, PointF pt1, PointF pt2, float distance)
 
virtual void Move (int cx, int cy)
 Use to move annotation. More...
 
virtual void ApplyMatrix (Matrix^ matrix)
 use to apply matrix on graphicsPath. More...
 
virtual Int16 GetPointIndex (PointF pt)
 use to get index of point. More...
 
void Burn (Graphics^ g)
 

Static Public Member Functions

static array< float >^ GetAngles (PointF pt0, PointF pt1, PointF pt2)
 use to get anngle between three points More...
 

Protected Attributes

bool m_bShowTick
 
bool m_bShowRulerMeasurement
 
bool m_bShowAngleMeasurement
 
- Protected Attributes inherited from MST::Imaging::Annotations::MultiPointAnnotation
bool m_bClosed
 Used to closed multipoint annotation i.e. if this is true then annotations starting and ending point is same.
 
- Protected Attributes inherited from MST::Imaging::Annotations::MSTAnnotation
Pen^ m_pen
 
array< PointF >^ m_ptArr
 
MSTAnnotationPagem_pPage
 
bool m_bSelected
 

Properties

Type AnnotationType [get]
 Get type of annotation.
 
bool TickMarks [get, set]
 
bool RulerMeasurement [get, set]
 
bool AngleMeasurement [get, set]
 
- Properties inherited from MST::Imaging::Annotations::MultiPointAnnotation
bool Closed [get, set]
 Get or Set closed property of annotation which is used to closed the multipoint annotation.
 
- Properties inherited from MST::Imaging::Annotations::MSTAnnotation
Type AnnotationType [get]
 Get type of annotation.
 
Color BorderColor [get, set]
 Get or Set annotation's border color.
 
Int32 BorderWidth [get, set]
 Get or Set annotation's border width.
 
bool Selected [get, set]
 Get or Set annotation's selection.
 
array< PointF >^ Points [get]
 Get Points of annotation. More...
 
PointF Points[Int16] [get, set]
 
System::Drawing::Drawing2D::GraphicsPath^  graphicsPath [get]
 Get annotation's graphicsPath.
 
array< RectangleF >^ PointRect [get]
 Get rectangles arround points.
 
Int16 PointsCount [get]
 Get total number of annotation's points.
 

Additional Inherited Members

- Static Protected Member Functions inherited from MST::Imaging::Annotations::MSTAnnotation
static bool IsLineIntersectsRect (array< PointF >^pts, System::Drawing::Rectangle rect)
 use to check line intersect with rectangle or not. More...
 
static double getdistance (PointF start, PointF end, float fPixelWidth, float fPixelHeight)
 

Detailed Description

This is a Angle annotation class which is derived from multipoint annotation.

Member Function Documentation

void MST::Imaging::Annotations::Angle::AddArc ( GraphicsPath^  path,
array< PointF >^  ptArr 
)

use to add arc to graphic path.

Parameters
pathGraphic path of a annotation.
void MST::Imaging::Annotations::Angle::Draw ( Graphics^  g,
array< PointF >^  ptArr,
bool  bShowSelection 
)
overridevirtual

Used to draw annotations.

Parameters
ggraphics which is used to draw annotation.

Reimplemented from MST::Imaging::Annotations::MSTAnnotation.

static array< float > MST::Imaging::Annotations::Angle::GetAngles ( PointF  pt0,
PointF  pt1,
PointF  pt2 
)
static

use to get anngle between three points

Parameters
pt0starting Point of annotation.
pt1middle Point of annotation.
pt3End Point of annotation.
Returns
array<float>^ retuns floats array which contain angles.
bool MST::Imaging::Annotations::Angle::IntersectsRect ( System::Drawing::Rectangle  rect)
inlineoverridevirtual

use to check annotation lies in rectangle or not.

Parameters
rectIt is rectangle.
Returns
return true if successfull else false.

Reimplemented from MST::Imaging::Annotations::MSTAnnotation.

void MST::Imaging::Annotations::Angle::Load ( XmlElement^  element)
overridevirtual

use to load annotation from XML.

Parameters
elementXML element.

Reimplemented from MST::Imaging::Annotations::MultiPointAnnotation.

bool MST::Imaging::Annotations::Angle::Save ( XmlDocument^  writer,
XmlElement^  element 
)
overridevirtual

use to save annotation in XML.

Parameters
writerXML document in which annoation is saved.
elementXML element.

Reimplemented from MST::Imaging::Annotations::MultiPointAnnotation.


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