|
SAGA API v2.0.8
|
#include <table.h>
Public Member Functions | |
| CSG_Table (void) | |
| CSG_Table (const CSG_Table &Table) | |
| bool | Create (const CSG_Table &Table) |
| CSG_Table (const CSG_String &File_Name, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined) | |
| bool | Create (const CSG_String &File_Name, TSG_Table_File_Type Format=TABLE_FILETYPE_Undefined) |
| CSG_Table (const CSG_String &File_Name, TSG_Table_File_Type Format, const SG_Char *Separator) | |
| bool | Create (const CSG_String &File_Name, TSG_Table_File_Type Format, const SG_Char *Separator) |
| CSG_Table (CSG_Table *pTemplate) | |
| bool | Create (CSG_Table *pTemplate) |
| 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. | |
| virtual bool | Assign (CSG_Data_Object *pSource) |
| bool | Assign_Values (CSG_Table *pTable) |
| virtual bool | Save (const CSG_String &File_Name, int Format=0) |
| virtual bool | Save (const CSG_String &File_Name, int Format, const SG_Char *Separator) |
| bool | Serialize (CSG_File &Stream, bool bSave) |
| CSG_Data_Object * | Get_Owner (void) |
| bool | is_Private (void) const |
| virtual bool | is_Valid (void) const |
| bool | is_Compatible (CSG_Table *pTable, bool bExactMatch=false) const |
| virtual bool | Add_Field (const SG_Char *Name, TSG_Data_Type Type, int iField=-1) |
| virtual bool | Del_Field (int iField) |
| 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) const |
| bool | Set_Field_Name (int iField, const SG_Char *Name) |
| bool | Set_Field_Type (int iField, TSG_Data_Type Type) |
| double | Get_Minimum (int iField) const |
| double | Get_Maximum (int iField) const |
| double | Get_Range (int iField) const |
| double | Get_Mean (int iField) const |
| double | Get_StdDev (int iField) const |
| double | Get_Variance (int iField) const |
| virtual CSG_Table_Record * | Add_Record (CSG_Table_Record *pCopy=NULL) |
| virtual CSG_Table_Record * | Ins_Record (int iRecord, CSG_Table_Record *pCopy=NULL) |
| virtual bool | Del_Record (int iRecord) |
| virtual bool | Del_Records (void) |
| int | Get_Count (void) const |
| int | Get_Record_Count (void) const |
| virtual CSG_Table_Record * | Get_Record (int iRecord) const |
| virtual CSG_Table_Record & | operator[] (int iRecord) const |
| int | Get_Index (int Index) const |
| CSG_Table_Record * | Get_Record_byIndex (int Index) const |
| virtual bool | Set_Value (int iRecord, int iField, const SG_Char *Value) |
| virtual bool | Set_Value (int iRecord, int iField, double Value) |
| virtual bool | Get_Value (int iRecord, int iField, CSG_String &Value) const |
| virtual bool | Get_Value (int iRecord, int iField, double &Value) const |
| virtual void | Set_Modified (bool bModified=true) |
| int | Get_Selection_Count (void) const |
| virtual CSG_Table_Record * | Get_Selection (int Index=0) const |
| virtual bool | is_Selected (int iRecord) const |
| virtual bool | Select (int iRecord, bool bInvert=false) |
| virtual bool | Select (CSG_Table_Record *pRecord=NULL, bool bInvert=false) |
| virtual int | Del_Selection (void) |
| virtual int | Inv_Selection (void) |
| bool | Set_Index (int Field_1, TSG_Table_Index_Order Order_1, 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) |
| bool | is_Indexed (void) const |
| int | Get_Index_Field (int i) const |
| TSG_Table_Index_Order | Get_Index_Order (int i) const |
Protected Member Functions | |
| virtual void | _On_Construction (void) |
| virtual CSG_Table_Record * | _Get_New_Record (int Index) |
| bool | _Create (const CSG_Table &Table) |
| bool | _Create (const CSG_String &File_Name, TSG_Table_File_Type Format, const SG_Char *Separator) |
| bool | _Create (CSG_Table *pTemplate) |
| bool | _Stats_Invalidate (void) const |
| bool | _Stats_Invalidate (int iField) const |
| virtual bool | _Stats_Update (int iField) const |
Protected Attributes | |
| int | m_nFields |
| int | m_nRecords |
| int | m_nBuffer |
| int | m_nSelected |
| TSG_Data_Type * | m_Field_Type |
| CSG_String ** | m_Field_Name |
| CSG_Simple_Statistics ** | m_Field_Stats |
Friends | |
| class | CSG_Table_Record |
| class | CSG_TIN |
| CSG_Table::CSG_Table | ( | void | ) |
Definition at line 135 of file table.cpp.
References _On_Construction().
| CSG_Table::CSG_Table | ( | const CSG_Table & | Table | ) |
Definition at line 142 of file table.cpp.
References _On_Construction(), and Create().
| CSG_Table::CSG_Table | ( | const CSG_String & | File_Name, |
| TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined |
||
| ) |
Definition at line 168 of file table.cpp.
References _On_Construction(), and Create().
| CSG_Table::CSG_Table | ( | const CSG_String & | File_Name, |
| TSG_Table_File_Type | Format, | ||
| const SG_Char * | Separator | ||
| ) |
Definition at line 181 of file table.cpp.
References _On_Construction(), and Create().
| CSG_Table::CSG_Table | ( | CSG_Table * | pTemplate | ) |
Definition at line 200 of file table.cpp.
References _On_Construction(), and Create().
| bool CSG_Table::_Create | ( | const CSG_Table & | Table | ) | [protected] |
Definition at line 155 of file table.cpp.
References Assign(), CSG_Data_Object::Get_Name(), and CSG_Data_Object::Set_Name().
Referenced by CSG_TIN::Assign(), CSG_TIN::Create(), Create(), and CSG_Shapes::Create().
| bool CSG_Table::_Create | ( | const CSG_String & | File_Name, |
| TSG_Table_File_Type | Format, | ||
| const SG_Char * | Separator | ||
| ) | [protected] |
| bool CSG_Table::_Create | ( | CSG_Table * | pTemplate | ) | [protected] |
Definition at line 213 of file table.cpp.
References Add_Field(), Get_Field_Count(), Get_Field_Name(), and Get_Field_Type().
| CSG_Table_Record * CSG_Table::_Get_New_Record | ( | int | Index | ) | [protected, virtual] |
Reimplemented in CSG_Shapes, and CSG_TIN.
Definition at line 701 of file table.cpp.
References CSG_Table_Record.
| void CSG_Table::_On_Construction | ( | void | ) | [protected, virtual] |
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 238 of file table.cpp.
References m_Field_Name, m_Field_Stats, m_Field_Type, m_nBuffer, m_nFields, m_nRecords, m_nSelected, and CSG_Data_Object::Set_Update_Flag().
Referenced by CSG_Grid::CSG_Grid(), and CSG_Table().
| bool CSG_Table::_Stats_Invalidate | ( | int | iField | ) | const [protected] |
Definition at line 998 of file table.cpp.
References CSG_Simple_Statistics::Invalidate(), m_Field_Stats, and m_nFields.
| bool CSG_Table::_Stats_Invalidate | ( | void | ) | const [protected] |
Definition at line 987 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_Table_Record::Set_NoData(), and CSG_Table_Record::Set_Value().
| bool CSG_Table::_Stats_Update | ( | int | iField | ) | const [protected, virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 1011 of file table.cpp.
References CSG_Simple_Statistics::Add_Value(), m_Field_Stats, and m_nRecords.
Referenced by Get_Maximum(), Get_Mean(), Get_Minimum(), Get_Range(), Get_StdDev(), and Get_Variance().
| bool CSG_Table::Add_Field | ( | const SG_Char * | Name, |
| TSG_Data_Type | Type, | ||
| int | iField = -1 |
||
| ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 444 of file table.cpp.
References CSG_Table_Record::_Add_Field(), m_Field_Name, m_Field_Stats, m_Field_Type, m_nFields, m_nRecords, Set_Modified(), and SG_Realloc().
Referenced by _Create(), CSG_Grid_Cell_Addressor::CSG_Grid_Cell_Addressor(), CSG_Regression_Multiple::CSG_Regression_Multiple(), CSG_Parameter_Fixed_Table::On_Serialize(), and Serialize().
| CSG_Table_Record * CSG_Table::Add_Record | ( | CSG_Table_Record * | pCopy = NULL | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 707 of file table.cpp.
References is_Private().
Referenced by CSG_Regression_Multiple::_Get_Regression(), CSG_Regression_Multiple::_Set_Step_Info(), CSG_Projections::Add(), CSG_Parameters::Add_FixedTable(), CSG_TIN::Add_Node(), CSG_Shapes::Add_Shape(), Assign_Values(), CSG_Regression_Multiple::CSG_Regression_Multiple(), CSG_Projections::Load_DB(), CSG_Projections::Load_Dictionary(), and CSG_Parameter_Fixed_Table::On_Serialize().
| bool CSG_Table::Assign | ( | CSG_Data_Object * | pSource | ) | [virtual] |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 316 of file table.cpp.
References is_Private().
Referenced by _Create(), CSG_Regression_Multiple::_Set_Step_Info(), and CSG_Parameter_Fixed_Table::On_Assign().
| bool CSG_Table::Assign_Values | ( | CSG_Table * | pTable | ) |
Definition at line 355 of file table.cpp.
References Add_Record(), CSG_Table_Record::Assign(), Del_Records(), Get_Record(), Get_Record_Count(), is_Compatible(), and is_Private().
Referenced by CSG_Parameter_Fixed_Table::On_Serialize(), and CSG_Parameters::Serialize_Compatibility().
| bool CSG_Table::Create | ( | const CSG_String & | File_Name, |
| TSG_Table_File_Type | Format = TABLE_FILETYPE_Undefined |
||
| ) |
Definition at line 175 of file table.cpp.
References _Create(), and is_Private().
| bool CSG_Table::Create | ( | const CSG_Table & | Table | ) |
Definition at line 150 of file table.cpp.
References _Create(), and is_Private().
Referenced by CSG_Parameters::Add_FixedTable(), CSG_Translator::Create(), CSG_Table(), CSG_Projections::Load_DB(), and CSG_Projections::Load_Dictionary().
| bool CSG_Table::Create | ( | const CSG_String & | File_Name, |
| TSG_Table_File_Type | Format, | ||
| const SG_Char * | Separator | ||
| ) |
Definition at line 189 of file table.cpp.
References _Create(), and is_Private().
| bool CSG_Table::Create | ( | CSG_Table * | pTemplate | ) |
Definition at line 208 of file table.cpp.
References _Create(), and is_Private().
| bool CSG_Table::Del_Field | ( | int | iField | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 492 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().
| bool CSG_Table::Del_Index | ( | void | ) |
Definition at line 1075 of file table.cpp.
References is_Indexed().
| bool CSG_Table::Del_Record | ( | int | iRecord | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 809 of file table.cpp.
References is_Private().
Referenced by CSG_TIN::Del_Node(), and CSG_Shapes::Del_Shape().
| bool CSG_Table::Del_Records | ( | void | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 867 of file table.cpp.
References is_Private().
Referenced by CSG_TIN::_Destroy_Nodes(), Assign_Values(), CSG_Shapes::Del_Shapes(), CSG_Projections::Destroy(), CSG_Regression_Multiple::Destroy(), and CSG_Grid_Cell_Addressor::Destroy().
| int CSG_Table::Del_Selection | ( | void | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 159 of file table_selection.cpp.
References CSG_Table_Record::Get_Index(), is_Private(), CSG_Table_Record::Set_Selected(), and SG_Free().
| bool CSG_Table::Destroy | ( | void | ) | [virtual] |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 273 of file table.cpp.
References is_Private().
Referenced by CSG_Shapes::Destroy().
| int CSG_Table::Get_Count | ( | void | ) | const [inline] |
Definition at line 279 of file table.h.
References m_nRecords.
Referenced by CSG_Regression_Multiple::_Set_Step_Info(), CSG_PointCloud::_Stats_Update(), CSG_Projections::Add(), CSG_PointCloud::Add_Shape(), CSG_Shapes::Assign(), CSG_PointCloud::Assign(), CSG_TIN::Create(), CSG_Shapes_Search::Create(), CSG_Shapes::Create(), CSG_PRQuadTree::Create(), CSG_PointCloud::Del_Point(), CSG_Regression_Multiple::Destroy(), CSG_Projections::EPSG_to_Proj4(), CSG_Projections::EPSG_to_WKT(), CSG_Projections::Get_Count(), CSG_Regression_Multiple::Get_Info(), CSG_TIN::Get_Node_Count(), CSG_PointCloud::Get_Point(), CSG_Projections::Get_Projection(), CSG_Regression_Multiple::Get_RConst(), CSG_Shapes::Get_Shape(), CSG_PointCloud::Get_Shape(), CSG_PointCloud::is_Selected(), CSG_TIN::is_Valid(), CSG_Shapes::is_Valid(), CSG_Shape_Polygon::is_Valid(), CSG_Shape_Line::is_Valid(), CSG_Projections::Load_DB(), CSG_Projections::Load_Dictionary(), CSG_Shapes::Make_Clean(), CSG_Parameter_Fixed_Table::On_Serialize(), CSG_Shapes::On_Update(), CSG_Shapes::Select(), CSG_PointCloud::Select(), CSG_Grid_Cell_Addressor::Set_Annulus(), Set_Modified(), CSG_Grid_Cell_Addressor::Set_Radius(), and CSG_Grid_Cell_Addressor::Set_Sector().
| int CSG_Table::Get_Field_Count | ( | void | ) | const [inline] |
Definition at line 258 of file table.h.
References m_nFields.
Referenced by CSG_Table_Record::_Add_Field(), _Create(), CSG_Table_Record::_Del_Field(), CSG_Table_Record::_Get_Field(), CSG_PointCloud::Add_Shape(), CSG_Table_Record::Assign(), CSG_Parameter_Fixed_Table::asString(), CSG_PointCloud::Create(), CSG_Translator::Create(), CSG_Table_Record::CSG_Table_Record(), CSG_Parameter::Get_Description(), CSG_Parameter_Table_Field::Get_Table(), is_Compatible(), CSG_PointCloud::is_Compatible(), CSG_Projections::Load_Dictionary(), CSG_Parameter_Fixed_Table::On_Serialize(), CSG_Parameter_Table_Field::Set_Value(), and CSG_Table_Record::~CSG_Table_Record().
| int CSG_Table::Get_Field_Length | ( | int | iField | ) | const |
Definition at line 595 of file table.cpp.
References CSG_Table_Record::asString(), m_Field_Type, m_nFields, m_nRecords, SG_Char, SG_DATATYPE_String, and SG_STR_LEN.
| const SG_Char* CSG_Table::Get_Field_Name | ( | int | iField | ) | const [inline] |
Definition at line 259 of file table.h.
References m_Field_Name, and m_nFields.
Referenced by _Create(), CSG_Table_Record::_Get_Field(), CSG_Parameter_Table_Field::asString(), CSG_PointCloud::Create(), CSG_Parameter_Fixed_Table::On_Serialize(), Serialize(), and CSG_Parameter_Table_Field::Set_Value().
| TSG_Data_Type CSG_Table::Get_Field_Type | ( | int | iField | ) | const [inline] |
Definition at line 260 of file table.h.
References m_Field_Type, m_nFields, and SG_DATATYPE_Undefined.
Referenced by CSG_Table_Record::_Add_Field(), _Create(), CSG_PointCloud::Add_Shape(), CSG_PointCloud::Create(), CSG_Table_Record::CSG_Table_Record(), is_Compatible(), CSG_PointCloud::is_Compatible(), CSG_Table_Record::is_NoData(), CSG_Parameter_Fixed_Table::On_Serialize(), Serialize(), Set_Field_Type(), and CSG_Table_Record::Set_NoData().
| int CSG_Table::Get_Index | ( | int | Index | ) | const [inline] |
Definition at line 284 of file table.h.
References m_nRecords.
Referenced by CSG_TIN::_Triangulate().
| TSG_Table_Index_Order CSG_Table::Get_Index_Order | ( | int | i | ) | const [inline] |
Definition at line 330 of file table.h.
References TABLE_INDEX_None.
| double CSG_Table::Get_Maximum | ( | int | iField | ) | const [inline] |
Definition at line 267 of file table.h.
References _Stats_Update(), Get_Maximum(), and m_Field_Stats.
Referenced by Get_Maximum(), and CSG_PointCloud::On_Update().
| double CSG_Table::Get_Mean | ( | int | iField | ) | const [inline] |
Definition at line 269 of file table.h.
References _Stats_Update(), Get_Mean(), and m_Field_Stats.
Referenced by Get_Mean().
| double CSG_Table::Get_Minimum | ( | int | iField | ) | const [inline] |
Definition at line 266 of file table.h.
References _Stats_Update(), Get_Minimum(), and m_Field_Stats.
Referenced by Get_Minimum(), and CSG_PointCloud::On_Update().
| virtual TSG_Data_Object_Type CSG_Table::Get_ObjectType | ( | void | ) | const [inline, virtual] |
Returns the object type as defined by TSG_Data_Object_Type. Used for run time type checking.
Implements CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 235 of file table.h.
References DATAOBJECT_TYPE_Table.
Referenced by CSG_Shapes::Add_Shape(), CSG_Data_Object::asTable(), and SG_Create_Table().
| CSG_Data_Object* CSG_Table::Get_Owner | ( | void | ) | [inline] |
| double CSG_Table::Get_Range | ( | int | iField | ) | const [inline] |
Definition at line 268 of file table.h.
References _Stats_Update(), Get_Range(), and m_Field_Stats.
Referenced by Get_Range().
| virtual CSG_Table_Record* CSG_Table::Get_Record | ( | int | iRecord | ) | const [inline, virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 281 of file table.h.
References m_nRecords.
Referenced by CSG_Regression_Multiple::_Get_Regression(), CSG_Regression_Multiple::_Set_Step_Info(), CSG_Parameters::Add_FixedTable(), Assign_Values(), CSG_Translator::Create(), CSG_Regression_Multiple::Destroy(), CSG_Projections::EPSG_to_Proj4(), CSG_Projections::EPSG_to_WKT(), 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_Projection(), CSG_Regression_Multiple::Get_R2(), CSG_Regression_Multiple::Get_R2_Adj(), CSG_Regression_Multiple::Get_RConst(), Get_Record_byIndex(), CSG_Shapes::Get_Shape(), CSG_Regression_Multiple::Get_StdError(), Get_Value(), CSG_Projections::Load_Dictionary(), operator[](), Select(), Serialize(), Set_Modified(), and Set_Value().
| CSG_Table_Record* CSG_Table::Get_Record_byIndex | ( | int | Index | ) | const [inline] |
Definition at line 286 of file table.h.
References Get_Record(), and m_nRecords.
Referenced by CSG_Translator::Create(), CSG_Shapes::Get_Shape_byIndex(), and CSG_Projections::Load_DB().
| int CSG_Table::Get_Record_Count | ( | void | ) | const [inline] |
Definition at line 280 of file table.h.
References m_nRecords.
Referenced by CSG_Parameters::Add_FixedTable(), Assign_Values(), CSG_Parameter_Fixed_Table::asString(), CSG_Translator::Create(), and Inv_Selection().
| virtual CSG_Table_Record* CSG_Table::Get_Selection | ( | int | Index = 0 | ) | const [inline, virtual] |
Definition at line 312 of file table.h.
References m_nSelected.
Referenced by CSG_Shapes::Get_Selection().
| int CSG_Table::Get_Selection_Count | ( | void | ) | const [inline] |
Definition at line 311 of file table.h.
References m_nSelected.
Referenced by CSG_Shapes::Get_Selection_Extent(), Inv_Selection(), and CSG_Shapes::Select().
| double CSG_Table::Get_StdDev | ( | int | iField | ) | const [inline] |
Definition at line 270 of file table.h.
References _Stats_Update(), Get_StdDev(), and m_Field_Stats.
Referenced by Get_StdDev().
| bool CSG_Table::Get_Value | ( | int | iRecord, |
| int | iField, | ||
| double & | Value | ||
| ) | const [virtual] |
Definition at line 965 of file table.cpp.
References CSG_Table_Record::asDouble(), Get_Record(), and m_nFields.
| bool CSG_Table::Get_Value | ( | int | iRecord, |
| int | iField, | ||
| CSG_String & | Value | ||
| ) | const [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 950 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().
| double CSG_Table::Get_Variance | ( | int | iField | ) | const [inline] |
Definition at line 271 of file table.h.
References _Stats_Update(), Get_Variance(), and m_Field_Stats.
Referenced by Get_Variance().
| CSG_Table_Record * CSG_Table::Ins_Record | ( | int | iRecord, |
| CSG_Table_Record * | pCopy = NULL |
||
| ) | [virtual] |
| int CSG_Table::Inv_Selection | ( | void | ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 186 of file table_selection.cpp.
References Get_Record_Count(), Get_Selection_Count(), m_nRecords, m_nSelected, and SG_Realloc().
| bool CSG_Table::is_Compatible | ( | CSG_Table * | pTable, |
| bool | bExactMatch = false |
||
| ) | const |
Definition at line 399 of file table.cpp.
References Get_Field_Count(), Get_Field_Type(), and SG_DATATYPE_String.
Referenced by Assign_Values().
| bool CSG_Table::is_Indexed | ( | void | ) | const [inline] |
Definition at line 327 of file table.h.
Referenced by Del_Index(), and Set_Index().
| bool CSG_Table::is_Private | ( | void | ) | const [inline] |
Definition at line 246 of file table.h.
Referenced by Add_Record(), Assign(), Assign_Values(), Create(), Del_Record(), Del_Records(), Del_Selection(), Destroy(), and Ins_Record().
| virtual bool CSG_Table::is_Selected | ( | int | iRecord | ) | const [inline, virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 314 of file table.h.
References is_Selected(), and m_nRecords.
Referenced by is_Selected().
| virtual bool CSG_Table::is_Valid | ( | void | ) | const [inline, virtual] |
Implements CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 248 of file table.h.
References m_nFields.
| virtual CSG_Table_Record& CSG_Table::operator[] | ( | int | iRecord | ) | const [inline, virtual] |
Definition at line 282 of file table.h.
References Get_Record().
| bool CSG_Table::Save | ( | const CSG_String & | File_Name, |
| int | Format, | ||
| const SG_Char * | Separator | ||
| ) | [virtual] |
Definition at line 162 of file table_io.cpp.
References CSG_String::c_str(), CSG_String::Format(), LNG, CSG_Data_Object::Save_MetaData(), 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_T, 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.
| bool CSG_Table::Save | ( | const CSG_String & | File_Name, |
| int | Format = 0 |
||
| ) | [virtual] |
Implements CSG_Data_Object.
Reimplemented in CSG_PointCloud, CSG_Shapes, and CSG_TIN.
Definition at line 156 of file table_io.cpp.
Referenced by CSG_Projections::Save_DB(), and CSG_Projections::Save_Dictionary().
| bool CSG_Table::Select | ( | int | iRecord, |
| bool | bInvert = false |
||
| ) | [virtual] |
Reimplemented in CSG_PointCloud, and CSG_Shapes.
Definition at line 101 of file table_selection.cpp.
References Get_Record(), CSG_Table_Record::is_Selected(), m_nSelected, CSG_Table_Record::Set_Selected(), and SG_Realloc().
Referenced by Select(), CSG_Shapes::Select(), and CSG_Table_Record::~CSG_Table_Record().
| bool CSG_Table::Select | ( | CSG_Table_Record * | pRecord = NULL, |
| bool | bInvert = false |
||
| ) | [virtual] |
Definition at line 146 of file table_selection.cpp.
References CSG_Table_Record::Get_Index(), and Select().
| bool CSG_Table::Serialize | ( | CSG_File & | Stream, |
| bool | bSave | ||
| ) |
Definition at line 648 of file table_io.cpp.
References Add_Field(), CSG_String::AfterFirst(), CSG_String::BeforeFirst(), 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().
| bool CSG_Table::Set_Field_Name | ( | int | iField, |
| const SG_Char * | Name | ||
| ) |
Definition at line 532 of file table.cpp.
References m_Field_Name, m_nFields, and Set_Modified().
| bool CSG_Table::Set_Field_Type | ( | int | iField, |
| TSG_Data_Type | Type | ||
| ) |
Definition at line 547 of file table.cpp.
References CSG_Table_Record::_Create_Value(), CSG_Table_Value::asBinary(), CSG_Table_Value::asDouble(), CSG_Table_Value::asInt(), CSG_Table_Value::asString(), Get_Field_Type(), m_Field_Type, m_nFields, m_nRecords, CSG_Table_Record::m_Values, CSG_Table_Value::Set_Value(), SG_DATATYPE_Binary, SG_DATATYPE_Byte, SG_DATATYPE_Char, SG_DATATYPE_Color, SG_DATATYPE_Date, SG_DATATYPE_Double, SG_DATATYPE_DWord, SG_DATATYPE_Float, SG_DATATYPE_Int, SG_DATATYPE_Long, SG_DATATYPE_Short, SG_DATATYPE_String, SG_DATATYPE_ULong, and SG_DATATYPE_Word.
| bool CSG_Table::Set_Index | ( | int | Field_1, |
| TSG_Table_Index_Order | Order_1, | ||
| 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 1042 of file table.cpp.
References is_Indexed(), m_nFields, and TABLE_INDEX_None.
Referenced by CSG_Translator::Create(), CSG_Projections::Load_DB(), CSG_Grid_Cell_Addressor::Set_Annulus(), CSG_Grid_Cell_Addressor::Set_Radius(), CSG_Grid_Cell_Addressor::Set_Sector(), and Toggle_Index().
| void CSG_Table::Set_Modified | ( | bool | bModified = true | ) | [virtual] |
Reimplemented from CSG_Data_Object.
Reimplemented in CSG_PointCloud.
Definition at line 902 of file table.cpp.
References Get_Count(), Get_Record(), CSG_Data_Object::is_Modified(), CSG_Table_Record::Set_Modified(), CSG_Data_Object::Set_Modified(), and SG_UI_Process_Set_Progress().
Referenced by Add_Field(), CSG_TIN::Create(), Del_Field(), CSG_TIN::Save(), Save(), CSG_Shapes::Save(), Set_Field_Name(), and CSG_Table_Record::Set_Modified().
| bool CSG_Table::Set_Value | ( | int | iRecord, |
| int | iField, | ||
| const SG_Char * | Value | ||
| ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 924 of file table.cpp.
References Get_Record(), m_nFields, and CSG_Table_Record::Set_Value().
Referenced by CSG_Parameter_Fixed_Table::On_Serialize(), CSG_PointCloud::Set_Attribute(), and CSG_PointCloud::Set_NoData().
| bool CSG_Table::Set_Value | ( | int | iRecord, |
| int | iField, | ||
| double | Value | ||
| ) | [virtual] |
Reimplemented in CSG_PointCloud.
Definition at line 937 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 1083 of file table.cpp.
References m_nFields, Set_Index(), TABLE_INDEX_Ascending, TABLE_INDEX_Descending, and TABLE_INDEX_None.
friend class CSG_Table_Record [friend] |
Definition at line 212 of file table.h.
Referenced by _Get_New_Record().
CSG_String** CSG_Table::m_Field_Name [protected] |
Definition at line 339 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), Add_Field(), CSG_PointCloud::Assign(), Del_Field(), CSG_PointCloud::Del_Field(), CSG_PointCloud::Destroy(), Get_Field_Name(), and Set_Field_Name().
CSG_Simple_Statistics** CSG_Table::m_Field_Stats [protected] |
Definition at line 341 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), _Stats_Invalidate(), _Stats_Update(), CSG_PointCloud::_Stats_Update(), Add_Field(), Del_Field(), CSG_PointCloud::Del_Field(), CSG_PointCloud::Destroy(), Get_Maximum(), Get_Mean(), Get_Minimum(), Get_Range(), Get_StdDev(), Get_Variance(), CSG_PointCloud::On_NoData_Changed(), and CSG_PointCloud::On_Update().
TSG_Data_Type* CSG_Table::m_Field_Type [protected] |
Definition at line 337 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), Add_Field(), CSG_PointCloud::Assign(), Del_Field(), CSG_PointCloud::Del_Field(), CSG_PointCloud::Destroy(), Get_Field_Length(), Get_Field_Type(), and Set_Field_Type().
int CSG_Table::m_nBuffer [protected] |
Definition at line 335 of file table.h.
Referenced by _On_Construction().
int CSG_Table::m_nFields [protected] |
Definition at line 335 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), _Stats_Invalidate(), Add_Field(), CSG_PointCloud::Assign(), Del_Field(), CSG_PointCloud::Del_Field(), CSG_PointCloud::Destroy(), Get_Field_Count(), Get_Field_Length(), Get_Field_Name(), Get_Field_Type(), Get_Value(), is_Valid(), CSG_PointCloud::On_NoData_Changed(), Serialize(), Set_Field_Name(), Set_Field_Type(), Set_Index(), Set_Value(), and Toggle_Index().
int CSG_Table::m_nRecords [protected] |
Definition at line 335 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), _Stats_Update(), Add_Field(), Del_Field(), CSG_PointCloud::Del_Field(), CSG_PointCloud::Del_Points(), CSG_PointCloud::Del_Selection(), Get_Count(), Get_Field_Length(), Get_Index(), Get_Record(), Get_Record_byIndex(), Get_Record_Count(), Inv_Selection(), CSG_PointCloud::Inv_Selection(), is_Selected(), Serialize(), Set_Field_Type(), and CSG_PointCloud::Set_Value().
int CSG_Table::m_nSelected [protected] |
Definition at line 335 of file table.h.
Referenced by _On_Construction(), CSG_PointCloud::_On_Construction(), CSG_PointCloud::Del_Points(), CSG_PointCloud::Del_Selection(), Get_Selection(), CSG_PointCloud::Get_Selection(), Get_Selection_Count(), CSG_PointCloud::Get_Selection_Extent(), Inv_Selection(), CSG_PointCloud::Inv_Selection(), Select(), and CSG_PointCloud::Select().