SAGA API  v9.5
CSG_PRQuadTree_Item Class Reference

#include <shapes.h>

Inheritance diagram for CSG_PRQuadTree_Item:
CSG_PRQuadTree_Leaf CSG_PRQuadTree_Node CSG_PRQuadTree_Leaf_List CSG_PRQuadTree_Node_Statistics

Public Member Functions

virtual bool is_Leaf (void) const
 
virtual bool is_Node (void) const
 
virtual bool has_Statistics (void) const
 
const CSG_RectGet_Extent (void) const
 
double Get_xMin (void) const
 
double Get_xCenter (void) const
 
double Get_xMax (void) const
 
double Get_yMin (void) const
 
double Get_yCenter (void) const
 
double Get_yMax (void) const
 
double Get_Size (void) const
 
bool Contains (const CSG_Point &p) const
 
bool Contains (double x, double y) const
 
class CSG_PRQuadTree_LeafasLeaf (void) const
 
class CSG_PRQuadTree_NodeasNode (void) const
 

Protected Member Functions

 CSG_PRQuadTree_Item (const CSG_Rect &Extent, int Quadrant=-1)
 
virtual ~CSG_PRQuadTree_Item (void)
 
void Set_Extent (const CSG_Rect &Extent, int Quadrant=-1)
 
int Get_Quadrant (const TSG_Point &p) const
 
int Get_Quadrant (double x, double y) const
 

Protected Attributes

CSG_Rect m_Extent
 

Detailed Description

Definition at line 914 of file shapes.h.

Constructor & Destructor Documentation

◆ CSG_PRQuadTree_Item()

CSG_PRQuadTree_Item::CSG_PRQuadTree_Item ( const CSG_Rect Extent,
int  Quadrant = -1 
)
inlineprotected

Definition at line 940 of file shapes.h.

References Set_Extent().

◆ ~CSG_PRQuadTree_Item()

virtual CSG_PRQuadTree_Item::~CSG_PRQuadTree_Item ( void  )
inlineprotectedvirtual

Definition at line 942 of file shapes.h.

Member Function Documentation

◆ asLeaf()

class CSG_PRQuadTree_Leaf* CSG_PRQuadTree_Item::asLeaf ( void  ) const
inline

Definition at line 934 of file shapes.h.

Referenced by CSG_PRQuadTree_Node::Add_Point().

◆ asNode()

class CSG_PRQuadTree_Node* CSG_PRQuadTree_Item::asNode ( void  ) const
inline

Definition at line 935 of file shapes.h.

Referenced by CSG_PRQuadTree_Node::Get_Child().

◆ Contains() [1/2]

bool CSG_PRQuadTree_Item::Contains ( const CSG_Point p) const
inline

Definition at line 931 of file shapes.h.

Referenced by CSG_PRQuadTree_Node::Add_Point(), and CSG_PRQuadTree_Node::Get_Child().

◆ Contains() [2/2]

bool CSG_PRQuadTree_Item::Contains ( double  x,
double  y 
) const
inline

Definition at line 932 of file shapes.h.

◆ Get_Extent()

const CSG_Rect& CSG_PRQuadTree_Item::Get_Extent ( void  ) const
inline

Definition at line 922 of file shapes.h.

◆ Get_Quadrant() [1/2]

int CSG_PRQuadTree_Item::Get_Quadrant ( const TSG_Point p) const
inlineprotected

◆ Get_Quadrant() [2/2]

int CSG_PRQuadTree_Item::Get_Quadrant ( double  x,
double  y 
) const
inlineprotected

Definition at line 958 of file shapes.h.

References Get_xCenter(), and Get_yCenter().

◆ Get_Size()

double CSG_PRQuadTree_Item::Get_Size ( void  ) const
inline

Definition at line 929 of file shapes.h.

◆ Get_xCenter()

double CSG_PRQuadTree_Item::Get_xCenter ( void  ) const
inline

Definition at line 924 of file shapes.h.

Referenced by Get_Quadrant().

◆ Get_xMax()

double CSG_PRQuadTree_Item::Get_xMax ( void  ) const
inline

Definition at line 925 of file shapes.h.

◆ Get_xMin()

double CSG_PRQuadTree_Item::Get_xMin ( void  ) const
inline

Definition at line 923 of file shapes.h.

◆ Get_yCenter()

double CSG_PRQuadTree_Item::Get_yCenter ( void  ) const
inline

Definition at line 927 of file shapes.h.

Referenced by Get_Quadrant().

◆ Get_yMax()

double CSG_PRQuadTree_Item::Get_yMax ( void  ) const
inline

Definition at line 928 of file shapes.h.

◆ Get_yMin()

double CSG_PRQuadTree_Item::Get_yMin ( void  ) const
inline

Definition at line 926 of file shapes.h.

◆ has_Statistics()

virtual bool CSG_PRQuadTree_Item::has_Statistics ( void  ) const
inlinevirtual

Reimplemented in CSG_PRQuadTree_Node_Statistics, and CSG_PRQuadTree_Leaf_List.

Definition at line 920 of file shapes.h.

Referenced by CSG_PRQuadTree_Node::Add_Point().

◆ is_Leaf()

virtual bool CSG_PRQuadTree_Item::is_Leaf ( void  ) const
inlinevirtual

Reimplemented in CSG_PRQuadTree_Leaf.

Definition at line 918 of file shapes.h.

Referenced by CSG_PRQuadTree_Node::Add_Point(), and CSG_PRQuadTree_Node::~CSG_PRQuadTree_Node().

◆ is_Node()

virtual bool CSG_PRQuadTree_Item::is_Node ( void  ) const
inlinevirtual

Reimplemented in CSG_PRQuadTree_Node.

Definition at line 919 of file shapes.h.

◆ Set_Extent()

void CSG_PRQuadTree_Item::Set_Extent ( const CSG_Rect Extent,
int  Quadrant = -1 
)
inlineprotected

Member Data Documentation

◆ m_Extent

CSG_Rect CSG_PRQuadTree_Item::m_Extent
protected

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