Documentation
|
#include <Annotation.h>
Public Member Functions | |
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... | |
virtual void | Save (XmlDocument^ writer, XmlElement^ element) |
use to save annotation in XML. More... | |
virtual void | Load (XmlElement^ element) |
use to load annotation from XML. 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 bool | HitTest (PointF pt) |
use to check point lies in annotation or not More... | |
virtual bool | IntersectsRect (System::Drawing::Rectangle rect) |
use to check annotation lies in rectangle or not. 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... | |
virtual void | Draw (Graphics^ g, array< PointF >^ptArr, bool bShowSelection) |
Used to draw annotations. More... | |
virtual void | Draw (GraphicsPath^ gp, array< PointF >^ptArr) |
void | Burn (Graphics^ g) |
Static Protected Member Functions | |
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) |
Protected Attributes | |
Pen^ | m_pen |
array< PointF >^ | m_ptArr |
MSTAnnotationPage^ | m_pPage |
bool | m_bSelected |
Properties | |
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. | |
This is an abstract class and also base class for all type of annotation classes.
MST::Imaging::Annotations::MSTAnnotation::MSTAnnotation | ( | Pen^ | pen, |
MSTAnnotationPage^ | page | ||
) |
Constructor of a class.
pen | used to draw annotaion. |
page | Document page which contains annotations. |
|
virtual |
use to apply matrix on graphicsPath.
matrix | It is matrix which apply on graphicpath |
|
virtual |
Used to draw annotations.
g | graphics which is used to draw annotation. |
Reimplemented in MST::Imaging::Annotations::Stamp, MST::Imaging::Annotations::TextNote, MST::Imaging::Annotations::Angle, MST::Imaging::Annotations::Cloud, MST::Imaging::Annotations::CrossProduct, MST::Imaging::Annotations::Curve, MST::Imaging::Annotations::PolyRuler, MST::Imaging::Annotations::Ruler, MST::Imaging::Annotations::PolyLine, and MST::Imaging::Annotations::Rectangle.
void MST::Imaging::Annotations::MSTAnnotation::DrawPoints | ( | Graphics^ | g | ) |
Draw Selection points of annotation.
g | Draw selection points. |
|
inline |
Draw String.
g | graphic which is used to draw string. |
text | String to draw. |
location | specifies the upper-left corner of the drawn text. |
void MST::Imaging::Annotations::MSTAnnotation::FlipGraphicsPath | ( | GraphicsPath^ | gp, |
float | Width, | ||
float | Height, | ||
bool | bHorz, | ||
bool | bVert | ||
) |
Flips annotation's graphics path.
gp | Annotation's graphic path. |
Width | width of page which contain annotation. |
Height | height of page which contain annotation. |
bHorz | if bhorz is true then path flip's horizontally. |
bVert | if bVert is true then path flip's vertically. |
array< PointF > MST::Imaging::Annotations::MSTAnnotation::GetNormalPoints | ( | ) |
Gives points array of annotation without any operation such as without rotation,zooming,flip etc.
|
virtual |
use to get index of point.
pt | It is point. |
Reimplemented in MST::Imaging::Annotations::CrossProduct.
|
virtual |
use to check point lies in annotation or not
pt | The point value to hit test against. . |
Reimplemented in MST::Imaging::Annotations::MultiPointAnnotation.
|
virtual |
use to check annotation lies in rectangle or not.
rect | It is rectangle. |
Reimplemented in MST::Imaging::Annotations::Angle, MST::Imaging::Annotations::CrossProduct, and MST::Imaging::Annotations::Line.
|
staticprotected |
use to check line intersect with rectangle or not.
pts | annotation points array. |
rect | rectangale against which intersection is checked. |
|
virtual |
use to load annotation from XML.
element | XML element. |
Reimplemented in MST::Imaging::Annotations::Angle, MST::Imaging::Annotations::CrossProduct, MST::Imaging::Annotations::Curve, MST::Imaging::Annotations::PolyRuler, MST::Imaging::Annotations::Ruler, MST::Imaging::Annotations::PolyLine, and MST::Imaging::Annotations::MultiPointAnnotation.
|
virtual |
Use to move annotation.
cx | Change in X cordinate. |
cy | Change in Y cordinate. |
Reimplemented in MST::Imaging::Annotations::Point.
|
virtual |
use to save annotation in XML.
writer | XML document in which annoation is saved. |
element | XML element. |
Reimplemented in MST::Imaging::Annotations::Stamp, MST::Imaging::Annotations::TextNote, MST::Imaging::Annotations::Angle, MST::Imaging::Annotations::CrossProduct, MST::Imaging::Annotations::Curve, MST::Imaging::Annotations::PolyRuler, MST::Imaging::Annotations::Ruler, MST::Imaging::Annotations::PolyLine, MST::Imaging::Annotations::Rectangle, and MST::Imaging::Annotations::MultiPointAnnotation.
|
get |
Get Points of annotation.
Get or Set annotation's point.