Privacy
An open-source, flexible 3D physical simulation framework
osg_text::TextFactory Class Reference

#include <TextFactory.h>

Public Member Functions

 TextFactory (lib_manager::LibManager *theManager)
 
 ~TextFactory ()
 
TextInterfacecreateText (std::string text="", double fontSize=12, Color textColor=Color(), double posX=0., double posY=0., TextAlign textAlign=ALIGN_LEFT, double paddingL=0., double paddingT=0., double paddingR=0., double paddingB=0., Color backgroundColor=Color(), Color borderColor=Color(), double borderWidth=0.0)
 
- Public Member Functions inherited from osg_text::TextFactoryInterface
 TextFactoryInterface (lib_manager::LibManager *theManager)
 
virtual ~TextFactoryInterface ()
 
 CREATE_MODULE_INFO ()
 
int getLibVersion () const
 
const std::string getLibName () const
 
- Public Member Functions inherited from lib_manager::LibInterface
 LibInterface (LibManager *theManager)
 
virtual ~LibInterface (void)
 
ModuleInfo getModuleInfo () const
 
virtual void newLibLoaded (const std::string &libName)
 
virtual void createModuleInfo (void)
 

Additional Inherited Members

- Protected Attributes inherited from lib_manager::LibInterface
LibManagerlibManager
 
ModuleInfo moduleInfo
 

Detailed Description

Definition at line 41 of file TextFactory.h.

Constructor & Destructor Documentation

◆ TextFactory()

osg_text::TextFactory::TextFactory ( lib_manager::LibManager theManager)

Definition at line 33 of file TextFactory.cpp.

◆ ~TextFactory()

osg_text::TextFactory::~TextFactory ( void  )

Definition at line 37 of file TextFactory.cpp.

Member Function Documentation

◆ createText()

TextInterface * osg_text::TextFactory::createText ( std::string  text = "",
double  fontSize = 12,
Color  textColor = Color(),
double  posX = 0.,
double  posY = 0.,
TextAlign  textAlign = ALIGN_LEFT,
double  paddingL = 0.,
double  paddingT = 0.,
double  paddingR = 0.,
double  paddingB = 0.,
Color  backgroundColor = Color(),
Color  borderColor = Color(),
double  borderWidth = 0.0 
)
virtual

Implements osg_text::TextFactoryInterface.

Definition at line 40 of file TextFactory.cpp.


The documentation for this class was generated from the following files: