#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_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 (const ON_3dmAnnotationSettings &src) | |
| ~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 discription 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_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 |
| 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 | 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_DimStyle & | operator= (const ON_DimStyle &)=default |
| 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 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 discription 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 | 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 | 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 (ON_ScaleValue sv) |
| void | SetDimScale (double left_val, ON::LengthUnitSystem left_us, double right_val, ON::LengthUnitSystem right_us) |
| void | SetDimScale (double scale) |
| 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 | 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 | 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 | 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) |
| 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> 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... | |
| ON_Color | TextColor () const |
| ON::object_color_source | TextColorSource () 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 |
| 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 |
| 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> More... | |
| bool | UnitSystemIsSet () const |
| bool | Write (ON_BinaryArchive &) const override |
| virtual More... | |
| ON_DimStyle::suppress_zero | ZeroSuppress () const |
Public Member Functions inherited from ON_ModelComponent | |
| 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) |
| bool | SetId (const ON_UUID &component_id) |
| const ON_UUID & | SetId () |
| 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 |
Public Member Functions inherited from ON_Object | |
| 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_ComponentStatus states_to_clear) const |
| virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
| unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
| void | CopyUserData (const ON_Object &source_object) |
| 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 | IsKindOf (const ON_ClassId *pClassId) const |
| virtual void | MarkAggregateComponentStatusAsNotCurrent () const |
| virtual void | MemoryRelocate () |
| unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
| void | MoveUserData (ON_Object &source_object) |
| 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) |
| 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 Member Functions | |
| static ON_DimStyle::angle_format | AngleFormatFromUnsigned (unsigned int format_as_unsigned) |
| static ON_DimStyle::centermark_style | CentermarkStyleFromUnsigned (unsigned int centermark_as_unsigned) |
| static ON_DimStyle::ContentAngleStyle | ContentAngleStyleFromUnsigned (unsigned int alignment_as_unsigned) |
| static ON_DimStyle * | CreateFromFont (const ON_Font *font_characteristics, double model_space_text_scale, const ON_DimStyle *dimstyle_settings, const class ON_ComponentManifest *manifest, ON_DimStyle *destination) |
| static const ON_DimStyle | CreateFromProperties (const ON_DimStyle &parent_dim_style, ON::AnnotationType annotation_type, const ON_Font *font, double model_space_text_scale, double text_height, ON::LengthUnitSystem text_height_unit_system, ON::TextVerticalAlignment valign, ON::TextHorizontalAlignment halign) |
| static const ON_DimStyle | CreateFromProperties (const ON_DimStyle &parent_dim_style, ON::AnnotationType annotation_type, const ON_Font *font, double model_space_text_scale, double text_height, ON::LengthUnitSystem text_height_unit_system, ON::TextVerticalAlignment valign, ON::TextHorizontalAlignment halign, ON::TextOrientation orientation, ON_DimStyle::TextLocation dim_text_location) |
| static const ON_DimStyle | CreateFromProperties (const ON_DimStyle &parent_dim_style, ON::AnnotationType annotation_type, const ON_Font *font, double model_space_text_scale, double text_height, ON::LengthUnitSystem text_height_unit_system) |
| static const class ON_DimStyle & | DimStyleOrDefault (const class ON_DimStyle *dimstyle) |
| static ON::OBSOLETE_DistanceDisplayMode | DistanceDisplayModeFromLengthFormat (ON_DimStyle::OBSOLETE_length_format) |
| convert ON_DimStyle::OBSOLETE_length_format enum to ON::OBSOLETE_DistanceDisplayMode enum More... | |
| static ON_DimStyle::field | FieldFromUnsigned (unsigned int field_as_unsigned) |
| static const ON_DimStyle * | FromModelComponentRef (const class ON_ModelComponentReference &model_component_reference, const ON_DimStyle *none_return_value) |
| static ON_DimStyle::leader_curve_type | LeaderCurveTypeFromUnsigned (unsigned int type_as_unsigned) |
| static ON_DimStyle::LengthDisplay | LengthDisplayFromUnitsAndFormat (ON::LengthUnitSystem units, ON_DimStyle::OBSOLETE_length_format lengthformat) |
| static ON_DimStyle::LengthDisplay | LengthDisplayFromUnsigned (unsigned int length_display_as_unsigned) |
| static bool | LengthDisplayIsDecimal (ON_DimStyle::LengthDisplay dimension_length_display) |
| static ON_DimStyle::OBSOLETE_length_format | LengthFormatFromDistanceDisplayMode (ON::OBSOLETE_DistanceDisplayMode) |
| convert ON::OBSOLETE_DistanceDisplayMode enum to ON_DimStyle::OBSOLETE_length_format enum More... | |
| static ON::LengthUnitSystem | LengthUnitSystemFromLengthDisplay (ON_DimStyle::LengthDisplay dimension_length_display) |
| static ON_DimStyle::OBSOLETE_length_format | OBSOLETE_LengthFormatFromLengthDisplay (ON_DimStyle::LengthDisplay dimension_length_display, unsigned int model_serial_number) |
| static ON_DimStyle::OBSOLETE_length_format | OBSOLETE_LengthFormatFromLengthDisplay (ON_DimStyle::LengthDisplay dimension_length_display, ON::LengthUnitSystem model_unit_system) |
| static ON_DimStyle::OBSOLETE_length_format | OBSOLETE_LengthFormatFromUnsigned (unsigned int format_as_unsigned) |
| static ON_DimStyle::stack_format | StackFormatFromUnsigned (unsigned int format_as_unsigned) |
| static const ON_DimStyle & | SystemDimstyleFromContentHash (const ON_SHA1_Hash &content_hash) |
| static const ON_DimStyle & | SystemDimstyleFromId (ON_UUID id) |
| static const ON_DimStyle & | SystemDimstyleFromIndex (int index) |
| static const ON_DimStyle & | SystemDimstyleFromName (const ON_NameHash &name_hash) |
| static ON_DimStyle::TextLocation | TextLocationFromUnsigned (unsigned int dim_text_location_as_unsigned) |
| static ON_DimStyle::tolerance_format | ToleranceFormatFromUnsigned (unsigned int format_as_unsigned) |
| static int | V5AngleFormat (ON_DimStyle::angle_format v6format) |
| static int | V5ArrowType (ON_Arrowhead::arrow_type v6type) |
| For converting to and from V5 Dimstyles. More... | |
| static int | V5LengthFormat (ON_DimStyle::OBSOLETE_length_format v6format) |
| static int | V5MaskColorSourceFromV6MaskType (ON_TextMask::MaskType mask_type) |
| static int | V5ToleranceFormat (ON_DimStyle::tolerance_format v6format) |
| static ON_DimStyle::angle_format | V6AngleFormat (int v5format) |
| static ON_Arrowhead::arrow_type | V6ArrowType (int v5type) |
| static ON_DimStyle::OBSOLETE_length_format | V6LengthFormat (int v5format) |
| static ON_TextMask::MaskType | V6MaskTypeFromV5MaskColorSource (int v5_mask_color_source) |
| static ON_DimStyle::tolerance_format | V6ToleranceFormat (int v5format) |
| static ON_DimStyle::suppress_zero | ZeroSuppressFromUnsigned (unsigned int suppress_ero_as_unsigned) |
| static bool | ZeroSuppressMatchesLengthDisplay (ON_DimStyle::suppress_zero zero_suppress, ON_DimStyle::LengthDisplay length_display) |
Static Public Member Functions inherited from ON_ModelComponent | |
| static int | CompareId (const ON_ModelComponent &a, const ON_ModelComponent &b) |
| static int | CompareIdAndName (const ON_ModelComponent &a, const ON_ModelComponent &b) |
| static int | CompareName (const ON_ModelComponent &a, const ON_ModelComponent &b) |
| static int | CompareNameAndId (const ON_ModelComponent &a, const ON_ModelComponent &b) |
| static int | CompareNameExact (const ON_ModelComponent &a, const ON_ModelComponent &b) |
| static ON_ModelComponent::Type | ComponentTypeFromUnsigned (unsigned int component_type_as_unsigned) |
| static bool | ComponentTypeIsValid (ON_ModelComponent::Type component_type) |
| static bool | ComponentTypeIsValidAndNotMixed (ON_ModelComponent::Type component_type) |
| static const ON_wString | ComponentTypeToString (ON_ModelComponent::Type) |
| static bool | IndexRequired (ON_ModelComponent::Type component_type) |
| static unsigned int | Internal_SystemComponentHelper () |
| For internal use. Never call this function. More... | |
| static const wchar_t * | IsNamePathSeparator (const wchar_t *s) |
| *static const wchar_t * | IsReferencePrefixDelimiter (const wchar_t *s) |
| static const wchar_t * | IsReferencePrefixSeparator (const wchar_t *s) |
| static bool | IsValidComponentName (const wchar_t *candidate_component_name) |
| static bool | IsValidComponentName (const ON_wString &candidate_component_name) |
| static bool | IsValidComponentName (size_t length, const wchar_t *candidate_component_name) |
| static bool | IsValidComponentName (const class ON_ComponentManifest &model_manfest, const ON_ModelComponent &model_component, bool bPermitReferencePrefix, ON_wString &valid_name) |
| static bool | IsValidComponentNameFirstCodePoint (ON__UINT32 unicode_code_point) |
| static bool | IsValidComponentNameFirstCodePoint (int length, const wchar_t *candidate_component_name) |
| static const ON_wString | NameLeaf (const wchar_t *name) |
| static const ON_wString | NameParent (const wchar_t *name, bool bIncludeReference) |
| static const ON_wString | NameReferencePrefix (const wchar_t *name) |
| static const ON_wString | RemoveAllReferencePrefixDelimiters (const wchar_t *name) |
| static const ON_wString | RemoveReferencePrefix (const wchar_t *name) |
| static const ON_wString | RemoveTrailingNamePathSeparator (const wchar_t *name) |
| static const ON_wString | RemoveTrailingReferencePrefixDelimiter (const wchar_t *name) |
| static const ON_wString | RemoveTrailingReferencePrefixSeparator (const wchar_t *name) |
| static void | SplitName (const wchar_t *name, ON_wString &reference_prefix, ON_wString &name_parent, ON_wString &name_leaf) |
| static bool | UniqueNameIgnoresCase (ON_ModelComponent::Type component_type) |
| static bool | UniqueNameIncludesParent (ON_ModelComponent::Type component_type) |
| static bool | UniqueNameRequired (ON_ModelComponent::Type component_type) |
Static Public Attributes | |
| static const ON_DimStyle | Default |
| index = -1, 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 | DefaultMillimeterLarge |
| index = -6, unique and persistent id. More... | |
| static const ON_DimStyle | DefaultMillimeterSmall |
| index = -5, unique and persistent id. More... | |
| static const ON_DimStyle | Unset |
| Predefined default dimension styles always available. More... | |
Static Public Attributes inherited from ON_ModelComponent | |
| 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 | |
Protected Member Functions inherited from ON_ModelComponent | |
| 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 |
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 |
| LengthResolution | OBSOLETE_LengthFormat_ = 11,. |
| 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 discription 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 descpription of this parameter. OBSOLETE_DimensionUnitSystem_ = 107, OBSOLETE_AlternateDimensionUnitSystem_ = 108, |
| AlternateDimensionLengthDisplay | Alternate dimension length display. See ON_DimStyle::AlternateDimensionLengthDisplay() for a descpription of this parameter. |
| 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 |
|
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 discription 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_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 atttributes 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 |
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 paramter 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::DefaultMillimeterArchitecture. 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 |
|
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.
| 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 |
|
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 | ) |
Descripton: 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 independet 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.
|
static |
Parameters: dimension_length_display - [in] model_serial_number - [in] 0: Ignore model settings >0: dimstyle.ModelSerialNumber()
|
static |
|
static |
|
default |
| 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 overide 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 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 discription 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::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::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 | ( | ON_ScaleValue | sv | ) |
| 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::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::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::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::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 | ) |
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>
| 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. Parameters: bUseName - [in] Consider the name when assinging a unit system. For example, a dimension style name "Millimters Small" would be assinged a unit system of millimeters. source_unit_system - [in] unit system in the model or file where the dimension style originated. destination_unit_system - [in] unit system in the model or file 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.
| ON_Color ON_DimStyle::TextColor | ( | ) | const |
| ON::object_color_source ON_DimStyle::TextColorSource | ( | ) | const |
| 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 |
| 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 |
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>
| bool ON_DimStyle::UnitSystemIsSet | ( | ) | const |
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 = -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 = -6, unique and persistent id.
|
static |
index = -5, unique and persistent id.
|
static |
Predefined default dimension styles always available.
index = ON_UNSET_INT_INDEX, id = nil.