HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_Info.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: GA_Info.h ( GA Library, C++)
7  *
8  * COMMENTS: Convenience class to dump information about a GA_Detail
9  */
10 
11 #ifndef __GA_Info__
12 #define __GA_Info__
13 
14 #include "GA_API.h"
15 #include "GA_Types.h"
16 
17 class GA_Detail;
18 class GA_ROAttributeRef;
19 
20 class UT_WorkBuffer;
21 
23 {
24 public:
25  GA_Info(const GA_Detail &detail);
26  ~GA_Info();
27 
29  {
30  indexInformation(buf, GA_ATTRIB_POINT);
31  indexInformation(buf, GA_ATTRIB_VERTEX);
32  indexInformation(buf, GA_ATTRIB_PRIMITIVE);
33  attributeInfo(buf, GA_ATTRIB_POINT);
34  attributeInfo(buf, GA_ATTRIB_VERTEX);
35  attributeInfo(buf, GA_ATTRIB_PRIMITIVE);
36  groupInfo(buf, GA_ATTRIB_POINT);
37  groupInfo(buf, GA_ATTRIB_VERTEX);
38  groupInfo(buf, GA_ATTRIB_PRIMITIVE);
39  boxInfo(buf);
40  }
41 
42  void indexInformation(UT_WorkBuffer &buf, GA_AttributeOwner owner);
43  void attributeInfo(UT_WorkBuffer &buf, GA_AttributeOwner owner);
44  void groupInfo(UT_WorkBuffer &buf, GA_AttributeOwner owner);
45  void boxInfo(UT_WorkBuffer &buf);
46  void boxInfo(UT_WorkBuffer &buf, const GA_ROAttributeRef &P);
47  void boxInfo2D(UT_WorkBuffer &buf);
48  void boxInfo2D(UT_WorkBuffer &buf, const GA_ROAttributeRef &P);
49  void boxInfo3D(UT_WorkBuffer &buf);
50  void boxInfo3D(UT_WorkBuffer &buf, const GA_ROAttributeRef &P);
51 
52 private:
53  const GA_Detail &myDetail;
54 };
55 
56 #endif
57 
#define GA_API
Definition: GA_API.h:12
This class provides a way to manage a reference to an attribute permitting Read-Only access...
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
GA_AttributeOwner
Definition: GA_Types.h:33
void fullInfo(UT_WorkBuffer &buf)
Definition: GA_Info.h:28
Container class for all geometry.
Definition: GA_Detail.h:96