HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_FitParms.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: CL_FitParms.h ( CL Library, C++)
7  *
8  * COMMENTS:
9  *
10  * A container class to hold conversion parameters
11  * between raw and spline fit data
12  */
13 
14 #ifndef __CL_FitParms__
15 #define __CL_FitParms__
16 
17 #include "CL_API.h"
18 #include "CL_Defines.h"
19 #include <UT/UT_StringHolder.h>
20 #include <SYS/SYS_Types.h>
21 
22 class UT_IStream;
23 class UT_OStream;
24 
26 {
27 public:
28 
30  int relative = 1;
32  fpreal end = 0;
33  fpreal tolerance = 0.01;
34  UT_StringHolder scope = "*";
36 
37  bool save(UT_OStream &os);
38  bool load(UT_IStream &is);
39  int64 getMemoryUsage(bool inclusive) const
40  {
41  int64 mem = inclusive ? sizeof(*this) : 0;
42  mem += scope.getMemoryUsage(false);
43  mem += status.getMemoryUsage(false);
44  return mem;
45  }
46 };
47 
48 #endif
49 
GLuint start
Definition: glcorearb.h:475
int64 getMemoryUsage(bool inclusive) const
Definition: CL_FitParms.h:39
#define CL_API
Definition: CL_API.h:10
GLuint GLuint end
Definition: glcorearb.h:475
long long int64
Definition: SYS_Types.h:116
GLfloat units
Definition: glcorearb.h:408
UT_StringHolder status
Definition: CL_FitParms.h:35
fpreal64 fpreal
Definition: SYS_Types.h:277
CL_Unit
Definition: CL_Defines.h:18