#include <opennurbs_objref.h>

Public Member Functions

 ON_ObjRef ()
 
 ON_ObjRef (const ON_ObjRef &src)
 
 ~ON_ObjRef ()
 
void DecrementProxyReferenceCount ()
 Expert user tool to decrement reference counts. Most users will never need to call this tool. It is called by ~ON_ObjRef and used in rare cases when a ON_ObjRef needs to reference an object only by uuid and component index. More...
 
void Destroy ()
 
ON_ObjRefoperator= (const ON_ObjRef &src)
 
const ON_ObjectProxyObject (int proxy_object_index) const
 
int ProxyReferenceCount () const
 
bool Read (ON_BinaryArchive &)
 
void RemapObjectId (const ON_SimpleArray< ON_UuidPair > &uuid_remap)
 This tool is used in rare situations when the object ids stored in the uuid list need to be remapped. More...
 
bool SetParentIRef (const ON_InstanceRef &iref, ON_UUID iref_id, int idef_geometry_index)
 
void SetProxy (ON_Object *proxy1, ON_Object *proxy2, bool bCountReferences)
 Expert user tool to initialize the ON_ObjRef m__proxy1, m__proxy2, and m__proxy_ref_count fields. More...
 
bool Write (ON_BinaryArchive &) const
 

Public Attributes

ON_SimpleArray< ON_ObjRef_IRefIDm__iref
 
ON_COMPONENT_INDEX m_component_index
 
ON_ObjRefEvaluationParameter m_evp
 
const ON_Geometrym_geometry
 
int m_geometry_type
 
ON::osnap_mode m_osnap_mode
 
const ON_Geometrym_parent_geometry
 
ON_3dPoint m_point
 
unsigned int m_runtime_sn
 
ON_UUID m_uuid
 

Constructor & Destructor Documentation

◆ ON_ObjRef() [1/2]

ON_ObjRef::ON_ObjRef ( )

◆ ON_ObjRef() [2/2]

ON_ObjRef::ON_ObjRef ( const ON_ObjRef src)

◆ ~ON_ObjRef()

ON_ObjRef::~ON_ObjRef ( )

Member Function Documentation

◆ DecrementProxyReferenceCount()

void ON_ObjRef::DecrementProxyReferenceCount ( )

Expert user tool to decrement reference counts. Most users will never need to call this tool. It is called by ~ON_ObjRef and used in rare cases when a ON_ObjRef needs to reference an object only by uuid and component index.

◆ Destroy()

void ON_ObjRef::Destroy ( )

◆ operator=()

ON_ObjRef& ON_ObjRef::operator= ( const ON_ObjRef src)

◆ ProxyObject()

const ON_Object* ON_ObjRef::ProxyObject ( int  proxy_object_index) const
Parameters
proxy_object_index[in] 1 or 2.
Returns
A pointer to the requested proxy object.

◆ ProxyReferenceCount()

int ON_ObjRef::ProxyReferenceCount ( ) const
Returns
0: This ON_ObjRef is not counting references. >0: Number of references.

◆ Read()

bool ON_ObjRef::Read ( ON_BinaryArchive )

◆ RemapObjectId()

void ON_ObjRef::RemapObjectId ( const ON_SimpleArray< ON_UuidPair > &  uuid_remap)

This tool is used in rare situations when the object ids stored in the uuid list need to be remapped.

Parameters
uuid_remap[in] Is it critical that uuid_remap[] be sorted with respect to ON_UuidPair::CompareFirstUuid.

◆ SetParentIRef()

bool ON_ObjRef::SetParentIRef ( const ON_InstanceRef iref,
ON_UUID  iref_id,
int  idef_geometry_index 
)

◆ SetProxy()

void ON_ObjRef::SetProxy ( ON_Object proxy1,
ON_Object proxy2,
bool  bCountReferences 
)

Expert user tool to initialize the ON_ObjRef m__proxy1, m__proxy2, and m__proxy_ref_count fields.

◆ Write()

bool ON_ObjRef::Write ( ON_BinaryArchive ) const

Member Data Documentation

◆ m__iref

ON_SimpleArray<ON_ObjRef_IRefID> ON_ObjRef::m__iref

◆ m_component_index

ON_COMPONENT_INDEX ON_ObjRef::m_component_index

◆ m_evp

ON_ObjRefEvaluationParameter ON_ObjRef::m_evp

◆ m_geometry

const ON_Geometry* ON_ObjRef::m_geometry

◆ m_geometry_type

int ON_ObjRef::m_geometry_type

◆ m_osnap_mode

ON::osnap_mode ON_ObjRef::m_osnap_mode

◆ m_parent_geometry

const ON_Geometry* ON_ObjRef::m_parent_geometry

◆ m_point

ON_3dPoint ON_ObjRef::m_point

◆ m_runtime_sn

unsigned int ON_ObjRef::m_runtime_sn

◆ m_uuid

ON_UUID ON_ObjRef::m_uuid