#include <BinPackingNode.h>
Public Member Functions | |
| const T & | GetX () const |
| const T & | GetY () const |
| const T & | GetWidth () const |
| const T & | GetHeight () const |
| BinPackingNode * | GetChild0 () const |
| BinPackingNode * | GetChild1 () const |
| void | Release () |
| BinPackingNode * | Insert (const T &width, const T &height) |
Static Public Member Functions | |
| static BinPackingNode * | Create (const T &width, const T &height) |
| BinPackingNode< T > * xl7::utilities::BinPackingNode< T >::Create | ( | const T & | width, | |
| const T & | height | |||
| ) | [static] |
Creates and returns a new root node.
| BinPackingNode* xl7::utilities::BinPackingNode< T >::GetChild0 | ( | ) | const [inline] |
Returns the "first" child node.
| BinPackingNode* xl7::utilities::BinPackingNode< T >::GetChild1 | ( | ) | const [inline] |
Returns the "second" child node.
| const T& xl7::utilities::BinPackingNode< T >::GetHeight | ( | ) | const [inline] |
Returns the height of the area of this node within the bin.
| const T& xl7::utilities::BinPackingNode< T >::GetWidth | ( | ) | const [inline] |
Returns the width of the area of this node within the bin.
| const T& xl7::utilities::BinPackingNode< T >::GetX | ( | ) | const [inline] |
Returns the horizontal position offset of the area of this node within the bin.
| const T& xl7::utilities::BinPackingNode< T >::GetY | ( | ) | const [inline] |
Returns the vertical position offset of the area of this node within the bin.
| BinPackingNode< T > * xl7::utilities::BinPackingNode< T >::Insert | ( | const T & | width, | |
| const T & | height | |||
| ) |
Tries to insert a new area of given size into this node or one of its child nodes and returns the node actual associated with the area.
| void xl7::utilities::BinPackingNode< T >::Release | ( | ) |
Releases (deletes) this root node and all of its child nodes. If this node is not a root node, a call to this function has no effect.
1.7.1