HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Track.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  * COMMENTS:
7  */
8 
9 #ifndef __HOM_Track_h__
10 #define __HOM_Track_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <string>
17 
18 class HOM_ChopNode;
19 class HOM_Clip;
20 
21 SWIGOUT(%rename(Track) HOM_Track;)
22 
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
29  { HOM_CONSTRUCT_OBJECT(this) }
30  virtual ~HOM_Track()
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  virtual std::string __repr__() = 0;
34 
35  SWIGOUT(%newobject chopNode;)
36  virtual HOM_ChopNode *chopNode() = 0;
37 
38  SWIGOUT(%newobject clip;)
39  virtual HOM_Clip *clip() = 0;
40 
41  virtual std::string name() = 0;
42 
43  virtual double eval() = 0;
44  virtual double evalAtTime(double time) = 0;
45  virtual double evalAtFrame(double frame) = 0;
46  virtual double evalAtSample(double sample) = 0;
47 
48  virtual std::vector<double> evalAtTimeRange(double start, double end) = 0;
49  virtual std::vector<double> evalAtFrameRange(double start, double end) = 0;
50  virtual std::vector<double> evalAtSampleRange(double start, double end) = 0;
51 
52  virtual int numSamples() = 0;
53 
54  virtual std::vector<double> allSamples() = 0;
55 
56  virtual void *_asVoidPointer() = 0;
57 
58  // This method is deprecated $SHC/HOM/hom.i
59  virtual double evalAtSampleIndex(int index) = 0;
60 
61 };
62 
63 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1133
GLuint const GLchar * name
Definition: glew.h:1814
virtual HOM_ChopNode * chopNode() const =0
GT_API const UT_StringHolder time
GLuint index
Definition: glew.h:1814
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
HOM_Track(const HOM_Track &)
Definition: HOM_Track.h:28
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1132
GLuint GLuint end
Definition: glew.h:1253
HUSD_API bool eval(VtValue &val, T &ret_val)
GLuint start
Definition: glew.h:1253
GLsizei const GLchar *const * string
Definition: glew.h:1844
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER T clip(const T &p, const Box< T > &box)
Definition: ImathBoxAlgo.h:89
HOM_Track()
Definition: HOM_Track.h:26
IMF_EXPORT int numSamples(int s, int a, int b)
virtual ~HOM_Track()
Definition: HOM_Track.h:30