9 #ifndef HOM_Drawable2D_h
10 #define HOM_Drawable2D_h
30 typedef std::map<std::string, hboost::any>
Params;
39 std::string
const &
name = std::string(),
40 std::string
const &
label = std::string(),
42 bool fixed_size =
false,
58 virtual void setParams(Params
const &
params) = 0;
59 virtual Params
params()
const = 0;
62 virtual void draw(DrawH handle, Params
const &
params = Params()) = 0;
67 virtual void setPickable(
bool value) = 0;
68 virtual bool isPickable()
const = 0;
70 virtual void setFixedSize(
bool value) = 0;
71 virtual bool isFixedSize()
const = 0;
72 virtual double fixedSizeScale()
const = 0;
88 #endif // HOM_Drawable2D_h
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLfloat * value
GLdouble GLdouble GLdouble z
string __repr__(VtArray< T > const &self)
GLenum const GLfloat * params
GLint GLint GLsizei GLint GLenum GLenum type
#define HOM_CONSTRUCT_OBJECT(pointer)
GLuint const GLchar * name
virtual HOM_Drawable2D * newDrawable2D(HOM_PaneTab &hpanetab, HOM_EnumValue const &type, std::string const &name, std::string const &label, bool pickable, bool fixed_size, std::map< std::string, hboost::any > const ¶ms)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
std::map< std::string, hboost::any > Params
HOM_API HOM_Module & HOM()
~HOM_Drawable2D() override