#include <ogdf/energybased/dtree/DTreeWSPD.h>
Classes | |
| struct | NodeData |
| geometry for the quadtree nodes More... | |
| struct | PointData |
| world coordinates of the points More... | |
Public Types | |
| using | IntType = unsigned int |
| using | Tree = DTree< IntType, Dim > |
Public Member Functions | |
| DTreeWSPD (int numPoints) | |
| constructs a new WSPD for numPoints More... | |
| ~DTreeWSPD () | |
| destructor More... | |
| void | computeWSPD (IWSPD *m_pIWSPD) |
| const NodeData & | node (int i) const |
| returns the data for a quadtree More... | |
| const PointData & | point (int i) const |
| return ith point More... | |
| double | separationFactor () const |
| returns the parameter s of the WSPD (default is 1.0) More... | |
| void | setPoint (int i, int d, double coord) |
| sets the point to the given coords More... | |
| void | setSeparationFactor (double s) |
| sets the parameter s of the WSPD (default is 1.0) More... | |
| const Tree & | tree () const |
| returns the corresponding Dtree More... | |
| void | update () |
| call this when the point set has been updated. More... | |
Protected Member Functions | |
| void | allocate () |
| allocate mem More... | |
| bool | areWellSeparated (int a, int b) const |
| predicate for determining if cells are well-separated More... | |
| template<> | |
| bool | areWellSeparated (int a, int b) const |
| template<> | |
| bool | areWellSeparated (int a, int b) const |
| void | deallocate () |
| free mem More... | |
| NodeData & | node (int i) |
| returns the data for a quadtree More... | |
| void | updateBoundingBox () |
| updates the bounding box by iterating over all points More... | |
| void | updateTreeGridPoints () |
| updates the integer grid points in the quadtree More... | |
| void | updateTreeNodeGeometry () |
| updates the geometry of the quadtree nodes More... | |
| void | updateTreeNodeGeometry (int curr) |
| the recursive function of the above More... | |
| void | wspdRecursive (int a) |
| the unary recursive function generating the binary calls More... | |
| void | wspdRecursive (int a, int b) |
| the binary recursive function to separate the subtree a and b More... | |
Protected Attributes | |
| double | m_bboxMax [Dim] |
| the bounding box max coord of the point set More... | |
| double | m_bboxMin [Dim] |
| the bounding box min coord of the point set More... | |
| NodeData * | m_nodeData |
| geometry for the quadtree nodes More... | |
| int | m_numPoints |
| number of points More... | |
| IWSPD * | m_pIWSPD |
| PointData * | m_pointData |
| point data More... | |
| Tree * | m_pTree |
| the quadtree this wspd is working on More... | |
| double | m_wspdSeparationFactor |
| the separation factor for the ws predicate More... | |
| double | m_wspdSeparationFactorPlus2Squared_cached |
| a cached value for the ws test More... | |
Definition at line 46 of file DTreeWSPD.h.
| using ogdf::energybased::dtree::DTreeWSPD< Dim >::IntType = unsigned int |
Definition at line 49 of file DTreeWSPD.h.
| using ogdf::energybased::dtree::DTreeWSPD< Dim >::Tree = DTree<IntType, Dim> |
Definition at line 50 of file DTreeWSPD.h.
|
explicit |
constructs a new WSPD for numPoints
Definition at line 163 of file DTreeWSPD.h.
| ogdf::energybased::dtree::DTreeWSPD< Dim >::~DTreeWSPD | ( | ) |
destructor
Definition at line 174 of file DTreeWSPD.h.
|
protected |
allocate mem
Definition at line 181 of file DTreeWSPD.h.
|
protected |
predicate for determining if cells are well-separated
Definition at line 277 of file DTreeWSPD.h.
|
protected |
Definition at line 310 of file DTreeWSPD.h.
|
protected |
Definition at line 325 of file DTreeWSPD.h.
| void ogdf::energybased::dtree::DTreeWSPD< Dim >::computeWSPD | ( | IWSPD * | m_pIWSPD | ) |
Definition at line 213 of file DTreeWSPD.h.
|
protected |
free mem
Definition at line 189 of file DTreeWSPD.h.
|
inline |
returns the data for a quadtree
Definition at line 86 of file DTreeWSPD.h.
|
inlineprotected |
returns the data for a quadtree
Definition at line 107 of file DTreeWSPD.h.
|
inline |
return ith point
Definition at line 92 of file DTreeWSPD.h.
|
inline |
returns the parameter s of the WSPD (default is 1.0)
Definition at line 98 of file DTreeWSPD.h.
| void ogdf::energybased::dtree::DTreeWSPD< Dim >::setPoint | ( | int | i, |
| int | d, | ||
| double | coord | ||
| ) |
sets the point to the given coords
Definition at line 343 of file DTreeWSPD.h.
|
inline |
sets the parameter s of the WSPD (default is 1.0)
Definition at line 101 of file DTreeWSPD.h.
|
inline |
returns the corresponding Dtree
Definition at line 83 of file DTreeWSPD.h.
| void ogdf::energybased::dtree::DTreeWSPD< Dim >::update | ( | ) |
call this when the point set has been updated.
Definition at line 197 of file DTreeWSPD.h.
|
protected |
updates the bounding box by iterating over all points
Definition at line 349 of file DTreeWSPD.h.
|
protected |
updates the integer grid points in the quadtree
Definition at line 370 of file DTreeWSPD.h.
|
protected |
updates the geometry of the quadtree nodes
Definition at line 405 of file DTreeWSPD.h.
|
protected |
the recursive function of the above
Definition at line 412 of file DTreeWSPD.h.
|
protected |
the unary recursive function generating the binary calls
Definition at line 230 of file DTreeWSPD.h.
|
protected |
the binary recursive function to separate the subtree a and b
Definition at line 252 of file DTreeWSPD.h.
|
protected |
the bounding box max coord of the point set
Definition at line 158 of file DTreeWSPD.h.
|
protected |
the bounding box min coord of the point set
Definition at line 155 of file DTreeWSPD.h.
|
protected |
geometry for the quadtree nodes
Definition at line 149 of file DTreeWSPD.h.
|
protected |
number of points
Definition at line 137 of file DTreeWSPD.h.
|
protected |
Definition at line 101 of file DTreeWSPD.h.
|
protected |
point data
Definition at line 152 of file DTreeWSPD.h.
|
protected |
the quadtree this wspd is working on
Definition at line 146 of file DTreeWSPD.h.
|
protected |
the separation factor for the ws predicate
Definition at line 140 of file DTreeWSPD.h.
|
protected |
a cached value for the ws test
Definition at line 143 of file DTreeWSPD.h.