Top level OpenNURBS objects have geometry and attributes. The geometry is stored in some class derived from ON_Geometry and the attributes are stored in an ON_3dmObjectAttributes class. Examples of attributes are object name, object id, display attributes, group membership, layer membership, and so on.
More...
|
| | ON_3dmObjectAttributes () |
| | attributes of geometry and dimension table objects More...
|
| |
| | ~ON_3dmObjectAttributes () |
| |
| bool | AddDisplayMaterialRef (ON_DisplayMaterialRef display_material) |
| | Add a display material reference to the attributes. If there is an existing entry with a matching viewport id, the existing entry is replaced. More...
|
| |
| void | AddToGroup (int) |
| |
| unsigned int | ApplyParentalControl (const ON_3dmObjectAttributes &parent_attributes, const ON_Layer &parent_layer, unsigned int control_limits=0xFFFFFFFF) |
| | If "this" has attributes (color, plot weight, ...) with "by parent" sources, then the values of those attributes on parent_attributes are copied. More...
|
| |
| ON::object_color_source | ColorSource () const |
| |
| const ON_MeshParameters * | CustomRenderMeshParameters () const |
| |
| void | Default () |
| | Initializes all attributes to the default values. More...
|
| |
| void | DeleteCustomRenderMeshParameters () |
| | Deletes any per object mesh parameters. More...
|
| |
| int | DisplayMaterialRefCount () const |
| |
| void | Dump (ON_TextLog &) const override |
| | virtual More...
|
| |
| bool | EnableCustomRenderMeshParameters (bool bEnable) |
| |
| bool | FindDisplayMaterialId (const ON_UUID &viewport_id, ON_UUID *display_material_id=nullptr) const |
| | Quick way to see if a viewport has a special material. More...
|
| |
| bool | FindDisplayMaterialRef (const ON_DisplayMaterialRef &search_material, ON_DisplayMaterialRef *found_material=nullptr) const |
| | display material references More...
|
| |
| int | GetGroupList (ON_SimpleArray< int > &) const |
| |
| int | GroupCount () const |
| | group interface More...
|
| |
| const int * | GroupList () const |
| |
| bool | IsInGroup (int) const |
| | Returns true if object is in group with the specified index. More...
|
| |
| bool | IsInGroups (int, const int *) const |
| | Returns true if the object is in any of the groups in the list. More...
|
| |
| bool | IsInGroups (const ON_SimpleArray< int > &) const |
| | Returns true if object is in any of the groups in the list. More...
|
| |
| bool | IsInstanceDefinitionObject () const |
| | Use this query to determine if an object is part of an instance definition. More...
|
| |
| 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 |
| |
| ON::object_linetype_source | LinetypeSource () const |
| |
| ON::object_material_source | MaterialSource () const |
| | Determine if the simple material should come from the object or from it's layer. High quality rendering plug-ins should use m_rendering_attributes. More...
|
| |
| ON::object_mode | Mode () const |
| | Interface ////////////////////////////////////////////////////////. More...
|
| |
| const ON_wString | Name () const |
| |
| bool | operator!= (const ON_3dmObjectAttributes &) const |
| |
| bool | operator== (const ON_3dmObjectAttributes &) const |
| |
| ON::plot_color_source | PlotColorSource () const |
| |
| ON::plot_weight_source | PlotWeightSource () const |
| |
| bool | Read (ON_BinaryArchive &) override |
| | virtual More...
|
| |
| void | RemoveAllDisplayMaterialRefs () |
| | Remove a the entire display material reference list. More...
|
| |
| bool | RemoveDisplayMaterialRef (ON_UUID viewport_id, ON_UUID display_material_id=ON_nil_uuid) |
| | Remove a display material reference from the list. More...
|
| |
| void | RemoveFromAllGroups () |
| | Removes object from all groups. More...
|
| |
| void | RemoveFromGroup (int) |
| |
| void | RemoveFromTopGroup () |
| | removes the object from the last group in the group list More...
|
| |
| void | SetColorSource (ON::object_color_source) |
| |
| bool | SetCustomRenderMeshParameters (const class ON_MeshParameters &mp) |
| |
| void | SetLinetypeSource (ON::object_linetype_source) |
| |
| void | SetMaterialSource (ON::object_material_source ms) |
| | Specifies if the simple material should be the one indicated by the material index or the one indicated by the object's layer. More...
|
| |
| void | SetMode (ON::object_mode) |
| |
| bool | SetName (const wchar_t *name, bool bFixInvalidName) |
| |
| void | SetPlotColorSource (ON::plot_color_source) |
| |
| void | SetPlotWeightSource (ON::plot_weight_source) |
| |
| void | SetVisible (bool bVisible) |
| | Controls object visibility More...
|
| |
| unsigned int | SizeOf () const override |
| | virtual More...
|
| |
| int | TopGroup () const |
| |
| bool | Transform (const ON_Xform &xform) |
| |
| 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...
|
| |
| bool | Write (ON_BinaryArchive &) const override |
| | virtual More...
|
| |
| | 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 ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
| | 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...
|
| |
| 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...
|
| |
| virtual ON_UUID | ModelObjectId () const |
| | 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 | 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...
|
| |
| int | UserStringCount () const |
| |
Top level OpenNURBS objects have geometry and attributes. The geometry is stored in some class derived from ON_Geometry and the attributes are stored in an ON_3dmObjectAttributes class. Examples of attributes are object name, object id, display attributes, group membership, layer membership, and so on.
7 January 2003 Dale Lear Derived from ON_Object so ON_UserData can be attached to ON_3dmObjectAttributes.