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

#include <opennurbs_extensions.h>

Public Member Functions

virtual int Audit (bool bAttemptRepair, int *repair_count, ON_TextLog *text_log, ON_SimpleArray< int > *warnings)
 
ON_BoundingBox BoundingBox () const
 
void Destroy ()
 
void DestroyCache ()
 
void Dump (ON_TextLog &) const
 
void DumpBitmapTable (ON_TextLog &) const
 
void DumpDimStyleTable (ON_TextLog &) const
 
void DumpFontTable (ON_TextLog &) const
 
void DumpGroupTable (ON_TextLog &) const
 
void DumpHatchPatternTable (ON_TextLog &) const
 
void DumpHistoryRecordTable (ON_TextLog &) const
 
void DumpIDefTable (ON_TextLog &) const
 
void DumpLayerTable (ON_TextLog &) const
 
void DumpLightTable (ON_TextLog &) const
 
void DumpLinetypeTable (ON_TextLog &) const
 
void DumpMaterialTable (ON_TextLog &) const
 
void DumpObjectTable (ON_TextLog &) const
 
void DumpSummary (ON_TextLog &) const
 
void DumpTextureMappingTable (ON_TextLog &) const
 
void DumpUserDataTable (ON_TextLog &) const
 
void GetLinetype (const ON_3dmObjectAttributes &attributes, ON_Linetype &linetype) const
 
void GetLinetype (int object_index, ON_Linetype &linetype) const
 
void GetRenderMaterial (const ON_3dmObjectAttributes &attributes, ON_Material &material) const
 
void GetRenderMaterial (int object_index, ON_Material &material) const
 
virtual void GetUnusedIDefName (ON_wString &idef_name) const
 
virtual void GetUnusedLayerName (ON_wString &layer_name) const
 
virtual int IDefIndex (const wchar_t *idef_name) const
 
virtual int IDefIndex (ON_UUID idef_uuid) const
 
bool IsValid (ON_TextLog *text_log=NULL) const
 
virtual int LayerIndex (const wchar_t *layer_name) const
 
virtual int ObjectIndex (ON_UUID object_uuid) const
 
 ONX_Model ()
 
virtual void Polish ()
 
bool Read (const char *filename, ON_TextLog *error_log=NULL)
 
bool Read (const wchar_t *filename, ON_TextLog *error_log=NULL)
 
bool Read (ON_BinaryArchive &archive, ON_TextLog *error_log=NULL)
 
virtual int UsesIDef (const ON_InstanceRef &iref, ON_UUID idef_uuid) const
 
ON_Color WireframeColor (const ON_3dmObjectAttributes &attributes) const
 
ON_Color WireframeColor (int object_index) const
 
bool Write (const char *filename, int version=5, const char *sStartSectionComment=NULL, ON_TextLog *error_log=NULL)
 
bool Write (const wchar_t *filename, int version=5, const char *sStartSectionComment=NULL, ON_TextLog *error_log=NULL)
 
bool Write (ON_BinaryArchive &archive, int version=5, const char *sStartSectionComment=NULL, ON_TextLog *error_log=NULL)
 
virtual ~ONX_Model ()
 

Public Attributes

int m_3dm_file_version
 
int m_3dm_opennurbs_version
 
ON_SimpleArray< ON_Bitmap * > m_bitmap_table
 
int m_crc_error_count
 
ON_ObjectArray< ON_DimStylem_dimstyle_table
 
size_t m_file_length
 
ON_ObjectArray< ON_Fontm_font_table
 
ON_ObjectArray< ON_Groupm_group_table
 
ON_ObjectArray< ON_HatchPatternm_hatch_pattern_table
 
ON_SimpleArray< ON_HistoryRecord * > m_history_record_table
 
ON_UuidIndexList m_idef_id_index
 
ON_ObjectArray< ON_InstanceDefinitionm_idef_table
 
ON_ObjectArray< ON_Layerm_layer_table
 
ON_ClassArray< ONX_Model_RenderLightm_light_table
 
ON_ObjectArray< ON_Linetypem_linetype_table
 
ON_UuidIndexList m_mapping_id_index
 
ON_ObjectArray< ON_TextureMappingm_mapping_table
 
ON_UuidIndexList m_material_id_index
 
ON_ObjectArray< ON_Materialm_material_table
 
ON_UuidIndexList m_object_id_index
 
