9 #ifndef __HOM_ParmTemplateGroup_h__
10 #define __HOM_ParmTemplateGroup_h__
31 const std::vector<HOM_ParmTemplate *> &parm_templates =
32 std::vector<HOM_ParmTemplate *>())
56 virtual std::vector<int> findIndices(
const char *
name) = 0;
64 const std::vector<std::string> &labels) = 0;
66 virtual std::vector<int> findIndicesForFolder(
const char *
label) = 0;
68 virtual std::vector<int> findIndicesForFolder(
69 const std::vector<std::string> &labels) = 0;
71 SWIGOUT(%newobject entryAtIndices;)
74 virtual std::vector<int> containingFolderIndices(
const char *
name) = 0;
76 virtual std::vector<int> containingFolderIndices(
79 virtual std::vector<int> containingFolderIndices(
80 const std::vector<int> &
indices) = 0;
82 SWIGOUT(%newobject containingFolder;)
85 SWIGOUT(%newobject containingFolder;)
88 virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > entries() = 0;
95 virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > entriesWithoutFolders() = 0;
107 virtual void insertBefore(
110 virtual void insertBefore(
113 virtual void insertBefore(
117 virtual void insertAfter(
120 virtual void insertAfter(
123 virtual void insertAfter(
129 virtual void appendToFolder(
132 virtual void appendToFolder(
133 const std::vector<std::string> &labels,
136 virtual void appendToFolder(
139 virtual void appendToFolder(
146 { append(parm_template); }
148 virtual void remove(
const char *
name) = 0;
152 virtual void remove(
const std::vector<int> &
indices) = 0;
154 virtual void hide(
const std::vector<int> &
indices,
bool on) = 0;
156 virtual void hide(
const char *
name,
bool on) = 0;
160 virtual void hideFolder(
const char *
label,
bool on) = 0;
162 virtual void hideFolder(
const std::vector<std::string> &labels,
bool on) = 0;
170 virtual bool isFolderHidden(
const char *
label) = 0;
172 virtual bool isFolderHidden(
const std::vector<std::string> &labels) = 0;
174 virtual void clear() = 0;
176 SWIGOUT(%kwargs asDialogScript;)
177 virtual std::string asDialogScript(
bool rename_conflicting_parms =
false,
178 bool full_info =
false,
179 const char *script_name =
nullptr,
180 const char *script_label =
nullptr,
181 const std::map<std::string, std::string> &script_tags =
182 std::map<std::string, std::string>()) = 0;
184 virtual void setToDialogScript(
const char *dialog_script) = 0;
187 const char *function_name=NULL,
const char *variable_name=NULL) = 0;
189 SWIGOUT(%newobject sourceNode;)
191 SWIGOUT(%newobject sourceNodeType;)
#define HOM_DESTRUCT_OBJECT(pointer)
GLsizei GLenum const void * indices
GLuint GLsizei const GLchar * label
std::vector< HOM_ElemPtr< HOM_ParmTemplate > > parmTemplates()
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
virtual void setLabel(const char *label)=0
virtual ~HOM_ParmTemplateGroup()
void addParmTemplate(HOM_ParmTemplate &parm_template)
virtual void setName(const char *name)=0
std::string OIIO_UTIL_API replace(string_view str, string_view pattern, string_view replacement, bool global=false)
virtual HOM_ParmTemplateGroup * newParmTemplateGroup(const std::vector< HOM_ParmTemplate * > &parm_templates)=0
#define HOM_CONSTRUCT_OBJECT(pointer)
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
HOM_ParmTemplateGroup(const HOM_ParmTemplateGroup &face)
GLuint const GLchar * name
virtual void hide(bool on)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual std::string asCode(const char *function_name=NULL, const char *variable_name=NULL)=0
HOM_API HOM_Module & HOM()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
virtual bool isHidden()=0
FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr &out) -> bool