HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_ShapeFactory.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: GR_ShapeFactory ( GR Library, C++)
7  *
8  * COMMENTS:
9  * Generates basic shapes in the form of RE_Geometry objects.
10  * Wireframe versions are connectivity group RE_GEO_WIRE_IDX.
11  * Shaded versions (if applicable) are in RE_GEO_SHADED_IDX.
12  */
13 #ifndef GR_ShapeFactory_h
14 #define GR_ShapeFactory_h
15 
16 #include "GR_API.h"
17 #include <UT/UT_VectorTypes.h>
18 
19 class RE_Render;
20 class RE_Geometry;
21 
22 namespace GR_ShapeFactory
23 {
24 
26 {
30 };
31 
33  UT_Vector3F pos,
34  const char *cache_name = NULL);
36  const UT_Vector3FArray &pos,
37  const char *cache_name = NULL);
38 
40  UT_Vector3F center,
43  const char *cache_name = NULL);
44 
46  UT_Vector3F center,
48  const char *cache_name = NULL);
49 
51  UT_Vector3F p0,
52  UT_Vector3F p1,
53  const char *cache_name = NULL);
54 
56  UT_Vector3F center,
57  UT_Vector2F radius,
59  const char *cache_name = NULL);
60 
62  UT_Vector3F center,
63  UT_Vector3F radius,
64  const char *cache_name = NULL);
65 
66 // 3D L, each axis colored. Wireframe only.
68  UT_Vector3F center,
69  fpreal scale,
70  const char *cache_name = NULL);
71 // 3D +. Wireframe Only.
73  UT_Vector3F center,
74  fpreal scale,
75  const char *cache_name = NULL);
76 // simple bone
78  const char *cache_name = NULL);
79 
80 // solved bone, a few more kinks in the middle
82  const char *cache_name = NULL);
83 
84 }
85 
86 #endif
A collection of vertex arrays defining a geometry object. This class acts as a wrapper around multipl...
Definition: RE_Geometry.h:53
GT_API const UT_StringHolder cache_name
GR_API RE_Geometry * buildPoint(RE_Render *r, UT_Vector3F pos, const char *cache_name=NULL)
GR_API RE_Geometry * buildLine(RE_Render *r, UT_Vector3F p0, UT_Vector3F p1, const char *cache_name=NULL)
GLsizeiptr size
Definition: glcorearb.h:663
GR_API RE_Geometry * buildPointCloud(RE_Render *r, const UT_Vector3FArray &pos, const char *cache_name=NULL)
GA_API const UT_StringHolder scale
GR_API RE_Geometry * buildAxes(RE_Render *r, UT_Vector3F center, fpreal scale, const char *cache_name=NULL)
GR_API RE_Geometry * buildGrid(RE_Render *r, UT_Vector3F center, UT_Vector2F size, Orientation orient, const char *cache_name=NULL)
GR_API RE_Geometry * buildBone(RE_Render *r, const char *cache_name=NULL)
GR_API RE_Geometry * buildNull(RE_Render *r, UT_Vector3F center, fpreal scale, const char *cache_name=NULL)
#define GR_API
Definition: GR_API.h:10
GR_API RE_Geometry * buildBox(RE_Render *r, UT_Vector3F center, UT_Vector3F size, const char *cache_name=NULL)
GA_API const UT_StringHolder orient
double fpreal
Definition: SYS_Types.h:270
GR_API RE_Geometry * buildSolverBone(RE_Render *r, const char *cache_name=NULL)
GR_API RE_Geometry * buildCircle(RE_Render *r, UT_Vector3F center, UT_Vector2F radius, Orientation orient, const char *cache_name=NULL)
GLboolean r
Definition: glcorearb.h:1221
GR_API RE_Geometry * buildSphere(RE_Render *r, UT_Vector3F center, UT_Vector3F radius, const char *cache_name=NULL)