ON_ClassArray< ONX_Model_Objectm_object_table
 
ON_3dmProperties m_properties
 
ON_3dmSettings m_settings
 
ON_String m_sStartSectionComments
 
ON_ClassArray< ONX_Model_UserDatam_userdata_table
 

Private Member Functions

 ONX_Model (const ONX_Model &)
 
ONX_Modeloperator= (const ONX_Model &)
 

Private Attributes

ON_BoundingBox m__object_table_bbox
 

Constructor & Destructor Documentation

◆ ONX_Model() [1/2]

ONX_Model::ONX_Model ( )

◆ ~ONX_Model()

ONX_Model::~ONX_Model ( )
virtual

◆ ONX_Model() [2/2]

ONX_Model::ONX_Model ( const ONX_Model & )
private

Member Function Documentation

◆ Audit()

int ONX_Model::Audit ( bool bAttemptRepair,
int * repair_count,
ON_TextLog * text_log,
ON_SimpleArray< int > * warnings )
virtual

◆ BoundingBox()

ON_BoundingBox ONX_Model::BoundingBox ( ) const

◆ Destroy()

void ONX_Model::Destroy ( )

◆ DestroyCache()

void ONX_Model::DestroyCache ( )

◆ Dump()

void ONX_Model::Dump ( ON_TextLog & dump) const

◆ DumpBitmapTable()

void ONX_Model::DumpBitmapTable ( ON_TextLog & dump) const

◆ DumpDimStyleTable()

void ONX_Model::DumpDimStyleTable ( ON_TextLog & dump) const

◆ DumpFontTable()

void ONX_Model::DumpFontTable ( ON_TextLog & dump) const

◆ DumpGroupTable()

void ONX_Model::DumpGroupTable ( ON_TextLog & dump) const

◆ DumpHatchPatternTable()

void ONX_Model::DumpHatchPatternTable ( ON_TextLog & dump) const

◆ DumpHistoryRecordTable()

void ONX_Model::DumpHistoryRecordTable ( ON_TextLog & dump) const

◆ DumpIDefTable()

void ONX_Model::DumpIDefTable ( ON_TextLog & dump) const

◆ DumpLayerTable()

void ONX_Model::DumpLayerTable ( ON_TextLog & dump) const

◆ DumpLightTable()

void ONX_Model::DumpLightTable ( ON_TextLog & dump) const

◆ DumpLinetypeTable()

void ONX_Model::DumpLinetypeTable ( ON_TextLog & dump) const

◆ DumpMaterialTable()

void ONX_Model::DumpMaterialTable ( ON_TextLog & dump) const

◆ DumpObjectTable()

void ONX_Model::DumpObjectTable ( ON_TextLog & dump) const

◆ DumpSummary()

void ONX_Model::DumpSummary ( ON_TextLog & dump) const

◆ DumpTextureMappingTable()

void ONX_Model::DumpTextureMappingTable ( ON_TextLog & dump) const

◆ DumpUserDataTable()

void ONX_Model::DumpUserDataTable ( ON_TextLog & dump) const

◆ GetLinetype() [1/2]

void ONX_Model::GetLinetype ( const ON_3dmObjectAttributes & attributes,
ON_Linetype & linetype ) const

◆ GetLinetype() [2/2]

void ONX_Model::GetLinetype ( int object_index,
ON_Linetype & linetype ) const

◆ GetRenderMaterial() [1/2]

void ONX_Model::GetRenderMaterial ( const ON_3dmObjectAttributes & attributes,
ON_Material & material ) const

◆ GetRenderMaterial() [2/2]

void ONX_Model::GetRenderMaterial ( int object_index,
ON_Material & material ) const

◆ GetUnusedIDefName()

void ONX_Model::GetUnusedIDefName ( ON_wString & idef_name) const
virtual

◆ GetUnusedLayerName()

void ONX_Model::GetUnusedLayerName ( ON_wString & layer_name) const
virtual

◆ IDefIndex() [1/2]

int ONX_Model::IDefIndex ( const wchar_t * idef_name) const
virtual

◆ IDefIndex() [2/2]

int ONX_Model::IDefIndex ( ON_UUID idef_uuid) const
virtual

◆ IsValid()

bool ONX_Model::IsValid ( ON_TextLog * text_log = NULL) const

◆ LayerIndex()

int ONX_Model::LayerIndex ( const wchar_t * layer_name) const
virtual

◆ ObjectIndex()

int ONX_Model::ObjectIndex ( ON_UUID object_uuid) const
virtual

◆ operator=()

ONX_Model & ONX_Model::operator= ( const ONX_Model & )
private

◆ Polish()

void ONX_Model::Polish ( )
virtual

◆ Read() [1/3]

bool ONX_Model::Read ( const char * filename,
ON_TextLog * error_log = NULL )

◆ Read() [2/3]

bool ONX_Model::Read ( const wchar_t * filename,
ON_TextLog * error_log = NULL )

◆ Read() [3/3]

bool ONX_Model::Read ( ON_BinaryArchive & archive,
ON_TextLog * error_log = NULL )

◆ UsesIDef()

int ONX_Model::UsesIDef ( const ON_InstanceRef & iref,
ON_UUID idef_uuid ) const
virtual

◆ WireframeColor() [1/2]

ON_Color ONX_Model::WireframeColor ( const ON_3dmObjectAttributes & attributes) const

◆ WireframeColor() [2/2]

ON_Color ONX_Model::WireframeColor ( int object_index) const

◆ Write() [1/3]

bool ONX_Model::Write ( const char * filename,
int version = 5,
const char * sStartSectionComment = NULL,
ON_TextLog * error_log = NULL )

◆ Write() [2/3]

bool ONX_Model::Write ( const wchar_t * filename,
int version = 5,
const char * sStartSectionComment = NULL,
ON_TextLog * error_log = NULL )

◆ Write() [3/3]

bool ONX_Model::Write ( ON_BinaryArchive & archive,
int version = 5,
const char * sStartSectionComment = NULL,
ON_TextLog * error_log = NULL )

Member Data Documentation

◆ m_3dm_file_version

int ONX_Model::m_3dm_file_version

◆ m_3dm_opennurbs_version

int ONX_Model::m_3dm_opennurbs_version

◆ m__object_table_bbox

ON_BoundingBox ONX_Model::m__object_table_bbox
private

◆ m_bitmap_table

ON_SimpleArray<ON_Bitmap*> ONX_Model::m_bitmap_table

◆ m_crc_error_count

int ONX_Model::m_crc_error_count

◆ m_dimstyle_table

ON_ObjectArray<ON_DimStyle> ONX_Model::m_dimstyle_table

◆ m_file_length

size_t ONX_Model::m_file_length

◆ m_font_table

ON_ObjectArray<ON_Font> ONX_Model::m_font_table

◆ m_group_table

ON_ObjectArray<ON_Group> ONX_Model::m_group_table

◆ m_hatch_pattern_table

ON_ObjectArray<ON_HatchPattern> ONX_Model::m_hatch_pattern_table

◆ m_history_record_table

ON_SimpleArray<ON_HistoryRecord*> ONX_Model::m_history_record_table

◆ m_idef_id_index

ON_UuidIndexList ONX_Model::m_idef_id_index

◆ m_idef_table

ON_ObjectArray<ON_InstanceDefinition> ONX_Model::m_idef_table

◆ m_layer_table

ON_ObjectArray<ON_Layer> ONX_Model::m_layer_table

◆ m_light_table

ON_ClassArray<ONX_Model_RenderLight> ONX_Model::m_light_table

◆ m_linetype_table

ON_ObjectArray<ON_Linetype> ONX_Model::m_linetype_table

◆ m_mapping_id_index

ON_UuidIndexList ONX_Model::m_mapping_id_index

◆ m_mapping_table

ON_ObjectArray<ON_TextureMapping> ONX_Model::m_mapping_table

◆ m_material_id_index

ON_UuidIndexList ONX_Model::m_material_id_index

◆ m_material_table

ON_ObjectArray<ON_Material> ONX_Model::m_material_table

◆ m_object_id_index

ON_UuidIndexList ONX_Model::m_object_id_index

◆ m_object_table

ON_ClassArray<ONX_Model_Object> ONX_Model::m_object_table

◆ m_properties

ON_3dmProperties ONX_Model::m_properties

◆ m_settings

ON_3dmSettings ONX_Model::m_settings

◆ m_sStartSectionComments

ON_String ONX_Model::m_sStartSectionComments

◆ m_userdata_table

ON_ClassArray<ONX_Model_UserData> ONX_Model::m_userdata_table

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