00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __GAS_ResizeField__
00020 #define __GAS_ResizeField__
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_RawField;
00032 class UT_Vector4Array;
00033
00034 class GAS_API GAS_ResizeField : public GAS_SubSolver
00035 {
00036 public:
00037 GET_DATA_FUNC_S("reffield", RefFieldName);
00038 GET_DATA_FUNC_V3("minpad", MinPad);
00039 GET_DATA_FUNC_V3("maxpad", MaxPad);
00040 GET_DATA_FUNC_V3("voxelpad", VoxelPad);
00041 GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
00042 GET_DATA_FUNC_V3("size", Size);
00043 GET_DATA_FUNC_V3("t", Center);
00044 GET_DATA_FUNC_I("combinefixed", CombineWithFixed);
00045 GET_DATA_FUNC_I("combineorig", CombineWithOrig);
00046
00047
00048 enum COMBINE_NAMES
00049 {
00050 COMBINE_REPLACE = 0,
00051 COMBINE_UNION,
00052 COMBINE_INTERSECT,
00053 NUM_COMBINE
00054 };
00055 protected:
00056 explicit GAS_ResizeField(const SIM_DataFactory *factory);
00057 virtual ~GAS_ResizeField();
00058
00059
00060 virtual bool solveGasSubclass(SIM_Engine &engine,
00061 SIM_Object *obj,
00062 SIM_Time time,
00063 SIM_Time timestep);
00064
00065 private:
00066 static const SIM_DopDescription *getDopDescription();
00067
00068 DECLARE_STANDARD_GETCASTTOTYPE();
00069 DECLARE_DATAFACTORY(GAS_ResizeField,
00070 GAS_SubSolver,
00071 "Gas Resize Field",
00072 getDopDescription());
00073 };
00074
00075 #endif