HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Rails.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  * NAME: GU_Rails (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __GU_Rails_h__
13 #define __GU_Rails_h__
14 
15 #include "GU_API.h"
16 #include "GU_Types.h"
17 #include <UT/UT_Vector3.h>
18 
19 class GA_PrimitiveGroup;
20 class GU_Detail;
21 
23 {
24 public:
25  GU_RailXSection();
26  ~GU_RailXSection();
27 
28  UT_Vector3 Ivec, Jvec; // I and J component axes
29  UT_Vector3 midpoint; // midpoint of the attach points
30  float length; // half length between two attach points
31 };
32 
34 {
35 public:
36  GU_RailParms();
38 
39  const GU_Detail *rails; // the rails
40  const GU_Detail *xSection; // the cross-section
42  int attach1, attach2; // vertices to attach to
43  float scale; // scale
44  float roll; // pitch
45  int useDirection; // direction toggle
46  float nx, ny, nz; // user specified direction
47  int noFlipping; // attempt to fix the angle
48  int pairRails; // join the rails in pairs
49  int joinFirstLast; // join first and last rails
50  int stretchToRails; // stretch the xsect to rails
51  int outputGroups; // outut rail groups switch
52  char *railGrpName; // raail groups prefix name
53  const GA_PrimitiveGroup *railGroup; // optional rail group
54  const GA_PrimitiveGroup *xGroup; // optional xsec group
55 };
56 
57 #endif
int joinFirstLast
Definition: GU_Rails.h:49
UT_Vector3 Jvec
Definition: GU_Rails.h:28
int useDirection
Definition: GU_Rails.h:45
int outputGroups
Definition: GU_Rails.h:51
const GA_PrimitiveGroup * xGroup
Definition: GU_Rails.h:54
const GU_Detail * rails
Definition: GU_Rails.h:39
int attach2
Definition: GU_Rails.h:42
GU_CrossSectionType cycleType
Definition: GU_Rails.h:41
UT_Vector3 midpoint
Definition: GU_Rails.h:29
float length
Definition: GU_Rails.h:30
#define GU_API
Definition: GU_API.h:12
char * railGrpName
Definition: GU_Rails.h:52
const GA_PrimitiveGroup * railGroup
Definition: GU_Rails.h:53
int noFlipping
Definition: GU_Rails.h:47
GU_CrossSectionType
Definition: GU_Types.h:49
float nz
Definition: GU_Rails.h:46
const GU_Detail * xSection
Definition: GU_Rails.h:40
float scale
Definition: GU_Rails.h:43
~GU_RailParms()
Definition: GU_Rails.h:37
int pairRails
Definition: GU_Rails.h:48
float roll
Definition: GU_Rails.h:44
int stretchToRails
Definition: GU_Rails.h:50