#include <opennurbs_annotation2.h>
Public Types | |
enum | eTextJustification { tjUndefined = 0, tjLeft = 1<<0, tjCenter = 1<<1, tjRight = 1<<2, tjBottom = 1<<16, tjMiddle = 1<<17, tjTop = 1<<18, tjBottomLeft = tjBottom | tjLeft, tjBottomCenter = tjBottom | tjCenter, tjBottomRight = tjBottom | tjRight, tjMiddleLeft = tjMiddle | tjLeft, tjMiddleCenter = tjMiddle | tjCenter, tjMiddleRight = tjMiddle | tjRight, tjTopLeft = tjTop | tjLeft, tjTopCenter = tjTop | tjCenter, tjTopRight = tjTop | tjRight } |
Public Member Functions | |
virtual void | ConvertBack (ON_Annotation &target) |
void | Create () |
void | Destroy () |
int | Dimension () const |
void | EmergencyDestroy () |
bool | EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const |
ON_BOOL32 | GetECStoWCSXform (ON_Xform &) const |
bool | GetTextPoint (ON_2dPoint &text_2d_point) const |
bool | GetTextXform (ON_RECT gdi_text_rect, int gdi_height_of_I, double dimstyle_textheight, double dimstyle_textgap, ON::eTextDisplayMode dimstyle_textalignment, double dimscale, ON_3dVector cameraX, ON_3dVector cameraY, const ON_Xform *model_xform, ON_Xform &text_xform) const |
bool | GetTextXform (ON_RECT gdi_text_rect, int gdi_height_of_I, double dimstyle_textheight, double dimstyle_textgap, ON::eTextDisplayMode dimstyle_textalignment, double dimscale, ON_3dVector cameraX, ON_3dVector cameraY, ON_Xform &xform) const |
bool | GetTextXform (const ON_RECT gdi_text_rect, const ON_Font &font, const ON_DimStyle *dimstyle, double dimscale, const ON_Viewport *vp, const ON_Xform *model_xform, ON_Xform &text_xform) const |
bool | GetTextXform (ON_RECT gdi_text_rect, const ON_Font &font, const ON_DimStyle &dimstyle, double dimscale, const ON_Viewport *vp, ON_Xform &xform) const |
ON_BOOL32 | GetWCStoECSXform (ON_Xform &xform) const |
double | Height () const |
int | Index () const |
bool | IsDimension () const |
bool | IsLeader () const |
bool | IsText () const |
ON_BOOL32 | IsValid (ON_TextLog *text_log=NULL) const |
virtual unsigned int | Justification () |
virtual double | NumericValue () const |
ON::object_type | ObjectType () const |
ON_Annotation2 () | |
ON_Annotation2 (const ON_Annotation &) | |
ON_Annotation2 & | operator= (const ON_Annotation &) |
const ON_Plane & | Plane () const |
ON_2dPoint | Point (int) const |
int | PointCount () const |
const ON_2dPointArray & | Points () const |
ON_BOOL32 | Read (ON_BinaryArchive &) |
void | ReservePoints (int) |
void | SetHeight (double) |
void | SetIndex (int) |
virtual void | SetJustification (unsigned int justification) |
void | SetPlane (const ON_Plane &) |
void | SetPoint (int, const ON_2dPoint &) |
void | SetPointCount (int count) |
void | SetPoints (const ON_2dPointArray &) |
void | SetTextDisplayMode (ON::eTextDisplayMode) |
void | SetTextFormula (const wchar_t *s) |
void | SetTextValue (const wchar_t *text_value) |
void | SetType (ON::eAnnotationType) |
void | SetUserPositionedText (int bUserPositionedText) |
ON_DEPRECATED void | SetUserText (const wchar_t *text_value) |
ON::eTextDisplayMode | TextDisplayMode () const |
const wchar_t * | TextFormula () const |
const wchar_t * | TextValue () const |
ON_BOOL32 | Transform (const ON_Xform &xform) |
ON::eAnnotationType | Type () const |
bool | UserPositionedText () const |
ON_DEPRECATED const ON_wString & | UserText () const |
ON_BOOL32 | Write (ON_BinaryArchive &) const |
~ON_Annotation2 () | |
Static Public Member Functions | |
static const wchar_t * | DefaultText () |
Public Attributes | |
bool | m_annotative_scale |
int | m_index |
unsigned int | m_justification |
ON_Plane | m_plane |
ON_2dPointArray | m_points |
ON::eTextDisplayMode | m_textdisplaymode |
double | m_textheight |
ON::eAnnotationType | m_type |
bool | m_userpositionedtext |
ON_Annotation2Text | m_usertext |
Private Types | |
enum | SYMBOLS { degreesym = 176, radiussym = L'R', diametersym = 216, plusminussym = 177 } |
Private Member Functions | |
ON_OBJECT_DECLARE (ON_Annotation2) | |
Private Attributes | |
bool | m_reserved_b1 |
bool | m_reserved_b2 |
Definition at line 265 of file opennurbs_annotation2.h.
tjUndefined | |
tjLeft | |
tjCenter | |
tjRight | |
tjBottom | |
tjMiddle | |
tjTop | |
tjBottomLeft | |
tjBottomCenter | |
tjBottomRight | |
tjMiddleLeft | |
tjMiddleCenter | |
tjMiddleRight | |
tjTopLeft | |
tjTopCenter | |
tjTopRight |
Definition at line 357 of file opennurbs_annotation2.h.
enum ON_Annotation2::SYMBOLS [private] |
Definition at line 270 of file opennurbs_annotation2.h.
Definition at line 567 of file opennurbs_annotation2.cpp.
Definition at line 572 of file opennurbs_annotation2.cpp.
ON_Annotation2::ON_Annotation2 | ( | const ON_Annotation & | src | ) |
Definition at line 643 of file opennurbs_annotation2.cpp.
void ON_Annotation2::ConvertBack | ( | ON_Annotation & | target | ) | [virtual] |
Definition at line 1680 of file opennurbs_annotation2.cpp.
void ON_Annotation2::Create | ( | ) |
Definition at line 540 of file opennurbs_annotation2.cpp.
const wchar_t * ON_Annotation2::DefaultText | ( | ) | [static] |
Reimplemented in ON_OrdinateDimension2, ON_AngularDimension2, and ON_LinearDimension2.
Definition at line 1666 of file opennurbs_annotation2.cpp.
void ON_Annotation2::Destroy | ( | ) |
Definition at line 548 of file opennurbs_annotation2.cpp.
int ON_Annotation2::Dimension | ( | ) | const [virtual] |
Implements ON_Geometry.
Definition at line 1162 of file opennurbs_annotation2.cpp.
void ON_Annotation2::EmergencyDestroy | ( | ) |
Reimplemented from ON_Object.
Definition at line 561 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::EvaluatePoint | ( | const class ON_ObjRef & | objref, |
ON_3dPoint & | P | ||
) | const [virtual] |
Reimplemented from ON_Geometry.
Definition at line 577 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::GetECStoWCSXform | ( | ON_Xform & | xform | ) | const |
Definition at line 1645 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::GetTextPoint | ( | ON_2dPoint & | text_2d_point | ) | const |
Definition at line 6718 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::GetTextXform | ( | ON_RECT | gdi_text_rect, |
int | gdi_height_of_I, | ||
double | dimstyle_textheight, | ||
double | dimstyle_textgap, | ||
ON::eTextDisplayMode | dimstyle_textalignment, | ||
double | dimscale, | ||
ON_3dVector | cameraX, | ||
ON_3dVector | cameraY, | ||
const ON_Xform * | model_xform, | ||
ON_Xform & | text_xform | ||
) | const |
Definition at line 6346 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::GetTextXform | ( | ON_RECT | gdi_text_rect, |
int | gdi_height_of_I, | ||
double | dimstyle_textheight, | ||
double | dimstyle_textgap, | ||
ON::eTextDisplayMode | dimstyle_textalignment, | ||
double | dimscale, | ||
ON_3dVector | cameraX, | ||
ON_3dVector | cameraY, | ||
ON_Xform & | xform | ||
) | const |
Definition at line 5990 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::GetTextXform | ( | const ON_RECT | gdi_text_rect, |
const ON_Font & | font, | ||
const ON_DimStyle * | dimstyle, | ||
double | dimscale, | ||
const ON_Viewport * | vp, | ||
const ON_Xform * | model_xform, | ||
ON_Xform & | text_xform | ||
) | const |
Definition at line 5877 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::GetTextXform | ( | ON_RECT | gdi_text_rect, |
const ON_Font & | font, | ||
const ON_DimStyle & | dimstyle, | ||
double | dimscale, | ||
const ON_Viewport * | vp, | ||
ON_Xform & | xform | ||
) | const |
Definition at line 5823 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::GetWCStoECSXform | ( | ON_Xform & | xform | ) | const |
Definition at line 1653 of file opennurbs_annotation2.cpp.
double ON_Annotation2::Height | ( | ) | const |
Definition at line 1564 of file opennurbs_annotation2.cpp.
int ON_Annotation2::Index | ( | ) | const |
Definition at line 528 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::IsDimension | ( | ) | const |
Definition at line 1555 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::IsLeader | ( | ) | const |
Definition at line 1552 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::IsText | ( | ) | const |
Definition at line 1549 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::IsValid | ( | ON_TextLog * | text_log = NULL | ) | const [virtual] |
Implements ON_Object.
Reimplemented in ON_Leader2, ON_TextEntity2, ON_OrdinateDimension2, ON_AngularDimension2, ON_RadialDimension2, and ON_LinearDimension2.
Definition at line 650 of file opennurbs_annotation2.cpp.
unsigned int ON_Annotation2::Justification | ( | ) | [virtual] |
Reimplemented in ON_TextEntity2.
Definition at line 1698 of file opennurbs_annotation2.cpp.
double ON_Annotation2::NumericValue | ( | ) | const [virtual] |
Reimplemented in ON_OrdinateDimension2, ON_AngularDimension2, ON_RadialDimension2, and ON_LinearDimension2.
Definition at line 1558 of file opennurbs_annotation2.cpp.
ON::object_type ON_Annotation2::ObjectType | ( | ) | const [virtual] |
Reimplemented from ON_Object.
Definition at line 1157 of file opennurbs_annotation2.cpp.
ON_Annotation2::ON_OBJECT_DECLARE | ( | ON_Annotation2 | ) | [private] |
ON_Annotation2 & ON_Annotation2::operator= | ( | const ON_Annotation & | src | ) |
Definition at line 608 of file opennurbs_annotation2.cpp.
const ON_Plane & ON_Annotation2::Plane | ( | ) | const |
Definition at line 1586 of file opennurbs_annotation2.cpp.
ON_2dPoint ON_Annotation2::Point | ( | int | idx | ) | const |
Definition at line 1619 of file opennurbs_annotation2.cpp.
int ON_Annotation2::PointCount | ( | ) | const |
Definition at line 1599 of file opennurbs_annotation2.cpp.
const ON_2dPointArray & ON_Annotation2::Points | ( | ) | const |
Definition at line 1605 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::Read | ( | ON_BinaryArchive & | file | ) | [virtual] |
Reimplemented from ON_Object.
Reimplemented in ON_Leader2, ON_TextEntity2, ON_OrdinateDimension2, ON_AngularDimension2, ON_RadialDimension2, and ON_LinearDimension2.
Definition at line 1009 of file opennurbs_annotation2.cpp.
void ON_Annotation2::ReservePoints | ( | int | count | ) |
Definition at line 1660 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetHeight | ( | double | ht | ) |
Definition at line 1561 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetIndex | ( | int | index | ) |
Definition at line 533 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetJustification | ( | unsigned int | justification | ) | [virtual] |
Reimplemented in ON_TextEntity2.
Definition at line 1691 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetPlane | ( | const ON_Plane & | plane | ) |
Definition at line 1583 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetPoint | ( | int | idx, |
const ON_2dPoint & | point | ||
) |
Definition at line 1608 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetPointCount | ( | int | count | ) |
Definition at line 1589 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetPoints | ( | const ON_2dPointArray & | points | ) |
Definition at line 1602 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetTextDisplayMode | ( | ON::eTextDisplayMode | mode | ) |
Definition at line 1669 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetTextFormula | ( | const wchar_t * | s | ) |
Definition at line 6881 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetTextValue | ( | const wchar_t * | text_value | ) |
Definition at line 6871 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetType | ( | ON::eAnnotationType | type | ) |
Definition at line 1567 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetUserPositionedText | ( | int | bUserPositionedText | ) |
Definition at line 1638 of file opennurbs_annotation2.cpp.
void ON_Annotation2::SetUserText | ( | const wchar_t * | text_value | ) |
Definition at line 1626 of file opennurbs_annotation2.cpp.
ON::eTextDisplayMode ON_Annotation2::TextDisplayMode | ( | ) | const |
Definition at line 1674 of file opennurbs_annotation2.cpp.
const wchar_t * ON_Annotation2::TextFormula | ( | ) | const |
Definition at line 6886 of file opennurbs_annotation2.cpp.
const wchar_t * ON_Annotation2::TextValue | ( | ) | const |
Definition at line 6876 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::Transform | ( | const ON_Xform & | xform | ) | [virtual] |
Reimplemented from ON_Geometry.
Reimplemented in ON_Leader2, ON_TextEntity2, ON_OrdinateDimension2, ON_AngularDimension2, ON_RadialDimension2, and ON_LinearDimension2.
Definition at line 1167 of file opennurbs_annotation2.cpp.
ON::eAnnotationType ON_Annotation2::Type | ( | ) | const |
Definition at line 1580 of file opennurbs_annotation2.cpp.
bool ON_Annotation2::UserPositionedText | ( | ) | const |
Definition at line 1640 of file opennurbs_annotation2.cpp.
const ON_wString & ON_Annotation2::UserText | ( | ) | const |
Definition at line 1632 of file opennurbs_annotation2.cpp.
ON_BOOL32 ON_Annotation2::Write | ( | ON_BinaryArchive & | file | ) | const [virtual] |
Reimplemented from ON_Object.
Reimplemented in ON_Leader2, ON_TextEntity2, ON_OrdinateDimension2, ON_AngularDimension2, ON_RadialDimension2, and ON_LinearDimension2.
Definition at line 823 of file opennurbs_annotation2.cpp.
Definition at line 985 of file opennurbs_annotation2.h.
Definition at line 993 of file opennurbs_annotation2.h.
unsigned int ON_Annotation2::m_justification |
Definition at line 1002 of file opennurbs_annotation2.h.
Definition at line 946 of file opennurbs_annotation2.h.
Definition at line 956 of file opennurbs_annotation2.h.
bool ON_Annotation2::m_reserved_b1 [private] |
Definition at line 987 of file opennurbs_annotation2.h.
bool ON_Annotation2::m_reserved_b2 [private] |
Definition at line 988 of file opennurbs_annotation2.h.
ON::eTextDisplayMode ON_Annotation2::m_textdisplaymode |
Definition at line 938 of file opennurbs_annotation2.h.
double ON_Annotation2::m_textheight |
Definition at line 998 of file opennurbs_annotation2.h.
ON::eAnnotationType ON_Annotation2::m_type |
Definition at line 931 of file opennurbs_annotation2.h.
Definition at line 977 of file opennurbs_annotation2.h.
Definition at line 973 of file opennurbs_annotation2.h.