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  template< class Base >
16  : 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,
25  CellType* cell);
26  template< class ParamT >
27  inline void Parameters(const ParamT&);
28  void StartPointInfoCache();
29  void StopPointInfoCache();
30 
31  protected:
32  bool ShouldSubdivide(const CellType& cell) const;
33  void InitCellData(CellType*);
35  };
36  };
37 
38  template< class Base >
39  template< class BoundingVolume >
41  RefreshCell(const BoundingVolume&, CellType*)
42  {
43  return false;
44  }
45 
46  template< class Base >
47  template< class ParamT >
49  Parameters(const ParamT&)
50  {}
51 
52 };
53 
54 #include "NullStrategy.hpp"
55 
56 #endif
GfxTL::NullStrategy::StrategyBase::Parameters
void Parameters(const ParamT &)
Definition: NullStrategy.h:49
GfxTL::NullStrategy::StrategyBase::InitCellData
void InitCellData(CellType *)
Definition: NullStrategy.hpp:20
GfxTL::NullStrategy::StrategyBase::RefreshCell
bool RefreshCell(const BoundingVolume &bv, CellType *cell)
Definition: NullStrategy.h:41
GfxTL::NullStrategy::CellData
Definition: NullStrategy.h:11
GfxTL::NullStrategy::StrategyBase
Definition: NullStrategy.h:15
GfxTL::NullStrategy::StrategyBase::ShouldSubdivide
bool ShouldSubdivide(const CellType &cell) const
Definition: NullStrategy.hpp:13
GfxTL::NullStrategy::StrategyBase::InitLevelDependentCellData
void InitLevelDependentCellData(CellType *)
Definition: NullStrategy.hpp:25
GfxTL::NullStrategy
Definition: NullStrategy.h:7
GfxTL
Definition: AABox.h:8
GfxTL::NullStrategy::StrategyBase::StopPointInfoCache
void StopPointInfoCache()
Definition: NullStrategy.hpp:9
GfxTL::NullStrategy::StrategyBase::CellType
Base::CellType CellType
Definition: NullStrategy.h:19
GfxTL::NullStrategy::StrategyBase::StartPointInfoCache
void StartPointInfoCache()
Definition: NullStrategy.hpp:5
NullStrategy.hpp