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  {
30  return HOM().newTextDrawable(scene_viewer, name, params);
31  }
32 }
33 #else
35  { HOM_CONSTRUCT_OBJECT(this) }
36 #endif
37 
39  { HOM_DESTRUCT_OBJECT(this) }
40 
41  virtual std::string __repr__() = 0;
42 
43  virtual std::vector<double> size(std::string const & text) = 0;
44 };
45 
46 #endif // HOM_TextDrawable_H
47 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1138
GLsizeiptr size
Definition: glew.h:1681
GLuint const GLchar * name
Definition: glew.h:1814
virtual ~HOM_TextDrawable()
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
std::map< std::string, hboost::any > Params
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1137
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual HOM_TextDrawable * newTextDrawable(HOM_SceneViewer &scene_viewer, std::string const &name, std::map< std::string, hboost::any > const &params)=0
const GLfloat * params
Definition: glew.h:1531
HOM_API HOM_Module & HOM()