|
| 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 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. More...
|
|
double | AlternateLengthFactor () const |
| AlternateLengthFactor is a rarely used. See Length factor for a discription of this property. 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 () |
| All dimension style settings identified the ON_DimStyle::field enum, except Name and Id, are inherited from the parent dimension style. More...
|
|
bool | CompareDimstyle (const ON_DimStyle &src) const |
|
bool | CompareFields (const ON_DimStyle &src) const |
|
const class ON_SHA1_Hash & | ContentHash () const |
| Two dimension styles have identical content if and only if they have identical values of ContentHash(). More...
|
|
const ON_DimStyle | CreateOverrideCandidate () const |
| Create a dimstyle from this that is configured to be customized for use in creating a new annotation object. More...
|
|
ON_DimStyle::LengthDisplay | DimensionLengthDisplay () const |
| Dimension length units and format 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. 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 |
|
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 |
|
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 |
|
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. 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) |
| For every dimension style property identified by a field_id ON_DimStyle::field enum, except Name and Index, do the following: More...
|
|
void | OverrideFieldsWithDifferentValues (const ON_DimStyle &source, const ON_DimStyle &parent) |
| 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. More...
|
|
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 More...
|
|
void | SetAlternateLengthFactor (double) |
| AlternateLengthFactor is a rarely used. See Length factor for a discription of this property. 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 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) |
| Set the font used to render text. More...
|
|
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. 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. More...
|
|
void | SetUnitSystemFromContext (bool bUseName, ON::LengthUnitSystem source_unit_system, ON::LengthUnitSystem destination_unit_system) |
| 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. More...
|
|
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 |
| Two dimension styles have identical text orientation, glyph content, and size parameters if and only if the have identical values of TextPositionPropertiesHash(). More...
|
|
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. 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 |
| Sets and locks the component type attribute. More...
|
|
| 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) |
| Change the name of a component and optionally update a manifest. More...
|
|
bool | ClearComponentType () |
| Set the model serial number value to the ON_ModelComponent::Unset.Type() and change the state so TypeIsSet() returns false. More...
|
|
bool | ClearId () |
| Set the component id value to the ON_ModelComponent::Unset.ModelComponentId() and change the state so ModelComponentIdIsSet() returns false. More...
|
|
bool | ClearIndex () |
| Set the component index value to the ON_ModelComponent::Unset.ModelComponentIndex() and change the state so ModelComponentIndexIsSet() returns false. More...
|
|
unsigned int | ClearModelComponentAttributes (unsigned int attributes_filter) |
| Writes the attributes identified by the component_filter parameter. More...
|
|
bool | ClearModelComponentStatus () |
|
bool | ClearModelSerialNumber () |
| Sets the model serial number, reference model serial number and instance definition model serial number values to 0 and flags these values as unset. More...
|
|
bool | ClearName () |
| Set the component name value to the ON_ModelComponent::Unset.Name() and change the state so NameIsSet() and DeletedNameIsSet() both return false. More...
|
|
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 |
| Whenever an attribute is changed, the content version number is incremented. The ContentVersionNumber() is commonly used by consumers of the model component attributes to trigger updates when needed. More...
|
|
unsigned int | CopyFrom (const ON_ModelComponent &src, unsigned int attributes_filter) |
|
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const override |
| Returns a CRC calculated from the information that defines the object. This CRC can be used as a quick way to see if two objects are not identical. More...
|
|
const ON_wString | DeletedName () const |
|
const ON_NameHash & | DeletedNameHash () const |
|
bool | DeletedNameIsSet () const |
|
bool | DeleteName () |
| If NameIsSet() is true, then the name is deleted in a waty that can be undone by calling UndeleteName() and the DeletedNameIsSet() property is changed to true. More...
|
|
void | Dump (ON_TextLog &) const override |
| Creates a text dump of the object. More...
|
|
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 () |
| If the it is nil, call SetId(). More...
|
|
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 |
| Tests an object to see if its data members are correctly initialized. More...
|
|
void | LockAllSettingsExceptName () |
|
void | LockComponentType () |
| Calling LockType() will prhibit future changes to the Type attribute. More...
|
|
void | LockId () |
| Calling LockModelComponentId() will prhibit future changes to the ModelComponentId attribute. More...
|
|
void | LockIndex () |
| Calling LockModelComponentIndex() will prhibit future changes to the ModelComponentIndex attribute. More...
|
|
void | LockModelComponentStatus () |
|
void | LockModelSerialNumber () |
| Calling LockModelSerialNumber() will prohibit future changes to the ModelSerialNumber(), ReferenceModelSerialNumber(), and InstanceDefinitionModelSerialNumber() attributes. More...
|
|
void | LockName () |
| Calling LockName() will prohibit future changes to the Name attribute. More...
|
|
void | LockParentId () |
|
ON_ComponentStatus | ModelComponentStatus () const |
|
bool | ModelComponentStatusIsLocked () const |
|
bool | ModelComponentStatusIsSet () const |
|
ON_UUID | ModelObjectId () const override |
| All objects in an opennurbs model have an id ( ON_Layer.m_layer_id, ON_Font.m_font_id, ON_Material.m_material_id, ON_3dmObjectAttributes.m_uuid ). More...
|
|
unsigned int | ModelSerialNumber () const |
|
bool | ModelSerialNumberIsLocked () const |
|
bool | ModelSerialNumberIsSet () const |
|
const ON_wString | Name () const |
|
const wchar_t * | NameAsPointer () const |
| Expert user function that gets a pointer to the name. More...
|
|
const ON_NameHash & | NameHash () const |
| Get a platform independent hash of the name suitable for equality testing and binary searching. When testing for equality or doing binary searches, using ON_NameHash values is faster than using the CompareName or ON_wString::CompareAttributeName. More...
|
|
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 () |
| Sets the id to a new value created by ON_CreateUuid() and locks the id attribute so it cannot be changed. More...
|
|
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 () |
| Sets the id to a new value created by ON_CreateUuid(). More...
|
|
bool | SetIdentification (const class ON_ComponentManifestItem &manifest_item, const wchar_t *manifest_name, bool bSetId, bool bParentId, bool bSetName, bool bSetIndex) |
| Set a component's id, name and index to the manifest_item values. More...
|
|
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) |
| Specify the model that is managing this component. More...
|
|
bool | SetModelSerialNumber (unsigned int model_serial_number, unsigned int reference_model_serial_number, unsigned int instance_definition_model_serial_number) |
| Specify the model that is managing this component. More...
|
|
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 |
| Call whenever a component status setting is modifed by directly changing it on a component in a way that will result in any saved information about the parent object's aggretate component status becoming invalid. More...
|
|
bool | AttachUserData (class ON_UserData *pUserData) |
| Attach user data to an object. More...
|
|
unsigned int | ClearAllComponentStates () const |
| Set all active level component states to ON_ComponentStatus::NoneSet. More...
|
|
virtual unsigned int | ClearComponentStates (ON_ComponentStatus states_to_clear) const |
| Clear the specified states on every component. More...
|
|
virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
| Clear states on an individual component. More...
|
|
unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
| Expert user tool that copies user data items with positive values of ON_UserData.m_userdata_copycount from source_object to "this. More...
|
|
void | CopyUserData (const ON_Object &source_object) |
| Calls CopyUserData(source_object,ON_Object::UserDataConflictResolution::source_object). More...
|
|
virtual bool | DeleteComponents (const ON_COMPONENT_INDEX *ci_list, size_t ci_count) |
| Delete the portions of the object identified in ci_list[]. More...
|
|
virtual void | DestroyRuntimeCache (bool bDelete=true) |
| Expert user function. If you are using openNURBS in its default configuration to read and write 3dm archives, you never need to call this function. Many objects employ lazy creation of (runtime) caches that save information to help speed geometric calculations. This function will destroy all runtime information. More...
|
|
bool | DetachUserData (class ON_UserData *pUserData) |
| Remove user data from an object. More...
|
|
void | EmergencyDestroy () |
| Sets m_user_data_list = 0. More...
|
|
class ON_UserData * | FirstUserData () const |
| User data is stored as a linked list of ON_UserData classes. FirstUserData gets the first item in the linked list. This is the most recent item attached using AttachUserData(). Remark: To iterate through all the user data on an object, call FirstUserData() and then use ON_UserData::Next() to traverse the list. More...
|
|
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 |
| Get a pointer to user data. More...
|
|
bool | GetUserString (const wchar_t *key, ON_wString &string_value) const |
| Get user string from the object. More...
|
|
int | GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const |
| Get a list of all user string keys on the object. More...
|
|
int | GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const |
| Get a list of all user strings on the object. More...
|
|
bool | IsKindOf (const ON_ClassId *pClassId) const |
| Low level tool to test if an object is derived from a specified class. More...
|
|
virtual void | MarkAggregateComponentStatusAsNotCurrent () const |
| Call whenever a component status setting is modifed by directly changing it on a component in a way that will result in any saved information about the parent object's aggretate component status becoming invalid. More...
|
|
virtual void | MemoryRelocate () |
| The MemoryRelocate() function is called when an object's location in memory is changed. For example, if an object resides in a chunk of memory that is grown by calling a realloc that has to allocate a new chunk and copy the contents of the old chunk to the new chunk, then the location of the object's memory changes. In practice this happens when classes derived from ON_Object are stored in dynamic arrays, like the default implementation of ON_ObjectArray<>'s that use realloc to grow the dynamic array. More...
|
|
unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
| Expert user tool that moves user data items from source_object to "this. More...
|
|
void | MoveUserData (ON_Object &source_object) |
| Calls MoveUserData(source_object,ON_Object::UserDataConflictResolution::source_object,true). More...
|
|
virtual ON::object_type | ObjectType () const |
| Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on. More...
|
|
ON_Object & | operator= (const ON_Object &) |
|
void | PurgeUserData () |
| PurgeUserData() removes all user data from object. More...
|
|
virtual unsigned int | SetComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_set) const |
| Set states on an individual component. More...
|
|
virtual unsigned int | SetComponentStatus (ON_COMPONENT_INDEX component_index, ON_ComponentStatus status_to_copy) const |
| Copy status settings to an individual component. More...
|
|
bool | SetUserString (const wchar_t *key, const wchar_t *string_value) |
| Attach a user string to the object. This information will perisist through copy construction, operator=, and file IO. More...
|
|
int | SetUserStrings (int count, const ON_UserString *user_strings, bool bReplace) |
| Append entries to the user string list More...
|
|
void | TransformUserData (const class ON_Xform &xform) |
| Objects derived from ON_Geometry must call TransformUserData() in their Transform() member function. More...
|
|
virtual bool | UpdateReferencedComponents (const class ON_ComponentManifest &source_manifest, const class ON_ComponentManifest &destination_manifest, const class ON_ManifestMap &manifest_map) |
| Uses the destination_manifest to update references to other components. This is typically done when a component's references came from a "source" context and are being updated to the "destination" context. For example, inserting one model into another when index, id, and name conflicts need to be resolved at the time of insertion. More...
|
|
int | UserStringCount () const |
|
|
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) |
| 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, ...). More...
|
|
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) |
| Get an ON_DimStyle with the specified properties. More...
|
|
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) |
| The valid choices for ON_DimStyle::suppress_zero depend on the dimension length display. More...
|
|
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) |
| Test a string to see if its beginning matches the string returned by ON_ModelComponent::NamePathSeparator. More...
|
|
*</code > *</example > *static const wchar_t * | IsReferencePrefixDelimiter (const wchar_t *s) |
| Test a string to see if its beginning matches the string returned by ON_ModelComponent::NameReferenceDelimiter. More...
|
|
static const wchar_t * | IsReferencePrefixSeparator (const wchar_t *s) |
| Test a string to see if its beginning matches the string returned by ON_ModelComponent::NameReferenceSeparator. More...
|
|
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) |
| Remove all occurances of ON::NameReferenceDelimiter() from name. More...
|
|
static const ON_wString | RemoveReferencePrefix (const wchar_t *name) |
|
static const ON_wString | RemoveTrailingNamePathSeparator (const wchar_t *name) |
| Remove any trailing occurance of ON_ModelComponent::NamePathSeparator from name. More...
|
|
static const ON_wString | RemoveTrailingReferencePrefixDelimiter (const wchar_t *name) |
| Remove any trailing occurance of ON_ModelComponent::NameReferenceDelimiter from name. More...
|
|
static const ON_wString | RemoveTrailingReferencePrefixSeparator (const wchar_t *name) |
| Remove any trailing occurance of ON_ModelComponent::NameReferenceSeparator from name. More...
|
|
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) |
|