#include <spTreeNodeImage.hpp>
List of all members.
Detailed Description
template<class T>
class sp::scene::ImageTreeNode< T >
The ImageTreeNode class is used to - as the name implies - store 2D images in rectangles. This tree node does not hold any information about its parent. Therefore only a traversal from parent to children is possible. This class is used in the lightmap generator and to generate font textures.
- Template Parameters:
-
| T,: | This class must implement the following functions:
dim::size2di getSize() const;
void setupTreeNode(ImageTreeNode<T>* Node);
|
- Since:
- Version 3.2
Constructor & Destructor Documentation
Member Function Documentation
Deletes the children nodes.
Tries to insert the given image into the tree node.
- Parameters:
-
| Image,: | Pointer to the image object. This must not be null! |
- Returns:
- Pointer to the final ImageTreeNode object which has been found to hold the given image. If no suitable tree node could be found the return value is null.
- Note:
- For the root tree node the rectangle must be set manual! All the other rectangles will be computed automatically.
The documentation for this class was generated from the following file:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Base/spTreeNodeImage.hpp