HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIM_ConRelNone.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  */
7 
8 #ifndef __SIM_ConRelNone_h__
9 #define __SIM_ConRelNone_h__
10 
11 #include "SIM_API.h"
12 #include "SIM_OptionsUser.h"
13 #include "SIM_ConRel.h"
14 
15 /// The simplest type of constraint: forcing the geometry to exactly match
16 /// the anchor position and/or orientation.
18 {
19 protected:
20  explicit SIM_ConRelNone(const SIM_DataFactory *factory);
21  virtual ~SIM_ConRelNone();
22 
23  virtual void buildConRelGuide(
24  const GU_DetailHandle &gdh,
25  const SIM_Options &options,
26  const UT_Vector3 &anchor_pos_1,
27  const UT_Vector3 &anchor_pos_2,
28  const UT_Quaternion &anchor_rot_1,
29  const UT_Quaternion &anchor_rot_2,
30  const ConRelData &c_data) const;
32  virtual fpreal getStateDistanceSubclass() const;
33 
34 private:
35  static const SIM_DopDescription *getConRelNoneDopDescription();
36 
37  fpreal myStateDistance;
38 
41  SIM_ConRel,
42  "No Constraint Relationship",
43  getConRelNoneDopDescription());
44 };
45 
46 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
virtual fpreal getStateDistanceSubclass() const
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
T distance(const UT_Vector4T< T > &v1, const UT_Vector4T< T > &v2)
Definition: UT_Vector4.h:634
virtual void setStateDistanceSubclass(fpreal distance)
double fpreal
Definition: SYS_Types.h:269
#define SIM_API
Definition: SIM_API.h:10
virtual void buildConRelGuide(const GU_DetailHandle &gdh, const SIM_Options &options, const UT_Vector3 &anchor_pos_1, const UT_Vector3 &anchor_pos_2, const UT_Quaternion &anchor_rot_1, const UT_Quaternion &anchor_rot_2, const ConRelData &c_data) const