QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_3dmObjectAttributes Class Reference

#include <opennurbs_3dm_attributes.h>

Inheritance diagram for ON_3dmObjectAttributes:
ON_Object

Public Member Functions

bool AddDisplayMaterialRef (ON_DisplayMaterialRef display_material)
 
void AddToGroup (int)
 
unsigned int ApplyParentalControl (const ON_3dmObjectAttributes &parent_attributes, const ON_Layer &parent_layer, unsigned int control_limits=0xFFFFFFFF)
 
unsigned int ApplyParentalControl (const ON_3dmObjectAttributes &parent_attributes, unsigned int control_limits=0xFFFFFFFF)
 
ON::object_color_source ColorSource () const
 
void Default ()
 
int DisplayMaterialRefCount () const
 
ON::display_mode DisplayMode () const
 
void Dump (ON_TextLog &) const
 
bool FindDisplayMaterialId (const ON_UUID &viewport_id, ON_UUID *display_material_id=NULL) const
 
bool FindDisplayMaterialRef (const ON_DisplayMaterialRef &search_material, ON_DisplayMaterialRef *found_material=NULL) const
 
int GetGroupList (ON_SimpleArray< int > &) const
 
int GroupCount () const
 
const int * GroupList () const
 
ON_BOOL32 IsInGroup (int) const
 
ON_BOOL32 IsInGroups (const ON_SimpleArray< int > &) const
 
ON_BOOL32 IsInGroups (int, const int *) const
 
bool IsInstanceDefinitionObject () const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
bool IsVisible () const
 
ON::object_linetype_source LinetypeSource () const
 
ON::object_material_source MaterialSource () const
 
ON::object_mode Mode () const
 
 ON_3dmObjectAttributes ()
 
bool operator!= (const ON_3dmObjectAttributes &) const
 
bool operator== (const ON_3dmObjectAttributes &) const
 
ON::plot_color_source PlotColorSource () const
 
ON::plot_weight_source PlotWeightSource () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
void RemoveAllDisplayMaterialRefs ()
 
bool RemoveDisplayMaterialRef (ON_UUID viewport_id, ON_UUID display_material_id=ON_nil_uuid)
 
void RemoveFromAllGroups ()
 
void RemoveFromGroup (int)
 
void RemoveFromTopGroup ()
 
void SetColorSource (ON::object_color_source)
 
void SetDisplayMode (ON::display_mode)
 
void SetLinetypeSource (ON::object_linetype_source)
 
void SetMaterialSource (ON::object_material_source ms)
 
void SetMode (ON::object_mode)
 
void SetPlotColorSource (ON::plot_color_source)
 
void SetPlotWeightSource (ON::plot_weight_source)
 
void SetVisible (bool bVisible)
 
unsigned int SizeOf () const
 
int TopGroup () const
 
bool Transform (const ON_Xform &xform)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_3dmObjectAttributes ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
virtual ON::object_type ObjectType () const
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Public Attributes

ON_Color m_color
 
int m_display_order
 
ON_SimpleArray< ON_DisplayMaterialRefm_dmref
 
int m_layer_index
 
int m_linetype_index
 
int m_material_index
 
ON_wString m_name
 
ON::object_decoration m_object_decoration
 
ON_Color m_plot_color
 
double m_plot_weight_mm
 
ON_ObjectRenderingAttributes m_rendering_attributes
 
ON::active_space m_space
 
ON_wString m_url
 
ON_UUID m_uuid
 
ON_UUID m_viewport_id
 
int m_wire_density
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_3dmObjectAttributes)
 
bool ReadV5Helper (ON_BinaryArchive &file)
 
bool WriteV5Helper (ON_BinaryArchive &file) const
 

Private Attributes

bool m_bVisible
 
unsigned char m_color_source
 
ON_SimpleArray< int > m_group
 
unsigned char m_linetype_source
 
unsigned char m_material_source
 
unsigned char m_mode
 
unsigned char m_plot_color_source
 
unsigned char m_plot_weight_source
 

Constructor & Destructor Documentation

◆ ON_3dmObjectAttributes()

ON_3dmObjectAttributes::ON_3dmObjectAttributes ( )

◆ ~ON_3dmObjectAttributes()

ON_3dmObjectAttributes::~ON_3dmObjectAttributes ( )

