Rhino C++ API
8.17
|
#include <opennurbs_dimensionstyle.h>
Classes | |
class | DimstyleField |
Public Member Functions | |
ON_DimStyle () | |
Default constructor result is identical to ON_DimStyle::Unset;. More... | |
ON_DimStyle (const ON_3dmAnnotationSettings &src) | |
ON_DimStyle (const ON_DimStyle &src)=default | |
ON_DimStyle (ON::LengthUnitSystem model_length_unit_system, const class ON_V5x_DimStyle &src) | |
Used when reading V5 and earlier archives. More... | |
~ON_DimStyle ()=default | |
bool | Alternate () const |
Additional measurement display toggle. More... | |
bool | AlternateBelow () const |
ON_DimStyle::LengthDisplay | AlternateDimensionLengthDisplay () const |
Set dimension length units and format /summary> More... | |
ON::LengthUnitSystem | AlternateDimensionLengthDisplayUnit (unsigned int model_sn) const |
Parameters: model_sn - 0, a model serial number, or ON_UNSET_UINT_INDEX to use the dimstyle's ModelSerialNumber() value. Returns Unit system for dimension length display. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn > 0, then the value of ON::LengthUnitSystemFromModelSerialNumber(model_sn) is returned. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn == 0, then ON::LengthUnitSystem::None is returned. /summary> More... | |
double | AlternateLengthFactor () const |
AlternateLengthFactor is a rarely used. See Length factor for a description of this property. /summary> More... | |
int | AlternateLengthResolution () const |
Display resolution for alternate length measurements. More... | |
const ON_wString & | AlternatePrefix () const |
Dimension alternate prefix text. More... | |
double | AlternateRoundOff () const |
const ON_wString & | AlternateSuffix () const |
Dimension alternate suffix text. More... | |
int | AlternateToleranceResolution () const |
ON_DimStyle::suppress_zero | AlternateZeroSuppress () const |
angle_format | AngleFormat () const |
int | AngleResolution () const |
Display resolution for angle measurements. More... | |
double | AngleRoundOff () const |
ON_DimStyle::suppress_zero | AngleZeroSuppress () const |
int | ArcLengthSymbol () const |
ON_UUID | ArrowBlockId1 () const |
ON_UUID | ArrowBlockId2 () const |
ON_Color | ArrowColor () const |
ON::object_color_source | ArrowColorSource () const |
ON_DimStyle::arrow_fit | ArrowFit () const |
ON_Color | ArrowPlotColor () const |
ON::plot_color_source | ArrowPlotColorSource () const |
double | ArrowSize () const |
Arrow size. More... | |
ON_Arrowhead::arrow_type | ArrowType1 () const |
ON_Arrowhead::arrow_type | ArrowType2 () const |
double | BaselineSpacing () const |
double | CenterMark () const |
Centermark size. More... | |
ON_DimStyle::centermark_style | CenterMarkStyle () const |
Centermark style. More... | |
void | ClearAllFieldOverrides () |
bool | CompareDimstyle (const ON_DimStyle &src) const |
bool | CompareFields (const ON_DimStyle &src) const |
const class ON_SHA1_Hash & | ContentHash () const |
const ON_DimStyle | CreateOverrideCandidate () const |
wchar_t | DecimalSeparator () const |
ON_DimStyle::LengthDisplay | DimensionLengthDisplay () const |
Dimension length units and format /summary> More... | |
ON::LengthUnitSystem | DimensionLengthDisplayUnit (unsigned int model_sn) const |
Parameters: model_sn - 0, a model serial number, or ON_UNSET_UINT_INDEX to use the dimstyle's ModelSerialNumber() value. Returns Unit system for dimension length display. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn > 0, then the value of ON::LengthUnitSystemFromModelSerialNumber(model_sn) is returned. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn == 0, then ON::LengthUnitSystem::None is returned. /summary> More... | |
ON_Color | DimensionLineColor () const |
ON::object_color_source | DimensionLineColorSource () const |
ON_Color | DimensionLinePlotColor () const |
ON::plot_color_source | DimensionLinePlotColorSource () const |
double | DimensionLinePlotWeight () const |
ON::plot_weight_source | DimensionLinePlotWeightSource () const |
double | DimExtension () const |
Extension of dimension line past extension lines. More... | |
ON_DimStyle::ContentAngleStyle | DimRadialTextAngleStyle () const |
ON_DimStyle::TextLocation | DimRadialTextLocation () const |
The location of text relative to the dimension line in radial dimensions. More... | |
ON::TextOrientation | DimRadialTextOrientation () const |
double | DimScale () const |
int | DimScaleSource () const |
0: Global DimScale, 1: DimStyle DimScale More... | |
ON_DimStyle::ContentAngleStyle | DimTextAngleStyle () const |
ON_DimStyle::TextLocation | DimTextLocation () const |
The location of text relative to the dimension line in linear, angular, and ordinate dimensions. More... | |
ON::TextOrientation | DimTextOrientation () const |
bool | DrawForward () const |
bool | DrawTextMask () const |
Determines whether or not to draw a Text Mask. More... | |
void | Dump (ON_TextLog &) const override |
virtual More... | |
void | EmergencyDestroy () |
Interface. More... | |
ON_Color | ExtensionLineColor () const |
ON::object_color_source | ExtensionLineColorSource () const |
ON_Color | ExtensionLinePlotColor () const |
ON::plot_color_source | ExtensionLinePlotColorSource () const |
double | ExtensionLinePlotWeight () const |
ON::plot_weight_source | ExtensionLinePlotWeightSource () const |
double | ExtExtension () const |
Extension line extension. More... | |
double | ExtOffset () const |
Extension line offset. More... | |
double | FixedExtensionLen () const |
bool | FixedExtensionLenOn () const |
const class ON_Font & | Font () const |
const class ON_Font & | FontCharacteristics () const |
const bool | FontSubstituted () const |
bool | ForceDimLine () const |
bool | HasOverrides () const |
void | InheritFields (const ON_DimStyle &parent) |
bool | IsChildDimstyle () const |
Test if this dimstyle is the child of any other dimstyle. More... | |
bool | IsChildOf (const ON_UUID &parent_id) const |
bool | IsFieldOverride (ON_DimStyle::field field_id) const |
bool | IsOverrideDimStyleCandidate (ON_UUID parent_id, bool bRequireSetOverrides, ON_wString *error_description=nullptr) const |
bool | IsValid (class ON_TextLog *text_log=nullptr) const override |
virtual More... | |
ON_UUID | LeaderArrowBlockId () const |
double | LeaderArrowSize () const |
Arrow size. More... | |
ON_Arrowhead::arrow_type | LeaderArrowType () const |
double | LeaderContentAngleDegrees () const |
double | LeaderContentAngleRadians () const |
ON_DimStyle::ContentAngleStyle | LeaderContentAngleStyle () const |
was contentalignment More... | |
ON_DimStyle::leader_curve_type | LeaderCurveType () const |
bool | LeaderHasLanding () const |
double | LeaderLandingLength () const |
ON::TextHorizontalAlignment | LeaderTextHorizontalAlignment () const |
ON::TextOrientation | LeaderTextOrientation () const |
ON::TextVerticalAlignment | LeaderTextVerticalAlignment () const |
was attachstyle More... | |
double | LengthFactor () const |
LengthFactor is a rarely used. It applies when a model is being drawn to a scale and the dimension length values should be reverse scaled. For example, if a model is drawn at 1/4 scale, a line 5 units long indicates the real world line is 20 units long. In this case setting LengthFactor to 4 would cause a linear dimension applied to that line to display a value of 20. /summary> More... | |
int | LengthResolution () const |
Display resolution for distance measurements. More... | |
double | MaskBorder () const |
ON_Color | MaskColor () const |
ON_TextMask::MaskType | MaskFillType () const |
Determines where to get the color to draw a Text Mask. More... | |
ON_TextMask::MaskFrame | MaskFrameType () const |
Determines whether to draw a frame around a Text Mask. More... | |
ON_DimStyle & | operator= (const ON_DimStyle &)=default |
ON__UINT32 | OverrideCount () const |
void | OverrideFields (const ON_DimStyle &source, const ON_DimStyle &parent) |
void | OverrideFieldsWithDifferentValues (const ON_DimStyle &source, const ON_DimStyle &parent) |
const ON_SHA1_Hash & | ParentContentHash () const |
const class ON_Font & | ParentDimStyleFont () const |
const ON_wString & | Prefix () const |
Dimension prefix text. More... | |
bool | Read (ON_BinaryArchive &) override |
virtual More... | |
double | RoundOff () const |
void | Scale (double scale) |
double | ScaleLeftLength_mm () const |
double | ScaleRightLength_mm () const |
const ON_ScaleValue & | ScaleValue () const |
void | SetAlternate (bool) |
void | SetAlternateBelow (bool below) |
void | SetAlternateDimensionLengthDisplay (ON_DimStyle::LengthDisplay length_display) |
Set alternate dimension length units and format /summary> More... | |
void | SetAlternateLengthFactor (double) |
AlternateLengthFactor is a rarely used. See Length factor for a description of this property. /summary> More... | |
void | SetAlternateLengthResolution (int) |
void | SetAlternatePrefix (const wchar_t *) |
void | SetAlternateRoundOff (double r) |
void | SetAlternateSuffix (const wchar_t *) |
void | SetAlternateToleranceResolution (int r) |
void | SetAlternateZeroSuppress (ON_DimStyle::suppress_zero s) |
void | SetAngleFormat (angle_format format) |
void | SetAngleResolution (int) |
void | SetAngleRoundOff (double r) |
void | SetAngleZeroSuppress (ON_DimStyle::suppress_zero s) |
void | SetArcLengthSymbol (int m) |
void | SetArrowBlockId1 (ON_UUID id) |
void | SetArrowBlockId2 (ON_UUID id) |
void | SetArrowColor (ON_Color c) |
void | SetArrowColorSource (const ON::object_color_source src) |
void | SetArrowFit (ON_DimStyle::arrow_fit arrowfit) |
void | SetArrowPlotColor (ON_Color c) |
void | SetArrowPlotColorSource (const ON::plot_color_source src) |
void | SetArrowSize (const double) |
void | SetArrowType1 (ON_Arrowhead::arrow_type) |
void | SetArrowType1And2 (ON_Arrowhead::arrow_type) |
void | SetArrowType2 (ON_Arrowhead::arrow_type) |
void | SetBaselineSpacing (double spacing) |
void | SetCenterMark (const double) |
void | SetCenterMarkStyle (ON_DimStyle::centermark_style style) |
void | SetDecimalSeparator (wchar_t separator) |
void | SetDimensionLengthDisplay (ON_DimStyle::LengthDisplay length_display) |
Alternate dimension length units and format /summary> More... | |
void | SetDimensionLineColor (ON_Color c) |
void | SetDimensionLineColorSource (const ON::object_color_source src) |
void | SetDimensionLinePlotColor (ON_Color c) |
void | SetDimensionLinePlotColorSource (const ON::plot_color_source src) |
void | SetDimensionLinePlotWeight (double w) |
void | SetDimensionLinePlotWeightSource (const ON::plot_weight_source src) |
void | SetDimExtension (const double e) |
void | SetDimRadialTextAngleStyle (ON_DimStyle::ContentAngleStyle style) |
void | SetDimRadialTextLocation (ON_DimStyle::TextLocation) |
void | SetDimRadialTextOrientation (ON::TextOrientation) |
void | SetDimScale (double left_val, ON::LengthUnitSystem left_us, double right_val, ON::LengthUnitSystem right_us) |
void | SetDimScale (double scale) |
void | SetDimScale (ON_ScaleValue sv) |
void | SetDimScaleSource (int source) |
void | SetDimTextAngleStyle (ON_DimStyle::ContentAngleStyle style) |
void | SetDimTextLocation (ON_DimStyle::TextLocation) |
void | SetDimTextOrientation (ON::TextOrientation) |
void | SetDrawForward (bool drawforward) |
void | SetDrawTextMask (bool bDraw) |
void | SetExtensionLineColor (ON_Color c) |
void | SetExtensionLineColorSource (const ON::object_color_source src) |
void | SetExtensionLinePlotColor (ON_Color c) |
void | SetExtensionLinePlotColorSource (const ON::plot_color_source src) |
void | SetExtensionLinePlotWeight (double w) |
void | SetExtensionLinePlotWeightSource (const ON::plot_weight_source src) |
void | SetExtExtension (const double) |
void | SetExtOffset (const double) |
void | SetFieldOverride (ON_DimStyle::field field_id, bool bOverrideParent) |
void | SetFieldOverrideAll (bool bOverrideParent) |
void | SetFixedExtensionLen (double l) |
void | SetFixedExtensionLenOn (bool on) |
void | SetFont (const class ON_Font &font_characteristics) |
void | SetForceDimLine (bool forcedimline) |
void | SetLeaderArrowBlockId (ON_UUID id) |
void | SetLeaderArrowSize (const double) |
void | SetLeaderArrowType (ON_Arrowhead::arrow_type) |
void | SetLeaderContentAngleDegrees (double angle_degrees) |
void | SetLeaderContentAngleRadians (double angle_radians) |
void | SetLeaderContentAngleStyle (ON_DimStyle::ContentAngleStyle style) |
void | SetLeaderCurveType (ON_DimStyle::leader_curve_type type) |
void | SetLeaderHasLanding (bool landing) |
void | SetLeaderLandingLength (double length) |
void | SetLeaderTextHorizontalAlignment (ON::TextHorizontalAlignment halign) |
void | SetLeaderTextOrientation (ON::TextOrientation) |
void | SetLeaderTextVerticalAlignment (ON::TextVerticalAlignment style) |
void | SetLengthFactor (double) |
LengthFactor is a rarely used. It applies when a model is being drawn to a scale and the dimension length values should be reverse scaled. For example, if a model is drawn at 1/4 scale, a line 5 units long indicates the real world line is 20 units long. In this case setting LengthFactor to 4 would cause a linear dimension applied to that line to display a value of 20. /summary> More... | |
void | SetLengthResolution (int) |
void | SetMaskBorder (double offset) |
void | SetMaskColor (ON_Color color) |
Does not return viewport background color. More... | |
void | SetMaskFillType (ON_TextMask::MaskType source) |
void | SetMaskFrameType (ON_TextMask::MaskFrame source) |
void | SetPrefix (const wchar_t *) |
void | SetRoundOff (double r) |
void | SetSignedOrdinate (bool allowsigned) |
void | SetSourceDimstyle (ON_UUID source_uuid) |
void | SetStackFractionFormat (ON_DimStyle::stack_format f) |
void | SetStackHeightScale (double f) |
void | SetSuffix (const wchar_t *) |
void | SetSuppressArrow1 (bool s) |
void | SetSuppressArrow2 (bool s) |
void | SetSuppressExtension1 (bool) |
void | SetSuppressExtension2 (bool) |
void | SetTextColor (ON_Color c) |
void | SetTextColorSource (const ON::object_color_source src) |
void | SetTextFit (ON_DimStyle::text_fit textfit) |
void | SetTextGap (double gap) |
void | SetTextHeight (double height) |
void | SetTextHorizontalAlignment (ON::TextHorizontalAlignment halign) |
void | SetTextMask (const ON_TextMask &text_mask) |
void | SetTextMoveLeader (int m) |
void | SetTextOrientation (ON::TextOrientation) |
void | SetTextPlotColor (ON_Color c) |
void | SetTextPlotColorSource (const ON::object_color_source src) |
void | SetTextRotation (double r) |
void | SetTextUnderlined (bool underlined) |
void | SetTextVerticalAlignment (ON::TextVerticalAlignment style) |
void | SetToleranceFormat (ON_DimStyle::tolerance_format format) |
void | SetToleranceHeightScale (double scale) |
void | SetToleranceLowerValue (double lower_value) |
void | SetToleranceResolution (int resolution) |
void | SetToleranceUpperValue (double upper_value) |
void | SetToleranceZeroSuppress (ON_DimStyle::suppress_zero s) |
void | SetUnitSystem (ON::LengthUnitSystem us) |
NOTE WELL: A dimstyle unit system was added in V6, but has never been fully used. The idea was this would make it easier to figure out what text height/ arrow size, ... actually meant. Especially in situations where model space and page space have different unit systems, and in more complex cases like text in instance definitions and inserting annotation from models with mismatched unit systems. It is used internally to get some scales properly set and use in limited merging contexts. More... | |
void | SetUnitSystemFromContext (bool bUseName, ON::LengthUnitSystem source_unit_system, ON::LengthUnitSystem destination_unit_system) |
void | SetZeroSuppress (ON_DimStyle::suppress_zero s) |
bool | SignedOrdinate () const |
ON_UUID | SourceDimstyle () const |
ON_DimStyle::stack_format | StackFractionFormat () const |
double | StackHeightScale () const |
const ON_wString & | Suffix () const |
Dimension suffix text. More... | |
bool | SuppressArrow1 () const |
bool | SuppressArrow2 () const |
bool | SuppressExtension1 () const |
Suppress first dimension extension line. More... | |
bool | SuppressExtension2 () const |
Suppress second dimension extension line. More... | |
double | TextAdvanceOfCodePoint (unsigned unicode_code_point) const |
ON_Color | TextColor () const |
ON::object_color_source | TextColorSource () const |
ON_DimStyle::text_fit | TextFit () const |
double | TextGap () const |
Distance from dimension lines to text. More... | |
double | TextHeight () const |
Height of dimension text. More... | |
ON::TextHorizontalAlignment | TextHorizontalAlignment () const |
const ON_TextMask & | TextMask () const |
int | TextMoveLeader () const |
ON::TextOrientation | TextOrientation () const |
ON_Color | TextPlotColor () const |
ON::object_color_source | TextPlotColorSource () const |
const class ON_SHA1_Hash | TextPositionPropertiesHash () const |
double | TextRotation () const |
bool | TextUnderlined () const |
ON::TextVerticalAlignment | TextVerticalAlignment () const |
double | TextWidthOfEmSpace () const |
double | TextWidthOfEnSpace () const |
double | TextWidthOfFigureSpace () const |
double | TextWidthOfIdeographicSpace () const |
double | TextWidthOfMediumMathematicalSpace () const |
double | TextWidthOfSpace () const |
tolerance_format | ToleranceFormat () const |
double | ToleranceHeightScale () const |
double | ToleranceLowerValue () const |
int | ToleranceResolution () const |
double | ToleranceUpperValue () const |
ON_DimStyle::suppress_zero | ToleranceZeroSuppress () const |
ON::LengthUnitSystem | UnitSystem () const |
NOTE WELL: A dimstyle unit system was added in V6, but has never been fully used. The idea was this would make it easier to figure out what text height/ arrow size, ... actually meant. Especially in situations where model space and page space have different unit systems, and in more complex cases like text in instance definitions and inserting annotation from models with mismatched unit systems. It is used internally to get some scales properly set and use in limited merging contexts. More... | |
bool | UnitSystemIsSet () const |
bool | Write (ON_BinaryArchive &) const override |
virtual More... | |
ON_DimStyle::suppress_zero | ZeroSuppress () const |
![]() | |
ON_ModelComponent () ON_NOEXCEPT | |
ON_ModelComponent (const ON_ModelComponent &source) | |
ON_ModelComponent (ON_ModelComponent::Type component_type) ON_NOEXCEPT | |
ON_ModelComponent (ON_ModelComponent::Type component_type, const ON_ModelComponent &source) ON_NOEXCEPT | |
Locked status of source attributes is not copied to permit copy and modify operations. More... | |
~ON_ModelComponent ()=default | |
bool | ChangeName (const wchar_t *new_name, class ON_ComponentManifest *manifest) |
bool | ClearComponentType () |
bool | ClearId () |
bool | ClearIndex () |
unsigned int | ClearModelComponentAttributes (unsigned int attributes_filter) |
bool | ClearModelComponentStatus () |
bool | ClearModelSerialNumber () |
bool | ClearName () |
bool | ClearParentId () |
int | CompareName (const ON_UUID &other_parent_id, const wchar_t *other_name) const |
int | CompareName (const wchar_t *other_name) const |
int | CompareNameExact (const ON_UUID &other_parent_id, const wchar_t *other_name) const |
int | CompareNameExact (const wchar_t *other_name) const |
ON_ModelComponent::Type | ComponentType () const |
bool | ComponentTypeIsLocked () const |
bool | ComponentTypeIsSet () const |
ON__UINT64 | ContentVersionNumber () const |
unsigned int | CopyFrom (const ON_ModelComponent &src, unsigned int attributes_filter) |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const override |
const ON_wString | DeletedName () const |
const ON_NameHash & | DeletedNameHash () const |
bool | DeletedNameIsSet () const |
bool | DeleteName () |
void | Dump (ON_TextLog &) const override |
bool | EraseIdentification (bool bIgnoreLocks) |
const wchar_t * | GetName (ON_wString &component_name) const |
const ON_UUID & | Id () const |
bool | IdIsLocked () const |
bool | IdIsNil () const |
bool | IdIsNotNil () const |
bool | IdIsSet () const |
const ON_UUID & | IfIdIsNilSetId () |
int | Index () const |
int | Index (int unset_index_value) const |
bool | IndexIsLocked () const |
bool | IndexIsSet () const |
unsigned int | InstanceDefinitionModelSerialNumber () const |
bool | IsDeleted () const |
bool | IsHidden () const |
bool | IsLocked () const |
bool | IsReferenceComponent () const |
bool | IsSystemComponent () const |
bool | IsValid (class ON_TextLog *text_log=nullptr) const override |
void | LockAllSettingsExceptName () |
void | LockComponentType () |
void | LockId () |
void | LockIndex () |
void | LockModelComponentStatus () |
void | LockModelSerialNumber () |
void | LockName () |
void | LockParentId () |
ON_ComponentStatus | ModelComponentStatus () const |
bool | ModelComponentStatusIsLocked () const |
bool | ModelComponentStatusIsSet () const |
ON_UUID | ModelObjectId () const override |
unsigned int | ModelSerialNumber () const |
bool | ModelSerialNumberIsLocked () const |
bool | ModelSerialNumberIsSet () const |
const ON_wString | Name () const |
const wchar_t * | NameAsPointer () const |
const ON_NameHash & | NameHash () const |
bool | NameIsEmpty () const |
bool | NameIsLocked () const |
bool | NameIsNotEmpty () const |
bool | NameIsSet () const |
const ON_NameHash | NewNameHash (const wchar_t *new_name) const |
ON_ModelComponent & | operator= (const ON_ModelComponent &source) |
const ON_UUID & | ParentId () const |
bool | ParentIdIsLocked () const |
bool | ParentIdIsNil () const |
bool | ParentIdIsNotNil () const |
bool | ParentIdIsSet () const |
bool | ReadModelComponentAttributes (class ON_BinaryArchive &archive) |
unsigned int | ReferenceModelSerialNumber () const |
ON__UINT64 | RuntimeSerialNumber () const |
const ON_UUID & | SetAndLockId () |
bool | SetAsSystemComponent () |
bool | SetAsUnsetSystemComponent () |
bool | SetComponentType (ON_ModelComponent::Type component_component_type) |
bool | SetDeletedModelComponentState (bool bDeleted, class ON_ComponentManifest *manifest) |
void | SetHiddenModelComponentState (bool bHidden) |
const ON_UUID & | SetId () |
bool | SetId (const ON_UUID &component_id) |
bool | SetIdentification (const class ON_ComponentManifestItem &manifest_item, const wchar_t *manifest_name, bool bSetId, bool bParentId, bool bSetName, bool bSetIndex) |
bool | SetIndex (int component_index) |
bool | SetLocalizedSystemComponentName (const wchar_t *system_component_localized_name) |
void | SetLockedModelComponentState (bool bLocked) |
bool | SetModelComponentStatus (ON_ComponentStatus component_status) |
bool | SetModelSerialNumber (unsigned int model_serial_number) |
bool | SetModelSerialNumber (unsigned int model_serial_number, unsigned int reference_model_serial_number, unsigned int instance_definition_model_serial_number) |
bool | SetName (const wchar_t *component_name) |
bool | SetParentId (const ON_UUID &parent_id) |
unsigned int | SizeOf () const override |
bool | UndeleteName () |
bool | WriteModelComponentAttributes (class ON_BinaryArchive &archive, unsigned int attributes_filter) const |
![]() | |
ON_Object () ON_NOEXCEPT | |
ON_Object (const ON_Object &) | |
virtual | ~ON_Object () |
virtual ON_AggregateComponentStatus | AggregateComponentStatus () const |
bool | AttachUserData (class ON_UserData *pUserData) |
unsigned int | ClearAllComponentStates () const |
virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
virtual unsigned int | ClearComponentStates (ON_ComponentStatus states_to_clear) const |
void | CopyUserData (const ON_Object &source_object) |
unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
virtual bool | DeleteComponents (const ON_COMPONENT_INDEX *ci_list, size_t ci_count) |
virtual void | DestroyRuntimeCache (bool bDelete=true) |
bool | DetachUserData (class ON_UserData *pUserData) |
void | EmergencyDestroy () |
class ON_UserData * | FirstUserData () const |
virtual unsigned int | GetComponentsWithSetStates (ON_ComponentStatus states_filter, bool bAllEqualStates, ON_SimpleArray< ON_COMPONENT_INDEX > &components) const |
class ON_UserData * | GetUserData (const ON_UUID &userdata_uuid) const |
bool | GetUserString (const wchar_t *key, ON_wString &string_value) const |
int | GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const |
int | GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const |
bool | IsCorrupt (bool bRepair, bool bSilentError, class ON_TextLog *text_log) const |
bool | IsKindOf (const ON_ClassId *pClassId) const |
virtual void | MarkAggregateComponentStatusAsNotCurrent () const |
virtual void | MemoryRelocate () |
void | MoveUserData (ON_Object &source_object) |
unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
virtual ON::object_type | ObjectType () const |
ON_Object & | operator= (const ON_Object &) |
void | PurgeUserData () |
virtual unsigned int | SetComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_set) const |
virtual unsigned int | SetComponentStatus (ON_COMPONENT_INDEX component_index, ON_ComponentStatus status_to_copy) const |
bool | SetUserString (const wchar_t *key, const wchar_t *string_value) |
int | SetUserStrings (int count, const ON_UserString *user_strings, bool bReplace) |
bool | ThisIsNullptr (bool bSilentError) const |
void | TransformUserData (const class ON_Xform &xform) |
virtual bool | UpdateReferencedComponents (const class ON_ComponentManifest &source_manifest, const class ON_ComponentManifest &destination_manifest, const class ON_ManifestMap &manifest_map) |
int | UserStringCount () const |
Static Public Attributes | |
static const ON_DimStyle | Default |
index = -1, unique and persistent id. More... | |
static const ON_DimStyle | DefaultFeetDecimal |
index = -8, unique and persistent id. More... | |
static const ON_DimStyle | DefaultFeetEngrave |
index = -9, unique and persistent id. More... | |
static const ON_DimStyle | DefaultFootInchArchitecture |
index = -4, unique and persistent id. More... | |
static const ON_DimStyle | DefaultInchDecimal |
index = -2, unique and persistent id. More... | |
static const ON_DimStyle | DefaultInchFractional |
index = -3, unique and persistent id. More... | |
static const ON_DimStyle | DefaultMillimeterArchitecture |
index = -7, unique and persistent id. More... | |
static const ON_DimStyle | DefaultMillimeterEngrave |
index = -10, unique and persistent id. More... | |
static const ON_DimStyle | DefaultMillimeterLarge |
index = -6, unique and persistent id. More... | |
static const ON_DimStyle | DefaultMillimeterSmall |
index = -5, unique and persistent id. More... | |
static const ON_DimStyle | DefaultModelUnitsDecimal |
index = -11, unique and persistent id. More... | |
static const ON_DimStyle | DefaultModelUnitsEngrave |
index = -12, unique and persistent id. More... | |
static const ON_DimStyle | Unset |
Predefined default dimension styles always available. More... | |
![]() | |
static const ON_wString | NamePathSeparator |
static const ON_wString | ReferencePrefixDelimiter |
static const ON_wString | ReferencePrefixSeparator |
static const ON_ModelComponent | Unset |
*static const ON_wString WorksessionReferencePrefix *const | wchar_t |
Friends | |
class | ON_V5x_DimStyle |
Additional Inherited Members | |
![]() | |
void | IncrementContentVersionNumber () const |
anonymous enum : unsigned int |
Enumerator | |
---|---|
FieldCount | must be 1 + the maximum value of an ON_DimStyle::field enum value. |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Field identifiers used for file i/o and getting/setting values
Don't change these enum values. They are used in file reading and writing.
Enumerator | |
---|---|
Unset | |
Name | Dimension style Name property. Cannot be inherited from parent. |
Index | Dimension style runtime model component index property. Cannot be inherited from parent. |
ExtensionLineExtension | |
ExtensionLineOffset | |
Arrowsize | |
LeaderArrowsize | |
Centermark | |
TextGap | |
TextHeight | |
DimTextLocation | Linear, angular, and ordinate dimension text location above/in/below |
MaskFrameType | Text mask frame OBSOLETE_LengthFormat_ = 11, |
LengthResolution | |
AngleFormat | |
AngleResolution | |
Font | |
LengthFactor | LengthFactor is a rarely used. It applies when a model is being drawn to a scale and the dimension length values should be reverse scaled. For example, if a model is drawn at 1/4 scale, a line 5 units long indicates the real world line is 20 units long. In this case setting LengthFactor to 4 would cause a linear dimension applied to that line to display a value of 20. /summary> |
Alternate | |
AlternateLengthFactor | AlternateLengthFactor is a rarely used. See Length factor for a description of this property. /summary> |
AlternateLengthResolution | OBSOLETE_AlternateLengthFormat_ = 19,. |
Prefix | |
Suffix | |
AlternatePrefix | |
AlternateSuffix | |
DimensionLineExtension | |
SuppressExtension1 | |
SuppressExtension2 | |
ExtLineColorSource | |
DimLineColorSource | |
ArrowColorSource | |
TextColorSource | |
ExtLineColor | |
DimLineColor | |
ArrowColor | |
TextColor | |
ExtLinePlotColorSource | |
DimLinePlotColorSource | |
ArrowPlotColorSource | |
TextPlotColorSource | |
ExtLinePlotColor | |
DimLinePlotColor | |
ArrowPlotColor | |
TextPlotColor | |
ExtLinePlotWeightSource | |
DimLinePlotWeightSource | |
ExtLinePlotWeight_mm | |
DimLinePlotWeight_mm | |
ToleranceFormat | |
ToleranceResolution | |
ToleranceUpperValue | |
ToleranceLowerValue | |
AltToleranceResolution | |
ToleranceHeightScale | |
BaselineSpacing | |
DrawMask | |
MaskColorSource | |
MaskColor | |
MaskBorder | |
DimensionScale | |
DimscaleSource | |
FixedExtensionLength | |
FixedExtensionOn | |
TextRotation | |
SuppressArrow1 | |
SuppressArrow2 | |
TextmoveLeader | |
ArclengthSymbol | |
StackTextheightScale | |
StackFormat | |
AltRound | |
Round | |
AngularRound | |
AltZeroSuppress | |
AngleZeroSuppress | OBSOLETE ToleranceZeroSuppress = 74,. |
ZeroSuppress | |
AltBelow | |
ArrowType1 | |
ArrowType2 | |
LeaderArrowType | |
ArrowBlockId1 | |
ArrowBlockId2 | |
LeaderArrowBlock | |
DimRadialTextLocation | Radial dimension text location above/in/below |
TextVerticalAlignment | |
LeaderTextVerticalAlignment | |
LeaderContentAngleStyle | |
LeaderCurveType | |
LeaderContentAngle | |
LeaderHasLanding | |
LeaderLandingLength | |
MaskFlags | |
CentermarkStyle | |
TextHorizontalAlignment | |
LeaderTextHorizontalAlignment | |
DrawForward | |
SignedOrdinate | |
UnitSystem | Unit system for dimension rendering sizes like TextHeight, TextGap, ArrowSize, ExtOffset, and dozens of other properties that control the appearance and placement of the components used to render a dimension. /summary> |
TextMask | |
TextOrientation | |
LeaderTextOrientation |
|
DimTextOrientation | |
DimRadialTextOrientation | |
DimTextAngleStyle | |
DimRadialTextAngleStyle | |
TextUnderlined | |
DimensionLengthDisplay | Dimension length display. See ON_DimStyle::DimensionLengthDisplay() for a description of this parameter. OBSOLETE_DimensionUnitSystem_ = 107, OBSOLETE_AlternateDimensionUnitSystem_ = 108, |
AlternateDimensionLengthDisplay | Alternate dimension length display. See ON_DimStyle::AlternateDimensionLengthDisplay() for a description of this parameter. |
ForceDimLine | Force dimension line to draw when text is moved outside |
ArrowFit | Arrow position when arrows won't fit between extensions |
TextFit | Text position when text won't fit between extensions |
DecimalSeparator | Character to use for decimal separator in dimension text |
Count | Every enum UINT value that identifies a valid dimension style property is less than the UINT value of Count. |
|
strong |
|
strong |
Interface.
Dimension display length unit system and style
|
strong |
Obsolete format for length display - use ON_DimStyle::DimensionLengthDisplay instead
|
strong |
|
strong |
Marks leading and trailing zeros for removal.
|
strong |
Text display position inside or outside extension lines
|
strong |
|
strong |
ON_DimStyle::ON_DimStyle | ( | ) |
Default constructor result is identical to ON_DimStyle::Unset;.
|
default |
|
default |
ON_DimStyle::ON_DimStyle | ( | ON::LengthUnitSystem | model_length_unit_system, |
const class ON_V5x_DimStyle & | src | ||
) |
Used when reading V5 and earlier archives.
ON_DimStyle::ON_DimStyle | ( | const ON_3dmAnnotationSettings & | src | ) |
bool ON_DimStyle::Alternate | ( | ) | const |
Additional measurement display toggle.
bool ON_DimStyle::AlternateBelow | ( | ) | const |
ON_DimStyle::LengthDisplay ON_DimStyle::AlternateDimensionLengthDisplay | ( | ) | const |
Set dimension length units and format /summary>
ON::LengthUnitSystem ON_DimStyle::AlternateDimensionLengthDisplayUnit | ( | unsigned int | model_sn | ) | const |
Parameters: model_sn - 0, a model serial number, or ON_UNSET_UINT_INDEX to use the dimstyle's ModelSerialNumber() value. Returns Unit system for dimension length display. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn > 0, then the value of ON::LengthUnitSystemFromModelSerialNumber(model_sn) is returned. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn == 0, then ON::LengthUnitSystem::None is returned. /summary>
double ON_DimStyle::AlternateLengthFactor | ( | ) | const |
AlternateLengthFactor is a rarely used. See Length factor for a description of this property. /summary>
Distance scale factor for alternate display
int ON_DimStyle::AlternateLengthResolution | ( | ) | const |
Display resolution for alternate length measurements.
const ON_wString& ON_DimStyle::AlternatePrefix | ( | ) | const |
Dimension alternate prefix text.
double ON_DimStyle::AlternateRoundOff | ( | ) | const |
const ON_wString& ON_DimStyle::AlternateSuffix | ( | ) | const |
Dimension alternate suffix text.
int ON_DimStyle::AlternateToleranceResolution | ( | ) | const |
ON_DimStyle::suppress_zero ON_DimStyle::AlternateZeroSuppress | ( | ) | const |
angle_format ON_DimStyle::AngleFormat | ( | ) | const |
|
static |
int ON_DimStyle::AngleResolution | ( | ) | const |
Display resolution for angle measurements.
double ON_DimStyle::AngleRoundOff | ( | ) | const |
ON_DimStyle::suppress_zero ON_DimStyle::AngleZeroSuppress | ( | ) | const |
int ON_DimStyle::ArcLengthSymbol | ( | ) | const |
ON_UUID ON_DimStyle::ArrowBlockId1 | ( | ) | const |
ON_UUID ON_DimStyle::ArrowBlockId2 | ( | ) | const |
ON_Color ON_DimStyle::ArrowColor | ( | ) | const |
ON::object_color_source ON_DimStyle::ArrowColorSource | ( | ) | const |
ON_DimStyle::arrow_fit ON_DimStyle::ArrowFit | ( | ) | const |
|
static |
ON_Color ON_DimStyle::ArrowPlotColor | ( | ) | const |
ON::plot_color_source ON_DimStyle::ArrowPlotColorSource | ( | ) | const |
double ON_DimStyle::ArrowSize | ( | ) | const |
Arrow size.
ON_Arrowhead::arrow_type ON_DimStyle::ArrowType1 | ( | ) | const |
ON_Arrowhead::arrow_type ON_DimStyle::ArrowType2 | ( | ) | const |
double ON_DimStyle::BaselineSpacing | ( | ) | const |
double ON_DimStyle::CenterMark | ( | ) | const |
Centermark size.
ON_DimStyle::centermark_style ON_DimStyle::CenterMarkStyle | ( | ) | const |
Centermark style.
|
static |
void ON_DimStyle::ClearAllFieldOverrides | ( | ) |
Description: All dimension style settings identified the ON_DimStyle::field enum, except Name and Id, are inherited from the parent dimension style.
bool ON_DimStyle::CompareDimstyle | ( | const ON_DimStyle & | src | ) | const |
Returns: True: "this" and src have identical names, dimension style appearance attributes, and identical attributes inherited from the same parent dimension style. ON_ModelComponent settings other than Name() and ParentId() are not compared. Remaraks: A better name for this function would be EqualForAllPracticalPurposes().
bool ON_DimStyle::CompareFields | ( | const ON_DimStyle & | src | ) | const |
Returns: True if this and src have identical dimension style appearance attributes and the same parent dimension style id. CompareFields() ignores Name, Index, Id() values. CompareFields() ignores differences in IsOverride(field_id) values. Remaraks: A better name for this function would be EqualAppearanceSettings().
|
static |
const class ON_SHA1_Hash& ON_DimStyle::ContentHash | ( | ) | const |
Description: Two dimension styles have identical content if and only if they have identical values of ContentHash(). Returns: A SHA-1 hash of the information that controls annotation appearance. Remarks: Independent of id, parent id, name, and index.
|
static |
Description: Create a clean dimension style that has the specified font. With the exception of the name, the resulting dimension style will have an unset ON_ModelComponent properties (id, index, ...). Parameters: font_characteristics - [in] If nullptr, then &ON_Font::Default is used. model_space_text_scale - [in] If model_space_text_scale is > 0.0, then it is used to set the DimScale() value. dimstyle_settings - [in] Setting for non-font dimstyle properties. If nullptr, then &ON_DimStyle::Default is used. manifest - [in] If manifest is not nullptr, then it is used to generate a unique name. destination - [in] If destination is not nullptr, the result is stored here. Otherwise operator new is used to construct an ON_DimStyle on the heap.
|
static |
|
static |
Description: Get an ON_DimStyle with the specified properties. Parameters: parent_dim_style - [in] If you are getting ready to modify and existing annotation object, a good options for this parameter is the dimstyle returned by ON_Annotation.DimStyle(); If you are getting ready to create a new annotation object, then get an ON_DimStyleContext class and pass ON_DimStyleContext.CurrentDimStyle(). In Rhino, use CRhinoDoc.DimStyleContext() to get an ON_DimStyleContext. In an ONX_Model, use ONX_Model.DimStyleContext() to get an ON_DimStyleContext. In other situations, you can pass on of the system dimstyles like ON_DimStyle::DefaultMillimeterSmall or ON_DimStyle::DefaultMillimeterArchitectural. The worst possible choices are ON_DimStyle::Default or ON_DimStyle::Unset. annotation_type - [in] ON::AnnotationType::Unset if style will be used for multiple types of annotation or a specific type. For example, if you are making a text object, pass ON::AnnotationType::Text; if you are making a leader, pass ON::AnnotationType::Leader, and so on. font - [in] nullptr for current default or specify the font you want. When in doubt, pass nullptr model_space_text_scale - [in] If > 0, then ON_DimStyle.DimScale() is set, otherwise current default is used. When in doubt, pass ON_UNSET_VALUE. text_height - [in] text_height_unit_system - [in] If text_height > 0, then ON_DimStyle.TextHeight() is set, otherwise current default is used. When in doubt, pass ON_UNSET_VALUE. valign - [in] halign - [in] valign and halign control placement of text in text objects and leaders. The value of the annotation_type parameter determines which objects use the valign and halign settings. text_orientation - [in] dim_text_location - [in] Controls placement of text in linear, angular, radial and ordinate dimensions. When in doubt, pass parent_dim_style.DimTextLocation(). Returns: A dimstyle with the specified text properties. Remarks: This is a useful tool for creating the dimension style parameters to CRhinoDoc.AddTextObject() and CRhinoDoc.AddLeaderObject().
|
static |
const ON_DimStyle ON_DimStyle::CreateOverrideCandidate | ( | ) | const |
Description: Create a dimstyle from this that is configured to be customized for use in creating a new annotation object. Example: ON_DimStyleContext = dim_style_context = ...; ON_DimStyle my_dim_style = dim_style_context.CurrentDimStyle().CreateOverrideCandidate(). / Customize my_dim_style my_dim_style.Set...(...); Returns: An ON_DimStyle configured to be modified and used as an override dimstyle for annotation objects.
wchar_t ON_DimStyle::DecimalSeparator | ( | ) | const |
ON_DimStyle::LengthDisplay ON_DimStyle::DimensionLengthDisplay | ( | ) | const |
Dimension length units and format /summary>
ON::LengthUnitSystem ON_DimStyle::DimensionLengthDisplayUnit | ( | unsigned int | model_sn | ) | const |
Parameters: model_sn - 0, a model serial number, or ON_UNSET_UINT_INDEX to use the dimstyle's ModelSerialNumber() value. Returns Unit system for dimension length display. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn > 0, then the value of ON::LengthUnitSystemFromModelSerialNumber(model_sn) is returned. If DimensionLengthDisplay() == ON_DimStyle::LengthDisplay::ModelUnits and model_sn == 0, then ON::LengthUnitSystem::None is returned. /summary>
ON_Color ON_DimStyle::DimensionLineColor | ( | ) | const |
ON::object_color_source ON_DimStyle::DimensionLineColorSource | ( | ) | const |
ON_Color ON_DimStyle::DimensionLinePlotColor | ( | ) | const |
ON::plot_color_source ON_DimStyle::DimensionLinePlotColorSource | ( | ) | const |
double ON_DimStyle::DimensionLinePlotWeight | ( | ) | const |
ON::plot_weight_source ON_DimStyle::DimensionLinePlotWeightSource | ( | ) | const |
double ON_DimStyle::DimExtension | ( | ) | const |
Extension of dimension line past extension lines.
ON_DimStyle::ContentAngleStyle ON_DimStyle::DimRadialTextAngleStyle | ( | ) | const |
ON_DimStyle::TextLocation ON_DimStyle::DimRadialTextLocation | ( | ) | const |
The location of text relative to the dimension line in radial dimensions.
ON::TextOrientation ON_DimStyle::DimRadialTextOrientation | ( | ) | const |
double ON_DimStyle::DimScale | ( | ) | const |
int ON_DimStyle::DimScaleSource | ( | ) | const |
0: Global DimScale, 1: DimStyle DimScale
|
static |
Parameters: dimstyle - [in] Returns: If dimstyle not nullptr, then dimstyle is returned. Otherwise a non-null pointer to a persistent dimstyle is returned. A null pointer is never returned. Remarks: This function is used when a dimension style is required.
ON_DimStyle::ContentAngleStyle ON_DimStyle::DimTextAngleStyle | ( | ) | const |
ON_DimStyle::TextLocation ON_DimStyle::DimTextLocation | ( | ) | const |
The location of text relative to the dimension line in linear, angular, and ordinate dimensions.
ON::TextOrientation ON_DimStyle::DimTextOrientation | ( | ) | const |
|
static |
convert ON_DimStyle::OBSOLETE_length_format enum to ON::OBSOLETE_DistanceDisplayMode enum
bool ON_DimStyle::DrawForward | ( | ) | const |
bool ON_DimStyle::DrawTextMask | ( | ) | const |
Determines whether or not to draw a Text Mask.
|
overridevirtual |
void ON_DimStyle::EmergencyDestroy | ( | ) |
Interface.
ON_Color ON_DimStyle::ExtensionLineColor | ( | ) | const |
ON::object_color_source ON_DimStyle::ExtensionLineColorSource | ( | ) | const |
ON_Color ON_DimStyle::ExtensionLinePlotColor | ( | ) | const |
ON::plot_color_source ON_DimStyle::ExtensionLinePlotColorSource | ( | ) | const |
double ON_DimStyle::ExtensionLinePlotWeight | ( | ) | const |
ON::plot_weight_source ON_DimStyle::ExtensionLinePlotWeightSource | ( | ) | const |
double ON_DimStyle::ExtExtension | ( | ) | const |
Extension line extension.
double ON_DimStyle::ExtOffset | ( | ) | const |
Extension line offset.
|
static |
double ON_DimStyle::FixedExtensionLen | ( | ) | const |
bool ON_DimStyle::FixedExtensionLenOn | ( | ) | const |
const class ON_Font& ON_DimStyle::Font | ( | ) | const |
Returns: The managed font used to render text.
const class ON_Font& ON_DimStyle::FontCharacteristics | ( | ) | const |
Returns: A copy of the font_characteristics information. Remarks: You probably want to use Font(). This function is only useful in isolated situations and is typically used to study font substitutions when a model moves between computers or platforms.
const bool ON_DimStyle::FontSubstituted | ( | ) | const |
bool ON_DimStyle::ForceDimLine | ( | ) | const |
|
static |
Parameters: model_component_reference - [in] none_return_value - [in] value to return if ON_DimStyle::Cast(model_component_ref.ModelComponent()) is nullptr Returns: If ON_DimStyle::Cast(model_component_ref.ModelComponent()) is not nullptr, that pointer is returned. Otherwise, none_return_value is returned.
bool ON_DimStyle::HasOverrides | ( | ) | const |
Returns: false: (default) Every setting identified by a ON_DimStyle::field enum value, except name and id, is inherited from the parent dimension style identified by ParentId(). true: At least one setting identified by a ON_DimStyle::field enum value is is independent of any parent dimension style.
void ON_DimStyle::InheritFields | ( | const ON_DimStyle & | parent | ) |
Description: Set the parent dimension style id to parent.Id() and copies all inherited appearance properties from parent. Parameters: parent - [in] If this->IsFieldOverride(field_id) is false, then the dimension style property value corresponding to field_id is copied from parent to "this".
Remarks: Identical to calling this->OverrideFields(*this,parent).
bool ON_DimStyle::IsChildDimstyle | ( | ) | const |
Test if this dimstyle is the child of any other dimstyle.
bool ON_DimStyle::IsChildOf | ( | const ON_UUID & | parent_id | ) | const |
Returns: True if parent_id is not nil and parent_id == this->ParentId().
bool ON_DimStyle::IsFieldOverride | ( | ON_DimStyle::field | field_id | ) | const |
Parameters: field_id - [in] Returns: false: (default) The setting identified by field_id is inherited from the parent dimension style identified by ParentId(). true: The setting identified by field_id is independent of any parent dimension style.
bool ON_DimStyle::IsOverrideDimStyleCandidate | ( | ON_UUID | parent_id, |
bool | bRequireSetOverrides, | ||
ON_wString * | error_description = nullptr |
||
) | const |
|
overridevirtual |
ON_UUID ON_DimStyle::LeaderArrowBlockId | ( | ) | const |
double ON_DimStyle::LeaderArrowSize | ( | ) | const |
Arrow size.
ON_Arrowhead::arrow_type ON_DimStyle::LeaderArrowType | ( | ) | const |
double ON_DimStyle::LeaderContentAngleDegrees | ( | ) | const |
double ON_DimStyle::LeaderContentAngleRadians | ( | ) | const |
ON_DimStyle::ContentAngleStyle ON_DimStyle::LeaderContentAngleStyle | ( | ) | const |
was contentalignment
ON_DimStyle::leader_curve_type ON_DimStyle::LeaderCurveType | ( | ) | const |
|
static |
bool ON_DimStyle::LeaderHasLanding | ( | ) | const |
double ON_DimStyle::LeaderLandingLength | ( | ) | const |
ON::TextHorizontalAlignment ON_DimStyle::LeaderTextHorizontalAlignment | ( | ) | const |
ON::TextOrientation ON_DimStyle::LeaderTextOrientation | ( | ) | const |
ON::TextVerticalAlignment ON_DimStyle::LeaderTextVerticalAlignment | ( | ) | const |
was attachstyle
|
static |
|
static |
|
static |
Returns: true if length_display selects a decimal format. false if length_display is ON_DimStyle::LengthDisplay::FeetAndInches or ON_DimStyle::LengthDisplay::InchesFractional.
double ON_DimStyle::LengthFactor | ( | ) | const |
LengthFactor is a rarely used. It applies when a model is being drawn to a scale and the dimension length values should be reverse scaled. For example, if a model is drawn at 1/4 scale, a line 5 units long indicates the real world line is 20 units long. In this case setting LengthFactor to 4 would cause a linear dimension applied to that line to display a value of 20. /summary>
|
static |
convert ON::OBSOLETE_DistanceDisplayMode enum to ON_DimStyle::OBSOLETE_length_format enum
int ON_DimStyle::LengthResolution | ( | ) | const |
Display resolution for distance measurements.
|
static |
double ON_DimStyle::MaskBorder | ( | ) | const |
Offset for the border around text to the rectangle used to draw the mask This number is the offset on each side of the tight rectangle around the text characters to the mask rectangle.
ON_Color ON_DimStyle::MaskColor | ( | ) | const |
Only works right if MaskColorSource returns 1.
ON_TextMask::MaskType ON_DimStyle::MaskFillType | ( | ) | const |
Determines where to get the color to draw a Text Mask.
ON_TextMask::MaskFrame ON_DimStyle::MaskFrameType | ( | ) | const |
Determines whether to draw a frame around a Text Mask.
|
static |
|
static |
Parameters: dimension_length_display - [in] model_serial_number - [in] 0: Ignore model settings >0: dimstyle.ModelSerialNumber()
|
static |
|
default |
ON__UINT32 ON_DimStyle::OverrideCount | ( | ) | const |
Returns: The number of DimStyle fields that are overridden. Name, Id and Index are not counted.
void ON_DimStyle::OverrideFields | ( | const ON_DimStyle & | source, |
const ON_DimStyle & | parent | ||
) |
Description: For every dimension style property identified by a field_id ON_DimStyle::field enum, except Name and Index, do the following:
if ( source.IsFieldOverride(field_id) ) copy corresponding value from source to this else copy corresponding value from parent to this
Set this->ParentId() = parent.Id(). Parameters: src - [in] It is permitted for src to be this. parent - [in] It is permitted for parent to be this.
void ON_DimStyle::OverrideFieldsWithDifferentValues | ( | const ON_DimStyle & | source, |
const ON_DimStyle & | parent | ||
) |
Description: For every dimension style property identified by a field_id ON_DimStyle::field enum, except Name and Index, if source and parent have different values, then set the field override for that property to true. Parameters: src - [in] It is permitted for src to be this. parent - [in] It is permitted for parent to be this.
const ON_SHA1_Hash& ON_DimStyle::ParentContentHash | ( | ) | const |
Returns: The content hash of the parent dimstyle. If there is no parent dimstyle, then ON_SHA1_Hash::EmptyContent is returned.
const class ON_Font& ON_DimStyle::ParentDimStyleFont | ( | ) | const |
Returns: If a parent dimstyle is in play, this is the managed font used by the parent dimstyle. Otherwise, this is the font returned by Font().
const ON_wString& ON_DimStyle::Prefix | ( | ) | const |
Dimension prefix text.
|
overridevirtual |
virtual
Reimplemented from ON_Object.
double ON_DimStyle::RoundOff | ( | ) | const |
void ON_DimStyle::Scale | ( | double | scale | ) |
double ON_DimStyle::ScaleLeftLength_mm | ( | ) | const |
double ON_DimStyle::ScaleRightLength_mm | ( | ) | const |
const ON_ScaleValue& ON_DimStyle::ScaleValue | ( | ) | const |
void ON_DimStyle::SetAlternate | ( | bool | ) |
void ON_DimStyle::SetAlternateBelow | ( | bool | below | ) |
void ON_DimStyle::SetAlternateDimensionLengthDisplay | ( | ON_DimStyle::LengthDisplay | length_display | ) |
Set alternate dimension length units and format /summary>
void ON_DimStyle::SetAlternateLengthFactor | ( | double | ) |
AlternateLengthFactor is a rarely used. See Length factor for a description of this property. /summary>
void ON_DimStyle::SetAlternateLengthResolution | ( | int | ) |
void ON_DimStyle::SetAlternatePrefix | ( | const wchar_t * | ) |
void ON_DimStyle::SetAlternateRoundOff | ( | double | r | ) |
void ON_DimStyle::SetAlternateSuffix | ( | const wchar_t * | ) |
void ON_DimStyle::SetAlternateToleranceResolution | ( | int | r | ) |
void ON_DimStyle::SetAlternateZeroSuppress | ( | ON_DimStyle::suppress_zero | s | ) |
void ON_DimStyle::SetAngleFormat | ( | angle_format | format | ) |
void ON_DimStyle::SetAngleResolution | ( | int | ) |
void ON_DimStyle::SetAngleRoundOff | ( | double | r | ) |
void ON_DimStyle::SetAngleZeroSuppress | ( | ON_DimStyle::suppress_zero | s | ) |
void ON_DimStyle::SetArcLengthSymbol | ( | int | m | ) |
void ON_DimStyle::SetArrowBlockId1 | ( | ON_UUID | id | ) |
void ON_DimStyle::SetArrowBlockId2 | ( | ON_UUID | id | ) |
void ON_DimStyle::SetArrowColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetArrowColorSource | ( | const ON::object_color_source | src | ) |
void ON_DimStyle::SetArrowFit | ( | ON_DimStyle::arrow_fit | arrowfit | ) |
void ON_DimStyle::SetArrowPlotColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetArrowPlotColorSource | ( | const ON::plot_color_source | src | ) |
void ON_DimStyle::SetArrowSize | ( | const double | ) |
void ON_DimStyle::SetArrowType1 | ( | ON_Arrowhead::arrow_type | ) |
void ON_DimStyle::SetArrowType1And2 | ( | ON_Arrowhead::arrow_type | ) |
void ON_DimStyle::SetArrowType2 | ( | ON_Arrowhead::arrow_type | ) |
void ON_DimStyle::SetBaselineSpacing | ( | double | spacing | ) |
void ON_DimStyle::SetCenterMark | ( | const double | ) |
void ON_DimStyle::SetCenterMarkStyle | ( | ON_DimStyle::centermark_style | style | ) |
void ON_DimStyle::SetDecimalSeparator | ( | wchar_t | separator | ) |
void ON_DimStyle::SetDimensionLengthDisplay | ( | ON_DimStyle::LengthDisplay | length_display | ) |
Alternate dimension length units and format /summary>
void ON_DimStyle::SetDimensionLineColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetDimensionLineColorSource | ( | const ON::object_color_source | src | ) |
void ON_DimStyle::SetDimensionLinePlotColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetDimensionLinePlotColorSource | ( | const ON::plot_color_source | src | ) |
void ON_DimStyle::SetDimensionLinePlotWeight | ( | double | w | ) |
void ON_DimStyle::SetDimensionLinePlotWeightSource | ( | const ON::plot_weight_source | src | ) |
void ON_DimStyle::SetDimExtension | ( | const double | e | ) |
void ON_DimStyle::SetDimRadialTextAngleStyle | ( | ON_DimStyle::ContentAngleStyle | style | ) |
void ON_DimStyle::SetDimRadialTextLocation | ( | ON_DimStyle::TextLocation | ) |
void ON_DimStyle::SetDimRadialTextOrientation | ( | ON::TextOrientation | ) |
void ON_DimStyle::SetDimScale | ( | double | left_val, |
ON::LengthUnitSystem | left_us, | ||
double | right_val, | ||
ON::LengthUnitSystem | right_us | ||
) |
void ON_DimStyle::SetDimScale | ( | double | scale | ) |
void ON_DimStyle::SetDimScale | ( | ON_ScaleValue | sv | ) |
void ON_DimStyle::SetDimScaleSource | ( | int | source | ) |
void ON_DimStyle::SetDimTextAngleStyle | ( | ON_DimStyle::ContentAngleStyle | style | ) |
void ON_DimStyle::SetDimTextLocation | ( | ON_DimStyle::TextLocation | ) |
void ON_DimStyle::SetDimTextOrientation | ( | ON::TextOrientation | ) |
void ON_DimStyle::SetDrawForward | ( | bool | drawforward | ) |
void ON_DimStyle::SetDrawTextMask | ( | bool | bDraw | ) |
void ON_DimStyle::SetExtensionLineColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetExtensionLineColorSource | ( | const ON::object_color_source | src | ) |
void ON_DimStyle::SetExtensionLinePlotColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetExtensionLinePlotColorSource | ( | const ON::plot_color_source | src | ) |
void ON_DimStyle::SetExtensionLinePlotWeight | ( | double | w | ) |
void ON_DimStyle::SetExtensionLinePlotWeightSource | ( | const ON::plot_weight_source | src | ) |
void ON_DimStyle::SetExtExtension | ( | const double | ) |
void ON_DimStyle::SetExtOffset | ( | const double | ) |
void ON_DimStyle::SetFieldOverride | ( | ON_DimStyle::field | field_id, |
bool | bOverrideParent | ||
) |
Parameters: field_id - [in] bOverrideParent - [in] false: The setting identified by field_id is inherited from the parent dimension style identified by ParentId(). true: The setting identified by field_id is independent of any parent dimension style.
void ON_DimStyle::SetFieldOverrideAll | ( | bool | bOverrideParent | ) |
Parameters: bOverrideParent - [in] true - if a field permits overriding, set it to true. false - set all field override values to false.
void ON_DimStyle::SetFixedExtensionLen | ( | double | l | ) |
void ON_DimStyle::SetFixedExtensionLenOn | ( | bool | on | ) |
void ON_DimStyle::SetFont | ( | const class ON_Font & | font_characteristics | ) |
Description: Set the font used to render text. Parameters: font_characteristics - [in] This parameter does not have to be a managed font. Remarks: If the parameter is a managed font (font_characteristics.IsManagedFont() is true), then the identical value is returned by ON_DimStyle.Font(). If the parameter is not a managed font (font_characteristics.IsManagedFont() is false), then the ON_Font::GetManagedFont(font_characteristics) will be returned by ON_DimStyle.Font().
void ON_DimStyle::SetForceDimLine | ( | bool | forcedimline | ) |
void ON_DimStyle::SetLeaderArrowBlockId | ( | ON_UUID | id | ) |
void ON_DimStyle::SetLeaderArrowSize | ( | const double | ) |
void ON_DimStyle::SetLeaderArrowType | ( | ON_Arrowhead::arrow_type | ) |
void ON_DimStyle::SetLeaderContentAngleDegrees | ( | double | angle_degrees | ) |
void ON_DimStyle::SetLeaderContentAngleRadians | ( | double | angle_radians | ) |
void ON_DimStyle::SetLeaderContentAngleStyle | ( | ON_DimStyle::ContentAngleStyle | style | ) |
void ON_DimStyle::SetLeaderCurveType | ( | ON_DimStyle::leader_curve_type | type | ) |
void ON_DimStyle::SetLeaderHasLanding | ( | bool | landing | ) |
void ON_DimStyle::SetLeaderLandingLength | ( | double | length | ) |
void ON_DimStyle::SetLeaderTextHorizontalAlignment | ( | ON::TextHorizontalAlignment | halign | ) |
void ON_DimStyle::SetLeaderTextOrientation | ( | ON::TextOrientation | ) |
void ON_DimStyle::SetLeaderTextVerticalAlignment | ( | ON::TextVerticalAlignment | style | ) |
void ON_DimStyle::SetLengthFactor | ( | double | ) |
LengthFactor is a rarely used. It applies when a model is being drawn to a scale and the dimension length values should be reverse scaled. For example, if a model is drawn at 1/4 scale, a line 5 units long indicates the real world line is 20 units long. In this case setting LengthFactor to 4 would cause a linear dimension applied to that line to display a value of 20. /summary>
void ON_DimStyle::SetLengthResolution | ( | int | ) |
void ON_DimStyle::SetMaskBorder | ( | double | offset | ) |
void ON_DimStyle::SetMaskColor | ( | ON_Color | color | ) |
Does not return viewport background color.
void ON_DimStyle::SetMaskFillType | ( | ON_TextMask::MaskType | source | ) |
void ON_DimStyle::SetMaskFrameType | ( | ON_TextMask::MaskFrame | source | ) |
void ON_DimStyle::SetPrefix | ( | const wchar_t * | ) |
void ON_DimStyle::SetRoundOff | ( | double | r | ) |
void ON_DimStyle::SetSignedOrdinate | ( | bool | allowsigned | ) |
void ON_DimStyle::SetSourceDimstyle | ( | ON_UUID | source_uuid | ) |
UUID of the dimstyle this was originally copied from so Restore Defaults has some place to look
void ON_DimStyle::SetStackFractionFormat | ( | ON_DimStyle::stack_format | f | ) |
void ON_DimStyle::SetStackHeightScale | ( | double | f | ) |
void ON_DimStyle::SetSuffix | ( | const wchar_t * | ) |
void ON_DimStyle::SetSuppressArrow1 | ( | bool | s | ) |
void ON_DimStyle::SetSuppressArrow2 | ( | bool | s | ) |
void ON_DimStyle::SetSuppressExtension1 | ( | bool | ) |
void ON_DimStyle::SetSuppressExtension2 | ( | bool | ) |
void ON_DimStyle::SetTextColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetTextColorSource | ( | const ON::object_color_source | src | ) |
void ON_DimStyle::SetTextFit | ( | ON_DimStyle::text_fit | textfit | ) |
void ON_DimStyle::SetTextGap | ( | double | gap | ) |
void ON_DimStyle::SetTextHeight | ( | double | height | ) |
void ON_DimStyle::SetTextHorizontalAlignment | ( | ON::TextHorizontalAlignment | halign | ) |
void ON_DimStyle::SetTextMask | ( | const ON_TextMask & | text_mask | ) |
void ON_DimStyle::SetTextMoveLeader | ( | int | m | ) |
void ON_DimStyle::SetTextOrientation | ( | ON::TextOrientation | ) |
void ON_DimStyle::SetTextPlotColor | ( | ON_Color | c | ) |
void ON_DimStyle::SetTextPlotColorSource | ( | const ON::object_color_source | src | ) |
void ON_DimStyle::SetTextRotation | ( | double | r | ) |
void ON_DimStyle::SetTextUnderlined | ( | bool | underlined | ) |
void ON_DimStyle::SetTextVerticalAlignment | ( | ON::TextVerticalAlignment | style | ) |
void ON_DimStyle::SetToleranceFormat | ( | ON_DimStyle::tolerance_format | format | ) |
void ON_DimStyle::SetToleranceHeightScale | ( | double | scale | ) |
void ON_DimStyle::SetToleranceLowerValue | ( | double | lower_value | ) |
void ON_DimStyle::SetToleranceResolution | ( | int | resolution | ) |
void ON_DimStyle::SetToleranceUpperValue | ( | double | upper_value | ) |
void ON_DimStyle::SetToleranceZeroSuppress | ( | ON_DimStyle::suppress_zero | s | ) |
OBSOLETE - The ZeroSuppress() or AlternateZeroSuppress() property is used to format tolerance display. ToleranceZeroSuppress() is ignored.
void ON_DimStyle::SetUnitSystem | ( | ON::LengthUnitSystem | us | ) |
NOTE WELL: A dimstyle unit system was added in V6, but has never been fully used. The idea was this would make it easier to figure out what text height/ arrow size, ... actually meant. Especially in situations where model space and page space have different unit systems, and in more complex cases like text in instance definitions and inserting annotation from models with mismatched unit systems. It is used internally to get some scales properly set and use in limited merging contexts.
From a user's perspective, in Rhino 6 and Rhino 7 ON_DimStyle lengths like TextHeight(), ArrowSize(), ... are with respect to the context the annotation resides in. For example, if TextHeight() = 3.5, model units = meters, page units = millimters, and DimScale() = 1, then text created in model space will be 3.5 meters high and text created in page space will be 3.5 millimeters high.
Ideally, ON_DimStyle::UnitSystem() would specify the text height units and ON_DimStyle::DimScale() cound be adjusted as model space extents require. Text in instance definitions would have a well defined height and references to those instance definitions would display predictably in both model space and page space. /summary>
void ON_DimStyle::SetUnitSystemFromContext | ( | bool | bUseName, |
ON::LengthUnitSystem | source_unit_system, | ||
ON::LengthUnitSystem | destination_unit_system | ||
) |
Description: When a dimension style unit system is not set, this function examines the context the dimension style is being used in and sets the unit system. Ideally, both source_unit_system and destination_unit_system are page space units. Less ideally, both source_unit_system and destination_unit_system are model space units. Parameters: bUseName - [in] Consider the name when assigning a unit system. For example, a dimension style name "Millimters Small" would be assigned a unit system of millimeters. source_unit_system - [in] unit system in the context where the dimension style originated. destination_unit_system - [in] unit system in the context where the dimension style will be used.
void ON_DimStyle::SetZeroSuppress | ( | ON_DimStyle::suppress_zero | s | ) |
bool ON_DimStyle::SignedOrdinate | ( | ) | const |
ON_UUID ON_DimStyle::SourceDimstyle | ( | ) | const |
|
static |
ON_DimStyle::stack_format ON_DimStyle::StackFractionFormat | ( | ) | const |
double ON_DimStyle::StackHeightScale | ( | ) | const |
const ON_wString& ON_DimStyle::Suffix | ( | ) | const |
Dimension suffix text.
bool ON_DimStyle::SuppressArrow1 | ( | ) | const |
bool ON_DimStyle::SuppressArrow2 | ( | ) | const |
bool ON_DimStyle::SuppressExtension1 | ( | ) | const |
Suppress first dimension extension line.
bool ON_DimStyle::SuppressExtension2 | ( | ) | const |
Suppress second dimension extension line.
|
static |
Parameters: name_hash - [in] Returns: If the id is not nil and identifies one of the above system dimstyles, that dimstyle is returned. Otherwise, ON_DimStyle::Unset is returned.
|
static |
Parameters: id - [in] Returns: If the id is not nil and identifies one of the above system dimstyles, that dimstyle is returned. Otherwise, ON_DimStyle::Unset is returned.
|
static |
Parameters: index - [in] Returns: If the id is not nil and identifies one of the above system dimstyles, that dimstyle is returned. Otherwise, ON_DimStyle::Unset is returned.
|
static |
Parameters: name_hash - [in] Returns: If the id is not nil and identifies one of the above system dimstyles, that dimstyle is returned. Otherwise, ON_DimStyle::Unset is returned.
double ON_DimStyle::TextAdvanceOfCodePoint | ( | unsigned | unicode_code_point | ) | const |
Parameters: unicode_code_point - [in] Returns: The advance for a single code point glyph in the same units as TextHeight() using the current settings for TextHeight() and Font(). Remarks: When sequences of code points are rendered, using the per glyph advance does not create the best looking text. Text rendering tools like DirectWrite that look at the entire string adjust advance based on the locale, neighboring glyphs, and other contextual information.
ON_Color ON_DimStyle::TextColor | ( | ) | const |
ON::object_color_source ON_DimStyle::TextColorSource | ( | ) | const |
ON_DimStyle::text_fit ON_DimStyle::TextFit | ( | ) | const |
|
static |
double ON_DimStyle::TextGap | ( | ) | const |
Distance from dimension lines to text.
double ON_DimStyle::TextHeight | ( | ) | const |
Height of dimension text.
ON::TextHorizontalAlignment ON_DimStyle::TextHorizontalAlignment | ( | ) | const |
|
static |
const ON_TextMask& ON_DimStyle::TextMask | ( | ) | const |
The ON_TextMask class contains the property values for DrawTextMask() MaskColor() MaskFillType() MaskBorder() Use the SetDrawTextMask() SetMaskColor() SetMaskFillType() SetMaskBorder() functions to modify text mask properties.
int ON_DimStyle::TextMoveLeader | ( | ) | const |
ON::TextOrientation ON_DimStyle::TextOrientation | ( | ) | const |
ON_Color ON_DimStyle::TextPlotColor | ( | ) | const |
ON::object_color_source ON_DimStyle::TextPlotColorSource | ( | ) | const |
const class ON_SHA1_Hash ON_DimStyle::TextPositionPropertiesHash | ( | ) | const |
Description: Two dimension styles have identical text orientation, glyph content, and size parameters if and only if the have identical values of TextPositionPropertiesHash(). Returns: A SHA-1 hash of the information that controls text position and size. Remarks: Independent of id, parent id, name, and index.
double ON_DimStyle::TextRotation | ( | ) | const |
bool ON_DimStyle::TextUnderlined | ( | ) | const |
ON::TextVerticalAlignment ON_DimStyle::TextVerticalAlignment | ( | ) | const |
double ON_DimStyle::TextWidthOfEmSpace | ( | ) | const |
Returns: Width of an em space (U+2003), also called a mutton, in the same units as TextHeight() using the current settings for TextHeight() and Font().
double ON_DimStyle::TextWidthOfEnSpace | ( | ) | const |
Returns: Width of an en space (U+2002), also called a nut, in the same units as TextHeight() using the current settings for TextHeight() and Font().
double ON_DimStyle::TextWidthOfFigureSpace | ( | ) | const |
Returns: Width of a figure space (U+2007) in the same units as TextHeight() using the current settings for TextHeight() and Font(). Remarks: Typically close to the average with of a decimal digit (0123456789) and used to line up columns of numeric values.
double ON_DimStyle::TextWidthOfIdeographicSpace | ( | ) | const |
Returns: Width of an ideographic space (U+3000) in the same units as TextHeight() using the current settings for TextHeight() and Font(). Remarks: The width of ideographic (CJK) characters.
double ON_DimStyle::TextWidthOfMediumMathematicalSpace | ( | ) | const |
Returns: Width of a medium mathematical space (U+205F) in the same units as TextHeight() using the current settings for TextHeight() and Font().
double ON_DimStyle::TextWidthOfSpace | ( | ) | const |
Returns: Width of an em space (U+2003), also called a mutton, in the same units as TextHeight() using the current settings for TextHeight() and Font().
tolerance_format ON_DimStyle::ToleranceFormat | ( | ) | const |
|
static |
double ON_DimStyle::ToleranceHeightScale | ( | ) | const |
double ON_DimStyle::ToleranceLowerValue | ( | ) | const |
int ON_DimStyle::ToleranceResolution | ( | ) | const |
double ON_DimStyle::ToleranceUpperValue | ( | ) | const |
ON_DimStyle::suppress_zero ON_DimStyle::ToleranceZeroSuppress | ( | ) | const |
OBSOLETE - The ZeroSuppress() or AlternateZeroSuppress() property is used to format tolerance display. ToleranceZeroSuppress() is ignored.
ON::LengthUnitSystem ON_DimStyle::UnitSystem | ( | ) | const |
NOTE WELL: A dimstyle unit system was added in V6, but has never been fully used. The idea was this would make it easier to figure out what text height/ arrow size, ... actually meant. Especially in situations where model space and page space have different unit systems, and in more complex cases like text in instance definitions and inserting annotation from models with mismatched unit systems. It is used internally to get some scales properly set and use in limited merging contexts.
From a user's perspective, in Rhino 6 and Rhino 7 ON_DimStyle lengths like TextHeight(), ArrowSize(), ... are with respect to the context the annotation resides in. For example, if TextHeight() = 3.5, model units = meters, page units = millimters, and DimScale() = 1, then text created in model space will be 3.5 meters high and text created in page space will be 3.5 millimeters high.
Ideally, ON_DimStyle::UnitSystem() would specify the text height units and ON_DimStyle::DimScale() could be adjusted as model space extents require. Text in instance definitions would have a well defined height and references to those instance definitions would display predictably in both model space and page space. /summary>
bool ON_DimStyle::UnitSystemIsSet | ( | ) | const |
/ NOTE WELL: A dimstyle unit system was added in V6, but has never been fully used. / The idea was this would make it easier to figure out what text height/ arrow size, / ... actually meant. Especially in situations where model space and page space have / different unit systems, and in more complex cases like text in instance definitions / and inserting annotation from models with mismatched unit systems. / It is used internally to get some scales properly set and use in limited / merging contexts. / / From a user's perspective, in Rhino 6 and Rhino 7 ON_DimStyle lengths like TextHeight(), ArrowSize(), ... / are with respect to the context the annotation resides in. For example, if TextHeight() = 3.5, / model units = meters, page units = millimters, and DimScale() = 1, then / text created in model space will be 3.5 meters high and / text created in page space will be 3.5 millimeters high. / / Ideally, ON_DimStyle::UnitSystem() would specify the text height units / and ON_DimStyle::DimScale() cound be adjusted as model space extents require. / Text in instance definitions would have a well defined height and references / to those instance definitions would display predictably in both model space and page space. Returns: true if the unit system is set to an explicit valid length unit.
|
static |
|
static |
For converting to and from V5 Dimstyles.
double ModelSize() const; void SetModelSize(double size); double PaperSize() const; void SetPaperSize(double size);
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
overridevirtual |
virtual
Reimplemented from ON_Object.
ON_DimStyle::suppress_zero ON_DimStyle::ZeroSuppress | ( | ) | const |
|
static |
|
static |
Description: The valid choices for ON_DimStyle::suppress_zero depend on the dimension length display. Parameters: zero_suppress - [in] length_display - [in] Returns: True if zero_suppression is a valid setting when DimensionLengthDiplay = dimension_length_display Remarks: LengthDisplay: Inch fractional – No zero suppression matches LengthDisplay : FeetAndInches – Zero suppress can be None, Suppress zero feet, Suppress zero inches or Suppress zero feet and zero inches. LengthDisplay : ModelUnits or any Decimal mode – Zero suppress can be None, Suppress leading, Suppress trailing or Suppress leading and trailing.
|
friend |
|
static |
index = -1, unique and persistent id.
|
static |
index = -8, unique and persistent id.
|
static |
index = -9, unique and persistent id.
|
static |
index = -4, unique and persistent id.
|
static |
index = -2, unique and persistent id.
|
static |
index = -3, unique and persistent id.
|
static |
index = -7, unique and persistent id.
|
static |
index = -10, unique and persistent id.
|
static |
index = -6, unique and persistent id.
|
static |
index = -5, unique and persistent id.
|
static |
index = -11, unique and persistent id.
|
static |
index = -12, unique and persistent id.
|
static |
Predefined default dimension styles always available.
index = ON_UNSET_INT_INDEX, id = nil.