13 #ifndef __OPUI_GraphDisplayOptions__
14 #define __OPUI_GraphDisplayOptions__
48 void registerPreferences(CV_Canvas &canvas);
55 bool showPerfStats()
const;
57 bool showTaskGraphPerfStats()
const;
59 bool taskGraphSortDirection()
const;
61 bool useWorkItemColorAttribute()
const;
64 bool showAllDependencies()
const;
65 bool showSelectedDependencies()
const;
66 bool showChildDependencies()
const;
67 bool showSpareInputDependencies()
const;
70 bool showNodeTypes()
const;
71 bool showNodeShapes()
const;
72 bool showCop2Previews()
const;
73 bool showVopPreviews()
const;
74 bool showTaskGraph()
const;
75 bool showCookedWorkItems()
const;
76 bool showCookingWorkItems()
const;
77 bool showDirtyWorkItems()
const;
78 bool showCancelledWorkItems()
const;
79 bool showFailedWorkItems()
const;
80 bool showStaticWorkItems()
const;
81 bool showPartitionWorkItems()
const;
82 bool soloHighlightedWorkItems()
const;
83 bool showPromptText()
const;
84 bool showSimpleShape()
const;
85 bool showVopInOutLabels()
const;
86 bool showStackedLook()
const;
87 bool dimUnusedNodes()
const;
88 bool showLopLayerColor()
const;
90 fpreal maxFlyoutScale()
const;
91 fpreal maxNameWidth()
const;
92 int minNameHeight()
const;
93 int maxNameHeight()
const;
94 fpreal wireFadeFactor()
const;
96 int maxTaskGraphDepth()
const;
97 int maxTaskGraphRows()
const;
98 int maxWorkItemsPerRow()
const;
101 {
return theRegisteredBadges.entries(); }
103 {
return myBadgeNormalIndexes; }
105 {
return myBadgeLargeIndexes; }
107 bool badgeVisible(
int badgeidx,
113 {
return theRegisteredTextBadges.entries(); }
115 {
return myTextBadgeIndexes; }
117 bool textBadgeVisible(
int textbadgeidx,
121 fpreal &full_text_max_width,
123 bool prepareSingleThreadedBadges(
int num_nodes);
124 int calculateSingleThreadedBadges(
131 static void installPlugins(
const char *func_name,
133 static void installBadges();
134 static void installTextBadges();
136 static void installTopInOutColors();
145 static void clearAllContexts();
153 static bool loadPaletteColors(
154 const char *json_buf,
156 static void loadDefaultPaletteColors(
158 static void savePaletteColors(
162 static int findBadgeWithPref(
164 static int findTextBadgeWithPref(
168 bool myShowPerfStats;
170 bool myShowTaskGraphPerfStats;
172 bool myTaskGraphSortDirection;
174 bool myUseWorkItemColorAttribute;
177 bool myShowAllDependencies;
178 bool myShowSelectedDependencies;
179 bool myShowChildDependencies;
180 bool myShowSpareInputDependencies;
181 bool myPaletteColorsAreDefault;
191 int mySingleThreadedDataId;
197 static fpreal theMaxFlyoutScale;
198 static fpreal theMaxNameWidth;
199 static fpreal theMinNameHeight;
200 static fpreal theMaxNameHeight;
201 static fpreal theWireFadeFactor;
202 static fpreal theSnapRadius;
203 static fpreal theConnectorSnapRadius;
204 static fpreal theShakeSensitivity;
205 static bool theShowNodeTypes;
206 static bool theShowNodeShapes;
207 static bool theShowPreviews;
208 static bool theShowTaskGraph;
209 static bool theShowCookedWorkItems;
210 static bool theShowCookingWorkItems;
211 static bool theShowDirtyWorkItems;
212 static bool theShowCancelledWorkItems;
213 static bool theShowFailedWorkItems;
214 static bool theShowStaticWorkItems;
215 static bool theShowPartitionWorkItems;
216 static bool theSoloHighlightedWorkItems;
217 static int theMaxTaskGraphDepth;
218 static int theMaxTaskGraphRows;
219 static int theMaxWorkItemsPerRow;
222 static bool theShowPromptText;
223 static bool theShowSimpleShape;
224 static bool theShowVopInOutLabels;
225 static bool theShowStackedLook;
226 static bool theDimUnusedNodes;
227 static bool theShowLopLayerColor;
228 static bool theShowAnimations;
229 static bool theAutoScroll;
230 static bool theTransientInfo;
231 static bool theFlagsAllowPreSelect;
232 static bool theAllowDiveIntoHDAs;
233 static bool theCopyPathsToClipboard;
#define SYS_VISIBILITY_EXPORT
int textBadgeCount() const
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