16#if !defined(OPENNURBS_DIMSTYLE_INC_)
17#define OPENNURBS_DIMSTYLE_INC_
80 void EmergencyDestroy();
90 void SetName(
const wchar_t* );
91 void SetName(
const char* );
94 const wchar_t* Name()
const;
101 double ExtExtension()
const;
102 void SetExtExtension(
const double);
104 double ExtOffset()
const;
105 void SetExtOffset(
const double);
107 double ArrowSize()
const;
108 void SetArrowSize(
const double);
110 double LeaderArrowSize()
const;
111 void SetLeaderArrowSize(
const double);
113 double CenterMark()
const;
114 void SetCenterMark(
const double);
116 int TextAlignment()
const;
117 void SetTextAlignment( ON::eTextDisplayMode);
119 int ArrowType()
const;
120 void SetArrowType( eArrowType);
122 int LeaderArrowType()
const;
123 void SetLeaderArrowType( eArrowType);
125 int AngularUnits()
const;
126 void SetAngularUnits(
int);
128 int LengthFormat()
const;
129 void SetLengthFormat(
int);
131 int AngleFormat()
const;
132 void SetAngleFormat(
int);
134 int LengthResolution()
const;
135 void SetLengthResolution(
int);
137 int AngleResolution()
const;
138 void SetAngleResolution(
int);
140 int FontIndex()
const;
141 virtual void SetFontIndex(
int index);
143 double TextGap()
const;
144 void SetTextGap(
double gap);
146 double TextHeight()
const;
147 void SetTextHeight(
double height);
150 double LengthFactor()
const;
151 void SetLengthactor(
double);
152 void SetLengthFactor(
double);
154 bool Alternate()
const;
155 void SetAlternate(
bool);
157 double AlternateLengthFactor()
const;
158 void SetAlternateLengthactor(
double);
159 void SetAlternateLengthFactor(
double);
161 int AlternateLengthFormat()
const;
162 void SetAlternateLengthFormat(
int);
164 int AlternateLengthResolution()
const;
165 void SetAlternateLengthResolution(
int);
167 int AlternateAngleFormat()
const;
168 void SetAlternateAngleFormat(
int);
170 int AlternateAngleResolution()
const;
171 void SetAlternateAngleResolution(
int);
174 const wchar_t* Prefix()
const;
175 void SetPrefix(
const wchar_t*);
176 void SetPrefix(
wchar_t*);
179 const wchar_t* Suffix()
const;
180 void SetSuffix(
const wchar_t*);
181 void SetSuffix(
wchar_t*);
184 const wchar_t* AlternatePrefix()
const;
185 void SetAlternatePrefix(
const wchar_t*);
186 void SetAlternatePrefix(
wchar_t*);
189 const wchar_t* AlternateSuffix()
const;
190 void SetAlternateSuffix(
const wchar_t*);
191 void SetAlternateSuffix(
wchar_t*);
193 bool SuppressExtension1()
const;
194 void SetSuppressExtension1(
bool);
196 bool SuppressExtension2()
const;
197 void SetSuppressExtension2(
bool);
216 fn_angularunits = 10,
217 fn_lengthformat = 11,
219 fn_angleresolution = 13,
220 fn_lengthresolution = 14,
222 fn_lengthfactor = 16,
224 fn_alternate_lengthfactor = 18,
225 fn_alternate_lengthformat = 19,
226 fn_alternate_lengthresolution = 20,
227 fn_alternate_angleformat = 21,
228 fn_alternate_angleresolution = 22,
231 fn_alternate_prefix = 25,
232 fn_alternate_suffix = 26,
233 fn_dimextension = 27,
234 fn_leaderarrowsize = 28,
235 fn_leaderarrowtype = 29,
236 fn_suppressextension1 = 30,
237 fn_suppressextension2 = 31,
242 fn_overall_scale = 33,
243 fn_ext_line_color_source = 34,
244 fn_dim_line_color_source = 35,
245 fn_arrow_color_source = 36,
246 fn_text_color_source = 37,
247 fn_ext_line_color = 38,
248 fn_dim_line_color = 39,
251 fn_ext_line_plot_color_source = 42,
252 fn_dim_line_plot_color_source = 43,
253 fn_arrow_plot_color_source = 44,
254 fn_text_plot_color_source = 45,
255 fn_ext_line_plot_color = 46,
256 fn_dim_line_plot_color = 47,
257 fn_arrow_plot_color = 48,
258 fn_text_plot_color = 49,
259 fn_ext_line_plot_weight_source = 50,
260 fn_dim_line_plot_weight_source = 51,
261 fn_ext_line_plot_weight_mm = 52,
262 fn_dim_line_plot_weight_mm = 53,
263 fn_tolerance_style = 54,
264 fn_tolerance_resolution = 55,
265 fn_tolerance_upper_value = 56,
266 fn_tolerance_lower_value = 57,
267 fn_tolerance_height_scale = 58,
268 fn_baseline_spacing = 59,
273 fn_mask_color_source = 61,
280 fn_dimscale_source = 65,
285 fn_really_last = 0xFFFF
290 void InvalidateField( eField field);
291 void InvalidateAllFields();
292 void ValidateField( eField field);
293 bool IsFieldValid( eField)
const;
297 double DimExtension()
const;
298 void SetDimExtension(
const double);
305 bool IsFieldOverride( eField field_id)
const;
311 bool HasOverrides()
const;
327 bool IsChildDimstyle()
const;
331 bool IsChildOf(
ON_UUID& parent_uuid)
const;
334 void SetParent(
ON_UUID& parent_uuid);
343 int ToleranceStyle()
const;
344 int ToleranceResolution()
const;
345 double ToleranceUpperValue()
const;
346 double ToleranceLowerValue()
const;
347 double ToleranceHeightScale()
const;
349 double BaselineSpacing()
const;
351 void SetToleranceStyle(
int style);
352 void SetToleranceResolution(
int resolution);
353 void SetToleranceUpperValue(
double upper_value);
354 void SetToleranceLowerValue(
double lower_value);
355 void SetToleranceHeightScale(
double scale);
357 void SetBaselineSpacing(
double spacing =
false);
360 bool DrawTextMask()
const;
361 void SetDrawTextMask(
bool bDraw);
366 int MaskColorSource()
const;
367 void SetMaskColorSource(
int source);
374 void SetDimScaleSource(
int source);
375 int DimScaleSource()
const;
376 void SetDimScale(
double scale);
377 double DimScale()
const;
382 double MaskOffsetFactor()
const;
387 static int DefaultToleranceStyle();
388 static int DefaultToleranceResolution();
389 static double DefaultToleranceUpperValue();
390 static double DefaultToleranceLowerValue();
391 static double DefaultToleranceHeightScale();
392 static double DefaultBaselineSpacing();
394 bool CompareFields(
const ON_DimStyle& other)
const;
Definition opennurbs_3dm_settings.h:77
Definition opennurbs_archive.h:152
Definition opennurbs_color.h:24
Definition opennurbs_dimstyle.h:20
int m_textalign
Definition opennurbs_dimstyle.h:407
int m_fontindex
Definition opennurbs_dimstyle.h:415
double m_textgap
Definition opennurbs_dimstyle.h:405
ON_wString m_dimstyle_name
Definition opennurbs_dimstyle.h:397
int m_lengthresolution
Definition opennurbs_dimstyle.h:413
double m_alternate_lengthfactor
Definition opennurbs_dimstyle.h:421
double m_lengthfactor
Definition opennurbs_dimstyle.h:418
double m_leaderarrowsize
Definition opennurbs_dimstyle.h:438
eArrowType
Definition opennurbs_dimstyle.h:25
double m_textheight
Definition opennurbs_dimstyle.h:406
int m_alternate_lengthformat
Definition opennurbs_dimstyle.h:422
int m_alternate_angleformat
Definition opennurbs_dimstyle.h:425
ON_wString m_alternate_suffix
Definition opennurbs_dimstyle.h:430
ON_UUID m_dimstyle_id
Definition opennurbs_dimstyle.h:399
double m_centermark
Definition opennurbs_dimstyle.h:404
double m_dimextension
Definition opennurbs_dimstyle.h:435
int m_dimstyle_index
Definition opennurbs_dimstyle.h:398
ON_wString m_prefix
Definition opennurbs_dimstyle.h:427
int m_lengthformat
Definition opennurbs_dimstyle.h:410
int m_angleresolution
Definition opennurbs_dimstyle.h:412
ON_wString m_suffix
Definition opennurbs_dimstyle.h:428
double m_extextension
Definition opennurbs_dimstyle.h:401
int m_alternate_lengthresolution
Definition opennurbs_dimstyle.h:423
bool m_bSuppressExtension2
Definition opennurbs_dimstyle.h:441
int m_leaderarrowtype
Definition opennurbs_dimstyle.h:439
int m_arrowtype
Definition opennurbs_dimstyle.h:408
ON_OBJECT_DECLARE(ON_DimStyle)
unsigned int m_valid
Definition opennurbs_dimstyle.h:432
int m_angleformat
Definition opennurbs_dimstyle.h:411
bool m_bAlternate
Definition opennurbs_dimstyle.h:419
bool m_bSuppressExtension1
Definition opennurbs_dimstyle.h:440
double m_arrowsize
Definition opennurbs_dimstyle.h:403
eField
Definition opennurbs_dimstyle.h:205
int m_angularunits
Definition opennurbs_dimstyle.h:409
int m_alternate_angleresolution
Definition opennurbs_dimstyle.h:426
double m_extoffset
Definition opennurbs_dimstyle.h:402
ON_wString m_alternate_prefix
Definition opennurbs_dimstyle.h:429
Definition opennurbs_object.h:393
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual ON_UUID ModelObjectId() const
Definition opennurbs_object.cpp:1622
ON_Object & operator=(const ON_Object &)
Definition opennurbs_object.cpp:1362
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_string.h:392
Scales selected entities.
Definition Scale.js:11
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition simple_modify.js:15
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362