|
| ON_Layer () ON_NOEXCEPT |
|
| ON_Layer (const ON_Layer &) |
|
| ~ON_Layer ()=default |
|
ON_Color | Color () const |
|
bool | CopyPerViewportSettings (ON_UUID source_viewport_id, ON_UUID destination_viewport_id) |
| Copies all per viewport settings for the source_viewport_id More...
|
|
bool | CopyPerViewportSettings (const ON_Layer &source_layer, ON_UUID viewport_id, unsigned int settings_mask) |
| Copies specified per viewport settings from a source layer to this layer. More...
|
|
void | CullPerViewportSettings (int viewport_id_count, const ON_UUID *viewport_id_list) |
| Cull unused per viewport layer settings. More...
|
|
void | DeletePerViewportColor (const ON_UUID &viewport_id) |
| Remove any per viewport layer color setting so the layer's overall setting will be used for all viewports. More...
|
|
void | DeletePerViewportPlotColor (const ON_UUID &viewport_id) |
| Remove any per viewport plot color setting so the layer's overall setting will be used for all viewports. More...
|
|
void | DeletePerViewportPlotWeight (const ON_UUID &viewport_id) |
| Remove any per viewport plot weight setting so the layer's overall setting will be used for all viewports. More...
|
|
void | DeletePerViewportSettings (const ON_UUID &viewport_id) const |
| Delete per viewport layer settings. More...
|
|
void | DeletePerViewportVisible (const ON_UUID &viewport_id) |
| Remove any per viewport visibility setting so the layer's overall setting will be used for all viewports. More...
|
|
void | Dump (ON_TextLog &) const override |
| Creates a text dump of the object. More...
|
|
void | GetPerViewportVisibilityViewportIds (ON_SimpleArray< ON_UUID > &viewport_id_list) const |
| Get a list of the viewport ids of viewports that that have per viewport visibility settings that override the default layer visibility setting ON_Layer::m_bVisible. More...
|
|
bool | HasPerViewportSettings (ON_UUID viewport_id, unsigned int settings_mask) const |
|
bool | HasPerViewportSettings (const ON_UUID &viewport_id) const |
|
int | IgesLevel () const |
|
bool | IsValid (class ON_TextLog *text_log=nullptr) const override |
| Tests an object to see if its data members are correctly initialized. More...
|
|
bool | IsVisible () const |
|
bool | IsVisibleAndLocked () const |
|
bool | IsVisibleAndNotLocked () const |
|
int | LinetypeIndex () const |
|
ON::object_type | ObjectType () const override |
| Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on. More...
|
|
ON_Layer & | operator= (const ON_Layer &)=default |
|
ON_UUID | ParentLayerId () const |
|
bool | PersistentLocking () const |
| The persistent locking setting is used for layers that can be locked by a "parent" object. A common case is when a layer is a child layer (ON_Layer.m_parent_id is not nil). In this case, when a parent layer is locked, then child layers are also locked. The persistent locking setting determines what happens when the parent is unlocked again. More...
|
|
bool | PersistentVisibility () const |
| The persistent visbility setting is used for layers whose visibilty can be changed by a "parent" object. A common case is when a layer is a child layer (ON_Layer.m_parent_id is not nil). In this case, when a parent layer is turned off, then child layers are also turned off. The persistent visibility setting determines what happens when the parent is turned on again. More...
|
|
ON_Color | PerViewportColor (ON_UUID viewport_id) const |
|
bool | PerViewportIsVisible (ON_UUID viewport_id) const |
|
bool | PerViewportPersistentVisibility (ON_UUID viewport_id) const |
|
ON_Color | PerViewportPlotColor (ON_UUID viewport_id) const |
|
double | PerViewportPlotWeight (ON_UUID viewport_id) const |
|
ON__UINT32 | PerViewportSettingsCRC () const |
| The PerViewportSettingsCRC() can be used to determine when layers have different per viewport settings. More...
|
|
ON_Color | PlotColor () const |
|
double | PlotWeight () const |
| Get the weight (thickness) of the plotting pen. More...
|
|
bool | Read (ON_BinaryArchive &) override |
| Low level archive writing tool used by ON_BinaryArchive::ReadObject(). More...
|
|
int | RenderMaterialIndex () const |
|
void | SetColor (ON_Color layer_color) |
| Set the color used by objects on this layer that do not have a per object color set More...
|
|
bool | SetIgesLevel (int) |
|
bool | SetLinetypeIndex (int linetype_index) |
| Set the index of the linetype used by objects on this layer that do not have a per object lintypes More...
|
|
void | SetLocked (bool bLocked) |
| Controls layer locked More...
|
|
void | SetParentLayerId (ON_UUID parent_layer_id) |
|
void | SetPersistentLocking (bool bPersistentLocking) |
| Set the persistent locking setting for this layer. More...
|
|
void | SetPersistentVisibility (bool bPersistentVisibility) |
| Set the persistent visibility setting for this layer. More...
|
|
void | SetPerViewportColor (ON_UUID viewport_id, ON_Color layer_color) |
| Set the color used by objects on this layer that do not have a per object color set More...
|
|
void | SetPerViewportPersistentVisibility (ON_UUID viewport_id, bool bPersistentVisibility) |
| This function allows per viewport setting the child visibility property. Parameters viewport_id - [in] bPersistentVisibility - [in] More...
|
|
void | SetPerViewportPlotColor (ON_UUID viewport_id, ON_Color plot_color) |
|
void | SetPerViewportPlotWeight (ON_UUID viewport_id, double plot_weight_mm) |
| Set the weight of the plotting pen. More...
|
|
void | SetPerViewportVisible (ON_UUID viewport_id, bool bVisible) |
| Controls layer visibility in specific viewports. More...
|
|
void | SetPlotColor (ON_Color plot_color) |
| Set the plotting color used by objects on this layer that do not have a per object plotting color set More...
|
|
void | SetPlotWeight (double plot_weight_mm) |
| Set the weight of the plotting pen. More...
|
|
bool | SetRenderMaterialIndex (int) |
|
void | SetVisible (bool bVisible) |
| Controls layer visibility More...
|
|
void | UnsetPersistentLocking () |
| Remove any explicity persistent locking settings from this layer. More...
|
|
void | UnsetPersistentVisibility () |
| Remove any explicit persistent visibility setting from this layer. When persistent visibility is not explictly set, the value of ON_Layer::IsVisible() is used. More...
|
|
void | UnsetPerViewportPersistentVisibility (ON_UUID viewport_id) |
|
bool | UpdateReferencedComponents (const class ON_ComponentManifest &source_manifest, const class ON_ComponentManifest &destination_manifest, const class ON_ManifestMap &manifest_map) override |
| 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 | UpdateViewportIds (const ON_UuidPairList &viewport_id_map) |
| Use UpdateViewportIds() to change viewport ids in situations like merging when a viewport id conflict requires the viewport ids in a file to be changed. More...
|
|
bool | Write (ON_BinaryArchive &) const override |
| Low level archive writing tool used by ON_BinaryArchive::WriteObject(). More...
|
|
| 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...
|
|
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...
|
|
int | UserStringCount () const |
|