HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_SopScalarField.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: SIM_SopScalarField.h ( SIMZ Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __SIM_SopScalarField_h__
12 #define __SIM_SopScalarField_h__
13 
14 #include "SIMZ_API.h"
15 #include <OP/OP_Version.h>
16 #include <SIM/SIM_ScalarField.h>
17 #include <SIM/SIM_OptionsUser.h>
18 #include "SIMZ_Utils.h"
19 
20 // This SIM_ScalarField implementation gets geometry from a SOP.
22 {
23 public:
24  // Access functions for our specific data.
25  GETSET_DATA_FUNCS_B("usesopdimensions", UseSopDimensions);
26  GETSET_DATA_FUNCS_B("sopresizeonly", SopResizeOnly);
27 
29  GETSET_DATA_FUNCS_F("scalevalue", ScaleValue);
31  GETSET_DATA_FUNCS_I("primnum", PrimNumber);
34 
35 protected:
36  explicit SIM_SopScalarField(const SIM_DataFactory *factory);
37  ~SIM_SopScalarField() override;
38 
39  // Method for accessing the geometry.
40  void handleModificationSubclass(int code) override;
41  void interpolateSubclass(const SIM_Data *source1,
42  const SIM_Data *source2,
43  fpreal interp) override;
44 
45 private:
46  void updateFieldFromOptions();
47 
48  static const SIM_DopDescription *getSopScalarFieldDopDescription();
49 
53  "SOP Scalar Field",
54  getSopScalarFieldDopDescription());
55 };
56 
57 #endif
58 
#define SIMZ_API
Definition: SIMZ_API.h:10
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
GETSET_DATA_FUNCS_I(SIM_NAME_UNIFORMVOXELS, UniformVoxels)
Control the number of divisions.
GETSET_DATA_FUNCS_F("divsize", RawDivisionSize)
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
GETSET_DATA_FUNCS_S(SIM_NAME_POSITIONPATH, PositionPath)
virtual void interpolateSubclass(const SIM_Data *source1, const SIM_Data *source2, fpreal interp)
virtual void handleModificationSubclass(int code)
GETSET_DATA_FUNCS_B(SIM_NAME_TWOD, TwoDField)
#define SIM_NAME_USETRANSFORM
Definition: SIMZ_Utils.h:34
fpreal64 fpreal
Definition: SYS_Types.h:277
This class holds a three dimensional scalar field.
#define SIM_NAME_TIME
Definition: SIMZ_Utils.h:32
#define SIM_NAME_LETSOPSINTERPOLATE
Definition: SIMZ_Utils.h:35
#define SIM_NAME_SOPPATH
Definition: SIMZ_Utils.h:31