HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_TextDrawable.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef HOM_TextDrawable_H
10 #define HOM_TextDrawable_H
11 
12 #include "HOM_API.h"
13 #include "HOM_AdvancedDrawable.h"
14 
15 SWIGOUT(%rename(TextDrawable) HOM_TextDrawable;)
16 SWIGOUT(%feature("notabstract") HOM_TextDrawable;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend
23 {
24  %kwargs HOM_TextDrawable;
25  HOM_TextDrawable(
26  HOM_SceneViewer& scene_viewer,
27  std::string const & name,
29  std::string const & label = std::string())
30  {
31  return HOM().newTextDrawable(scene_viewer, name, params, label);
32  }
33 }
34 #else
36  { HOM_CONSTRUCT_OBJECT(this) }
37 #endif
38 
39  ~HOM_TextDrawable() override
40  { HOM_DESTRUCT_OBJECT(this) }
41 
42  virtual std::string __repr__() = 0;
43 
44  virtual std::vector<double> size(std::string const & text) = 0;
45 };
46 
47 #endif // HOM_TextDrawable_H
48 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
GLenum const GLfloat * params
Definition: glcorearb.h:105
#define HOM_API
Definition: HOM_API.h:13
virtual HOM_TextDrawable * newTextDrawable(HOM_SceneViewer &scene_viewer, std::string const &name, std::map< std::string, hboost::any > const &params, std::string const &label)=0
std::map< std::string, hboost::any > Params
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
GLsizeiptr size
Definition: glcorearb.h:664
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
~HOM_TextDrawable() override
HOM_API HOM_Module & HOM()