HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PRM_SharedFunc.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: PRM library (C++)
7  *
8  * COMMENTS: Shared functions available to the world
9  *
10  */
11 
12 #ifndef __PRM_SharedFunc_h__
13 #define __PRM_SharedFunc_h__
14 
15 #include "PRM_API.h"
16 
17 #include <SYS/SYS_Types.h>
18 class PRM_Name;
19 class PRM_SpareData;
20 class UT_String;
21 class IMG_TileFileInfo;
22 class PRM_Parm;
23 class UT_Ramp;
24 
25 PRM_API extern void
27  void *, PRM_Name *names, int size,
28  const PRM_SpareData *, const PRM_Parm *);
29 
30 PRM_API extern const PRM_Name *
32 
33 PRM_API extern void
35  void *, PRM_Name *names, int n,
36  const PRM_SpareData *, const PRM_Parm *);
37 PRM_API extern void
39  void *, PRM_Name *names, int n,
40  const PRM_SpareData *, const PRM_Parm *);
41 
42 PRM_API extern const PRM_Name *
44 
45 PRM_API extern void
47  void *, PRM_Name *names, int,
48  const PRM_SpareData *, const PRM_Parm *);
49 
50 PRM_API extern const PRM_Name *
51 PRMgetFilterName(int idx);
52 
53 PRM_API extern void
55  void *, PRM_Name *names, int,
56  const PRM_SpareData *, const PRM_Parm *);
57 
58 PRM_API extern void
60  void *, PRM_Name *names, int,
61  const PRM_SpareData *, const PRM_Parm *);
62 
63 PRM_API extern void
65  void *, PRM_Name *names, int,
66  const PRM_SpareData *, const PRM_Parm *);
67 
68 PRM_API extern void
70  void *, PRM_Name *names, int,
71  const PRM_SpareData *, const PRM_Parm *);
72 
73 PRM_API extern void
75  void *, PRM_Name *names, int,
76  const PRM_SpareData *,
77  const PRM_Parm *);
78 
79 PRM_API extern void
81  void *, PRM_Name *names, int,
82  const PRM_SpareData *, const PRM_Parm *);
83 
84 /// utility method for sorting menu items by their label text
85 PRM_API extern void
86 PRMsortMenu(PRM_Name *menuitems, int size);
87 
88 PRM_API extern const PRM_Name *
89 PRMgetPixelFormatName(int idx);
90 
91 //
92 // The following functions are convenience functions for dealing with the
93 // PRM_TYPE_IMAGE_FORMAT* templates. There are three parameters involved in this configuration:
94 // 1) A string representing the filename of the image to save
95 // 2) A string representing the format of the image to save
96 // 3) <TWO> strings representing the options for the format. The first of
97 // these strings is the actual format determined by analyzing the
98 // filename and format strings. The second string contains the optional
99 // parameters to the format.
100 // These functions are intended to be used within the parameter change
101 // callbacks. It's up to the caller to evaluate the four strings.
102 //
103 
104 //
105 // The PRMchangeFilename() method is called when the filename parameter is
106 // changed. The function may change the option_format string. If the string
107 // needs to be changed, then the function returns 1.
108 //
109 PRM_API extern int
111  UT_String &option_format, UT_String &options);
112 
113 //
114 // When the format parameter is changed, it's possible that the extension on
115 // the filename will change along with the option-format and the option string.
116 // If this happens, then this function will return 1.
117 //
118 PRM_API extern int
120  UT_String &option_format, UT_String &options);
121 
122 #endif
PRM_API void PRMbuildFilterMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
PRM_API void PRMbuildRiFilterMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
PRM_API const PRM_Name * PRMgetFilterName(int idx)
GT_API const UT_StringHolder filename
PRM_API void PRMbuildResolutionMenuWithNone(void *, PRM_Name *names, int n, const PRM_SpareData *, const PRM_Parm *)
PRM_API void PRMsortMenu(PRM_Name *menuitems, int size)
utility method for sorting menu items by their label text
PRM_API void PRMbuildRiDeviceMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
PRM_API int PRMchangeImageFormat(UT_String &filename, const UT_String &format, UT_String &option_format, UT_String &options)
PRM_API int PRMchangeImageFilename(const UT_String &filename, const UT_String &format, UT_String &option_format, UT_String &options)
PRM_API const PRM_Name * PRMgetResolutionName(int index)
PRM_API const PRM_Name * PRMgetPixelFormatName(int idx)
GLdouble n
Definition: glcorearb.h:2008
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:108
PRM_API void PRMbuildPixelFormatMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
GLsizeiptr size
Definition: glcorearb.h:664
PRM_API void PRMbuildRiHiderMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
GLuint index
Definition: glcorearb.h:786
PRM_API void PRMbuildImageDeviceMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
PRM_API void PRMbuildResolutionMenu(void *, PRM_Name *names, int n, const PRM_SpareData *, const PRM_Parm *)
#define PRM_API
Definition: PRM_API.h:10
PRM_API void PRMbuildImageMenu(void *, PRM_Name *names, int size, const PRM_SpareData *, const PRM_Parm *)
PRM_API void PRMbuildTakeMenu(void *, PRM_Name *names, int, const PRM_SpareData *, const PRM_Parm *)
PRM_API const PRM_Name * PRMgetImageName(int index)