
modifié : include/ArrayTree/ArrayTreeBuilder.tpp supprimé : include/Attributes/AreaAttribute.hpp modifié : include/TreeBuilder.hpp supprimé : src/Attributes/AreaAttribute.cpp modifié : src/Tree.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 "triskeleBase.hpp"
|
|
#include "Tree.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
|