00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_SeedMarkers__
00020 #define __GAS_SeedMarkers__
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_ScalarField;
00032
00033 class GAS_API GAS_SeedMarkers : public GAS_SubSolver
00034 {
00035 public:
00036 GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
00037 GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
00038 GET_DATA_FUNC_S(GAS_NAME_SOURCE, SourceName);
00039 GET_DATA_FUNC_S(GAS_NAME_SINK, SinkName);
00040 GET_DATA_FUNC_S(GAS_NAME_VELOCITY, VelocityName);
00041
00042 GETSET_DATA_FUNCS_I("surfelpervoxel", SurfelPerVoxel);
00043 GETSET_DATA_FUNCS_B("outsidesurfels", OutsideSurfels);
00044 GETSET_DATA_FUNCS_B("insidesurfels", InsideSurfels);
00045
00046 GETSET_DATA_FUNCS_F("minrad", MinRad);
00047 GETSET_DATA_FUNCS_F("maxrad", MaxRad);
00048
00049 GETSET_DATA_FUNCS_F("birthbandwidth", BirthBandwidth);
00050 GETSET_DATA_FUNCS_F("deathbandwidth", DeathBandwidth);
00051
00052 protected:
00053 explicit GAS_SeedMarkers(const SIM_DataFactory *factory);
00054 virtual ~GAS_SeedMarkers();
00055
00056
00057
00058 virtual bool solveGasSubclass(SIM_Engine &engine,
00059 SIM_Object *obj,
00060 SIM_Time time,
00061 SIM_Time timestep);
00062
00063
00064
00065
00066 void seedMarkers(GU_Detail *gdp,
00067 const SIM_ScalarField *surface,
00068 const SIM_ScalarField *source,
00069 const SIM_ScalarField *sink,
00070 const SIM_ScalarField *collisionmask);
00071
00072 private:
00073 static const SIM_DopDescription *getDopDescription();
00074
00075 DECLARE_STANDARD_GETCASTTOTYPE();
00076 DECLARE_DATAFACTORY(GAS_SeedMarkers,
00077 GAS_SubSolver,
00078 "Gas Seed Markers",
00079 getDopDescription());
00080 };
00081
00082 #endif
00083