17 #if !defined(OPENNURBS_INSTANCE_INC_) 18 #define OPENNURBS_INSTANCE_INC_ 49 linked_and_embedded_def = 2,
69 force_32bit_idef_update_type = 0xFFFFFFFF
82 idef_name_setting = 1,
83 idef_description_setting = 2,
85 idef_units_setting = 8,
86 idef_source_archive_setting = 0x10,
87 idef_userdata_setting = 0x20,
88 all_idef_settings = 0xFFFFFFFF
108 unsigned int SizeOf()
const;
125 const wchar_t* Name()
const;
126 void SetName(
const wchar_t* name );
128 const wchar_t* Description()
const;
129 void SetDescription(
const wchar_t* description );
131 const wchar_t* URL()
const;
132 void SetURL(
const wchar_t* url );
134 const wchar_t* URL_Tag()
const;
135 void SetURL_Tag(
const wchar_t* url_tag );
167 void SetSourceArchive(
168 const wchar_t* source_archive,
185 void DestroySourceArchive();
191 const wchar_t* SourceArchive()
const;
212 void SetAlternateSourceArchivePath(
213 const wchar_t* alternate_source_archive_path,
228 bool GetAlternateSourceArchivePath(
236 void SetUnitSystem( ON::unit_system us );
244 bool HasLinkedIdefLayerSettings()
const;
254 void UpdateLinkedIdefReferenceFileLayerSettings(
unsigned int layer_count,
ON_Layer** layer_settings );
264 void UpdateLinkedIdefParentLayerSettings(
const ON_Layer* linked_idef_parent_layer );
266 const ON_Layer* LinkedIdefParentLayerSettings()
const;
281 void UpdateLinkedIdefReferenceFileLayerRuntimeId(
const ON_UuidPairList& id_map );
297 void UpdateLinkedIdefLayerSettings(
unsigned int layer_count,
const ON_Layer*
const* layer_settings );
311 #if defined(ON_32BIT_POINTER) 318 unsigned int m_reserved1;
355 unsigned char m_reserved2[2];
357 #if defined(ON_64BIT_POINTER) 364 unsigned int m_reserved1;
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
static const double m_singular_xform_tol
bool m_source_bRelativePath
virtual ON_BOOL32 Transform(const ON_Xform &xform)
virtual bool MakeDeformable()
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
virtual ON::object_type ObjectType() const
ON_wString m_source_archive
IDEF_UPDATE_TYPE m_idef_update_type
ON_UUID m_instance_definition_uuid
virtual int Dimension() const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
virtual unsigned int SizeOf() const
unsigned char m_idef_layer_style
ON_CheckSum m_source_archive_checksum
virtual void Dump(ON_TextLog &) const
virtual bool IsDeformable() const
ON_SimpleArray< ON_UUID > m_object_uuid
virtual ON_UUID ModelObjectId() const
virtual ON_BOOL32 GetBBox(double *boxmin, double *boxmax, int bGrowBox=false) const =0