00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_ParticleToSDF__
00020 #define __GAS_ParticleToSDF__
00021
00022 #include "GAS_API.h"
00023
00024 #include "GAS_SubSolver.h"
00025 #include "GAS_Utils.h"
00026
00027 class SIM_RawField;
00028
00029 class GAS_API GAS_ParticleToSDF : public GAS_SubSolver
00030 {
00031 public:
00032 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00033 GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
00034
00035 GET_DATA_FUNC_F("bandwidth", Bandwidth);
00036
00037 protected:
00038 explicit GAS_ParticleToSDF(const SIM_DataFactory *factory);
00039 virtual ~GAS_ParticleToSDF();
00040
00041
00042
00043 virtual bool solveGasSubclass(SIM_Engine &engine,
00044 SIM_Object *obj,
00045 SIM_Time time,
00046 SIM_Time timestep);
00047
00048 void particleToSDF(SIM_Object *obj,
00049 SIM_RawField *destfield,
00050 const GU_Detail *particles,
00051 const UT_DMatrix4 &xform);
00052
00053 private:
00054 static const SIM_DopDescription *getDopDescription();
00055
00056 DECLARE_STANDARD_GETCASTTOTYPE();
00057 DECLARE_DATAFACTORY(GAS_ParticleToSDF,
00058 GAS_SubSolver,
00059 "Gas Particle To SDF",
00060 getDopDescription());
00061 };
00062
00063 #endif
00064