HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Spring.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 __GU_Spring_h__
9 #define __GU_Spring_h__
10 
11 #include "GU_API.h"
12 #include <UT/UT_ValArray.h>
13 #include <GEO/GEO_Detail.h>
14 #include "GU_Topology.h"
15 
16 class GA_ROAttributeRef;
17 class GU_SpringEdge;
18 
20 {
21 public:
22 
23  GU_Spring();
24  virtual ~GU_Spring();
25 
26  void setupEdges (GU_Detail *gdp, GA_PrimitiveGroup *group = 0,
27  int force = 0);
28  void computeEdges (GU_Detail *gdp, int behavior,
29  float tension,
30  const GA_ROAttributeRef &tensionoffset,
31  const GA_ROAttributeRef &veloffset,
32  float timeinc);
33  void getForce (UT_Vector3& force, GA_Offset ptoff, GA_Index ptind,
34  float springk,
35  const GA_ROHandleF &springkattrib);
36 
37 private:
38 
41 
42  void cleanEdges ();
43  void buildEdges (GEO_Primitive *prim);
44 
45 };
46 
47 #endif
GA_API const UT_StringHolder tension
GA_API const UT_StringHolder springk
GA_Size GA_Offset
Definition: GA_Types.h:653
This class provides a way to manage a reference to an attribute permitting Read-Only access...
GT_API const UT_StringHolder topology
#define GU_API
Definition: GU_API.h:14
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:647
SIM_API const UT_StringHolder force