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 
20 SWIGOUT(%rename(Track) HOM_Track;)
21 
23 {
24 public:
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_CONSTRUCT_OBJECT(this) }
29  virtual ~HOM_Track()
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  virtual std::string __repr__() = 0;
33 
34  SWIGOUT(%newobject chopNode;)
35  virtual HOM_ChopNode *chopNode() = 0;
36 
37  virtual std::string name() = 0;
38 
39  virtual double eval() = 0;
40  virtual double evalAtTime(double time) = 0;
41  virtual double evalAtFrame(double frame) = 0;
42  virtual double evalAtSample(double sample) = 0;
43 
44  virtual std::vector<double> evalAtTimeRange(double start, double end) = 0;
45  virtual std::vector<double> evalAtFrameRange(double start, double end) = 0;
46  virtual std::vector<double> evalAtSampleRange(double start, double end) = 0;
47 
48  virtual int numSamples() = 0;
49 
50  virtual std::vector<double> allSamples() = 0;
51 
52  virtual void *_asVoidPointer() = 0;
53 
54  // This method is deprecated $SHC/HOM/hom.i
55  virtual double evalAtSampleIndex(int index) = 0;
56 
57 };
58 
59 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1130
GLuint const GLchar * name
Definition: glew.h:1814
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:27
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1129
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
HOM_Track()
Definition: HOM_Track.h:25
IMF_EXPORT int numSamples(int s, int a, int b)
virtual ~HOM_Track()
Definition: HOM_Track.h:29
virtual void * _asVoidPointer()=0