18 #ifndef __HUSD_RendererInfo_h__
19 #define __HUSD_RendererInfo_h__
49 , myDrawComplexityMultiplier(1.0)
51 , myIsNativeRenderer(false)
53 , myNeedsNativeDepthPass(false)
54 , myNeedsNativeSelectionPass(false)
55 , myAllowBackgroundUpdate(false)
56 , myDestroyIfDeactivated(false)
57 , myPauseOnUpdate(false)
59 , myViewportRenderer(false)
60 , myDrawModeSupport(false)
61 , myHuskFastExit(false)
62 , myHuskVerboseInterval(0)
69 fpreal complexitymultiplier,
80 fpreal husk_verbose_interval,
83 bool needsnativedepth,
84 bool needsnativeselection,
85 bool allowbackgroundupdate,
86 bool destroyifdeactivated,
89 bool viewportrenderer,
92 bool show_in_viewport_menu)
94 , myDisplayName(displayname)
95 , myMenuLabel(menulabel)
96 , myMenuPriority(menupriority)
97 , myDrawComplexityMultiplier(complexitymultiplier)
99 , myIsNativeRenderer(isnative)
100 , myDepthStyle(depth_style)
101 , myDefaultPurposes(defaultpurposes)
102 , myRestartRenderSettings(restartrendersettings)
103 , myRestartCameraSettings(restartcamerasettings)
104 , myRenderViewStats(renderstats)
105 , myHuskMetadata(husk_metadata)
106 , myHuskStatsMetadata(husk_stats_metadata)
107 , myStatsDataPaths(statsdatapaths)
108 , myHuskVerboseScript(husk_verbose_script)
109 , myHuskVerboseInterval(husk_verbose_interval)
110 , myDiskProductTypes(disk_product_types)
111 , myPreloadLibraries(preload_libraries)
112 , myNeedsNativeDepthPass(needsnativedepth)
113 , myNeedsNativeSelectionPass(needsnativeselection)
114 , myAllowBackgroundUpdate(allowbackgroundupdate)
115 , myDestroyIfDeactivated(destroyifdeactivated)
116 , myPauseOnUpdate(pauseonupdate)
117 , myAovSupport(aovsupport)
118 , myViewportRenderer(viewportrenderer)
119 , myDrawModeSupport(drawmodesupport)
120 , myHuskFastExit(husk_fastexit)
121 , myShowInViewportMenu(show_in_viewport_menu)
131 {
return myDisplayName; }
134 {
return myMenuLabel; }
138 {
return myMenuPriority; }
142 {
return myDrawComplexityMultiplier; }
146 {
return myIsValid; }
149 {
return myIsNativeRenderer; }
152 {
return myDepthStyle; }
156 {
return myDefaultPurposes; }
160 {
return myRestartRenderSettings; }
164 {
return myRestartCameraSettings; }
167 {
return myRenderViewStats; }
171 {
return myNeedsNativeDepthPass; }
175 {
return myNeedsNativeSelectionPass; }
179 {
return myAllowBackgroundUpdate; }
183 {
return myDestroyIfDeactivated; }
187 {
return myPauseOnUpdate; }
190 {
return myAovSupport; }
193 {
return myViewportRenderer; }
196 {
return myDrawModeSupport; }
199 {
return myHuskFastExit; }
202 {
return myShowInViewportMenu; }
207 {
return myDiskProductTypes; }
240 {
return myHuskMetadata; }
249 {
return myHuskStatsMetadata; }
273 {
return myStatsDataPaths; }
298 const char *key)
const;
302 {
return myHuskVerboseScript; }
304 {
return myHuskVerboseInterval; }
310 void preloadLibraries()
const;
317 fpreal myDrawComplexityMultiplier;
323 StatsDataPaths myStatsDataPaths;
324 HuskMetadata myHuskMetadata;
327 fpreal myHuskVerboseInterval;
331 bool myIsNativeRenderer;
332 bool myNeedsNativeDepthPass;
333 bool myNeedsNativeSelectionPass;
334 bool myAllowBackgroundUpdate;
335 bool myDestroyIfDeactivated;
336 bool myPauseOnUpdate;
338 bool myViewportRenderer;
339 bool myDrawModeSupport;
341 bool myShowInViewportMenu;
bool needsNativeDepthPass() const
const UT_StringSet & diskProductTypes() const
Parse and provide information from UsdRenderers.json.
const UT_StringHolder & displayName() const
const UT_StringArray & defaultPurposes() const
const UT_StringHolder & name() const
HUSD_RendererInfo(const UT_StringHolder &name, const UT_StringHolder &displayname, const UT_StringHolder &menulabel, int menupriority, fpreal complexitymultiplier, bool isnative, HUSD_DepthStyle depth_style, const UT_StringArray &defaultpurposes, const UT_StringArray &restartrendersettings, const UT_StringArray &restartcamerasettings, const UT_StringArray &renderstats, const HuskMetadata &husk_metadata, const UT_StringHolder &husk_stats_metadata, const StatsDataPaths &statsdatapaths, const UT_StringHolder &husk_verbose_script, fpreal husk_verbose_interval, const UT_StringSet &disk_product_types, const UT_StringArray &preload_libraries, bool needsnativedepth, bool needsnativeselection, bool allowbackgroundupdate, bool destroyifdeactivated, bool pauseonupdate, bool aovsupport, bool viewportrenderer, bool drawmodesupport, bool husk_fastexit, bool show_in_viewport_menu)
UT_StringMap< HUSD_RendererInfo > HUSD_RendererInfoMap
bool destroyIfDeactivated() const
bool drawModeSupport() const
fpreal huskVerboseInterval() const
HUSD_DepthStyle depthStyle() const
bool allowBackgroundUpdate() const
bool isNativeRenderer() const
bool pauseOnUpdate() const
const UT_StringArray & restartRenderSettings() const
fpreal drawComplexityMultiplier() const
const UT_StringHolder & menuLabel() const
const UT_StringHolder & huskVerboseScript() const
Python script used by husk for verbose callbacks.
GLuint const GLchar * name
A map of string to various well defined value types.
const UT_StringArray & renderViewStats() const
bool needsNativeSelectionPass() const
const HuskMetadata & huskMetadata() const
bool huskFastExit() const
Class to store JSON objects as C++ objects.
bool viewportRenderer() const
const StatsDataPaths & statsDataPaths() const
const UT_StringHolder & huskStatsMetadata() const
bool showInViewportMenu() const
const UT_StringArray & restartCameraSettings() const