Member Function Documentation

◆ AddDisplayMaterialRef()

bool ON_3dmObjectAttributes::AddDisplayMaterialRef ( ON_DisplayMaterialRef display_material)

◆ AddToGroup()

void ON_3dmObjectAttributes::AddToGroup ( int group_index)

◆ ApplyParentalControl() [1/2]

unsigned int ON_3dmObjectAttributes::ApplyParentalControl ( const ON_3dmObjectAttributes & parent_attributes,
const ON_Layer & parent_layer,
unsigned int control_limits = 0xFFFFFFFF )

◆ ApplyParentalControl() [2/2]

unsigned int ON_3dmObjectAttributes::ApplyParentalControl ( const ON_3dmObjectAttributes & parent_attributes,
unsigned int control_limits = 0xFFFFFFFF )

◆ ColorSource()

ON::object_color_source ON_3dmObjectAttributes::ColorSource ( ) const

◆ Default()

void ON_3dmObjectAttributes::Default ( )

◆ DisplayMaterialRefCount()

int ON_3dmObjectAttributes::DisplayMaterialRefCount ( ) const

◆ DisplayMode()

ON::display_mode ON_3dmObjectAttributes::DisplayMode ( ) const

◆ Dump()

void ON_3dmObjectAttributes::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ FindDisplayMaterialId()

bool ON_3dmObjectAttributes::FindDisplayMaterialId ( const ON_UUID & viewport_id,
ON_UUID * display_material_id = NULL ) const

◆ FindDisplayMaterialRef()

bool ON_3dmObjectAttributes::FindDisplayMaterialRef ( const ON_DisplayMaterialRef & search_material,
ON_DisplayMaterialRef * found_material = NULL ) const

◆ GetGroupList()

int ON_3dmObjectAttributes::GetGroupList ( ON_SimpleArray< int > & group_list) const

◆ GroupCount()

int ON_3dmObjectAttributes::GroupCount ( ) const

◆ GroupList()

const int * ON_3dmObjectAttributes::GroupList ( ) const

◆ IsInGroup()

ON_BOOL32 ON_3dmObjectAttributes::IsInGroup ( int group_index) const

◆ IsInGroups() [1/2]

ON_BOOL32 ON_3dmObjectAttributes::IsInGroups ( const ON_SimpleArray< int > & group_list) const

◆ IsInGroups() [2/2]

ON_BOOL32 ON_3dmObjectAttributes::IsInGroups ( int group_count,
const int * group_list ) const

◆ IsInstanceDefinitionObject()

bool ON_3dmObjectAttributes::IsInstanceDefinitionObject ( ) const

◆ IsValid()

ON_BOOL32 ON_3dmObjectAttributes::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ IsVisible()

bool ON_3dmObjectAttributes::IsVisible ( ) const

◆ LinetypeSource()

ON::object_linetype_source ON_3dmObjectAttributes::LinetypeSource ( ) const

◆ MaterialSource()

ON::object_material_source ON_3dmObjectAttributes::MaterialSource ( ) const

◆ Mode()

ON::object_mode ON_3dmObjectAttributes::Mode ( ) const

◆ ON_OBJECT_DECLARE()

ON_3dmObjectAttributes::ON_OBJECT_DECLARE ( ON_3dmObjectAttributes )
private

◆ operator!=()

bool ON_3dmObjectAttributes::operator!= ( const ON_3dmObjectAttributes & other) const

◆ operator==()

bool ON_3dmObjectAttributes::operator== ( const ON_3dmObjectAttributes & other) const

◆ PlotColorSource()

ON::plot_color_source ON_3dmObjectAttributes::PlotColorSource ( ) const

◆ PlotWeightSource()

ON::plot_weight_source ON_3dmObjectAttributes::PlotWeightSource ( ) const

◆ Read()

ON_BOOL32 ON_3dmObjectAttributes::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ ReadV5Helper()

bool ON_3dmObjectAttributes::ReadV5Helper ( ON_BinaryArchive & file)
private

◆ RemoveAllDisplayMaterialRefs()

void ON_3dmObjectAttributes::RemoveAllDisplayMaterialRefs ( )

◆ RemoveDisplayMaterialRef()

