13 #ifndef __PI_Manager__
14 #define __PI_Manager__
58 int addPI(
const char *name,
const char *pitype);
61 int getPIIndex(
const char *name)
const;
63 int getNumPIs()
const;
65 void swapPIs(
int idx1,
int idx2);
67 UT_String getFreeGroupName(
const char *name)
const;
68 int addGroup(
const char *name);
70 int getGroupIndex(
const char *name)
const;
71 int getNumGroups()
const;
73 void swapGroups(
int idx1,
int idx2);
75 void addPItoGroup(
int pi,
int group);
76 void removePIfromGroup(
int pi,
int group);
77 void clearGroup(
int group);
88 OP_ERROR save(std::ostream &os)
const;
89 OP_ERROR savePersistentPIs(std::ostream &os,
int i = -1)
const;
90 OP_ERROR savePersistentGroups(std::ostream &os,
int i = -1)
const;
95 void getRefreshPICommands(std::ostream &commands,
98 void getRefreshPICommands(std::ostream &commands,
OP_Node *op);
104 void installCommands()
const;
105 void deinstallCommands()
const;
108 typedef std::pair<PI_PICallback, void *> PI_PICallbackInfo;
109 typedef std::pair<PI_GroupCallback, void *> PI_GroupCallbackInfo;
PI_API PI_Manager * PIgetManager()
void(* PI_PICallback)(PI_OHLPersistent *pi, PI_ChangeType ctype, void *data)
GLuint const GLchar * name
void(* PI_GroupCallback)(PI_OHLGroup *group, PI_ChangeType ctype, void *data)
__hostdev__ constexpr T pi()
Pi constant taken from Boost to match old behaviour.