15 #ifndef __CH_MultiChannel_h__
16 #define __CH_MultiChannel_h__
40 { myName.harden(name); }
41 void appendChannelNames(
const char *separator);
44 { myChannels.entries(); }
48 {
return myChannels; }
51 {
return myChannels.entries(); }
54 { myChannels.removeIndex((
unsigned)i); }
59 {
return myChannels.entries() == 0; }
60 bool isAllEnabled()
const;
67 bool isAtHardKey(
fpreal gtime)
const;
68 bool isAtHardKeyframe(
int frame)
const;
70 int findKeyframe(
int frame,
int direction)
const;
72 void scroll(
fpreal new_start,
int update = 1);
82 {
return myChannels; }
89 #endif // __CH_MultiChannel_h__
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
IMF_EXPORT IMATH_NAMESPACE::V3f direction(const IMATH_NAMESPACE::Box2i &dataWindow, const IMATH_NAMESPACE::V2f &pixelPosition)
const UT_String & getName() const
int getNumChannels() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void setName(const UT_String &name)
CH_ChannelList & getModifyChannelList()
GLuint const GLchar * name
void removeChannel(int i)
LeafData & operator=(const LeafData &)=delete
const CH_ChannelList & getChannelList() const
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)