HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_GroupManager.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 Library (C++)
7  *
8  * COMMENTS:
9  * Provides access to the GOP level group functions so you
10  * can parse groups and keep track of adhoc group membership.
11  *
12  * During the scope of this object any groups created
13  * will be preserved, and they will all be deleted when
14  * it is out of scope.
15  *
16  * If working with const gdps, the detached versions should be used.
17  *
18  */
19 
20 #ifndef __GU_GroupManager_h__
21 #define __GU_GroupManager_h__
22 
23 #include "GU_API.h"
24 #include <SYS/SYS_Deprecated.h>
25 #include <SYS/SYS_Types.h>
26 
27 class UT_String;
28 class GU_Detail;
29 class GA_PointGroup;
30 class GA_PrimitiveGroup;
31 class GA_VertexGroup;
32 class GOP_Manager;
33 
35 {
36 public:
40  ~GU_GroupManager();
41 
42  // Always return detached, unordered, groups.
43  // If forceexistence is true, will always return a valid group pointer
44  // by creating an empty group if necessary.
45  // Success will be set to false if the group failed to be created.
46  // The returned group may be an alias of an existing group
47  // if the group naming is trivial
49  const GA_PrimitiveGroup *parsePrimitiveDetached(const char *pat,
50  const GU_Detail *pgdp,
51  bool forceexistence,
52  bool &success);
54  const GA_PointGroup *parsePointDetached(const char *pat,
55  const GU_Detail *pgdp,
56  bool forceexistence,
57  bool &success);
58 
60  const GA_VertexGroup *parseVertexDetached(const char *pat,
61  const GU_Detail *pgdp,
62  bool forceexistence,
63  bool &success);
64 
65 private:
66  GOP_Manager *myManager;
67 };
68 
69 #endif
#define SYS_DEPRECATED_HDK_REPLACE(__V__, __R__)
const GA_VertexGroup * parseVertexDetached(const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
#define GU_API
Definition: GU_API.h:14
const GA_PointGroup * parsePointDetached(const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
const GA_PrimitiveGroup * parsePrimitiveDetached(const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)