HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_ProjectConfig.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Side Effects Software Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef __HUSD_Token_h__
19 #define __HUSD_Token_h__
20 
21 #include "HUSD_API.h"
22 #include <UT/UT_StringHolder.h>
23 #include <UT/UT_Function.h>
24 
25 /// Global methods for hooking LOP behavior back to a higher level project
26 /// configuration tool.
27 
28 /// Add a callback that is invoked right before a layer is written to disk.
29 /// Return false from the callback if the layer should not be written to disk.
30 using HUSD_DoLayerDiffFn =
34 
35 /// Add a callback that is invoked during a USD save operation. In particular,
36 /// if a USD file is being saved one frame at a time, and the asset resolver
37 /// for the output file automatically creates new file versions, we use the
38 /// value returned here to make sure that ever subsequent frame data is saved
39 /// to the version of the file created by the first save operation.
46 
47 /// Global setting to control the context option that is used to identify the
48 /// "current shot".
53 
54 /// Add a callback that is run to determine if the supplied unit is active
55 /// given the provided "current unit". The test function is passed
56 /// (shot match pattern, current shot). Return true if the current shot
57 /// matches the supplied pattern.
62 
63 #endif
64 
UT_Function< UT_StringHolder(const UT_StringHolder &)> HUSD_PathWithVersionSpecifierFn
cvex test(vector P=0;int unbound=3;export float s=0;export vector Cf=0;)
Definition: test.vfl:11
HUSD_API void HUSDsetDoLayerDiffCallback(HUSD_DoLayerDiffFn cb)
UT_Function< bool(const UT_StringHolder &, const UT_StringHolder &)> HUSD_ActiveShotTestFn
#define HUSD_API
Definition: HUSD_API.h:31
HUSD_API UT_StringHolder HUSDgetActiveShotContextOption()
UT_Function< bool(const UT_StringHolder &)> HUSD_DoLayerDiffFn
HUSD_API void HUSDsetActiveShotTest(HUSD_ActiveShotTestFn test)
HUSD_API HUSD_ActiveShotTestFn HUSDgetActiveShotTest()
std::function< T > UT_Function
Definition: UT_Function.h:37
HUSD_API void HUSDsetPathWithVersionSpecifierCallback(HUSD_PathWithVersionSpecifierFn cb)
HUSD_API HUSD_PathWithVersionSpecifierFn HUSDgetPathWithVersionSpecifierCallback()
UT_Function< UT_StringHolder()> HUSD_GetShotContextOptionFn
HUSD_API HUSD_DoLayerDiffFn HUSDgetDoLayerDiffCallback()
HUSD_API void HUSDsetActiveShotContextOption(HUSD_GetShotContextOptionFn cb)