bool ON_3dmObjectAttributes::RemoveDisplayMaterialRef ( ON_UUID viewport_id,
ON_UUID display_material_id = ON_nil_uuid )

◆ RemoveFromAllGroups()

void ON_3dmObjectAttributes::RemoveFromAllGroups ( )

◆ RemoveFromGroup()

void ON_3dmObjectAttributes::RemoveFromGroup ( int group_index)

◆ RemoveFromTopGroup()

void ON_3dmObjectAttributes::RemoveFromTopGroup ( )

◆ SetColorSource()

void ON_3dmObjectAttributes::SetColorSource ( ON::object_color_source c)

◆ SetDisplayMode()

void ON_3dmObjectAttributes::SetDisplayMode ( ON::display_mode m)

◆ SetLinetypeSource()

void ON_3dmObjectAttributes::SetLinetypeSource ( ON::object_linetype_source c)

◆ SetMaterialSource()

void ON_3dmObjectAttributes::SetMaterialSource ( ON::object_material_source ms)

◆ SetMode()

void ON_3dmObjectAttributes::SetMode ( ON::object_mode m)

◆ SetPlotColorSource()

void ON_3dmObjectAttributes::SetPlotColorSource ( ON::plot_color_source pcs)

◆ SetPlotWeightSource()

void ON_3dmObjectAttributes::SetPlotWeightSource ( ON::plot_weight_source pws)

◆ SetVisible()

void ON_3dmObjectAttributes::SetVisible ( bool bVisible)

◆ SizeOf()

unsigned int ON_3dmObjectAttributes::SizeOf ( ) const
virtual

Reimplemented from ON_Object.

◆ TopGroup()

int ON_3dmObjectAttributes::TopGroup ( ) const

◆ Transform()

bool ON_3dmObjectAttributes::Transform ( const ON_Xform & xform)

◆ Write()

ON_BOOL32 ON_3dmObjectAttributes::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

◆ WriteV5Helper()

bool ON_3dmObjectAttributes::WriteV5Helper ( ON_BinaryArchive & file) const
private

Member Data Documentation

◆ m_bVisible

bool ON_3dmObjectAttributes::m_bVisible
private

◆ m_color

ON_Color ON_3dmObjectAttributes::m_color

◆ m_color_source

unsigned char ON_3dmObjectAttributes::m_color_source
private

◆ m_display_order

int ON_3dmObjectAttributes::m_display_order

◆ m_dmref

ON_SimpleArray<ON_DisplayMaterialRef> ON_3dmObjectAttributes::m_dmref

◆ m_group

ON_SimpleArray<int> ON_3dmObjectAttributes::m_group
private

◆ m_layer_index

int ON_3dmObjectAttributes::m_layer_index

◆ m_linetype_index

int ON_3dmObjectAttributes::m_linetype_index

◆ m_linetype_source

unsigned char ON_3dmObjectAttributes::m_linetype_source
private

◆ m_material_index

int ON_3dmObjectAttributes::m_material_index

◆ m_material_source

unsigned char ON_3dmObjectAttributes::m_material_source
private

◆ m_mode

unsigned char ON_3dmObjectAttributes::m_mode
private

◆ m_name

ON_wString ON_3dmObjectAttributes::m_name

◆ m_object_decoration

ON::object_decoration ON_3dmObjectAttributes::m_object_decoration

◆ m_plot_color

ON_Color ON_3dmObjectAttributes::m_plot_color

◆ m_plot_color_source

unsigned char ON_3dmObjectAttributes::m_plot_color_source
private

◆ m_plot_weight_mm

double ON_3dmObjectAttributes::m_plot_weight_mm

◆ m_plot_weight_source

unsigned char ON_3dmObjectAttributes::m_plot_weight_source
private

◆ m_rendering_attributes

ON_ObjectRenderingAttributes ON_3dmObjectAttributes::m_rendering_attributes

◆ m_space

ON::active_space ON_3dmObjectAttributes::m_space

◆ m_url

ON_wString ON_3dmObjectAttributes::m_url

◆ m_uuid

ON_UUID ON_3dmObjectAttributes::m_uuid

◆ m_viewport_id

ON_UUID ON_3dmObjectAttributes::m_viewport_id

◆ m_wire_density

int ON_3dmObjectAttributes::m_wire_density

The documentation for this class was generated from the following files: