SAGA API
v9.6
|
#include <table.h>
Public Member Functions | |
CSG_Table (void) | |
bool | Create (void) |
CSG_Table (const CSG_Table &Table) | |
bool | Create (const CSG_Table &Table) |
CSG_Table (const CSG_Table *pTemplate) | |
bool | Create (const CSG_Table *pTemplate) |
CSG_Table (const CSG_String &File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const CSG_String &File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
CSG_Table (const char *File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const char *File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
CSG_Table (const wchar_t *File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const wchar_t *File, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
CSG_Table (const CSG_String &File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const CSG_String &File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
CSG_Table (const char *File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const char *File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
CSG_Table (const wchar_t *File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) | |
bool | Create (const wchar_t *File, TSG_Table_File_Type Format, const SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
virtual | ~CSG_Table (void) |
virtual bool | Destroy (void) |
virtual TSG_Data_Object_Type | Get_ObjectType (void) const |
Returns the object type as defined by TSG_Data_Object_Type. Used for run time type checking. More... | |
CSG_Table & | operator= (const CSG_Table &Table) |
virtual bool | Assign (CSG_Data_Object *pTable) |
bool | Assign_Values (const CSG_Table &Table) |
bool | Assign_Values (CSG_Table *pTable) |
bool | Assign_Values (const SG_Char *File) |
bool | Load (const CSG_String &File, int Format, SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
virtual bool | Save (const CSG_String &File, int Format, SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
virtual bool | Save (const char *File, int Format, SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
virtual bool | Save (const wchar_t *File, int Format, SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED) |
virtual bool | Save (const CSG_String &File, int Format=0) |
virtual bool | Save (const char *File, int Format=0) |
virtual bool | Save (const wchar_t *File, int Format=0) |
bool | Set_File_Encoding (int Encoding) |
int | Get_File_Encoding (void) const |
bool | Serialize (CSG_File &Stream, bool bSave) |
virtual bool | is_Valid (void) const |
bool | is_Compatible (const CSG_Table &Table, bool bExactMatch=false) const |
bool | is_Compatible (CSG_Table *pTable, bool bExactMatch=false) const |
virtual const CSG_Rect & | Get_Extent (void) |
virtual bool | Add_Field (const CSG_String &Name, TSG_Data_Type Type, int Position=-1) |
virtual bool | Add_Field (const char *Name, TSG_Data_Type Type, int Position=-1) |
virtual bool | Add_Field (const wchar_t *Name, TSG_Data_Type Type, int Position=-1) |
virtual bool | Del_Field (int iField) |
virtual bool | Mov_Field (int iField, int Position) |
int | Get_Field_Count (void) const |
const SG_Char * | Get_Field_Name (int iField) const |
TSG_Data_Type | Get_Field_Type (int iField) const |
int | Get_Field_Length (int iField, int Encoding=SG_FILE_ENCODING_UNDEFINED) const |
int | Get_Field (const CSG_String &Name) const |
int | Get_Field (const char *Name) const |
int | Get_Field (const wchar_t *Name) const |
bool | Set_Field_Name (int iField, const SG_Char *Name) |
virtual bool | Set_Field_Type (int iField, TSG_Data_Type Type) |
int | Find_Field (const CSG_String &Name) const |
int | Find_Field (const char *Name) const |
int | Find_Field (const wchar_t *Name) const |
bool | Find_Field (const CSG_String &Name, int &Index) const |
bool | Find_Field (const char *Name, int &Index) const |
bool | Find_Field (const wchar_t *Name, int &Index) const |
sLong | Get_N (int iField) const |
double | Get_Minimum (int iField) const |
double | Get_Maximum (int iField) const |
double | Get_Range (int iField) const |
double | Get_Sum (int iField) const |
double | Get_Mean (int iField) const |
double | Get_StdDev (int iField) const |
double | Get_Variance (int iField) const |
const CSG_Simple_Statistics & | Get_Statistics (int iField) const |
virtual CSG_Table_Record * | Add_Record (CSG_Table_Record *pCopy=NULL) |
virtual CSG_Table_Record * | Ins_Record (sLong Index, CSG_Table_Record *pCopy=NULL) |
virtual bool | Set_Record (sLong Index, CSG_Table_Record *pCopy) |
virtual bool | Del_Record (sLong Index) |
virtual bool | Del_Records (void) |
virtual bool | Set_Count (sLong nRecords) |
sLong | Get_Count (void) const |
virtual CSG_Table_Record * | Get_Record (sLong Index) const |
virtual CSG_Table_Record & | operator[] (sLong Index) const |
sLong | Get_Index (sLong Index) const |
CSG_Table_Record * | Get_Record_byIndex (sLong Index) const |
virtual bool | Find_Record (sLong &Index, int iField, const CSG_String &Value, bool bCreateIndex=false) |
virtual CSG_Table_Record * | Find_Record (int iField, const CSG_String &Value, bool bCreateIndex=false) |
virtual bool | Find_Record (sLong &Index, int iField, double Value, bool bCreateIndex=false) |
virtual CSG_Table_Record * | Find_Record (int iField, double Value, bool bCreateIndex=false) |
virtual bool | Set_Value (sLong Index, int iField, const SG_Char *Value) |
virtual bool | Set_Value (sLong Index, int iField, double Value) |
virtual bool | Get_Value (sLong Index, int iField, CSG_String &Value) const |
virtual bool | Get_Value (sLong Index, int iField, double &Value) const |
virtual void | Set_Modified (bool bModified=true) |
sLong | Get_Selection_Count (void) const |
sLong | Get_Selection_Index (sLong Index=0) const |
virtual CSG_Table_Record * | Get_Selection (sLong Index=0) const |
virtual bool | is_Selected (sLong Index) const |
virtual bool | Select (sLong Index, bool bInvert=false) |
virtual bool | Select (CSG_Table_Record *pRecord=NULL, bool bInvert=false) |
virtual sLong | Del_Selection (void) |
virtual sLong | Inv_Selection (void) |
bool | Set_Index (CSG_Index &Index, int Field, bool bAscending=true) const |
bool | Set_Index (CSG_Index &Index, int Fields[], int nFields, bool bAscending=true) const |
bool | Set_Index (CSG_Index &Index, const CSG_Array_Int &Fields, bool bAscending=true) const |
bool | is_Indexed (void) const |
bool | Set_Index (int Field_1, TSG_Table_Index_Order Order_1=TABLE_INDEX_Ascending, int Field_2=-1, TSG_Table_Index_Order Order_2=TABLE_INDEX_None, int Field_3=-1, TSG_Table_Index_Order Order_3=TABLE_INDEX_None) |
bool | Del_Index (void) |
bool | Toggle_Index (int iField) |
int | Get_Index_Field (int i) const |
TSG_Table_Index_Order | Get_Index_Order (int i) const |
int | Get_Index_Field (size_t i) const |
TSG_Table_Index_Order | Get_Index_Order (size_t i) const |
Public Member Functions inherited from CSG_Data_Object | |
CSG_Data_Object (void) | |
virtual | ~CSG_Data_Object (void) |
int | Get_RefID (void) const |
Returns the object's reference id (unique). More... | |
int | Get_Managed (void) const |
bool | Reload (void) |
If there is an associated file data can be reloaded with this command. More... | |
bool | Delete (void) |
Deletes all files associated with this data object if possible. Works only with native SAGA files. Returns true on success. More... | |
void | Set_File_Name (const CSG_String &FileName) |
const SG_Char * | Get_File_Name (bool bNative=true) const |
int | Get_File_Type (void) const |
bool | is_File_Native (void) const |
void | Set_Name (const CSG_String &Name) |
void | Set_Name (const char *Name) |
void | Set_Name (const wchar_t *Name) |
void | Fmt_Name (const char *Format,...) |
void | Fmt_Name (const wchar_t *Format,...) |
const SG_Char * | Get_Name (void) const |
void | Set_Description (const CSG_String &Description) |
const SG_Char * | Get_Description (void) const |
virtual bool | is_Modified (void) const |
bool | Update (bool bForce=false) |
CSG_Data_Object * | Get_Owner (void) const |
void | Set_Owner (CSG_Data_Object *pOwner) |
CSG_MetaData & | Get_MetaData (void) const |
CSG_MetaData & | Get_MetaData_DB (void) const |
CSG_MetaData & | Get_History (void) |
const CSG_MetaData & | Get_History (void) const |
CSG_Projection & | Get_Projection (void) |
const CSG_Projection & | Get_Projection (void) const |
class CSG_Table * | asTable (bool bPolymorph=false) const |
class CSG_Shapes * | asShapes (bool bPolymorph=false) const |
class CSG_TIN * | asTIN (bool bPolymorph=false) const |
class CSG_PointCloud * | asPointCloud (bool bPolymorph=false) const |
class CSG_Grid * | asGrid (bool bPolymorph=false) const |
class CSG_Grids * | asGrids (bool bPolymorph=false) const |
virtual bool | Set_NoData_Value (double Value) |
virtual bool | Set_NoData_Value_Range (double Lower, double Upper) |
double | Get_NoData_Value (bool bUpper=false) const |
bool | is_NoData_Value (double Value) const |
bool | Save_History_to_Model (const CSG_String &File) const |
virtual bool | Set_Max_Samples (sLong Max_Samples) |
sLong | Get_Max_Samples (void) const |
Protected Member Functions | |
virtual void | _On_Construction (void) |
virtual CSG_Table_Record * | _Get_New_Record (sLong Index) |
bool | _Add_Selection (sLong Index) |
bool | _Set_Selection (sLong Index, sLong Selected) |
bool | _Del_Selection (sLong Index) |
bool | _Stats_Invalidate (void) const |
bool | _Stats_Invalidate (int iField) const |
virtual bool | _Stats_Update (int iField) const |
bool | _Save_Text (const CSG_String &File, bool bHeadline, const SG_Char Separator) |
bool | _Save_DBase (const CSG_String &File) |
virtual bool | On_NoData_Changed (void) |
virtual bool | On_Update (void) |
virtual bool | On_Reload (void) |
virtual bool | On_Delete (void) |
Protected Member Functions inherited from CSG_Data_Object | |
void | Set_File_Name (const CSG_String &FileName, bool bNative) |
void | Set_File_Type (int Type) |
bool | Load_MetaData (const CSG_String &FileName) |
bool | Load_MetaData (CSG_File &Stream) |
bool | Save_MetaData (const CSG_String &FileName) |
bool | Save_MetaData (CSG_File &Stream) |
void | Set_Update_Flag (bool bOn=true) |
bool | Get_Update_Flag (void) |
Protected Attributes | |
int | m_nFields |
int | m_Encoding |
sLong | m_nRecords |
sLong | m_nBuffer |
TSG_Data_Type * | m_Field_Type |
CSG_String ** | m_Field_Name |
CSG_Simple_Statistics ** | m_Field_Stats |
CSG_Array | m_Selection |
CSG_Rect | m_Extent |
Protected Attributes inherited from CSG_Data_Object | |
CSG_Data_Object * | m_pOwner |
Friends | |
class | CSG_Table_Record |
class | CSG_TIN |
Additional Inherited Members | |
Static Public Member Functions inherited from CSG_Data_Object | |
static void | Track (bool Track=true, bool Offset=false) |
Activate/deactivate lifetime tracking (data object construction/destruction). Needs compiler flag WITH_LIFETIME_TRACKER being defined. More... | |
CSG_Table::CSG_Table | ( | void | ) |
Definition at line 133 of file table.cpp.
References _On_Construction().
CSG_Table::CSG_Table | ( | const CSG_Table & | Table | ) |
Definition at line 145 of file table.cpp.
References _On_Construction(), and Create().
CSG_Table::CSG_Table | ( | const CSG_Table * | pTemplate | ) |
Definition at line 267 of file table.cpp.
References _On_Construction(), and Create().
CSG_Table::CSG_Table | ( | const CSG_String & | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
Definition at line 159 of file table.cpp.
References _On_Construction(), and Create().
CSG_Table::CSG_Table | ( | const char * | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
CSG_Table::CSG_Table | ( | const wchar_t * | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
CSG_Table::CSG_Table | ( | const CSG_String & | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
Definition at line 253 of file table.cpp.
References _On_Construction(), and Create().
CSG_Table::CSG_Table | ( | const char * | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
CSG_Table::CSG_Table | ( | const wchar_t * | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
|
virtual |
|
protected |
Definition at line 63 of file table_selection.cpp.
References _Set_Selection(), CSG_Array::Get_Size(), CSG_Array::Inc_Array(), and m_Selection.
Referenced by CSG_PointCloud::Select(), and Select().
|
protected |
Definition at line 87 of file table_selection.cpp.
References CSG_Array::Dec_Array(), CSG_Array::Get_Array(), Get_Selection_Index(), CSG_Array::Get_Size(), and m_Selection.
Referenced by Del_Record(), CSG_PointCloud::Select(), and Select().
|
protectedvirtual |
Reimplemented in CSG_TIN, and CSG_Shapes.
Definition at line 789 of file table.cpp.
References CSG_Table_Record.
Referenced by Ins_Record().
|
protectedvirtual |
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 302 of file table.cpp.
References CSG_Array::Create(), m_Encoding, m_Field_Name, m_Field_Stats, m_Field_Type, m_nBuffer, m_nFields, m_nRecords, m_Selection, CSG_Data_Object::Set_Update_Flag(), and SG_FILE_ENCODING_UTF8.
Referenced by CSG_Shapes::_On_Construction(), CSG_TIN::_On_Construction(), CSG_Grid::CSG_Grid(), and CSG_Table().
|
protected |
Definition at line 523 of file table_io.cpp.
References m_Encoding, and CSG_Table_DBase::Open_Write().
Referenced by Save(), and CSG_Shapes::Save().
|
protected |
Definition at line 453 of file table_io.cpp.
References CSG_Table_Record::asString(), Get_Count(), Get_Field_Count(), Get_Field_Name(), Get_Field_Type(), Get_Record_byIndex(), CSG_Table_Record::is_NoData(), m_Encoding, CSG_File::Open(), CSG_File::Printf(), SG_DATATYPE_Date, SG_DATATYPE_String, SG_FILE_W, SG_UI_Process_Set_Progress(), and SG_UI_Process_Set_Ready().
Referenced by Save(), and CSG_Shapes::Save().
Definition at line 74 of file table_selection.cpp.
References CSG_Array::Get_Entry(), CSG_Array::Get_Size(), and m_Selection.
Referenced by _Add_Selection(), and CSG_PointCloud::Inv_Selection().
|
protected |
Definition at line 1211 of file table.cpp.
References CSG_Simple_Statistics::Invalidate(), m_Field_Stats, and m_nFields.
|
protected |
Definition at line 1200 of file table.cpp.
References CSG_Simple_Statistics::Invalidate(), m_Field_Stats, and m_nFields.
Referenced by CSG_PointCloud::Add_Point(), CSG_PointCloud::Del_Point(), CSG_PointCloud::Del_Points(), Del_Record(), CSG_PointCloud::Del_Selection(), Ins_Record(), On_NoData_Changed(), On_Update(), CSG_Table_Record::Set_NoData(), and CSG_Table_Record::Set_Value().
|
protectedvirtual |
Reimplemented in CSG_PointCloud.
Definition at line 1224 of file table.cpp.
References CSG_Table_Record::asDouble(), CSG_Simple_Statistics::Evaluate(), CSG_Simple_Statistics::Get_Count(), Get_Count(), CSG_Data_Object::Get_Max_Samples(), CSG_Simple_Statistics::is_Evaluated(), CSG_Table_Record::is_NoData(), m_Field_Stats, m_nFields, and CSG_Simple_Statistics::Set_Count().
Referenced by Get_Maximum(), Get_Mean(), Get_Minimum(), Get_N(), Get_Range(), Get_Statistics(), Get_StdDev(), Get_Sum(), and Get_Variance().
|
inlinevirtual |
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 481 of file table.cpp.
References CSG_Table_Record::_Add_Field(), CSG_String::Format(), CSG_String::is_Empty(), m_Field_Name, m_Field_Stats, m_Field_Type, m_nFields, m_nRecords, Set_Modified(), and SG_Realloc().
Referenced by CSG_Parameter_Fixed_Table::_Serialize(), CSG_Grids::Add_Attribute(), Create(), CSG_Category_Statistics::Create(), CSG_Grid_Cell_Addressor::CSG_Grid_Cell_Addressor(), CSG_Regression_Multiple::CSG_Regression_Multiple(), CSG_Grids::Destroy(), CSG_Projections::Get_Names_List(), CSG_Tool_Library_Manager::Get_Summary(), CSG_MetaData::Get_Table(), Mov_Field(), CSG_Table_DBase::Open_Read(), and Serialize().
|
inlinevirtual |
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 795 of file table.cpp.
References Ins_Record(), and m_nRecords.
Referenced by CSG_Regression_Multiple::_Get_Regression(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Regression_Multiple::_Set_Step_Info(), CSG_Projections::Add(), CSG_Grids::Add_Grid(), CSG_TIN::Add_Node(), CSG_Shapes::Add_Shape(), CSG_Category_Statistics::Add_Value(), Assign(), CSG_Regression_Multiple::CSG_Regression_Multiple(), CSG_Projections::Get_Names_List(), CSG_Tool_Library_Manager::Get_Summary(), CSG_MetaData::Get_Table(), CSG_Table_DBase::Open_Read(), Serialize(), and Set_Count().
|
virtual |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_TIN, and CSG_Shapes.
Definition at line 377 of file table.cpp.
References Add_Record(), CSG_Data_Object::Assign(), CSG_Data_Object::asTable(), Create(), Get_Count(), and Get_Record().
Referenced by CSG_Regression_Multiple::_Set_Step_Info(), Create(), Set_Record(), and CSG_Grids::Update_Z_Order().
bool CSG_Table::Assign_Values | ( | const CSG_Table & | Table | ) |
Definition at line 395 of file table.cpp.
References CSG_Table_Record::Assign(), Get_Count(), Get_Record(), is_Compatible(), and Set_Count().
Referenced by CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Fixed_Table::_Set_Value(), CSG_Parameters::Add_FixedTable(), Assign_Values(), and CSG_Parameters::Serialize_Compatibility().
bool CSG_Table::Assign_Values | ( | const SG_Char * | File | ) |
Definition at line 417 of file table.cpp.
References Assign_Values(), and Create().
bool CSG_Table::Assign_Values | ( | CSG_Table * | pTable | ) |
Definition at line 411 of file table.cpp.
References Assign_Values().
bool CSG_Table::Create | ( | const char * | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
bool CSG_Table::Create | ( | const char * | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
bool CSG_Table::Create | ( | const CSG_String & | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
bool CSG_Table::Create | ( | const CSG_String & | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
Definition at line 167 of file table.cpp.
References _TL, CSG_String::AfterFirst(), CSG_String::BeforeFirst(), CSG_String::c_str(), CSG_String::Cmp(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Tool_Library_Manager::Delete_Tool(), Destroy(), CSG_Tool::Execute(), CSG_String::Format(), Get_Count(), Load(), CSG_Tool::On_Before_Execution(), CSG_Data_Object::Set_File_Name(), CSG_Tool::Set_Manager(), Set_Modified(), CSG_Data_Object::Set_Update_Flag(), SG_File_Exists(), SG_Get_Tool_Library_Manager(), SG_TOOL_PARAMETER_SET, SG_UI_Msg_Add(), SG_UI_MSG_STYLE_FAILURE, SG_UI_MSG_STYLE_SUCCESS, and SG_UI_ProgressAndMsg_Lock().
bool CSG_Table::Create | ( | const CSG_Table & | Table | ) |
bool CSG_Table::Create | ( | const CSG_Table * | pTemplate | ) |
Definition at line 273 of file table.cpp.
References Add_Field(), Destroy(), CSG_Data_Object::Get_Description(), Get_Field_Count(), Get_Field_Name(), Get_Field_Type(), CSG_Data_Object::Get_Name(), CSG_Data_Object::Get_NoData_Value(), m_Encoding, CSG_Data_Object::Set_Description(), CSG_Data_Object::Set_Name(), and CSG_Data_Object::Set_NoData_Value_Range().
bool CSG_Table::Create | ( | const wchar_t * | File, |
TSG_Table_File_Type | Format, | ||
const SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
bool CSG_Table::Create | ( | const wchar_t * | File, |
TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined , |
||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
bool CSG_Table::Create | ( | void | ) |
Definition at line 139 of file table.cpp.
References Destroy().
Referenced by CSG_Parameter_Fixed_Table::_Assign(), CSG_Parameters::Add_FixedTable(), CSG_Shapes::Assign(), CSG_TIN::Assign(), Assign(), Assign_Values(), CSG_Shapes::Create(), CSG_TIN::Create(), Create(), CSG_Grids::Create(), CSG_Translator::Create(), CSG_Shapes::CSG_Shapes(), CSG_Table(), CSG_TIN::CSG_TIN(), CSG_Shapes::On_Reload(), On_Reload(), CSG_TIN::On_Reload(), and operator=().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 520 of file table.cpp.
References CSG_Table_Record::_Del_Field(), m_Field_Name, m_Field_Stats, m_Field_Type, m_nFields, m_nRecords, Set_Modified(), and SG_Realloc().
Referenced by CSG_Grids::Del_Attribute(), CSG_PointCloud::Del_Field(), and Mov_Field().
bool CSG_Table::Del_Index | ( | void | ) |
Definition at line 1337 of file table.cpp.
References CSG_Array_Int::Destroy(), and CSG_Index::Destroy().
Referenced by Del_Records(), Set_Index(), and Toggle_Index().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 869 of file table.cpp.
References _Del_Selection(), _Stats_Invalidate(), CSG_Index::Del_Entry(), CSG_Index::is_Okay(), is_Selected(), CSG_Table_Record::m_Index, m_nRecords, Set_Modified(), and CSG_Data_Object::Set_Update_Flag().
Referenced by CSG_Grids::Del_Grid(), CSG_TIN::Del_Node(), Del_Selection(), CSG_Shapes::Del_Shape(), and Set_Count().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 908 of file table.cpp.
References Del_Index(), m_nBuffer, m_nRecords, and SG_FREE_SAFE.
Referenced by CSG_TIN::_Destroy_Nodes(), CSG_Grids::Del_Grids(), CSG_Shapes::Del_Shapes(), CSG_Projections::Destroy(), CSG_Grid_Cell_Addressor::Destroy(), CSG_Category_Statistics::Destroy(), CSG_Regression_Multiple::Destroy(), and Destroy().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 178 of file table_selection.cpp.
References Del_Record(), Get_Selection_Count(), is_Selected(), m_nRecords, m_Selection, CSG_Array::Set_Array(), and CSG_Table_Record::Set_Selected().
|
virtual |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 332 of file table.cpp.
References Del_Records(), CSG_Data_Object::Destroy(), m_Field_Name, m_Field_Stats, m_Field_Type, m_nFields, and SG_Free().
Referenced by CSG_Category_Statistics::Create(), Create(), CSG_Grids::Destroy(), CSG_Shapes::Destroy(), CSG_TIN::Destroy(), Load(), CSG_Table_DBase::Open_Read(), Serialize(), and ~CSG_Table().
|
inline |
|
inline |
int CSG_Table::Find_Field | ( | const CSG_String & | Name | ) | const |
Returns the index of the field with the requested name or -1 if it does not exists.
Definition at line 713 of file table.cpp.
References CSG_String::Cmp(), Get_Field_Count(), and Get_Field_Name().
Referenced by Find_Field().
bool CSG_Table::Find_Field | ( | const CSG_String & | Name, |
int & | Index | ||
) | const |
Returns true if a field with the requested name exists and sets the Index parameter to its position.
Definition at line 731 of file table.cpp.
References Find_Field().
|
inline |
|
inline |
|
virtual |
Definition at line 1013 of file table.cpp.
References Find_Record(), and Get_Record().
|
virtual |
Definition at line 1093 of file table.cpp.
References Find_Record(), and Get_Record().
|
virtual |
Definition at line 946 of file table.cpp.
References CSG_Table_Record::asString(), CSG_String::Cmp(), CSG_Table_Record::Get_Index(), Get_Index_Field(), Get_Index_Order(), GET_RECORD, Get_Record_byIndex(), m_nFields, m_nRecords, Set_Index(), and TABLE_INDEX_Ascending.
Referenced by Find_Record(), and CSG_Category_Statistics::Get_Category().
|
virtual |
Definition at line 1026 of file table.cpp.
References CSG_Table_Record::Get_Index(), Get_Index_Field(), Get_Index_Order(), GET_RECORD, Get_Record_byIndex(), m_nFields, m_nRecords, Set_Index(), and TABLE_INDEX_Ascending.
|
inline |
Definition at line 392 of file table.h.
References m_nRecords.
Referenced by CSG_Regression_Multiple::_Initialize(), CSG_PointCloud::_On_Construction(), _Save_Text(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Regression_Multiple::_Set_Step_Info(), CSG_Parameter_Fixed_Table::_Set_String(), _Stats_Update(), CSG_Projections::Add(), CSG_Category_Statistics::Add_Value(), CSG_Shapes::Assign(), Assign(), Assign_Values(), CSG_Natural_Breaks::Create(), CSG_Translator::Create(), CSG_Grids::Create(), CSG_Shapes::Create(), Create(), CSG_KDTree_2D::Create(), CSG_KDTree_3D::Create(), CSG_TIN::Create(), CSG_PRQuadTree::Create(), CSG_Histogram::Create(), CSG_Regression_Multiple::Destroy(), CSG_Category_Statistics::Get_Category(), CSG_Projections::Get_Count(), CSG_Category_Statistics::Get_Count(), CSG_Regression_Multiple::Get_Info(), CSG_Category_Statistics::Get_Majority(), CSG_Category_Statistics::Get_Minority(), Get_N(), CSG_Projections::Get_Names_List(), CSG_TIN::Get_Node_Count(), CSG_Parameters_Point_Search_KDTree_2D::Get_Points(), CSG_Projections::Get_Preference(), CSG_Projections::Get_Projection(), CSG_Regression_Multiple::Get_RConst(), Get_Selection_Index(), CSG_Shapes::Get_Shape(), CSG_Tool_Library_Manager::Get_Summary(), CSG_Data_Manager::Get_Summary(), CSG_Grids::Get_Value(), CSG_Parameters_Point_Search_KDTree_2D::Initialize(), Inv_Selection(), CSG_Shape_Line::is_Valid(), CSG_Shape_Polygon::is_Valid(), CSG_Shapes::is_Valid(), CSG_TIN::is_Valid(), CSG_Parameter::is_Value_Equal(), CSG_Shapes::Make_Clean(), CSG_Parameters_Point_Search::On_Parameter_Changed(), CSG_Shapes::On_Update(), CSG_Table_DBase::Open_Write(), CSG_Shapes::Select(), CSG_Grids::Set_Attribute(), Set_Index(), CSG_Parameters_Point_Search_KDTree_2D::Set_Location(), and CSG_Parameters_Grid_Target::Set_User_Defined().
|
inlinevirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, and CSG_Shapes.
Definition at line 347 of file table.h.
References CSG_TIN::m_Extent.
int CSG_Table::Get_Field | ( | const char * | Name | ) | const |
Definition at line 693 of file table.cpp.
References Get_Field().
int CSG_Table::Get_Field | ( | const CSG_String & | Name | ) | const |
Definition at line 695 of file table.cpp.
References CSG_String::Cmp(), Get_Field_Count(), and Get_Field_Name().
Referenced by Get_Field(), and CSG_Grids::Set_Attribute().
int CSG_Table::Get_Field | ( | const wchar_t * | Name | ) | const |
Definition at line 694 of file table.cpp.
References Get_Field().
|
inline |
Definition at line 356 of file table.h.
References m_nFields.
Referenced by CSG_Table_Record::_Add_Field(), CSG_Table_Record::_Del_Field(), CSG_Table_Record::_Get_Field(), _Save_Text(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Fixed_Table::_Set_String(), CSG_Parameter_Table_Field::_Set_String(), CSG_Parameter_Table_Fields::_Set_Value(), CSG_Parameter_Table_Field::_Set_Value(), CSG_PointCloud::Add_Shape(), CSG_Table_Record::Assign(), CSG_Translator::Create(), Create(), CSG_Histogram::Create(), CSG_Table_Record::CSG_Table_Record(), CSG_Grids::Del_Attribute(), Find_Field(), CSG_Parameter_Table_Field::Get_Choices(), CSG_Parameter::Get_Description(), Get_Field(), CSG_Parameter_Table_Field::Get_Table(), CSG_Parameter_Table_Fields::Get_Table(), CSG_Grids::Get_Z_Name_Field(), is_Compatible(), CSG_Parameter::is_Value_Equal(), Load(), CSG_Table_DBase::Open_Write(), Save(), CSG_Grids::Set_Z_Attribute(), CSG_Grids::Set_Z_Name_Field(), and CSG_Table_Record::~CSG_Table_Record().
int CSG_Table::Get_Field_Length | ( | int | iField, |
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) | const |
Definition at line 659 of file table.cpp.
References CSG_String::Length(), m_Field_Type, m_nFields, m_nRecords, SG_DATATYPE_String, SG_FILE_ENCODING_UTF16BE, SG_FILE_ENCODING_UTF16LE, SG_FILE_ENCODING_UTF32BE, SG_FILE_ENCODING_UTF32LE, SG_FILE_ENCODING_UTF7, SG_FILE_ENCODING_UTF8, and CSG_String::to_UTF8().
Referenced by CSG_Table_DBase::Open_Write().
|
inline |
Definition at line 357 of file table.h.
References m_Field_Name, and m_nFields.
Referenced by CSG_Table_Record::_Get_Field(), _Save_Text(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Table_Field::_Set_String(), CSG_Parameter_Table_Field::_Set_Value(), CSG_Parameter_Table_Fields::_Set_Value(), Create(), CSG_PointCloud::Create(), Find_Field(), CSG_Parameter_Table_Field::Get_Choices(), Get_Field(), CSG_PointCloud::Mov_Field(), Mov_Field(), CSG_Table_DBase::Open_Write(), Save(), Serialize(), CSG_PointCloud::Set_Field_Type(), and SG_XML_Add_Parameter().
|
inline |
Definition at line 358 of file table.h.
References m_Field_Type, m_nFields, and SG_DATATYPE_Undefined.
Referenced by CSG_Table_Record::_Add_Field(), _Save_Text(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_PointCloud::Add_Shape(), Create(), CSG_PointCloud::Create(), CSG_Table_Record::CSG_Table_Record(), CSG_Category_Statistics::Get_Category_Type(), is_Compatible(), CSG_PointCloud::is_Compatible(), CSG_Table_Record::is_NoData(), CSG_PointCloud::Mov_Field(), Mov_Field(), CSG_Table_DBase::Open_Write(), Save(), Serialize(), CSG_Table_Record::Set_NoData(), and SG_XML_Add_Parameter().
|
inline |
Definition at line 336 of file table.h.
References m_Encoding.
Definition at line 397 of file table.h.
References is_Indexed(), and m_nRecords.
Referenced by CSG_TIN::_Triangulate().
|
inline |
Definition at line 441 of file table.h.
Referenced by Find_Record(), and Toggle_Index().
|
inline |
Definition at line 443 of file table.h.
References Get_Index_Field().
Referenced by Get_Index_Field().
|
inline |
Definition at line 442 of file table.h.
References TABLE_INDEX_Ascending, TABLE_INDEX_Descending, and TABLE_INDEX_None.
Referenced by Find_Record(), and Toggle_Index().
|
inline |
Definition at line 444 of file table.h.
References Get_Index_Order().
Referenced by Get_Index_Order().
|
inline |
Definition at line 376 of file table.h.
References _Stats_Update(), and m_Field_Stats.
Referenced by CSG_PointCloud::On_Update().
|
inline |
Definition at line 379 of file table.h.
References _Stats_Update(), and m_Field_Stats.
|
inline |
Definition at line 375 of file table.h.
References _Stats_Update(), and m_Field_Stats.
Referenced by CSG_PointCloud::On_Update().
|
inline |
Definition at line 374 of file table.h.
References _Stats_Update(), Get_Count(), and m_Field_Stats.
|
inlinevirtual |
Returns the object type as defined by TSG_Data_Object_Type. Used for run time type checking.
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 316 of file table.h.
References SG_DATAOBJECT_TYPE_Table.
Referenced by CSG_Shape::Assign(), and SG_Create_Table().
|
inline |
Definition at line 377 of file table.h.
References _Stats_Update(), and m_Field_Stats.
|
inlinevirtual |
Reimplemented in CSG_PointCloud.
Definition at line 394 of file table.h.
References m_nRecords.
Referenced by CSG_Regression_Multiple::_Get_Regression(), CSG_Regression_Multiple::_Initialize(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Regression_Multiple::_Set_Step_Info(), Assign(), Assign_Values(), CSG_Natural_Breaks::Create(), CSG_Translator::Create(), CSG_Histogram::Create(), CSG_Regression_Multiple::Destroy(), Find_Record(), CSG_Regression_Multiple::Get_CrossValidation(), CSG_Regression_Multiple::Get_CV_NRMSE(), CSG_Regression_Multiple::Get_CV_nSamples(), CSG_Regression_Multiple::Get_CV_R2(), CSG_Regression_Multiple::Get_CV_RMSE(), CSG_Regression_Multiple::Get_F(), CSG_Regression_Multiple::Get_Info(), CSG_Regression_Multiple::Get_Name(), CSG_Projections::Get_Names_List(), CSG_TIN::Get_Node(), CSG_Regression_Multiple::Get_nPredictors(), CSG_Regression_Multiple::Get_nSamples(), CSG_Regression_Multiple::Get_P(), CSG_Regression_Multiple::Get_Parameter(), CSG_Projections::Get_Preference(), CSG_Projections::Get_Projection(), CSG_Regression_Multiple::Get_R2(), CSG_Regression_Multiple::Get_R2_Adj(), CSG_Regression_Multiple::Get_RConst(), Get_Record_byIndex(), Get_Selection(), CSG_Regression_Multiple::Get_StdError(), Get_Value(), Inv_Selection(), CSG_Parameter::is_Value_Equal(), CSG_Table_DBase::Open_Write(), Select(), Serialize(), and Set_Value().
|
inline |
Definition at line 399 of file table.h.
References Get_Record(), is_Indexed(), and m_nRecords.
Referenced by _Save_Text(), CSG_Category_Statistics::Add_Value(), CSG_Category_Statistics::asDouble(), CSG_Category_Statistics::asInt(), CSG_Category_Statistics::asString(), CSG_Translator::Create(), Find_Record(), CSG_Category_Statistics::Get_Count(), CSG_Category_Statistics::Get_Majority(), CSG_Category_Statistics::Get_Minority(), CSG_Shapes::Get_Shape_byIndex(), and operator[]().
|
inlinevirtual |
Definition at line 422 of file table.h.
References Get_Record(), Get_Selection_Index(), CSG_Array::Get_Size(), and m_Selection.
Referenced by CSG_Shapes::Get_Selection().
|
inline |
Definition at line 420 of file table.h.
References CSG_Array::Get_Size(), and m_Selection.
Referenced by CSG_PointCloud::Del_Selection(), Del_Selection(), CSG_PointCloud::Get_Selection(), CSG_PointCloud::Get_Selection_Extent(), CSG_Shapes::Get_Selection_Extent(), Ins_Record(), CSG_PointCloud::Inv_Selection(), Inv_Selection(), CSG_Shapes::Select(), and CSG_PointCloud::Select().
Definition at line 421 of file table.h.
References Get_Count(), CSG_Array::Get_Entry(), CSG_Array::Get_Size(), and m_Selection.
Referenced by _Del_Selection(), CSG_PointCloud::Get_Selection(), Get_Selection(), CSG_PointCloud::Get_Selection_Extent(), and CSG_PointCloud::Select().
|
inline |
Definition at line 382 of file table.h.
References _Stats_Update(), and m_Field_Stats.
|
inline |
Definition at line 380 of file table.h.
References _Stats_Update(), and m_Field_Stats.
|
inline |
Definition at line 378 of file table.h.
References _Stats_Update(), and m_Field_Stats.
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 1157 of file table.cpp.
References CSG_Table_Record::asString(), Get_Record(), and m_nFields.
Referenced by CSG_PointCloud::Get_Attribute(), and CSG_PointCloud::is_NoData().
|
virtual |
Definition at line 1175 of file table.cpp.
References CSG_Table_Record::asDouble(), Get_Record(), and m_nFields.
|
inline |
Definition at line 381 of file table.h.
References _Stats_Update(), Get_Variance(), and m_Field_Stats.
Referenced by Get_Variance().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 801 of file table.cpp.
References _Get_New_Record(), _Stats_Invalidate(), CSG_Index::Add_Entry(), CSG_Table_Record::Assign(), CSG_Array::Get_Array(), Get_Selection_Count(), CSG_Array::Get_Size(), CSG_Index::is_Okay(), CSG_Table_Record::m_Index, m_nRecords, m_Selection, Set_Modified(), and CSG_Data_Object::Set_Update_Flag().
Referenced by Add_Record().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 203 of file table_selection.cpp.
References Get_Count(), CSG_Array::Get_Entry(), Get_Record(), Get_Selection_Count(), CSG_Array::Get_Size(), CSG_Table_Record::is_Selected(), m_nRecords, m_Selection, CSG_Array::Set_Array(), and CSG_Table_Record::Set_Selected().
bool CSG_Table::is_Compatible | ( | const CSG_Table & | Table, |
bool | bExactMatch = false |
||
) | const |
Definition at line 430 of file table.cpp.
References Get_Field_Count(), Get_Field_Type(), and SG_DATATYPE_String.
Referenced by Assign_Values(), CSG_Parameter::is_Compatible(), is_Compatible(), and CSG_Parameter::is_Value_Equal().
bool CSG_Table::is_Compatible | ( | CSG_Table * | pTable, |
bool | bExactMatch = false |
||
) | const |
Definition at line 468 of file table.cpp.
References is_Compatible().
|
inline |
Definition at line 437 of file table.h.
References m_nRecords.
Referenced by Get_Index(), Get_Record_byIndex(), and Set_Index().
|
inlinevirtual |
Reimplemented in CSG_PointCloud.
Definition at line 424 of file table.h.
References is_Selected(), and m_nRecords.
Referenced by Del_Record(), Del_Selection(), and is_Selected().
|
inlinevirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 341 of file table.h.
References m_nFields.
bool CSG_Table::Load | ( | const CSG_String & | File, |
int | Format, | ||
SG_Char | Separator, | ||
int | Encoding = SG_FILE_ENCODING_UNDEFINED |
||
) |
Definition at line 99 of file table_io.cpp.
References Destroy(), CSG_MetaData::Get_Child(), CSG_MetaData::Get_Children_Count(), CSG_MetaData::Get_Content(), Get_Field_Count(), CSG_Data_Object::Get_MetaData_DB(), CSG_Data_Object::Load_MetaData(), Set_Field_Name(), Set_File_Encoding(), CSG_Data_Object::Set_Name(), SG_File_Cmp_Extension(), SG_File_Exists(), SG_File_Get_Name(), TABLE_FILETYPE_DBase, TABLE_FILETYPE_Text, TABLE_FILETYPE_Text_NoHeadLine, and TABLE_FILETYPE_Undefined.
Referenced by Create().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 558 of file table.cpp.
References Add_Field(), Del_Field(), Get_Field_Name(), Get_Field_Type(), CSG_Table_Record::Get_Value(), m_nFields, and m_nRecords.
|
protectedvirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 70 of file table_io.cpp.
References CSG_Data_Object::Get_File_Name(), and SG_File_Delete().
|
protectedvirtual |
Reimplemented from CSG_Data_Object.
Definition at line 1280 of file table.cpp.
References _Stats_Invalidate(), and CSG_Data_Object::On_NoData_Changed().
|
protectedvirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 64 of file table_io.cpp.
References Create(), and CSG_Data_Object::Get_File_Name().
|
protectedvirtual |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 1288 of file table.cpp.
References _Stats_Invalidate(), CSG_Index::is_Okay(), and CSG_Data_Object::On_Update().
Referenced by CSG_Shapes::On_Update().
|
inlinevirtual |
Definition at line 395 of file table.h.
References Get_Record_byIndex().
|
inlinevirtual |
|
inlinevirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 332 of file table.h.
References Save().
Referenced by Save().
|
virtual |
Definition at line 155 of file table_io.cpp.
References _Save_DBase(), _Save_Text(), _TL, CSG_MetaData::Add_Child(), CSG_String::c_str(), CSG_MetaData::Del_Children(), CSG_String::Format(), CSG_MetaData::Get_Child(), Get_Field_Count(), Get_Field_Name(), Get_Field_Type(), CSG_Data_Object::Get_MetaData_DB(), gSG_Data_Type_Identifier, CSG_Data_Object::Save_MetaData(), Set_File_Encoding(), CSG_Data_Object::Set_File_Name(), CSG_Data_Object::Set_File_Type(), Set_Modified(), CSG_Data_Object::Set_Update_Flag(), SG_File_Cmp_Extension(), SG_UI_Msg_Add(), SG_UI_MSG_STYLE_FAILURE, SG_UI_MSG_STYLE_SUCCESS, TABLE_FILETYPE_DBase, TABLE_FILETYPE_Text, and TABLE_FILETYPE_Text_NoHeadLine.
Referenced by CSG_Projections::Save(), and Save().
|
virtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 149 of file table_io.cpp.
References m_Encoding, and Save().
|
inlinevirtual |
|
inlinevirtual |
Implements CSG_Data_Object.
Reimplemented in CSG_TIN, CSG_Shapes, and CSG_PointCloud.
Definition at line 333 of file table.h.
References Save().
Referenced by Save().
|
virtual |
Reimplemented in CSG_Shapes, and CSG_PointCloud.
Definition at line 167 of file table_selection.cpp.
References CSG_Table_Record::Get_Index(), and Select().
|
virtual |
Reimplemented in CSG_Shapes, and CSG_PointCloud.
Definition at line 136 of file table_selection.cpp.
References _Add_Selection(), _Del_Selection(), Get_Record(), CSG_Table_Record::is_Selected(), and CSG_Table_Record::Set_Selected().
Referenced by Select(), CSG_PointCloud::Select(), CSG_Shapes::Select(), and CSG_Table_Record::~CSG_Table_Record().
bool CSG_Table::Serialize | ( | CSG_File & | Stream, |
bool | bSave | ||
) |
Definition at line 538 of file table_io.cpp.
References Add_Field(), Add_Record(), CSG_String::AfterFirst(), CSG_String::BeforeFirst(), Destroy(), Get_Field_Name(), Get_Field_Type(), Get_Record(), m_nFields, m_nRecords, CSG_File::Printf(), CSG_File::Read_Line(), CSG_Table_Record::Set_Value(), SG_Char, SG_SSCANF, and SG_T.
Referenced by CSG_Parameters::Serialize_Compatibility().
|
virtual |
Definition at line 926 of file table.cpp.
References Add_Record(), Del_Record(), and m_nRecords.
Referenced by CSG_PointCloud::_On_Construction(), Assign_Values(), and CSG_Grids::Set_Grid_Count().
bool CSG_Table::Set_Field_Name | ( | int | iField, |
const SG_Char * | Name | ||
) |
Definition at line 611 of file table.cpp.
References m_Field_Name, m_nFields, and Set_Modified().
Referenced by Load().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 626 of file table.cpp.
References CSG_Table_Record::_Create_Value(), m_Field_Type, m_nFields, m_nRecords, CSG_Table_Record::m_Values, and CSG_Table_Record::Set_Modified().
Referenced by CSG_PointCloud::Set_Field_Type().
bool CSG_Table::Set_File_Encoding | ( | int | Encoding | ) |
Definition at line 81 of file table_io.cpp.
References m_Encoding, and SG_FILE_ENCODING_UNDEFINED.
bool CSG_Table::Set_Index | ( | CSG_Index & | Index, |
const CSG_Array_Int & | Fields, | ||
bool | bAscending = true |
||
) | const |
Definition at line 1526 of file table.cpp.
References CSG_Array_Int::Get_Array(), CSG_Array_Int::Get_Size(), and Set_Index().
bool CSG_Table::Set_Index | ( | CSG_Index & | Index, |
int | Field, | ||
bool | bAscending = true |
||
) | const |
Definition at line 1426 of file table.cpp.
References CSG_Index::Create(), and Get_Count().
Referenced by CSG_Translator::Create(), Find_Record(), CSG_Projections::Get_Names_List(), CSG_Tool_Library_Manager::Get_Summary(), Set_Index(), CSG_Category_Statistics::Sort(), Toggle_Index(), and CSG_Grids::Update_Z_Order().
bool CSG_Table::Set_Index | ( | CSG_Index & | Index, |
int | Fields[], | ||
int | nFields, | ||
bool | bAscending = true |
||
) | const |
Definition at line 1518 of file table.cpp.
References CSG_Index::Create(), and Get_Count().
bool CSG_Table::Set_Index | ( | int | Field_1, |
TSG_Table_Index_Order | Order_1 = TABLE_INDEX_Ascending , |
||
int | Field_2 = -1 , |
||
TSG_Table_Index_Order | Order_2 = TABLE_INDEX_None , |
||
int | Field_3 = -1 , |
||
TSG_Table_Index_Order | Order_3 = TABLE_INDEX_None |
||
) |
Definition at line 1308 of file table.cpp.
References Del_Index(), CSG_Array_Int::Destroy(), is_Indexed(), m_nFields, TABLE_INDEX_Ascending, and TABLE_INDEX_None.
|
virtual |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_PointCloud.
Definition at line 1113 of file table.cpp.
References CSG_Data_Object::is_Modified(), m_nRecords, CSG_Data_Object::Set_Modified(), and CSG_Table_Record::Set_Modified().
Referenced by Add_Field(), CSG_Shapes::Create(), CSG_TIN::Create(), Create(), Del_Field(), Del_Record(), Ins_Record(), Save(), CSG_Shapes::Save(), CSG_TIN::Save(), Set_Field_Name(), and CSG_Table_Record::Set_Modified().
|
virtual |
Definition at line 858 of file table.cpp.
References Assign(), and m_nRecords.
Reimplemented in CSG_PointCloud.
Definition at line 1131 of file table.cpp.
References Get_Record(), m_nFields, and CSG_Table_Record::Set_Value().
Referenced by CSG_Grids::Add_Grid(), CSG_Tool_Library_Manager::Get_Summary(), CSG_PointCloud::Set_Attribute(), CSG_Grids::Set_Attribute(), and CSG_PointCloud::Set_NoData().
|
virtual |
Reimplemented in CSG_PointCloud.
Definition at line 1144 of file table.cpp.
References Get_Record(), m_nFields, and CSG_Table_Record::Set_Value().
bool CSG_Table::Toggle_Index | ( | int | iField | ) |
Definition at line 1347 of file table.cpp.
References Del_Index(), Get_Index_Field(), Get_Index_Order(), m_nFields, Set_Index(), TABLE_INDEX_Ascending, and TABLE_INDEX_Descending.
|
friend |
Definition at line 284 of file table.h.
Referenced by _Get_New_Record().
|
protected |
Definition at line 449 of file table.h.
Referenced by CSG_Shapes::_On_Construction(), _On_Construction(), _Save_DBase(), _Save_Text(), Create(), CSG_Table_DBase::CSG_Table_DBase(), Get_File_Encoding(), CSG_Table_DBase::Open_Write(), Save(), and Set_File_Encoding().
|
protected |
Definition at line 461 of file table.h.
Referenced by CSG_PointCloud::On_Update(), and CSG_Shapes::On_Update().
|
protected |
Definition at line 455 of file table.h.
Referenced by CSG_PointCloud::_On_Construction(), _On_Construction(), Add_Field(), CSG_PointCloud::Assign(), CSG_PointCloud::Del_Field(), Del_Field(), CSG_PointCloud::Destroy(), Destroy(), Get_Field_Name(), and Set_Field_Name().
|
protected |
Definition at line 457 of file table.h.
Referenced by CSG_PointCloud::_On_Construction(), _On_Construction(), _Stats_Invalidate(), CSG_PointCloud::_Stats_Update(), _Stats_Update(), Add_Field(), CSG_PointCloud::Del_Field(), Del_Field(), CSG_PointCloud::Destroy(), Destroy(), Get_Maximum(), Get_Mean(), Get_Minimum(), Get_N(), Get_Range(), Get_Statistics(), Get_StdDev(), Get_Sum(), Get_Variance(), and CSG_PointCloud::On_Update().
|
protected |
Definition at line 453 of file table.h.
Referenced by CSG_PointCloud::_On_Construction(), _On_Construction(), Add_Field(), CSG_PointCloud::Assign(), CSG_PointCloud::Del_Field(), Del_Field(), CSG_PointCloud::Destroy(), Destroy(), Get_Field_Length(), Get_Field_Type(), CSG_PointCloud::Mov_Field(), CSG_PointCloud::Set_Field_Type(), and Set_Field_Type().
|
protected |
Definition at line 451 of file table.h.
Referenced by _On_Construction(), and Del_Records().
|
protected |
Definition at line 449 of file table.h.
Referenced by CSG_PointCloud::_On_Construction(), _On_Construction(), _Stats_Invalidate(), CSG_PointCloud::_Stats_Update(), _Stats_Update(), CSG_PointCloud::Add_Field(), Add_Field(), CSG_PointCloud::Add_Shape(), CSG_PointCloud::Assign(), CSG_Table_DBase::Close(), CSG_PointCloud::Create(), CSG_Table_DBase::CSG_Table_DBase(), CSG_PointCloud::Del_Field(), Del_Field(), CSG_PointCloud::Destroy(), Destroy(), Find_Record(), Get_Field_Count(), Get_Field_Length(), Get_Field_Name(), Get_Field_Type(), Get_Value(), CSG_PointCloud::is_Compatible(), is_Valid(), CSG_PointCloud::Mov_Field(), Mov_Field(), CSG_PointCloud::On_Update(), CSG_Table_DBase::Open_Write(), Serialize(), Set_Field_Name(), CSG_PointCloud::Set_Field_Type(), Set_Field_Type(), Set_Index(), Set_Value(), and Toggle_Index().
|
protected |
Definition at line 451 of file table.h.
Referenced by CSG_PointCloud::_On_Construction(), _On_Construction(), CSG_PointCloud::_Stats_Update(), Add_Field(), Add_Record(), CSG_PointCloud::Add_Shape(), CSG_PointCloud::Assign(), CSG_Table_DBase::Close(), CSG_PointCloud::Del_Field(), Del_Field(), CSG_PointCloud::Del_Point(), CSG_PointCloud::Del_Points(), Del_Record(), Del_Records(), CSG_PointCloud::Del_Selection(), Del_Selection(), Find_Record(), Get_Count(), Get_Field_Length(), Get_Index(), CSG_PointCloud::Get_Point(), Get_Record(), Get_Record_byIndex(), CSG_PointCloud::Get_Shape(), Ins_Record(), CSG_PointCloud::Inv_Selection(), Inv_Selection(), is_Indexed(), CSG_PointCloud::is_Selected(), is_Selected(), CSG_PointCloud::Mov_Field(), Mov_Field(), CSG_PointCloud::Select(), Serialize(), Set_Count(), CSG_PointCloud::Set_Field_Type(), Set_Field_Type(), Set_Modified(), CSG_PointCloud::Set_Point(), and Set_Record().
|
protected |
Definition at line 459 of file table.h.
Referenced by _Add_Selection(), _Del_Selection(), _On_Construction(), _Set_Selection(), CSG_PointCloud::Del_Points(), CSG_PointCloud::Del_Selection(), Del_Selection(), Get_Selection(), Get_Selection_Count(), Get_Selection_Index(), Ins_Record(), CSG_PointCloud::Inv_Selection(), Inv_Selection(), and CSG_PointCloud::Select().