00001 #ifndef FRACTIONOFFRAGMENTTOKEEP_H 00002 #define FRACTIONOFFRAGMENTTOKEEP_H 00003 00007 class FractionOfFragmentToKeep 00008 { 00009 public: 00013 virtual ~FractionOfFragmentToKeep(){}; 00014 00019 FractionOfFragmentToKeep( float p_initial_fraction_to_keep ); 00020 00024 float operator()( float p_fraction_good_hit ); 00025 00030 void setInitialFractionGoodHit( float p_fraction ); 00031 00036 void setInitialFractionToKeep( float p_fraction ); 00037 00042 void setTargetedGoodness( float p_targeted_goodness ); 00043 00047 float getTargetedGoodness( void ) const; 00048 00052 float getInitialFractionToKeep( void ) const; 00053 00054 protected: 00055 00056 private: 00057 bool m_IsFirstCall; 00058 float m_InitialFractionToKeep; 00059 float m_InitialFractionGoodHit; 00060 float m_TargetedGoodness; 00061 }; 00062 00063 #endif 00064 alFractionGoodHit; 00065 float m_TargetedGoodness; 00066 }; 00067 00068 #endif