HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
COP2_ProjectSettings.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: COP2_ProjectSettings.h
7  *
8  * COMMENTS:
9  * Holds the project settings for the compositor.
10  */
11 #ifndef __COP2_ProjectSettings_h__
12 #define __COP2_ProjectSettings_h__
13 
14 #include "COP2_API.h"
15 #include <OP/OP_Error.h>
16 #include <iosfwd>
17 
18 #define COP2_PROJECT_SETTINGS_PREF_FILE "compproject.pref"
19 
20 class CMD_Args;
21 
23 {
24 public:
25  static bool setRes(int x, int y);
26  static void getRes(int &x, int &y);
27 
28  static bool setPixelAspect(float aspect);
29  static float getPixelAspect();
30 
31  static bool setDepth(int depth);
32  static int getDepth();
33 
34  static bool resetBWPoints();
35  static bool setBWPoints(int b, int w);
36  static void getBWPoints(int &b, int &w);
37 
38  static bool setProxyLevel(int level);
39  static int getProxyLevel();
40  static float getProxyRes();
41  static void getIconRes(int &x, int &y);
42 
43  static void setFileDefaults(int res, int depth);
44  static int getFileResDefault();
45  static int getFileDepthDefault();
46 
47  static void setFileLastFileDefault(int enable);
48  static int getFileLastFileDefault();
49 
50  static void setLargeCanvas(bool enable);
51  static bool getLargeCanvas();
52 
53  static const char *getProxyLevelString(int index);
54 
55  static void initialize();
56  static OP_ERROR saveSettings(std::ostream &, void *);
57  static void compProjectCmd(CMD_Args &args);
58 
59  static void setViewerCallback(void (*cb)(float ));
60 
61 private:
62  static void loadDefaultPrefs();
63 
64 };
65 
66 #endif
GLint level
Definition: glcorearb.h:108
UT_ErrorSeverity
Definition: UT_Error.h:25
GLint y
Definition: glcorearb.h:103
OPENVDB_API void initialize()
Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).
Definition: logging.h:294
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
GLint GLenum GLint x
Definition: glcorearb.h:409
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glcorearb.h:476
#define COP2_API
Definition: COP2_API.h:10
GLuint index
Definition: glcorearb.h:786
**If you just want to fire and args
Definition: thread.h:609
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857