00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_BuildRelationshipMask__
00020 #define __GAS_BuildRelationshipMask__
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 class SIM_IndexField;
00033
00034 class GAS_API GAS_BuildRelationshipMask : public GAS_SubSolver
00035 {
00036 public:
00037 GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
00038 GET_DATA_FUNC_S(GAS_NAME_INDEX, IndexName);
00039 GET_DATA_FUNC_S("relationshipmask", RelationshipMaskName);
00040 GET_DATA_FUNC_S("relationshipvel", RelationshipVelocityName);
00041 GET_DATA_FUNC_S("relationship", RelationshipName);
00042 GET_DATA_FUNC_I("volumetype", VolumeType);
00043 GETSET_DATA_FUNCS_B("usepointvelocity", UsePointVelocity);
00044 GETSET_DATA_FUNCS_B("usevolumevelocity", UseSDFVelocity);
00045 GETSET_DATA_FUNCS_B("allownonsdf", AllowNonSDF);
00046
00047 GET_DATA_FUNC_B("usebandwidth", UseBandwidth);
00048 GET_DATA_FUNC_F("bandwidth", Bandwidth);
00049 GET_DATA_FUNC_B("clamptobandwidth", ClampToBandwidth);
00050
00051 GET_DATA_FUNC_F("particlebandwidth", ParticleBandwidth);
00052
00053 protected:
00054 explicit GAS_BuildRelationshipMask(const SIM_DataFactory *factory);
00055 virtual ~GAS_BuildRelationshipMask();
00056
00057
00058 virtual bool solveGasSubclass(SIM_Engine &engine,
00059 SIM_Object *obj,
00060 SIM_Time time,
00061 SIM_Time timestep);
00062
00063 void buildRelationshipMask(SIM_Object *obj,
00064 SIM_ScalarField *relationshipmask,
00065 SIM_VectorField *relationshipvel,
00066 SIM_IndexField *index);
00067
00068 private:
00069 static const SIM_DopDescription *getDopDescription();
00070
00071 DECLARE_STANDARD_GETCASTTOTYPE();
00072 DECLARE_DATAFACTORY(GAS_BuildRelationshipMask,
00073 GAS_SubSolver,
00074 "Gas BuildRelationshipMask",
00075 getDopDescription());
00076 };
00077
00078 #endif