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;
114 virtual std::string extraInfoValue(
const char *key) = 0;
117 virtual void setUserInfo(
const char *extra_info) = 0;
119 virtual bool hideDefaultParameters() = 0;
123 virtual void setComment(
const char *comment) = 0;
128 virtual int modificationTime() = 0;
129 virtual void setModificationTime(
int time=-1) = 0;
135 virtual void updateFromNode(
HOM_Node &node) = 0;
142 bool black_box =
false,
143 bool create_backup =
true) = 0;
145 SWIGOUT(%kwargs copyToHDAFile;)
146 virtual void copyToHDAFile(
148 const char *new_name = NULL,
149 const char *new_menu_name = NULL) = 0;
153 SWIGOUT(%newobject parmTemplateGroup;)
156 SWIGOUT(%kwargs setParmTemplateGroup;)
157 virtual void setParmTemplateGroup(
159 bool rename_conflicting_parms=
false,
160 bool create_backup=
true) = 0;
164 = HOM_fieldType::NoSuchField) = 0;
165 virtual void removeExtraFileOption(
const char *
name) = 0;
169 virtual void compileCodeSection(
const char *source_section,
170 const char *destination_section) = 0;
177 virtual void getRawExtraFileOptions(
UT_Options &options) = 0;
180 virtual std::map<std::string, HOM_ElemPtr<HOM_Tool> > tools() = 0;
186 InterpreterObject extraFileOptions()
189 self->getRawExtraFileOptions(options);
190 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.