00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_CorrectByMarkers__
00020 #define __GAS_CorrectByMarkers__
00021
00022 #include "GAS_API.h"
00023
00024 #include <UT/UT_ThreadedAlgorithm.h>
00025 #include <GU/GU_Detail.h>
00026
00027 #include "GAS_SubSolver.h"
00028 #include "GAS_Utils.h"
00029
00030 class GU_Detail;
00031 class SIM_VectorField;
00032
00033 class GAS_API GAS_CorrectByMarkers : public GAS_SubSolver
00034 {
00035 public:
00036 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00037 GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, SurfelName);
00038
00039 GETSET_DATA_FUNCS_F("threshold", Threshold);
00040
00041 protected:
00042 explicit GAS_CorrectByMarkers(const SIM_DataFactory *factory);
00043 virtual ~GAS_CorrectByMarkers();
00044
00045 virtual bool solveGasSubclass(SIM_Engine &engine,
00046 SIM_Object *obj,
00047 SIM_Time time,
00048 SIM_Time timestep);
00049
00050
00051 void correctSurface(SIM_ScalarField *surface, GU_Detail *gdp);
00052
00053 private:
00054 static const SIM_DopDescription *getDopDescription();
00055
00056 DECLARE_STANDARD_GETCASTTOTYPE();
00057 DECLARE_DATAFACTORY(GAS_CorrectByMarkers,
00058 GAS_SubSolver,
00059 "Gas Correct By Markers",
00060 getDopDescription());
00061 };
00062
00063 #endif