12 #ifndef __SOP_PolySplit2_h__
13 #define __SOP_PolySplit2_h__
20 class MSS_PolySplitState2;
38 static const char *myInputLabels[];
42 const char *
inputLabel(
unsigned idx)
const override;
50 {
setString(str, meaning,
"splitloc", 0, t); }
53 bool curveInput() {
return getInput(1) != NULL; }
55 int PATHTYPE() {
return evalInt(
"pathtype", 0, 0); }
57 void SET_PATHTYPE(
int i) {
setInt(
"pathtype", 0, 0, i); }
60 void SET_CLOSED(
int i) {
setInt(
"close", 0, 0, i); }
62 int ALLOWFACES() {
return evalInt(
"allowfaces", 0, 0); }
63 void SET_ALLOWFACES(
int i) {
setInt(
"allowfaces", 0, 0, i); }
65 int NUMLOOPS() {
return evalInt(
"numloops", 0, 0); }
66 int PARALLELLOOP() {
return evalInt(
"parallellooptoggle", 0, 0); }
67 void SET_PARALLELLOOP(
int i) {
setInt(
"parallellooptoggle", 0, 0, i); }
68 int PARALLELFLIP() {
return evalInt(
"parallelfliptoggle", 0, 0); }
69 void SET_PARALLELFLIP(
int i) {
setInt(
"parallelfliptoggle", 0, 0, i); }
71 int QUADCOMPLETE() {
return evalInt(
"quadcomplete", 0, 0); }
72 void SET_QUADCOMPLETE(
int i) {
setInt(
"quadcomplete", 0, 0, i); }
74 int EDGEPERCENTTOGGLE() {
return evalInt(
"edgepercenttoggle", 0, 0); }
75 void SET_EDGEPERCENTTOGGLE(
int i) {
setInt(
"edgepercenttoggle", 0, 0, i); }
76 float EDGEPERCENTAGE() {
return evalFloat(
"edgepercent", 0, 0); }
80 int CREATEGROUP() {
return evalInt(
"grouptoggle", 0, 0); }
82 int GROUPAPPEND() {
return evalInt(
"groupappend", 0, 0); }
86 friend class sop_SplitParser2;
87 friend class MSS_PolySplitState2;
88 friend class SOP_PolySplit2Verb;
virtual const SOP_NodeVerb * cookVerb() const
virtual const char * inputLabel(unsigned idx) const
fpreal evalFloat(int pi, int vi, fpreal t) const
void setString(const UT_StringRef &val, CH_StringMeaning meaning, int parmi, int vectori, fpreal t)
void evalString(UT_String &val, int pi, int vi, fpreal t) const
OP_Node * getInput(unsigned idx, bool mark_used=false) const
Returns the node connected to a particular input (may be null).
GLuint const GLchar * name
void setInt(int parmi, int vectori, fpreal t, exint value)
exint evalInt(int pi, int vi, fpreal t) const
virtual OP_ERROR cookMySop(OP_Context &context)=0