HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_EditClips.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_EditClips_h__
19 #define __HUSD_EditClips_h__
20 
21 #include "HUSD_API.h"
22 #include "HUSD_DataHandle.h"
23 #include <UT/UT_StringHolder.h>
24 
26 {
27 public:
28  HUSD_ClipSegment(int clipindex,
30  : myClipIndex(clipindex),
31  myDuration(duration),
32  myResetClipTime(false)
33  { }
34 
35  int clipIndex() const
36  { return myClipIndex; }
37  fpreal duration() const
38  { return myDuration; }
39 
41  { myResetClipTime = reset; }
42  bool resetClipTime() const
43  { return myResetClipTime; }
44 
45 private:
46  int myClipIndex;
47  fpreal myDuration;
48  bool myResetClipTime;
49 };
50 
52 
54 {
55 public:
57  ~HUSD_EditClips();
58 
59  bool setClipPrimPath(const UT_StringRef &primpath,
60  const UT_StringRef &clipsetname,
61  const UT_StringRef &clipprimpath) const;
62  bool setClipManifestFile(const UT_StringRef &primpath,
63  const UT_StringRef &clipsetname,
64  const UT_StringRef &manifestfile) const;
65  bool setClipFiles(const UT_StringRef &primpath,
66  const UT_StringRef &clipsetname,
67  const UT_StringArray &clipfiles) const;
68  bool setClipSegments(const UT_StringRef &primpath,
69  const UT_StringRef &clipsetname,
70  fpreal starttime,
71  fpreal clipstarttime,
72  fpreal cliptimescale,
73  const HUSD_ClipSegmentArray &segments) const;
74 
75 private:
76  HUSD_AutoWriteLock &myWriteLock;
77 };
78 
79 #endif
80 
void setResetClipTime(bool reset)
HUSD_ClipSegment(int clipindex, fpreal duration)
#define HUSD_API
Definition: HUSD_API.h:32
GLboolean reset
Definition: glew.h:4959
UT_Array< HUSD_ClipSegment > HUSD_ClipSegmentArray
fpreal duration() const
bool resetClipTime() const
int clipIndex() const
double fpreal
Definition: SYS_Types.h:276