NullStrategy.h
Go to the documentation of this file.
1 #ifndef __GfxTL_NULLSTRATEGY_HEADER__
2 #define __GfxTL_NULLSTRATEGY_HEADER__
3 
4 namespace GfxTL
5 {
6 
8  {
9  public:
10  template <class Point>
11  class CellData
12  {
13  };
14 
15  template <class Base>
16  class StrategyBase : public Base
17  {
18  public:
19  typedef typename Base::CellType CellType;
20  // typedef typename CellType::PointType PointType;
21  // typedef typename CellType::ScalarType ScalarType;
22 
23  template <class BoundingVolume>
24  inline bool RefreshCell(const BoundingVolume& bv, CellType* cell);
25  template <class ParamT>
26  inline void Parameters(const ParamT&);
27  void StartPointInfoCache();
28  void StopPointInfoCache();
29 
30  protected:
31  bool ShouldSubdivide(const CellType& cell) const;
32  void InitCellData(CellType*);
34  };
35  };
36 
37  template <class Base>
38  template <class BoundingVolume>
39  inline bool
41  {
42  return false;
43  }
44 
45  template <class Base>
46  template <class ParamT>
47  inline void
49  {
50  }
51 
52 }; // namespace GfxTL
53 
54 #include "NullStrategy.hpp"
55 
56 #endif
GfxTL::NullStrategy::StrategyBase::Parameters
void Parameters(const ParamT &)
Definition: NullStrategy.h:48
GfxTL::NullStrategy::StrategyBase::InitCellData
void InitCellData(CellType *)
Definition: NullStrategy.hpp:25
GfxTL::NullStrategy::StrategyBase::RefreshCell
bool RefreshCell(const BoundingVolume &bv, CellType *cell)
Definition: NullStrategy.h:40
GfxTL::NullStrategy::CellData
Definition: NullStrategy.h:11
GfxTL::NullStrategy::StrategyBase
Definition: NullStrategy.h:16
GfxTL::NullStrategy::StrategyBase::ShouldSubdivide
bool ShouldSubdivide(const CellType &cell) const
Definition: NullStrategy.hpp:18
GfxTL::NullStrategy::StrategyBase::InitLevelDependentCellData
void InitLevelDependentCellData(CellType *)
Definition: NullStrategy.hpp:31
GfxTL::NullStrategy
Definition: NullStrategy.h:7
GfxTL
Definition: AABox.h:9
GfxTL::NullStrategy::StrategyBase::StopPointInfoCache
void StopPointInfoCache()
Definition: NullStrategy.hpp:12
GfxTL::NullStrategy::StrategyBase::CellType
Base::CellType CellType
Definition: NullStrategy.h:19
GfxTL::NullStrategy::StrategyBase::StartPointInfoCache
void StartPointInfoCache()
Definition: NullStrategy.hpp:6
NullStrategy.hpp