ESyS-Particle  4.0.1
MaxTrigger.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 #ifndef __MAX_TRIGGER_H
00014 #define __MAX_TRIGGER_H
00015 
00016 // --- project includes ---
00017 #include "Foundation/vec3.h"
00018 
00019 // --- STL includes ---
00020 #include <map>
00021 
00022 using std::map;
00023 
00024 struct MaxTrigParams
00025 {
00026   double trig_on_value;
00027   double trig_off_value;
00028   int buff_size;
00029   int tail_size;
00030 };
00031 
00032 class MaxTrigger
00033 {
00034  private:
00035   double m_on_level;
00036   double m_off_level;
00037 
00038  public:
00039   MaxTrigger(double,double);
00040 
00041   bool Off(const map<int,Vec3>& );
00042   bool On(const map<int,Vec3>& );
00043 };
00044 
00045 #endif // __MAX_TRIGGER_H