HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_Preferences.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_Preferences_h__
19 #define __HUSD_Preferences_h__
20 
21 #include "HUSD_API.h"
22 #include <UT/UT_StringHolder.h>
23 #include <UT/UT_Color.h>
24 
26 {
27 public:
28  // Returns a string containing the concatenation of all the default paths
29  // that are likely to end up containing collections. This string is built
30  // by combining other preferences.
31  static const UT_StringHolder defaultCollectionsSearchPath();
32 
33  static const UT_StringHolder &defaultNewPrimPath();
34  static void setDefaultNewPrimPath(
35  const UT_StringHolder &path);
36 
37  static const UT_StringHolder &defaultCollectionsPrimPath();
38  static void setDefaultCollectionsPrimPath(
39  const UT_StringHolder &path);
40 
41  static const UT_StringHolder &defaultLightsPrimPath();
42  static void setDefaultLightsPrimPath(
43  const UT_StringHolder &path);
44 
45  static const UT_StringHolder &defaultTransformSuffix();
46  static void setDefaultTransformSuffix(
47  const UT_StringHolder &suffix);
48 
49  static bool showResolvedPaths();
50  static void setShowResolvedPaths(
51  bool show_resolved_paths);
52 
53  static bool panesFollowCurrentNode();
54  static void setPanesFollowCurrentNode(
55  bool follow_current_node);
56 
57  static bool autoSetAssetResolverContext();
58  static void setAutoSetAssetResolverContext(
59  bool auto_set_context);
60 
61  static bool updateRendererInBackground();
62  static void setUpdateRendererInBackground(
63  bool update_in_background);
64 
65  static bool loadPayloadsByDefault();
66  static void setLoadPayloadsByDefault(
67  bool load_payloads);
68 
69  static bool useSimplifiedLinkerUi();
70  static void setUseSimplifiedLinkerUi(
71  bool use_simplified_linker_ui);
72 
73  static bool usingUsdMetersPerUnit();
74  static double defaultMetersPerUnit();
75  static void setDefaultMetersPerUnit(
76  double metersperunit);
77 
78  static bool usingUsdUpAxis();
79  static UT_StringHolder defaultUpAxis();
80  static bool setDefaultUpAxis(
81  const UT_StringHolder &upaxis);
82 
83 private:
84  static UT_StringHolder theDefaultNewPrimPath;
85  static UT_StringHolder theDefaultCollectionsPrimPath;
86  static UT_StringHolder theDefaultLightsPrimPath;
87  static UT_StringHolder theDefaultTransformSuffix;
88  static bool theShowResolvedPaths;
89  static bool thePanesFollowCurrentNode;
90  static bool theAutoSetAssetResolverContext;
91  static bool theUpdateRendererInBackground;
92  static bool theLoadPayloadsByDefault;
93  static bool theUseSimplifiedLinkerUi;
94  static double theDefaultMetersPerUnit;
95  static UT_StringHolder theDefaultUpAxis;
96 };
97 
98 #endif
#define HUSD_API
Definition: HUSD_API.h:32
GLsizei const GLchar *const * path
Definition: glew.h:6461