HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROP_ActiveRenderer.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: ROP_ActiveRenderer.h (ROP Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __ROP_ActiveRenderer__
12 #define __ROP_ActiveRenderer__
13 
14 #include "ROP_API.h"
15 
16 #include <UT/UT_IntArray.h>
17 #include <UT/UT_StringArray.h>
18 
19 class UT_WorkArgs;
20 
22 {
23 public:
24  enum
25  {
26  // Renderer is active due to:
27  ENVIRONMENT = 1, // Environment flag
28  PREFERENCE = 2, // Preference
29  ROP = 4 // ROP placement
30  };
31 public:
32  static const char *getLabel(uint index);
33  static const char *getParmType(uint index);
34  static uint getRendererCount();
35  static uint getActiveCount();
36  static const char *getShopType(uint index);
37  static bool isActive(uint index);
38  static void setActive(uint index, int type, bool active);
39  static int getActiveSource(uint index);
40 
41  static void setActiveFromString(const UT_String &renderers,
42  int type);
43  static void clearAllActive(int type);
44 
45  static void setShowAllROPs( bool flag );
46  static bool getShowAllROPs();
47 
48 private:
49  static void loadRenderers(const char *filename);
50 
51  static UT_StringArray theLabels;
52  static UT_StringArray theParmTypes;
53  static UT_StringArray theShopTypes;
54  static UT_IntArray theActiveSource;
55  static bool theLoadedFlag;
56  static bool theShowAllROPsFlag;
57 };
58 
59 #endif
60 
GT_API const UT_StringHolder filename
#define ROP_API
Definition: ROP_API.h:10
GLuint index
Definition: glcorearb.h:786
type
Definition: core.h:1059
unsigned int uint
Definition: SYS_Types.h:45