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 {
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:1210
GLsizeiptr size
Definition: glew.h:1681
GLuint const GLchar * name
Definition: glew.h:1814
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
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:1209
GLuint GLsizei GLsizei GLchar * label
Definition: glew.h:8986
GLsizei const GLchar *const * string
Definition: glew.h:1844
~HOM_TextDrawable() override
const GLfloat * params
Definition: glew.h:1531
HOM_API HOM_Module & HOM()