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 
39  { myDuration = duration; }
40  fpreal duration() const
41  { return myDuration; }
42 
44  { myResetClipTime = reset; }
45  bool resetClipTime() const
46  { return myResetClipTime; }
47 
48 private:
49  int myClipIndex;
50  fpreal myDuration;
51  bool myResetClipTime;
52 };
53 
55 
57 {
58 public:
60  ~HUSD_EditClips();
61 
62  bool setClipPrimPath(const UT_StringRef &primpath,
63  const UT_StringRef &clipsetname,
64  const UT_StringRef &clipprimpath) const;
65  bool setClipManifestFile(const UT_StringRef &primpath,
66  const UT_StringRef &clipsetname,
67  const UT_StringRef &manifestfile) const;
68  bool setClipFiles(const UT_StringRef &primpath,
69  const UT_StringRef &clipsetname,
70  const UT_StringArray &clipfiles) const;
71  bool setClipSegments(const UT_StringRef &primpath,
72  const UT_StringRef &clipsetname,
73  fpreal starttime,
74  fpreal clipstarttime,
75  fpreal cliptimescale,
76  const HUSD_ClipSegmentArray &segments) const;
77 
78 private:
79  HUSD_AutoWriteLock &myWriteLock;
80 };
81 
82 #endif
83 
void setResetClipTime(bool reset)
HUSD_ClipSegment(int clipindex, fpreal duration)
#define HUSD_API
Definition: HUSD_API.h:32
GLboolean reset
Definition: glew.h:4959
void setDuration(fpreal duration)
UT_Array< HUSD_ClipSegment > HUSD_ClipSegmentArray
fpreal duration() const
bool resetClipTime() const
int clipIndex() const
double fpreal
Definition: SYS_Types.h:276