9 #ifndef __HOM_HDADefinition_h__
10 #define __HOM_HDADefinition_h__
57 virtual bool isInstalled() = 0;
59 {
return isInstalled(); }
62 virtual bool isCurrent() = 0;
64 {
return isCurrent(); }
67 virtual bool isPreferred() = 0;
69 {
return isPreferred(); }
72 virtual void setIsPreferred(
bool preferred) = 0;
74 { setIsPreferred(preferred); }
76 virtual void enableCreateBackups(
bool create_backups) = 0;
77 virtual bool isCreateBackupsEnabled() = 0;
79 virtual std::map<std::string, HOM_ElemPtr<HOM_HDASection> > sections() = 0;
81 virtual bool hasSection(
const char *
name) = 0;
91 HOM_EnumValue &compression_type=HOM_compressionType::NoCompression)
95 HOM_EnumValue &compression_type=HOM_compressionType::NoCompression)
98 virtual void removeSection(
const char *
name) = 0;
101 virtual void setDescription(
const char *
label) = 0;
104 virtual int minNumInputs() = 0;
105 virtual void setMinNumInputs(
int min_num_inputs) = 0;
106 virtual int maxNumInputs() = 0;
107 virtual void setMaxNumInputs(
int max_num_inputs) = 0;
108 virtual int maxNumOutputs() = 0;
109 virtual void setMaxNumOutputs(
int max_num_outputs) = 0;
112 virtual void setExtraInfo(
const char *extra_info) = 0;
115 virtual void setUserInfo(
const char *extra_info) = 0;
117 virtual bool hideDefaultParameters() = 0;
121 virtual void setComment(
const char *comment) = 0;
126 virtual int modificationTime() = 0;
127 virtual void setModificationTime(
int time=-1) = 0;
133 virtual void updateFromNode(
HOM_Node &node) = 0;
140 bool black_box =
false,
141 bool create_backup =
true) = 0;
143 SWIGOUT(%kwargs copyToHDAFile;)
144 virtual void copyToHDAFile(
146 const char *new_name = NULL,
147 const char *new_menu_name = NULL) = 0;
151 SWIGOUT(%newobject parmTemplateGroup;)
154 SWIGOUT(%kwargs setParmTemplateGroup;)
155 virtual void setParmTemplateGroup(
157 bool rename_conflicting_parms=
false,
158 bool create_backup=
true) = 0;
162 = HOM_fieldType::NoSuchField) = 0;
163 virtual void removeExtraFileOption(
const char *
name) = 0;
167 virtual void compileCodeSection(
const char *source_section,
168 const char *destination_section) = 0;
175 virtual void getRawExtraFileOptions(
UT_Options &options) = 0;
178 virtual std::map<std::string, HOM_ElemPtr<HOM_Tool> > tools() = 0;
184 InterpreterObject extraFileOptions()
187 self->getRawExtraFileOptions(options);
188 return HOMoptionsToInterpreterObject(options);
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GT_API const UT_StringHolder time
hboost::any HOM_UTOptionAny
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
void setPreferred(bool preferred)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
virtual ~HOM_HDADefinition()
#define HOM_CONSTRUCT_OBJECT(pointer)
OPENVDB_API void setVersion(std::ios_base &, const VersionId &libraryVersion, uint32_t fileVersion)
Associate specific file format and library version numbers with the given stream. ...
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
GLuint const GLchar * name
GT_API const UT_StringHolder version
A map of string to various well defined value types.
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_HDADefinition(const HOM_HDADefinition &)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.