18 #ifndef __HUSD_Save_h__
19 #define __HUSD_Save_h__
136 bool filepath_is_time_dependent,
138 void clearSaveHistory();
142 bool filepath_is_time_dependent,
146 {
return mySaveStyle; }
148 { mySaveStyle = save_style; }
151 {
return myDefaultPrimData.myRequireDefaultPrim; }
154 myRequireDefaultPrim = require_default_prim; }
157 {
return myDefaultPrimData.myDefaultPrim; }
159 { myDefaultPrimData.myDefaultPrim = defaultprim; }
162 {
return myFlags.myClearHoudiniCustomData; }
164 { myFlags.myClearHoudiniCustomData = clear_data; }
167 {
return myFlags.myFlattenFileLayers; }
169 { myFlags.myFlattenFileLayers = flatten_file_layers; }
172 {
return myFlags.myFlattenSopLayers; }
174 { myFlags.myFlattenSopLayers = flatten_sop_layers; }
177 {
return myFlags.myErrorSavingImplicitPaths; }
179 { myFlags.myErrorSavingImplicitPaths =
error; }
182 {
return myFlags.myIgnoreSavingImplicitPaths; }
184 { myFlags.myIgnoreSavingImplicitPaths =
ignore; }
187 {
return myFlags.mySaveFilesFromDisk; }
189 { myFlags.mySaveFilesFromDisk = save; }
192 {
return myFlags.myEnsureMetricsSet; }
194 { myFlags.myEnsureMetricsSet = set; }
197 {
return myFlags.myTrackPrimExistence; }
199 { myFlags.myTrackPrimExistence = track_existence; }
202 {
return myFlags.myMuteLayersBeforeSave; }
204 { myFlags.myMuteLayersBeforeSave = mute_layers; }
207 {
return myFlags.myTimeSamplesRange; }
209 { myFlags.myTimeSamplesRange =
range; }
211 {
return myFlags.myTimeSamplesRangePadding; }
213 { myFlags.myTimeSamplesRangePadding = padding; }
216 {
return mySaveFilesPattern.get(); }
220 mySaveFilesPattern.reset(
223 mySaveFilesPattern.reset();
227 {
return myTimeData.myStartFrame; }
229 { myTimeData.myStartFrame = start_time; }
232 {
return myTimeData.myEndFrame; }
234 { myTimeData.myEndFrame = end_time; }
237 {
return myTimeData.myTimeCodesPerSecond; }
239 { myTimeData.myTimeCodesPerSecond = tps; }
242 {
return myTimeData.myFramesPerSecond; }
244 { myTimeData.myFramesPerSecond = fps; }
247 {
return myProcessorData.myProcessors; }
250 myProcessorData.myProcessors.clear();
251 for (
auto &&processor : aps)
253 myProcessorData.myProcessors.append({processor});
258 { myProcessorData.myProcessors = aps; }
261 {
return myProcessorData.myConfigNode; }
263 { myProcessorData.myConfigNode = config_node; }
266 {
return myProcessorData.myConfigTime; }
268 { myProcessorData.myConfigTime =
t; }
271 class husd_SavePrivate;
fpreal64 startFrame() const
fpreal64 myTimeCodesPerSecond
husd_SaveDefaultPrimData()
bool myClearHoudiniCustomData
void setDefaultPrim(const UT_StringHolder &defaultprim)
bool requireDefaultPrim() const
fpreal64 endFrame() const
bool errorSavingImplicitPaths() const
const HUSD_OutputProcessorAndOverridesArray & outputProcessors() const
void setSaveStyle(HUSD_SaveStyle save_style)
fpreal64 framesPerSecond() const
void setSaveFilesPattern(const UT_StringHolder &pattern)
const UT_StringHolder & defaultPrim() const
bool ignoreSavingImplicitPaths() const
HUSD_OutputProcessorAndOverrides(HUSD_OutputProcessorPtr processor, const UT_Options &overrides=UT_Options())
bool ensureMetricsSet() const
const UT_IntervalD & timeSamplesRange() const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
void setOutputProcessors(const HUSD_OutputProcessorAndOverridesArray &aps)
OP_Node * outputProcessorsConfigNode() const
void setOutputProcessorsConfigNode(OP_Node *config_node)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
void setTimeCodesPerSecond(fpreal64 tps=SYS_FP64_MAX)
void setFlattenSopLayers(bool flatten_sop_layers)
fpreal64 timeCodesPerSecond() const
bool myMuteLayersBeforeSave
bool myIgnoreSavingImplicitPaths
void setRequireDefaultPrim(bool require_default_prim)
void setTrackPrimExistence(bool track_existence)
bool myErrorSavingImplicitPaths
fpreal outputProcessorsTime() const
void setEnsureMetricsSet(bool set)
bool myTrackPrimExistence
fpreal64 myFramesPerSecond
UT_IntervalD myTimeSamplesRange
bool flattenFileLayers() const
A map of string to various well defined value types.
void setFramesPerSecond(fpreal64 fps=SYS_FP64_MAX)
const UT_PathPattern * saveFilesPattern() const
HUSD_OutputProcessorPtr myProcessor
bool flattenSopLayers() const
void setTimeSamplesRange(const UT_IntervalD &range)
void setErrorSavingImplicitPaths(bool error)
UT_StringHolder myDefaultPrim
void setOutputProcessors(const HUSD_OutputProcessorArray &aps)
fpreal64 timeSamplesRangePadding() const
void setIgnoreSavingImplicitPaths(bool ignore)
bool clearHoudiniCustomData() const
HUSD_OutputProcessorAndOverridesArray myProcessors
bool muteLayersBeforeSave() const
fpreal64 myTimeSamplesRangePadding
bool myRequireDefaultPrim
void setStartFrame(fpreal64 start_time=-SYS_FP64_MAX)
void setTimeSamplesRangePadding(fpreal64 padding)
void setEndFrame(fpreal64 end_time=SYS_FP64_MAX)
bool trackPrimExistence() const
bool saveFilesFromDisk() const
void setSaveFilesFromDisk(bool save)
void setOutputProcessorsTime(fpreal t)
SYS_FORCE_INLINE bool isstring() const
void setFlattenFileLayers(bool flatten_file_layers)
void setClearHoudiniCustomData(bool clear_data)
UT_SharedPtr< HUSD_OutputProcessor > HUSD_OutputProcessorPtr
HUSD_SaveStyle saveStyle() const
void setMuteLayersBeforeSave(bool mute_layers)