Public Member Functions | Static Public Member Functions

xl7::utilities::BinPackingNode< T > Class Template Reference

#include <BinPackingNode.h>

List of all members.

Public Member Functions

const T & GetX () const
const T & GetY () const
const T & GetWidth () const
const T & GetHeight () const
BinPackingNodeGetChild0 () const
BinPackingNodeGetChild1 () const
void Release ()
BinPackingNodeInsert (const T &width, const T &height)

Static Public Member Functions

static BinPackingNodeCreate (const T &width, const T &height)

template<typename T>
class xl7::utilities::BinPackingNode< T >


Member Function Documentation

template<typename T>
BinPackingNode< T > * xl7::utilities::BinPackingNode< T >::Create ( const T &  width,
const T &  height 
) [static]

Creates and returns a new root node.

template<typename T>
BinPackingNode* xl7::utilities::BinPackingNode< T >::GetChild0 (  )  const [inline]

Returns the "first" child node.

template<typename T>
BinPackingNode* xl7::utilities::BinPackingNode< T >::GetChild1 (  )  const [inline]

Returns the "second" child node.

template<typename T>
const T& xl7::utilities::BinPackingNode< T >::GetHeight (  )  const [inline]

Returns the height of the area of this node within the bin.

template<typename T>
const T& xl7::utilities::BinPackingNode< T >::GetWidth (  )  const [inline]

Returns the width of the area of this node within the bin.

template<typename T>
const T& xl7::utilities::BinPackingNode< T >::GetX (  )  const [inline]

Returns the horizontal position offset of the area of this node within the bin.

template<typename T>
const T& xl7::utilities::BinPackingNode< T >::GetY (  )  const [inline]

Returns the vertical position offset of the area of this node within the bin.

template<typename T>
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.

template<typename T >
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines