23 #if !defined(OPENNURBS_3DM_ATTRIBUTES_INC_) 24 #define OPENNURBS_3DM_ATTRIBUTES_INC_ 57 unsigned int SizeOf()
const override;
68 bool Transform(
const ON_Xform& xform );
100 ON::object_mode Mode()
const;
101 void SetMode( ON::object_mode );
110 bool IsInstanceDefinitionObject()
const;
118 bool IsVisible()
const;
129 void SetVisible(
bool bVisible );
135 ON::object_linetype_source LinetypeSource()
const;
136 void SetLinetypeSource( ON::object_linetype_source );
145 ON::object_color_source ColorSource()
const;
146 void SetColorSource( ON::object_color_source );
153 ON::plot_color_source PlotColorSource()
const;
154 void SetPlotColorSource( ON::plot_color_source );
156 ON::plot_weight_source PlotWeightSource()
const;
157 void SetPlotWeightSource( ON::plot_weight_source );
195 unsigned int ApplyParentalControl(
198 unsigned int control_limits = 0xFFFFFFFF
241 int m_linetype_index;
258 int m_material_index;
288 bool EnableCustomRenderMeshParameters(
bool bEnable);
309 void DeleteCustomRenderMeshParameters();
326 ON::object_material_source MaterialSource()
const;
336 void SetMaterialSource( ON::object_material_source ms );
356 double m_plot_weight_mm;
359 ON::object_decoration m_object_decoration;
386 ON::active_space m_space;
390 unsigned char m_mode;
392 unsigned char m_color_source;
393 unsigned char m_plot_color_source;
394 unsigned char m_plot_weight_source;
395 unsigned char m_material_source;
396 unsigned char m_linetype_source;
398 unsigned char m_reserved_0;
405 ON__UINT_PTR m_reserved_ptr = 0;
411 int GroupCount()
const;
416 const int* GroupList()
const;
424 int TopGroup()
const;
450 void RemoveFromGroup(
455 void RemoveFromTopGroup();
458 void RemoveFromAllGroups();
510 bool FindDisplayMaterialRef(
524 bool FindDisplayMaterialId(
526 ON_UUID* display_material_id =
nullptr 542 bool AddDisplayMaterialRef(
564 bool RemoveDisplayMaterialRef(
566 ON_UUID display_material_id = ON_nil_uuid
573 void RemoveAllDisplayMaterialRefs();
579 int DisplayMaterialRefCount()
const;
ON_UUID is a 16 byte universally unique identifier.
Definition: opennurbs_uuid.h:32
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...
ON_ManifestIdentificationMap is used to record a map from a source manifest to a destination manifest...
Definition: opennurbs_archive.h:1464
Objects can have per viewport display properties that override a viewport's default display propertie...
Definition: opennurbs_linestyle.h:45
static const ON_3dmObjectAttributes Unset
Definition: opennurbs_3dm_attributes.h:46
Definition: opennurbs_string.h:2020
Definition: opennurbs_color.h:24
Definition: opennurbs_layer.h:20
virtual unsigned int SizeOf() const
static const ON_3dmObjectAttributes DefaultAttributes
Definition: opennurbs_3dm_attributes.h:47
Definition: opennurbs_mesh.h:24
virtual void Dump(ON_TextLog &) const
Creates a text dump of the object.
Definition: opennurbs_archive.h:478
virtual bool IsValid(class ON_TextLog *text_log=nullptr) const
Tests an object to see if its data members are correctly initialized.
Top level OpenNURBS objects have geometry and attributes. The geometry is stored in some class derive...
Definition: opennurbs_3dm_attributes.h:41
Definition: opennurbs_rendering.h:38
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_textlog.h:20
Definition: opennurbs_archive.h:1783
virtual bool Read(ON_BinaryArchive &binary_archive)
Low level archive writing tool used by ON_BinaryArchive::ReadObject().
virtual bool Write(ON_BinaryArchive &binary_archive) const
Low level archive writing tool used by ON_BinaryArchive::WriteObject().