00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __HOM_IntParmTemplate_h__
00017 #define __HOM_IntParmTemplate_h__
00018
00019 #include "HOM_API.h"
00020 #include "HOM_ParmTemplate.h"
00021
00022 SWIGOUT(%feature("notabstract") HOM_IntParmTemplate;)
00023 SWIGOUT(%rename(IntParmTemplate) HOM_IntParmTemplate;)
00024
00025 class HOM_API HOM_IntParmTemplate : virtual public HOM_ParmTemplate
00026 {
00027 public:
00028 #ifdef SWIG
00029 #ifdef SWIGPYTHON
00030 %feature("autodoc",
00031 "__init__(self, name, label, num_components, default_value=(),"
00032 " min=0, max=10, min_is_strict=False, max_is_strict=False,"
00033 " naming_scheme=hou.parmNamingScheme.XYZW, disable_when=None,"
00034 " is_hidden=False, join_with_next=False, help=None, tags={})")
00035 HOM_IntParmTemplate;
00036 #endif
00037 %extend {
00038 %kwargs HOM_IntParmTemplate;
00039 HOM_IntParmTemplate(
00040 const char *name,
00041 const char *label,
00042 int num_components,
00043 const std::vector<int> &default_value = std::vector<int>(),
00044 int min = 0, int max = 10,
00045 bool min_is_strict = false, bool max_is_strict = false,
00046 HOM_EnumValue &naming_scheme = HOM_parmNamingScheme::XYZW,
00047 const char *disable_when = NULL,
00048 bool is_hidden = false,
00049 bool join_with_next = false,
00050 const char *help = NULL,
00051 const std::map<std::string, std::string> &tags =
00052 HOM_StdMapStringString())
00053 throw(HOM_OperationFailed, HOM_TypeError, HOM_Error)
00054 {
00055 return HOM().newIntParmTemplate(
00056 name, label, num_components, default_value,
00057 min, max, min_is_strict, max_is_strict, naming_scheme,
00058 disable_when, is_hidden, join_with_next, help, tags);
00059 }
00060 };
00061 #else
00062 HOM_IntParmTemplate()
00063 { HOM_CONSTRUCT_OBJECT(this) }
00064
00065 HOM_IntParmTemplate(const HOM_IntParmTemplate &parm_template)
00066 : HOM_ParmTemplate(parm_template)
00067 { HOM_CONSTRUCT_OBJECT(this) }
00068 #endif
00069
00070 virtual ~HOM_IntParmTemplate()
00071 { HOM_DESTRUCT_OBJECT(this) }
00072
00073
00074
00075 SWIGOUT(virtual std::string __repr__() throw(HOM_Error);)
00076
00077 virtual int minValue() = 0;
00078 virtual int maxValue() = 0;
00079 virtual bool minIsStrict() = 0;
00080 virtual bool maxIsStrict() = 0;
00081
00082 SWIGPYTHONOUT(%feature("autodoc",
00083 "defaultValue(self) -> tuple of ints") defaultValue;)
00084 virtual std::vector<int> defaultValue() = 0;
00085 };
00086
00087 #endif