HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CHOP_Notes.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: CHOP_Notes.h ( CHILI Library, C++)
7
*
8
* COMMENTS:
9
*
10
* A list of index notes overlayed on the graph
11
*/
12
13
#ifndef __CHOP_Notes__
14
#define __CHOP_Notes__
15
16
#include "
CHOP_API.h
"
17
18
#include <
UT/UT_FloatArray.h
>
19
#include <
UT/UT_ValArray.h
>
20
21
typedef
UT_ValArray<const char *>
CHOP_NoteList
;
22
typedef
UT_FprealArray
CHOP_TimeList
;
23
24
class
UT_IStream
;
25
class
UT_OStream
;
26
27
class
CHOP_API
CHOP_Notes
28
{
29
30
public
:
31
32
CHOP_Notes
();
33
~
CHOP_Notes
();
34
35
int
putNote(
fpreal
t
,
int
index
);
36
int
putNote(
int
index,
const
char
*);
37
int
putNote(
fpreal
t,
const
char
*);
38
39
const
char
*getNote(
int
index)
const
;
40
const
char
*getNote(
fpreal
t0)
const
;
41
int
getNotes(
fpreal
t0,
fpreal
t1,
42
CHOP_NoteList
&clist,
43
CHOP_TimeList
&tlist)
const
;
44
void
clearNotes();
45
46
bool
save(
UT_OStream
&os);
47
bool
load(
UT_IStream
&is);
48
49
int64
getMemoryUsage(
bool
inclusive)
const
;
50
51
private
:
52
53
UT_ValArray<char *>
myStrings;
54
UT_FprealArray
myTimes;
55
56
void
reset
();
57
int
removeNote(
fpreal
t);
58
int
removeNote(
int
idx);
59
60
int
findNote(
fpreal
t)
const
;
61
int
findOrInsertNote(
fpreal
t);
62
63
};
64
65
#endif
66
CHOP_API
#define CHOP_API
Definition:
CHOP_API.h:10
CHOP_NoteList
UT_ValArray< const char * > CHOP_NoteList
Definition:
CHOP_Notes.h:21
CHOP_Notes
Definition:
CHOP_Notes.h:27
UT_IStream
Definition:
UT_IStream.h:56
UT_ValArray< const char * >
reset
GLboolean reset
Definition:
glad.h:5138
UT_ValArray.h
int64
long long int64
Definition:
SYS_Types.h:116
CHOP_TimeList
UT_FprealArray CHOP_TimeList
Definition:
CHOP_Notes.h:22
t
GLdouble t
Definition:
glad.h:2397
CHOP_API.h
fpreal
fpreal64 fpreal
Definition:
SYS_Types.h:277
index
GLuint index
Definition:
glcorearb.h:786
UT_FloatArray.h
UT_OStream
Definition:
UT_OStream.h:35
CHOP
CHOP_Notes.h
Generated on Fri Nov 8 2024 03:39:05 for HDK by
1.8.6