SAGA API  v9.5
CSG_Lines Class Reference

#include <geo_tools.h>

Public Member Functions

 CSG_Lines (void)
 
virtual ~CSG_Lines (void)
 
 CSG_Lines (const CSG_Lines &Lines)
 
bool Create (const CSG_Lines &Lines)
 
 CSG_Lines (sLong nLines)
 
bool Create (sLong nLines)
 
bool Destroy (void)
 
bool Clear (void)
 
CSG_Linesoperator= (const CSG_Lines &Lines)
 
bool Assign (const CSG_Lines &Lines)
 
CSG_PointsAdd (void)
 
bool Add (const CSG_Points &Line)
 
bool Add (const CSG_Lines &Lines)
 
bool Del (sLong Index)
 
bool Set_Count (sLong nLines)
 
sLong Get_Count (void) const
 
CSG_PointsGet_Line (sLong Index)
 
const CSG_PointsGet_Line (sLong Index) const
 
CSG_Pointsoperator[] (sLong Index)
 
const CSG_Pointsoperator[] (sLong Index) const
 
double Get_Length (void) const
 
double Get_Length (sLong Index) const
 

Detailed Description

Definition at line 215 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Lines() [1/3]

CSG_Lines::CSG_Lines ( void  )

Definition at line 373 of file geo_classes.cpp.

References CSG_Array_Pointer::Create().

◆ ~CSG_Lines()

CSG_Lines::~CSG_Lines ( void  )
virtual

Definition at line 403 of file geo_classes.cpp.

References Destroy().

◆ CSG_Lines() [2/3]

CSG_Lines::CSG_Lines ( const CSG_Lines Lines)

Definition at line 378 of file geo_classes.cpp.

References CSG_Array_Pointer::Create(), and Create().

◆ CSG_Lines() [3/3]

CSG_Lines::CSG_Lines ( sLong  nLines)

Definition at line 390 of file geo_classes.cpp.

References CSG_Array_Pointer::Create(), and Create().

Member Function Documentation

◆ Add() [1/3]

bool CSG_Lines::Add ( const CSG_Lines Lines)

Definition at line 453 of file geo_classes.cpp.

References Add(), and Get_Count().

◆ Add() [2/3]

bool CSG_Lines::Add ( const CSG_Points Line)

Definition at line 445 of file geo_classes.cpp.

References Add(), and CSG_Points::Assign().

◆ Add() [3/3]

CSG_Points & CSG_Lines::Add ( void  )

◆ Assign()

bool CSG_Lines::Assign ( const CSG_Lines Lines)

Definition at line 421 of file geo_classes.cpp.

References CSG_Points::Assign(), Get_Count(), Get_Line(), and Set_Count().

Referenced by Create().

◆ Clear()

bool CSG_Lines::Clear ( void  )

Definition at line 415 of file geo_classes.cpp.

References Set_Count().

◆ Create() [1/2]

bool CSG_Lines::Create ( const CSG_Lines Lines)

Definition at line 385 of file geo_classes.cpp.

References Assign().

Referenced by CSG_Lines().

◆ Create() [2/2]

bool CSG_Lines::Create ( sLong  nLines)

Definition at line 397 of file geo_classes.cpp.

References Set_Count().

◆ Del()

bool CSG_Lines::Del ( sLong  Index)

Definition at line 464 of file geo_classes.cpp.

References CSG_Array_Pointer::Del(), and CSG_Array_Pointer::Get_Size().

◆ Destroy()

bool CSG_Lines::Destroy ( void  )

Definition at line 409 of file geo_classes.cpp.

References Set_Count().

Referenced by ~CSG_Lines().

◆ Get_Count()

sLong CSG_Lines::Get_Count ( void  ) const
inline

Definition at line 239 of file geo_tools.h.

Referenced by Add(), Assign(), Get_Length(), and CSG_Shape_Polygon_Part::Get_Shared_Edges().

◆ Get_Length() [1/2]

double CSG_Lines::Get_Length ( sLong  Index) const

Definition at line 520 of file geo_classes.cpp.

References CSG_Points::Get_Count(), Get_Count(), Get_Line(), and SG_Get_Distance().

◆ Get_Length() [2/2]

double CSG_Lines::Get_Length ( void  ) const

◆ Get_Line() [1/2]

CSG_Points& CSG_Lines::Get_Line ( sLong  Index)
inline

Definition at line 241 of file geo_tools.h.

Referenced by Add(), Assign(), and Get_Length().

◆ Get_Line() [2/2]

const CSG_Points& CSG_Lines::Get_Line ( sLong  Index) const
inline

Definition at line 242 of file geo_tools.h.

◆ operator=()

CSG_Lines& CSG_Lines::operator= ( const CSG_Lines Lines)
inline

Definition at line 230 of file geo_tools.h.

◆ operator[]() [1/2]

CSG_Points& CSG_Lines::operator[] ( sLong  Index)
inline

Definition at line 244 of file geo_tools.h.

◆ operator[]() [2/2]

const CSG_Points& CSG_Lines::operator[] ( sLong  Index) const
inline

Definition at line 245 of file geo_tools.h.

◆ Set_Count()

bool CSG_Lines::Set_Count ( sLong  nLines)

Definition at line 477 of file geo_classes.cpp.

References CSG_Array_Pointer::Get_Size(), and CSG_Array_Pointer::Set_Array().

Referenced by Add(), Assign(), Clear(), Create(), and Destroy().


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