
modifié : ../include/ArrayTree/ArrayTreeBuilder.tpp modifié : ../include/ArrayTree/GraphWalker.hpp modifié : ../include/ArrayTree/GraphWalker.tpp modifié : ../include/ArrayTree/Leader.tpp modifié : ../include/IImage.tpp modifié : ../include/Tree.hpp modifié : ../include/Tree.tpp modifié : ../include/TreeBuilder.hpp modifié : ../include/TreeBuilder.tpp modifié : ../src/QuadTree/QuadTreeBuilder.cpp modifié : ../src/Tree.cpp modifié : ../src/XMLTree/XMLTreeBuilder.cpp modifié : ../src/testMain.cpp
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#ifndef _OTB_TRISKELE_TREE_BUILDER_HPP
|
|
#define _OTB_TRISKELE_TREE_BUILDER_HPP
|
|
|
|
#include "Tree.hpp"
|
|
#include "triskeleBase.hpp"
|
|
|
|
namespace otb {
|
|
namespace triskele {
|
|
|
|
class TreeBuilder {
|
|
public:
|
|
|
|
static inline void buildTree (Tree &tree, TreeBuilder &builder);
|
|
static inline void buildTree (Tree &tree, TreeBuilder &&builder);
|
|
virtual inline void buildTree (Tree &tree);
|
|
|
|
protected:
|
|
// Used to set the attributes below with the tree
|
|
inline void setTreeSize (Tree &tree, const Size &size);
|
|
inline void getTranscient (Tree &tree);
|
|
inline DimNodeId getCompCount () const;
|
|
inline void setNodeCount (Tree &tree, DimNodeId nodeCount);
|
|
|
|
// Attributes corresponding to the tree, used to make the construction easier
|
|
DimImg leafCount, nodeCount;
|
|
/*! Pointers on the parents of each leafs / nodes */
|
|
DimNodeId *leafParents, *compParents;
|
|
|
|
/*! Pointers on the children and count how many children a parents have */
|
|
DimNodeId *children, *childCount;
|
|
// XXX compWeights ???
|
|
};
|
|
|
|
#include "TreeBuilder.tpp"
|
|
|
|
} // triskele
|
|
} // otb
|
|
|
|
#endif // _OTB_TRISKELE_TREE_BUILDER_HPP
|