HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_IndexFieldVisualization.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_IndexFieldVisualization.h ( SIM Library, C++)
7  *
8  * COMMENTS:
9  * This simple procedure allows for intersection with signed
10  * distance functions.
11  */
12 
13 #ifndef __SIM_IndexFieldVisualization_H__
14 #define __SIM_IndexFieldVisualization_H__
15 
16 #include "SIM_API.h"
17 #include <UT/UT_Vector2.h>
18 #include <UT/UT_Vector3.h>
19 
20 #include "SIM_Names.h"
21 #include "SIM_OptionsUser.h"
22 #include "SIM_DataUtils.h"
23 
24 class UT_IStream;
25 class SIM_Geometry;
26 class SIM_IndexField;
27 
28 /// This class holds a signed distance function representing a GU_Detail.
30  public SIM_OptionsUser
31 {
32 public:
33  GET_GUIDE_FUNC_B(SIM_NAME_SHOWGUIDE, ShowGuide, true);
35  GET_GUIDE_FUNC_I("guideindex", GuideIndex, 0);
36  GET_GUIDE_FUNC_B("guideinvert", GuideInvert, false);
37  GET_GUIDE_FUNC_B("usebox", UseBox, false);
38  GET_GUIDE_FUNC_B("useboxhash", UseBoxHash, false);
39 
40  GET_GUIDE_FUNC_B("guideuseplane", GuideUsePlane, false);
41  GET_GUIDE_FUNC_I("guideplane", GuidePlane, 0);
42  GET_GUIDE_FUNC_I("guidevismode", GuideVisMode, 0);
43  GET_GUIDE_FUNC_V2("guiderange", GuideRange, (0, 1));
44  GET_GUIDE_FUNC_F("guideplaneval", GuidePlaneVal, 0);
45 
46 protected:
47  explicit SIM_IndexFieldVisualization(const SIM_DataFactory *factory);
48  ~SIM_IndexFieldVisualization() override;
49 
50  /// Overrides to properly implement this class as a SIM_Data.
51  void initializeSubclass() override;
52 
53  bool getIsAlternateRepresentationSubclass() const override;
55  const SIM_Data &) override;
56  SIM_Guide *createGuideObjectSubclass() const override;
58  const SIM_RootData &root,
59  const SIM_Options &options,
60  const GU_DetailHandle &gdh,
61  UT_DMatrix4 *xform,
62  const SIM_Time &t) const override;
63 
64 private:
65  static const SIM_DopDescription *getIndexFieldVisualizationDopDescription();
66 
67  const SIM_IndexField *myIndexField;
68 
70 
72  SIM_Data,
73  "IndexFieldVisualization",
74  getIndexFieldVisualizationDopDescription());
75 };
76 
77 #endif
#define SIM_NAME_SHOWGUIDE
Definition: SIM_Names.h:186
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
This class holds a signed distance function representing a GU_Detail.
#define GET_GUIDE_FUNC_I(DataName, FuncName, Default)
virtual bool getIsAlternateRepresentationSubclass() const
This class holds a three dimensional scalar field.
#define GET_GUIDE_FUNC_V3(DataName, FuncName, Default)
#define GET_GUIDE_FUNC_F(DataName, FuncName, Default)
virtual void buildGuideGeometrySubclass(const SIM_RootData &root, const SIM_Options &options, const GU_DetailHandle &gdh, UT_DMatrix4 *xform, const SIM_Time &t) const
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
#define GET_GUIDE_FUNC_V2(DataName, FuncName, Default)
GLdouble t
Definition: glad.h:2397
#define SIM_API
Definition: SIM_API.h:12
virtual void initAlternateRepresentationSubclass(const SIM_Data &)
#define SIM_NAME_COLOR
Definition: SIM_Names.h:87
#define GET_GUIDE_FUNC_B(DataName, FuncName, Default)
virtual SIM_Guide * createGuideObjectSubclass() const
virtual void initializeSubclass()