00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __HOM_RampParmTemplate_h__
00017 #define __HOM_RampParmTemplate_h__
00018
00019 #include "HOM_API.h"
00020 #include "HOM_ParmTemplate.h"
00021
00022 SWIGOUT(%feature("notabstract") HOM_RampParmTemplate;)
00023 SWIGOUT(%rename(RampParmTemplate) HOM_RampParmTemplate;)
00024
00025 class HOM_API HOM_RampParmTemplate : virtual public HOM_ParmTemplate
00026 {
00027 public:
00028 #ifdef SWIG
00029 #ifdef SWIGPYTHON
00030 %feature("autodoc",
00031 "__init__(self, name, label, ramp_parm_type, default_value=2,"
00032 " default_basis=None, show_controls=True, color_type=None,"
00033 " disable_when=None, is_hidden=False, help=None, tags={})")
00034 HOM_RampParmTemplate;
00035 #endif
00036 %extend {
00037 %kwargs HOM_RampParmTemplate;
00038 HOM_RampParmTemplate(
00039 const char *name,
00040 const char *label,
00041 HOM_EnumValue &ramp_parm_type,
00042 int default_value = 2,
00043 HOM_EnumValue *default_basis = NULL,
00044 bool show_controls = true,
00045 HOM_EnumValue *color_type = NULL,
00046 const char *disable_when = NULL,
00047 bool is_hidden = false,
00048 const char *help = NULL,
00049 const std::map<std::string, std::string> &tags =
00050 HOM_StdMapStringString())
00051 throw(HOM_OperationFailed, HOM_TypeError, HOM_Error)
00052 {
00053 return HOM().newRampParmTemplate(name, label, ramp_parm_type,
00054 default_value,
00055 default_basis, show_controls,
00056 color_type,
00057 disable_when,
00058 is_hidden, help, tags);
00059 }
00060 };
00061 #else
00062 HOM_RampParmTemplate()
00063 { HOM_CONSTRUCT_OBJECT(this) }
00064
00065 HOM_RampParmTemplate(const HOM_RampParmTemplate &parm_template)
00066 : HOM_ParmTemplate(parm_template)
00067 { HOM_CONSTRUCT_OBJECT(this) }
00068 #endif
00069
00070 virtual ~HOM_RampParmTemplate()
00071 { HOM_DESTRUCT_OBJECT(this) }
00072
00073
00074
00075 SWIGOUT(virtual std::string __repr__() throw(HOM_Error);)
00076
00077 virtual int defaultValue() = 0;
00078
00079 SWIGPYTHONOUT(%feature("autodoc",
00080 "parmType(self) -> hou.rampParmType enum value") type;)
00081 virtual HOM_EnumValue &parmType() = 0;
00082 };
00083
00084 #endif