13 #ifndef __OPUI_GraphDisplayOptions__
14 #define __OPUI_GraphDisplayOptions__
49 void registerPreferences(CV_Canvas &canvas);
56 bool showPerfStats()
const;
58 bool showTaskGraphPerfStats()
const;
60 bool taskGraphSortDirection()
const;
62 bool useWorkItemColorAttribute()
const;
65 bool showAllDependencies()
const;
66 bool showSelectedDependencies()
const;
67 bool showChildDependencies()
const;
68 bool showSpareInputDependencies()
const;
71 bool showNodeTypes()
const;
72 bool showNodeShapes()
const;
73 bool showCop2Previews()
const;
74 bool showVopPreviews()
const;
75 bool showTaskGraph()
const;
76 bool showCookedWorkItems()
const;
77 bool showCookingWorkItems()
const;
78 bool showDirtyWorkItems()
const;
79 bool showCancelledWorkItems()
const;
80 bool showFailedWorkItems()
const;
81 bool showStaticWorkItems()
const;
82 bool showPartitionWorkItems()
const;
83 bool soloHighlightedWorkItems()
const;
84 bool showPromptText()
const;
85 bool showSimpleShape()
const;
86 bool showVopInOutLabels()
const;
87 bool showStackedLook()
const;
88 bool dimUnusedNodes()
const;
89 bool showLopLayerColor()
const;
91 fpreal maxFlyoutScale()
const;
92 fpreal maxNameWidth()
const;
93 int minNameHeight()
const;
94 int maxNameHeight()
const;
95 fpreal wireFadeFactor()
const;
97 int maxTaskGraphDepth()
const;
98 int maxTaskGraphRows()
const;
99 int maxWorkItemsPerRow()
const;
102 {
return theRegisteredBadges.entries(); }
104 {
return myBadgeNormalIndexes; }
106 {
return myBadgeLargeIndexes; }
108 bool badgeVisible(
int badgeidx,
114 {
return theRegisteredTextBadges.entries(); }
116 {
return myTextBadgeIndexes; }
118 bool textBadgeVisible(
int textbadgeidx,
122 fpreal &full_text_max_width,
124 bool prepareSingleThreadedBadges(
OP_Network *net,
int num_nodes);
125 int calculateSingleThreadedBadges(
132 static void installPlugins(
const char *func_name,
134 static void installBadges();
135 static void installTextBadges();
137 static void installTopInOutColors();
146 static void clearAllContexts();
154 static bool loadPaletteColors(
155 const char *json_buf,
157 static void loadDefaultPaletteColors(
159 static void savePaletteColors(
163 static int findBadgeWithPref(
165 static int findTextBadgeWithPref(
169 bool myShowPerfStats;
171 bool myShowTaskGraphPerfStats;
173 bool myTaskGraphSortDirection;
175 bool myUseWorkItemColorAttribute;
178 bool myShowAllDependencies;
179 bool myShowSelectedDependencies;
180 bool myShowChildDependencies;
181 bool myShowSpareInputDependencies;
182 bool myPaletteColorsAreDefault;
192 int mySingleThreadedDataId;
198 static fpreal theMaxFlyoutScale;
199 static fpreal theMaxNameWidth;
200 static fpreal theMinNameHeight;
201 static fpreal theMaxNameHeight;
202 static fpreal theWireFadeFactor;
203 static fpreal theSnapRadius;
204 static fpreal theConnectorSnapRadius;
205 static fpreal theShakeSensitivity;
206 static bool theShowNodeTypes;
207 static bool theShowNodeShapes;
208 static bool theShowPreviews;
209 static bool theShowTaskGraph;
210 static bool theShowCookedWorkItems;
211 static bool theShowCookingWorkItems;
212 static bool theShowDirtyWorkItems;
213 static bool theShowCancelledWorkItems;
214 static bool theShowFailedWorkItems;
215 static bool theShowStaticWorkItems;
216 static bool theShowPartitionWorkItems;
217 static bool theSoloHighlightedWorkItems;
218 static int theMaxTaskGraphDepth;
219 static int theMaxTaskGraphRows;
220 static int theMaxWorkItemsPerRow;
223 static bool theShowPromptText;
224 static bool theShowSimpleShape;
225 static bool theShowVopInOutLabels;
226 static bool theShowStackedLook;
227 static bool theDimUnusedNodes;
228 static bool theShowLopLayerColor;
229 static bool theShowAnimations;
230 static bool theAutoScroll;
231 static bool theTransientInfo;
232 static bool theFlagsAllowPreSelect;
233 static bool theAllowDiveIntoHDAs;
234 static bool theCopyPathsToClipboard;
#define SYS_VISIBILITY_EXPORT
int textBadgeCount() const
GLsizei const GLfloat * value
UT_Map< OPUI_GraphDisplayOptions *, CV_Canvas * > OPUI_OptionsCanvasMap
SYS_VISIBILITY_EXPORT void OPUIaddTextBadges(OPUI_GraphTextBadgeArray *add_textbadges)
SYS_VISIBILITY_EXPORT void OPUIaddBadges(OPUI_GraphBadgeArray *add_badges)
const UT_IntArray & badgeNormalIndexes() const
const UT_IntArray & badgeLargeIndexes() const
const UT_IntArray & textBadgeIndexes() const
OPUI_GraphBadgeVisibility