HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_NetVDBSliceExchange.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024
3  * Side Effects Software Inc. All rights reserved.
4  *
5  * Redistribution and use of Houdini Development Kit samples in source and
6  * binary forms, with or without modification, are permitted provided that the
7  * following conditions are met:
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  * 2. The name of Side Effects Software may not be used to endorse or
11  * promote products derived from this software without specific prior
12  * written permission.
13  *
14  * THIS SOFTWARE IS PROVIDED BY SIDE EFFECTS SOFTWARE `AS IS' AND ANY EXPRESS
15  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
17  * NO EVENT SHALL SIDE EFFECTS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
20  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  *
25  *----------------------------------------------------------------------------
26  */
27 
28 #ifndef __GAS_NetVDBSliceExchange__
29 #define __GAS_NetVDBSliceExchange__
30 
31 #include <GAS/GAS_SubSolver.h>
32 #include <GAS/GAS_Utils.h>
33 
34 namespace HDK_Sample {
35 
37 {
38 public:
39  GET_DATA_FUNC_S("vdbname", VDBName);
40 
41  GET_DATA_FUNC_S(GAS_NAME_TRACKERADDR, TrackerAddress);
44 
45  GET_DATA_FUNC_I("slice", Slice);
46  GET_DATA_FUNC_S("sliceroot", SliceRoot);
47 
48  GET_DATA_FUNC_F("overlap", Overlap);
49  GET_DATA_FUNC_F("overlapvoxel", OverlapVoxel);
50 
51 protected:
52  explicit GAS_NetVDBSliceExchange(const SIM_DataFactory *factory);
53  ~GAS_NetVDBSliceExchange() override;
54 
55  /// Moves the fields given by VDBName by the given velocity
56  /// field. Moves the points given by GeometryName likewise.
57  bool solveGasSubclass(SIM_Engine &engine,
58  SIM_Object *obj,
59  SIM_Time time,
60  SIM_Time timestep) override;
61 
62 private:
63  static const SIM_DopDescription *getDopDescription();
64 
65  DECLARE_STANDARD_GETCASTTOTYPE();
66  DECLARE_DATAFACTORY(GAS_NetVDBSliceExchange,
68  "Gas Net VDB Slice Exchange",
69  getDopDescription());
70 };
71 
72 } // End HDK_Sample namespace
73 
74 #endif
75 
GET_DATA_FUNC_F("overlap", Overlap)
GT_API const UT_StringHolder time
GET_DATA_FUNC_S("vdbname", VDBName)
#define GAS_NAME_TRACKERADDR
Definition: GAS_Utils.h:43
#define GAS_NAME_TRACKERPORT
Definition: GAS_Utils.h:44
bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep) override
#define GAS_NAME_JOBNAME
Definition: GAS_Utils.h:45
GAS_NetVDBSliceExchange(const SIM_DataFactory *factory)
GET_DATA_FUNC_I(GAS_NAME_TRACKERPORT, TrackerPort)
const GA_PointGroup SIM_Time timestep