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  virtual ~SIM_ConAnchorAlignAxis();
26 
27  virtual bool getNeedsInitSubclass() const;
28  virtual void initConstraintSubclass(const SIM_Relationship *rel);
29 
31  const SIM_Time &time) const;
33  const SIM_Time &time) const;
34 
35 private:
36  void getPositions(
37  SIM_ConAnchorSpatial *&goalfrom,
38  SIM_ConAnchorSpatial *&goalto);
39  void getConstPositions(
40  const SIM_ConAnchorSpatial *&goalfrom,
41  const SIM_ConAnchorSpatial *&goalto) const;
42 
43  static const SIM_DopDescription *getDopDescription();
44 
48  "Anchor: Align Axis",
49  getDopDescription());
50 };
51 
52 #endif
53 
virtual UT_Quaternion getOrientationSubclass(const SIM_Time &time) const =0
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
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:58
virtual bool getNeedsInitSubclass() const
#define SIM_API
Definition: SIM_API.h:10
#define SIM_NAME_OBJECTAXIS
Definition: SIM_Names.h:155
virtual void initConstraintSubclass(const SIM_Relationship *rel)