HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_ChopNode.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_ChopNode_h__
10 #define __HOM_ChopNode_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Node.h"
16 #include "HOM_Track.h"
17 
18 #include <utility> // for std::pair
19 
20 SWIGOUT(%rename(ChopNode) HOM_ChopNode;)
21 
22 class HOM_API HOM_ChopNode : virtual public HOM_Node
23 {
24 public:
26  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
27  { HOM_CONSTRUCT_OBJECT(this) }
28  HOM_ChopNode(const HOM_ChopNode &chop_node)
29  : HOM_Node(chop_node),
30  HOM_NetworkMovableItem(chop_node)
31  { HOM_CONSTRUCT_OBJECT(this) }
32  virtual ~HOM_ChopNode()
33  { HOM_DESTRUCT_OBJECT(this) }
34 
35  // Let swig know we're overriding __repr__ for this class so it doesn't
36  // provide its own __repr__.
37  SWIGOUT(virtual std::string __repr__() = 0;)
38 
39  virtual bool isBypassed() = 0;
40  virtual void bypass(bool on) = 0;
41  virtual bool isLocked() = 0;
42  virtual void setLocked(bool on) = 0;
43  virtual bool isDisplayFlagSet() = 0;
44  virtual void setDisplayFlag(bool on) = 0;
45  virtual bool isAudioFlagSet() = 0;
46  virtual void setAudioFlag(bool on) = 0;
47  virtual bool isExportFlagSet() = 0;
48  virtual void setExportFlag(bool on) = 0;
49  virtual bool isUnloadFlagSet() = 0;
50  virtual void setUnloadFlag(bool on) = 0;
51 
52  virtual std::vector<HOM_ElemPtr<HOM_Track> > tracks(int output_index=0) = 0;
53 
54  SWIGOUT(%newobject track;)
55  virtual HOM_Track *track(const char *track_name, int output_index=0) = 0;
56 
57  virtual double sampleRate()=0;
58  virtual std::pair<double, double> sampleRange()=0;
59 
60  virtual double frameToSamples(double frame)=0;
61  virtual double samplesToFrame(double samples)=0;
62 
63  virtual double timeToSamples(double time)=0;
64  virtual double samplesToTime(double samples)=0;
65 
66  virtual HOM_BinaryString clipData(bool binary)=0;
67  virtual HOM_BinaryString clipData(bool binary, std::vector<std::string> parms,
68  double start = -1, double end = -1)=0;
69  virtual void setClipData(HOM_BinaryString source, bool binary,
70  double offset = 0, const char* rename = 0)=0;
71 };
72 
73 #endif
virtual ~HOM_ChopNode()
Definition: HOM_ChopNode.h:32
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
GLuint start
Definition: glcorearb.h:474
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
const GLuint GLenum const void * binary
Definition: glcorearb.h:1923
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
virtual std::string __repr__()=0
HOM_ChopNode(const HOM_ChopNode &chop_node)
Definition: HOM_ChopNode.h:28
#define HOM_API
Definition: HOM_API.h:13
GLuint GLuint end
Definition: glcorearb.h:474
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
GLintptr offset
Definition: glcorearb.h:664
GLsizei samples
Definition: glcorearb.h:1297