 |
SAGA API
v9.2
|
Go to the documentation of this file.
93 for(
size_t i=0; i<
Count(); i++)
95 if( !File.
Cmp(
Get(i)->Get_File_Name(bNative)) )
107 for(
size_t i=0; i<
Count(); i++)
109 if( pObject ==
Get(i) )
151 for(i=0, n=0; i<
Count(); i++)
153 if( pObject ==
Get(i) )
164 pObjects[n++] = pObjects[i];
189 for(
size_t i=
Count(); i>0; i--)
201 for(
size_t i=0; i<
Count(); i++)
216 return(
Delete(bDetach,
false) );
222 for(
size_t i=
Count(); i>0; i--)
253 for(
size_t i=0; i<
Count(); i++)
255 if( pObject ==
Get(i) )
263 for(
int j=0; j<pGrids->
Get_NZ(); j++)
288 default:
return(
false );
331 delete(m_pPoint_Cloud);
391 if( m_pTable ->
Exists(pObject) )
return(
true );
392 if( m_pTIN ->
Exists(pObject) )
return(
true );
393 if( m_pPoint_Cloud->
Exists(pObject) )
return(
true );
394 if( m_pShapes ->
Exists(pObject) )
return(
true );
409 if( (pObject = m_pTable ->Get(File, bNative)) != NULL )
return( pObject );
410 if( (pObject = m_pTIN ->Get(File, bNative)) != NULL )
return( pObject );
411 if( (pObject = m_pPoint_Cloud->
Get(File, bNative)) != NULL )
return( pObject );
412 if( (pObject = m_pShapes ->Get(File, bNative)) != NULL )
return( pObject );
416 if( (pObject =
Get_Grid_System(i)->Get(File, bNative)) != NULL )
return( pObject );
436 m_Grid_Systems[m_Grid_Systems.
Get_Size() - 1] = pCollection;
439 return( pCollection && pCollection->
Add(pObject) );
494 default : pObject = NULL ;
break;
508 return( _Add_External(File) );
614 if( pObject && !
Add(pObject) )
616 delete(pObject); pObject = NULL;
627 if( pObject && !
Add(pObject) )
629 delete(pObject); pObject = NULL;
640 if( pObject && !
Add(pObject) )
642 delete(pObject); pObject = NULL;
653 if( pObject && !
Add(pObject) )
655 delete(pObject); pObject = NULL;
666 if( pObject && !
Add(pObject) )
668 delete(pObject); pObject = NULL;
688 if( pCollection == NULL || pCollection->
m_pManager !=
this )
694 if( pCollection == m_pTable ) {
return( pCollection->
Delete_All(bDetach) ); }
695 if( pCollection == m_pTIN ) {
return( pCollection->
Delete_All(bDetach) ); }
696 if( pCollection == m_pPoint_Cloud ) {
return( pCollection->
Delete_All(bDetach) ); }
697 if( pCollection == m_pShapes ) {
return( pCollection->
Delete_All(bDetach) ); }
706 for(i=0, n=0; i<m_Grid_Systems.
Get_uSize(); i++)
708 if( pCollection == pSystems[i] )
719 pSystems[n++] = pSystems[i];
740 if( pCollection && pCollection->
Delete(pObject, bDetach) )
744 Delete(pCollection, bDetach);
762 m_pTable ->
Delete(bDetach, bUnsaved);
763 m_pTIN ->
Delete(bDetach, bUnsaved);
764 m_pPoint_Cloud->
Delete(bDetach, bUnsaved);
765 m_pShapes ->
Delete(bDetach, bUnsaved);
771 pSystem->
Delete(bDetach, bUnsaved);
784 return(
Delete(bDetach,
false) );
790 return(
Delete(bDetach,
true) );
882 for(
size_t j=0; j<pSystem->
Count(); j++)
TSG_Data_Type Get_Type(void) const
bool is_Equal(const CSG_Grid_System &System) const
CSG_Data_Collection(class CSG_Data_Manager *pManager, TSG_Data_Object_Type Type)
@ PARAMETER_TYPE_FilePath
CSG_Data_Collection * Get_Shapes(void) const
CSG_Data_Collection * Get_Table(void) const
CSG_Data_Manager g_Data_Manager
CSG_Data_Object * Get(size_t i) const
virtual bool Add(CSG_Data_Object *pObject)
sLong Get_Size(void) const
SAGA_API_DLL_EXPORT bool SG_File_Cmp_Extension(const CSG_String &FileName, const CSG_String &Extension)
CSG_Data_Object * Get_Item(int Index) const
CSG_PointCloud * Add_PointCloud(void)
bool Delete_All(bool bDetach=false)
const SG_Char * Get_Name(void) const
CSG_Data_Manager & SG_Get_Data_Manager(void)
@ SG_DATAOBJECT_TYPE_Grids
TSG_Data_Type Get_Type(void) const
CSG_Shapes * Add_Shapes(TSG_Shape_Type Type=SHAPE_TYPE_Undefined)
bool Exists(CSG_Data_Object *pObject) const
virtual TSG_Data_Object_Type Get_ObjectType(void) const =0
Returns the object type as defined by TSG_Data_Object_Type. Used for run time type checking.
CSG_Data_Object * asDataObject(void) const
CSG_String & Prepend(const CSG_String &String)
CSG_Grid_Collection * Get_Grid_System(size_t i) const
bool Inc_Array(sLong nValues=1)
int Cmp(const CSG_String &String) const
virtual bool Add(CSG_Data_Object *pObject)
@ SG_UI_DATAOBJECT_UPDATE
SAGA_API_DLL_EXPORT bool SG_File_Exists(const CSG_String &FileName)
const SG_Char * Get_Name(bool bShort=true)
CSG_Data_Object * Get(const CSG_String &File, bool bNative=true) const
virtual bool Exists(CSG_Data_Object *pObject) const
CSG_Grid_Collection(class CSG_Data_Manager *pManager)
CSG_Grid * Add_Grid(const CSG_Grid_System &System, TSG_Data_Type Type=SG_DATATYPE_Undefined)
bool Delete_All(bool bDetach=false)
#define DATAOBJECT_CREATE
size_t Get_uSize(void) const
int SG_UI_Msg_Lock(bool bOn)
sLong Get_Memory_Size(void) const
bool Delete(CSG_Data_Collection *pCollection, bool bDetach=false)
bool SG_UI_DataObject_Add(CSG_Data_Object *pDataObject, int Show)
CSG_Grid * Get_Grid_Ptr(int i) const
sLong Get_Count(void) const
CSG_Table * Add_Table(void)
CSG_String SG_Data_Type_Get_Name(TSG_Data_Type Type, bool bShort)
CSG_Data_Collection * Get_Point_Cloud(void) const
virtual ~CSG_Data_Manager(void)
@ SG_DATAOBJECT_TYPE_Grid
static CSG_String Format(const char *Format,...)
sLong Get_Memory_Size(void) const
@ SG_DATAOBJECT_TYPE_Shapes
@ SG_DATAOBJECT_TYPE_Undefined
class CSG_Data_Manager * m_pManager
bool Add(CSG_Data_Object *pObject)
@ SG_DATAOBJECT_TYPE_Table
bool is_Empty(void) const
virtual bool Exists(CSG_Data_Object *pObject) const
CSG_String Get_Summary(void) const
bool Set_Array(sLong nValues, bool bShrink=true)
CSG_Data_Object * Find(const CSG_String &File, bool bNative=true) const
void ** Get_Array(void) const
size_t Grid_System_Count(void) const
const SG_Char * c_str(void) const
bool Delete_Unsaved(bool bDetach=false)
virtual TSG_Shape_Type Get_Type(void) const
CSG_Array_Pointer m_Objects
TSG_Data_Object_Type m_Type
bool Delete(CSG_Data_Object *pObject, bool bDetach=false)
class CSG_Parameter_List * asList(void) const
@ SG_DATAOBJECT_TYPE_PointCloud
virtual bool is_Valid(void) const =0
bool Delete_Unsaved(bool bDetach=false)
bool is_Valid(void) const
virtual ~CSG_Data_Collection(void)
#define DATAOBJECT_NOTSET