HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIM_ConAnchorObjPrimPos.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_ConAnchorObjPrimPos_h__
9 #define __SIM_ConAnchorObjPrimPos_h__
10 
11 #include "SIM_API.h"
12 #include <UT/UT_Vector2.h>
14 
16 {
17 public:
18  /// Store the primitive number if we are anchored to a geometry primitive.
20  /// (u,v) position within the primitive
22 
23 protected:
24  explicit SIM_ConAnchorObjPrimPos(const SIM_DataFactory *f);
25  virtual ~SIM_ConAnchorObjPrimPos();
26 
28  const UT_Vector3 &worldspacepos,
29  const SIM_Object *object);
30  virtual UT_Vector3 getPositionSubclass(const SIM_Time &time) const;
31  virtual UT_Vector3 getVelocitySubclass(const SIM_Time &time) const;
32 
33 private:
34  static const SIM_DopDescription *getDopDescription();
35 
39  "Anchor: Object Primitive Position",
40  getDopDescription());
41 };
42 
43 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define SIM_NAME_PRIMITIVE
Definition: SIM_Names.h:170
#define GETSET_DATA_FUNCS_UV(DataName, FuncName)
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
GLfloat f
Definition: glcorearb.h:1925
#define GETSET_DATA_FUNCS_I(DataName, FuncName)
#define SIM_NAME_PRIMUV
Definition: SIM_Names.h:172
virtual UT_Vector3 getPositionSubclass(const SIM_Time &time) const =0
virtual void initParmsFromWorldSpacePositionSubclass(const UT_Vector3 &worldspacepos, const SIM_Object *object)=0
#define SIM_API
Definition: SIM_API.h:10
virtual UT_Vector3 getVelocitySubclass(const SIM_Time &) const