SAGA API Version 9.12
Loading...
Searching...
No Matches
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 925 of file shapes.h.

Constructor & Destructor Documentation

◆ CSG_PRQuadTree_Item()

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

◆ ~CSG_PRQuadTree_Item()

virtual CSG_PRQuadTree_Item::~CSG_PRQuadTree_Item ( void )
inlineprotectedvirtual

Definition at line 953 of file shapes.h.

Member Function Documentation

◆ asLeaf()

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

Definition at line 945 of file shapes.h.

◆ asNode()

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

Definition at line 946 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 942 of file shapes.h.

References m_Extent.

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 943 of file shapes.h.

References m_Extent.

◆ Get_Extent()

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

Definition at line 933 of file shapes.h.

References m_Extent.

◆ 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 969 of file shapes.h.

References Get_xCenter(), and Get_yCenter().

◆ Get_Size()

double CSG_PRQuadTree_Item::Get_Size ( void ) const
inline

Definition at line 940 of file shapes.h.

References m_Extent.

◆ Get_xCenter()

double CSG_PRQuadTree_Item::Get_xCenter ( void ) const
inline

Definition at line 935 of file shapes.h.

References m_Extent.

Referenced by Get_Quadrant().

◆ Get_xMax()

double CSG_PRQuadTree_Item::Get_xMax ( void ) const
inline

Definition at line 936 of file shapes.h.

References m_Extent.

◆ Get_xMin()

double CSG_PRQuadTree_Item::Get_xMin ( void ) const
inline

Definition at line 934 of file shapes.h.

References m_Extent.

◆ Get_yCenter()

double CSG_PRQuadTree_Item::Get_yCenter ( void ) const
inline

Definition at line 938 of file shapes.h.

References m_Extent.

Referenced by Get_Quadrant().

◆ Get_yMax()

double CSG_PRQuadTree_Item::Get_yMax ( void ) const
inline

Definition at line 939 of file shapes.h.

References m_Extent.

◆ Get_yMin()

double CSG_PRQuadTree_Item::Get_yMin ( void ) const
inline

Definition at line 937 of file shapes.h.

References m_Extent.

◆ has_Statistics()

virtual bool CSG_PRQuadTree_Item::has_Statistics ( void ) const
inlinevirtual

Reimplemented in CSG_PRQuadTree_Leaf_List, and CSG_PRQuadTree_Node_Statistics.

Definition at line 931 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 929 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 930 of file shapes.h.

◆ Set_Extent()

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

Definition at line 955 of file shapes.h.

References Extent, and m_Extent.

Referenced by CSG_PRQuadTree_Item(), and CSG_PRQuadTree_Node::CSG_PRQuadTree_Node().

Member Data Documentation

◆ m_Extent


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