HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_ConAnchorAlignAxis.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_ConAnchorAlignAxis_h__
9 #define __SIM_ConAnchorAlignAxis_h__
10 
11 #include "SIM_API.h"
13 
15 
16 /// A concrete constraint source: the "lookat" constraint, set to
17 /// track the orientation from one spatial anchor to another.
19 {
20 public:
22 
23 protected:
24  explicit SIM_ConAnchorAlignAxis(const SIM_DataFactory *factory);
25  ~SIM_ConAnchorAlignAxis() override;
26 
27  bool getNeedsInitSubclass() const override;
29  const SIM_Relationship *rel) override;
30 
32  const SIM_Time &time) const override;
34  const SIM_Time &time) const override;
35 
36 private:
37  void getPositions(
38  SIM_ConAnchorSpatial *&goalfrom,
39  SIM_ConAnchorSpatial *&goalto);
40  void getConstPositions(
41  const SIM_ConAnchorSpatial *&goalfrom,
42  const SIM_ConAnchorSpatial *&goalto) const;
43 
44  static const SIM_DopDescription *getDopDescription();
45 
49  "Anchor: Align Axis",
50  getDopDescription());
51 };
52 
53 #endif
54 
virtual UT_Quaternion getOrientationSubclass(const SIM_Time &time) const =0
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
GETSET_DATA_FUNCS_V3(SIM_NAME_ROTATION, RotationInput)
GT_API const UT_StringHolder time
virtual UT_Vector3 getAngularVelocitySubclass(const SIM_Time &time) const =0
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
virtual bool getNeedsInitSubclass() const
#define SIM_API
Definition: SIM_API.h:12
#define SIM_NAME_OBJECTAXIS
Definition: SIM_Names.h:156
virtual void initConstraintSubclass(const SIM_Relationship *rel)