HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_ConvertParms.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_Prim.h (C++)
7  *
8  * COMMENTS: The GU_Prim class is a the base class for which all
9  * the primitive classes are subclassed off of. Common
10  * utility operations are done here like conversion from one
11  * primitive to another.
12  *
13  */
14 
15 #ifndef __GU_ConvertParms_h__
16 #define __GU_ConvertParms_h__
17 
18 #include "GU_API.h"
19 
20 #include <GEO/GEO_ConvertParms.h>
21 #include <GA/GA_Detail.h>
22 #include <GA/GA_Range.h>
23 
29 
30 
31 /// Simple helper class for tracking a range of new primitives and points
32 /// NOTE: This class is deprecated in favour of GA_Detail::OffsetMarker and
33 /// GA_IndexMap::Marker.
35 {
36 public:
37  SYS_DEPRECATED(14.0)
39  : marker(geo)
40  {}
41 
42  SYS_DEPRECATED(14.0)
43  GA_Range getPrimitives() const
44  { return marker.primitiveRange(); }
45  SYS_DEPRECATED(14.0)
46  GA_Range getPoints() const
47  { return marker.pointRange(); }
48 
49  SYS_DEPRECATED(14.0)
50  GA_Offset primitiveBegin() const { return marker.primitiveBegin(); }
51  SYS_DEPRECATED(14.0)
52  GA_Offset pointBegin() const { return marker.pointBegin(); }
53 
54  SYS_DEPRECATED(14.0)
55  GA_Size numPrimitives() const { return marker.primitiveEnd() - marker.primitiveBegin(); }
56  SYS_DEPRECATED(14.0)
57  GA_Size numPoints() const { return marker.pointEnd() - marker.pointBegin(); }
58 
59 private:
60  const GA_Detail::OffsetMarker marker;
61 };
62 
63 
64 /// Handle copying of attributes and groups from a primitive which contains a
65 /// single vertex to a range of destination primitives/points.
66 GU_API extern void
68  GU_ConvertParms &parms,
69  const GA_Detail &src,
70  GA_Offset src_primoff,
71  GA_Detail &dst,
72  const GA_Range &dst_prims,
73  const GA_Range &dst_points);
74 
75 
76 #endif
GEO_MetaConvertStyleType
GEO_MetaConvertParms GU_MetaConvertParms
GEO_ConvertMethod GU_ConvertMethod
#define SYS_DEPRECATED(__V__)
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:236
A range of elements in an index-map.
Definition: GA_Range.h:42
GA_Size GA_Offset
Definition: GA_Types.h:646
#define GU_API
Definition: GU_API.h:14
GEO_MetaConvertStyleType GU_MetaConvertStyleType
GLenum GLenum dst
Definition: glcorearb.h:1793
GEO_ConvertStyle
GEO_ConvertParms GU_ConvertParms
Container class for all geometry.
Definition: GA_Detail.h:96
GU_API void GUconvertCopySingleVertexPrimAttribsAndGroups(GU_ConvertParms &parms, const GA_Detail &src, GA_Offset src_primoff, GA_Detail &dst, const GA_Range &dst_prims, const GA_Range &dst_points)
GEO_ConvertStyle GU_ConvertStyle
GLenum src
Definition: glcorearb.h:1793