17 #if !defined(OPENNURBS_USERDATA_INC_) 18 #define OPENNURBS_USERDATA_INC_ 51 unsigned int SizeOf()
const override;
65 ON_UUID UserDataClassUuid()
const;
79 bool IsUnknownUserData()
const;
89 bool GetDescription(
ON_wString& description );
118 bool Archive()
const;
185 bool DeleteAfterWrite(
212 bool DeleteAfterRead(
252 unsigned int m_userdata_copycount;
291 unsigned int SizeOf()
const override;
331 unsigned int m_3dm_opennurbs_version_number;
357 static const ON_UUID m_archive_class_id_ctor;
358 static const ON_UUID m_archive_userdata_uuid_ctor;
359 static const ON_UUID m_archive_application_uuid_ctor;
360 static const unsigned int m_userdata_copycount_ctor;
361 static const ON_Xform m_userdata_xform_ctor;
364 static bool IsRdkMaterialInstanceIdUserData(
387 bool GetDescription(
ON_wString& description)
override;
396 bool DeleteAfterWrite(
402 bool DeleteAfterRead(
407 ON_UUID m_rdk_material_instance_id;
423 void Dump(
ON_TextLog& text_log )
const override;
426 unsigned int SizeOf()
const override;
429 ON__UINT32 DataCRC(ON__UINT32 current_remainder)
const override;
438 bool GetDescription(
ON_wString& description )
override;
441 bool Archive()
const override;
457 bool SetUserString(
const wchar_t* key,
const wchar_t* string_value );
459 bool GetUserString(
const wchar_t* key,
ON_wString& string_value )
const;
476 int SetUserStrings(
int count,
const ON_UserString* us,
bool bReplace );
499 unsigned int MoveUserDataFrom(
515 unsigned int CopyUserDataFrom(
538 unsigned int MoveUserDataTo(
561 unsigned int MoveUserDataTo(
568 bool IsValid(
class ON_TextLog* text_log =
nullptr )
const override;
587 bool IsValid(
class ON_TextLog* text_log =
nullptr )
const override;
589 ON__UINT32 DataCRC(ON__UINT32 current_remainder)
const override;
unsigned int SizeOf() const override
Overrides virtual ON_Object::SizeOf().
Definition: opennurbs_object.h:425
ON_UUID is a 16 byte universally unique identifier.
Definition: opennurbs_uuid.h:32
virtual bool GetDescription(ON_wString &description)
Definition: opennurbs_userdata.h:267
void Dump(ON_TextLog &text_log) const override
Overrides virtual ON_Object::Dump(). Prints class name, description, and uuid.
Definition: opennurbs_string.h:2020
int ReadObject(ON_Object **ppObject)
Reads and object from a 3dm archive;
bool WriteObject(const ON_Object *)
UserDataConflictResolution
When a userdata item is copied or moved from a source object to a destination object, the ON_Object::UserDataConflictResolution enum values specify how conficts are resolved. Remark: A userdata item "conflict" occurs when both the destination and source object have a user data item with the same value of ON_UserData::m_userdata_uuid.
Definition: opennurbs_object.h:861
virtual bool Archive() const
If Archive() returns true, m_application_uuid is not nil, and the virtual Read() and Write() are func...
bool WriteObjectUserData(const ON_Object &object)
Low level tool to writes user data attached to the object. This function should never be called direc...
virtual unsigned int SizeOf() const
bool IsValid(class ON_TextLog *text_log=nullptr) const override
Tests an object to see if its data members are correctly initialized.
Definition: opennurbs_userdata.h:472
Definition: opennurbs_userdata.h:346
virtual void Dump(ON_TextLog &) const
Creates a text dump of the object.
ON_Object & operator=(const ON_Object &)
virtual bool IsValid(class ON_TextLog *text_log=nullptr) const
Tests an object to see if its data members are correctly initialized.
An ON_DocumentUserStringList object is saved in the list of user tables. The Rhino SetDocumentText an...
Definition: opennurbs_userdata.h:568
Pure virtual base class for all classes that must provide runtime class id or support object level 3D...
Definition: opennurbs_object.h:460
Definition: opennurbs_userdata.h:327
Definition: opennurbs_textlog.h:20
ON_UserData & operator=(const ON_UserData &)
Definition: opennurbs_archive.h:1783
Definition: opennurbs_userdata.h:20
virtual bool Read(ON_BinaryArchive &binary_archive)
Low level archive writing tool used by ON_BinaryArchive::ReadObject().
bool ReadObjectUserData(ON_Object &object)
Low level tool to read user data and attach it to the object. This function should never be called di...
virtual bool Write(ON_BinaryArchive &binary_archive) const
Low level archive writing tool used by ON_BinaryArchive::WriteObject().
Definition: opennurbs_userdata.h:403