g4tools
5.4.0
|
Public Member Functions | |
sg_viewer (session &a_session, int a_x=0, int a_y=0, unsigned int a_width=500, unsigned int a_height=500, const std::string &a_win_title="") | |
virtual | ~sg_viewer () |
bool | has_window () const |
bool | show () |
void | win_render () |
void | set_device_interactor (tools::sg::device_interactor *a_interactor) |
Public Member Functions inherited from tools::sg::GL_viewer | |
void | render () |
GL_viewer (std::ostream &a_out, unsigned int a_width, unsigned int a_height) | |
virtual | ~GL_viewer () |
GL_viewer (const GL_viewer &a_from) | |
GL_viewer & | operator= (const GL_viewer &a_from) |
Public Member Functions inherited from tools::sg::viewer | |
virtual void * | cast (const std::string &a_class) const |
virtual void | set_size (unsigned int a_w, unsigned int a_h) |
virtual bool | set_cursor_shape (cursor_shape) |
viewer (std::ostream &a_out, unsigned int a_width, unsigned int a_height) | |
virtual | ~viewer () |
viewer (const viewer &a_from) | |
viewer & | operator= (const viewer &a_from) |
bool | set_default_cursor_shape () |
group & | sg () |
const group & | sg () const |
unsigned int | width () const |
unsigned int | height () const |
bool | screen2aspect (int a_x, int a_y, float &a_wx, float &a_wy) const |
void | set_clear_color (float a_r, float a_g, float a_b, float a_a=1) |
void | set_clear_color (const colorf &a_color) |
void | get_clear_color (float &a_r, float &a_g, float &a_b, float &a_a) |
const colorf & | background () const |
std::ostream & | out () const |
const std::string & | out_dir () const |
void | set_produce_out_jpeg (bool a_value) |
bool | produce_out_jpeg () const |
void | set_produce_out_png (bool a_value) |
bool | produce_out_png () const |
void | set_produce_out_file (const std::string &a_file) |
const std::string & | produce_out_file () const |
void | set_produce_out_bpp (unsigned int a_bpp) |
unsigned int | produce_out_bpp () const |
Protected Member Functions | |
sg_viewer (const sg_viewer &a_from) | |
sg_viewer & | operator= (const sg_viewer &a_from) |
tools::key_code | convert (KeySym a_key) |
Static Protected Member Functions | |
static void | paint_cbk (Widget a_widget, XtPointer a_tag, XtPointer) |
static void | event_cbk (Widget, XtPointer a_tag, XtPointer a_data) |
static void | destroy_shell_callback (Widget, XtPointer a_tag, XtPointer) |
Protected Attributes | |
session & | m_session |
Widget | m_shell |
Widget | m_glarea |
tools::sg::device_interactor * | m_interactor |
Protected Attributes inherited from tools::sg::GL_viewer | |
GL_manager | m_gl_mgr |
Protected Attributes inherited from tools::sg::viewer | |
std::ostream & | m_out |
colorf | m_clear_color |
unsigned int | m_ww |
unsigned int | m_wh |
group | m_sg |
std::string | m_out_dir |
bool | m_use_gsto |
bool | m_produce_out_jpeg |
bool | m_produce_out_png |
std::string | m_produce_out_file |
unsigned int | m_produce_out_bpp |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
|
inlinestaticprotected |
|
inline |
|
inline |
|
protected |