13 #ifndef __GR_DisplayOption_h__
14 #define __GR_DisplayOption_h__
30 #define ASSIGN_BUMP(flag) if(myFlags.flag != onoff) mySerialNum++; \
39 int t = 0,
bool for_lops =
false);
57 void refreshUserOptionVersions();
61 bool userOptionStatesEqual(
71 bool save(std::ostream &,
int indent=0)
const;
74 const char *className()
const;
89 bool for_uv_view =
false);
94 static int parseShadingMode(
const char *token);
104 {
return myFlags.drawPointCoincident; }
115 bool drawLit ()
const {
return myFlags.drawLit; }
118 bool drawXRay ()
const {
return myFlags.drawXRay; }
122 bool boundBox ()
const;
123 bool hlGhostFill ()
const;
124 bool hlXray ()
const;
125 int drawMode ()
const;
126 bool wireHiddenLine ()
const;
127 bool flatShaded ()
const;
128 bool matcapShaded ()
const;
129 bool wireOverShaded ()
const;
158 void drawLit (
bool onoff) { myFlags.drawLit =onoff;}
159 void drawFaded (
bool onoff) { myFlags.drawFaded =onoff;}
161 void drawXRay (
bool onoff) { myFlags.drawXRay =onoff;}
164 { myFlags.appliesToSelection = onoff; }
205 if (mode != myBoundaryMode)
207 myBoundaryMode =
mode;
214 if (mode != myBoundaryUVMode)
216 myBoundaryUVMode =
mode;
224 void enableUserOption(
const char *
name,
bool onoff);
225 bool getUserOptionState(
const char *
name)
const;
226 void disableAllUserOptions();
229 {
return myUserOptions.entries() > 0; }
234 void removeUserOption(
int option_id);
240 int getOptionId(
int i)
const;
253 mySerialNum + myRefineSerial); }
257 int64(common().getUniqueID()); }
259 void print(std::ostream &os)
const;
270 bool myOwnCommonOptionsFlag;
277 class gr_UserOptionRef
280 gr_UserOptionRef(): myId(-1), myVersion(-1) {}
281 gr_UserOptionRef(
int id,
int version )
282 : myId(id), myVersion(version) {}
285 {
return myId == opt.myId && myVersion == opt.myVersion; }
286 static int compareID(
const gr_UserOptionRef *r1,
287 const gr_UserOptionRef *r2)
289 return r1->myId - r2->myId;
302 unsigned drawPointMarkers :1,
308 drawPointCoincident:1,
318 drawPrimBreakpoints:1,
325 appliesToSelection:1,
340 mutable bool myNonCachedDrawFlag;
341 bool myNonCachedPass;
458 return myVisibility[d];
void appliesToSelection(bool onoff)
bool matcapShaded() const
bool wireOverShaded() const
#define ASSIGN_BUMP(flag)
void drawVertexMarkers(bool onoff)
bool drawProfNums() const
void drawFaded(bool onoff)
void drawPointMarkers(bool onoff)
void tintBackfaces(bool onoff)
void drawProfiles(bool onoff)
bool drawPointVelocity() const
void drawProfNums(bool onoff)
void toggleAffectsSet(bool onoff)
bool drawVertexNums() const
bool uvFillBackFaces() const
#define GR_DRAW_WIREFRAME
int64 getUniqueID() const
void drawPointNums(bool onoff)
void drawVertexNmls(bool onoff)
GR_DecorVisibility pointVelocityVisible() const
void drawPrimHulls(bool onoff)
GR_DecorVisibility vertexNmlsVisible() const
void drawGhosted(bool onoff)
const GR_CommonDispOption & common() const
void drawVertexTxtNums(bool onoff)
void setNonCachedDrawFlag() const
int getNumUserOptions() const
GR_DecorVisibility vertexNumsVisible() const
void uvFillBackFaces(bool onoff)
bool wireHiddenLine() const
GR_DecorVisibility pointTxtNumsVisible() const
bool uvFillOverlap() const
bool drawVertexTxtNums() const
bool drawPointNums() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void boundaryMode(GR_BoundaryMode mode)
void uvBoundaryMode(GR_BoundaryMode mode)
void drawPointNmls(bool onoff)
bool drawProfiles() const
bool drawPointMarkers() const
GR_CommonDispOption & common()
bool drawPrimBreakpoints() const
bool hasNonCachedDraw() const
void drawUVMap(bool onoff)
const GR_LightList * getLightList() const
GR_DecorVisibility pointMarkersVisible() const
void drawXRay(bool onoff)
bool tintBackfaces() const
void lockShadingMode(bool onoff)
bool drawVertexNmls() const
int getDisplaySet() const
void drawVertexNums(bool onoff)
bool drawVertexMarkers() const
const GR_UserOption * getOption(int i) const
GR_DecorVisibility getVisibilityFor(GR_Decoration d) const
int getRefineSerial() const
GR_DecorVisibility primNumsVisible() const
bool drawPrimNums() const
GLuint const GLchar * name
void drawPointPos(bool onoff)
void drawPointVelocity(bool onoff)
GR_API GR_OptionTable * GRgetOptionTable()
bool drawPointNmls() const
GT_API const UT_StringHolder version
void drawPrimBreakpoints(bool onoff)
void drawPrimNmls(bool onoff)
int getVisContext() const
bool drawPointPos() const
GR_BoundaryMode uvBoundaryMode() const
GR_DecorVisibility pointNumsVisible() const
void drawPointTxtNums(bool onoff)
void drawPrimNums(bool onoff)
bool toggleAffectsSet() const
GR_DecorVisibility getVisibility() const
void clearNonCachedDrawFlag() const
GR_DecorVisibility vertexMarkersVisible() const
LeafData & operator=(const LeafData &)=delete
GR_DecorVisibility primBreakpointsVisible() const
GR_BoundaryMode boundaryMode() const
bool drawPrimNmls() const
GR_DecorVisibility primNmlsVisible() const
bool hasEnabledUserOptions() const
bool drawPrimHulls() const
bool drawPointCoincident() const
bool isNonCachedPass() const
GR_DecorVisibility pointPosVisible() const
void uvFillOverlap(bool onoff)
FMT_INLINE void print(format_string< T...> fmt, T &&...args)
GR_DecorVisibility pointNmlsVisible() const
bool appliesToSelection() const
void drawPointCoincident(bool onoff)
bool drawPointTxtNums() const
bool lockShadingMode() const
GR_DecorVisibility vertexTxtNumsVisible() const
void setNonCachedPass(bool nc_pass)