12 #ifndef __CH_Group_h__
13 #define __CH_Group_h__
87 bool isRoot()
const {
return myIsInTree && myParent==
nullptr; }
89 int getTotalEntries()
const;
92 void displayInfo(
int indent = 0)
const;
96 void changeIndex(
int new_index );
102 bool isEventualParentOf(
CH_Group *other );
103 int findIndex(
CH_Group *subgroup );
107 bool strictContains(
const CH_Channel *chp)
const;
116 bool use_alias=
false)
const;
131 void changeReferencesToNodeId(
int old_id,
int new_id);
132 void removeChannelsWithNodeId(
int node_id);
139 unsigned getScopeFlags(
unsigned flags );
140 void dirtyScopeFlags(
unsigned flags );
141 void dirtySubtreeScopeFlags(
unsigned flags );
144 bool updateScopeFlags(
unsigned flags );
145 void dirtyAllScopeFlags();
152 void removeMeFromMyParent();
154 bool removeGroupInternal(
CH_Group *sub_group);
167 const char *new_name=
nullptr );
168 bool getGroupsFromChannels(
171 void propagateInTreeFlag();
175 void save(std::ostream &os,
int binary)
const;
183 unsigned myIsInTree: 1;
static char getGroupChar()
const GLuint GLenum const void * binary
GLboolean GLboolean GLboolean GLboolean a
CH_Group * getParentGroup()
IMATH_HOSTDEVICE constexpr int cmp(T a, T b) IMATH_NOEXCEPT
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
GLsizei GLsizei GLchar * source
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
GLenum GLenum GLsizei void * table
const CH_GroupList & getSubGroups()
bool OIIO_UTIL_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?
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)