g4tools  5.4.0
Public Member Functions | Protected Member Functions | List of all members
tools::metal::ui_viewer Class Referenceabstract
Inheritance diagram for tools::metal::ui_viewer:
Inheritance graph
[legend]
Collaboration diagram for tools::metal::ui_viewer:
Collaboration graph
[legend]

Public Member Functions

virtual void win_render ()=0
 
 ui_viewer (std::ostream &a_out, unsigned int a_width, unsigned int a_height)
 
virtual ~ui_viewer ()
 
- 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)
 
vieweroperator= (const viewer &a_from)
 
bool set_default_cursor_shape ()
 
groupsg ()
 
const groupsg () 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 colorfbackground () 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

 ui_viewer (const ui_viewer &a_from)
 
ui_vieweroperator= (const ui_viewer &a_from)
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 12 of file ui_viewer.

Constructor & Destructor Documentation

◆ ui_viewer() [1/2]

tools::metal::ui_viewer::ui_viewer ( std::ostream &  a_out,
unsigned int  a_width,
unsigned int  a_height 
)
inline

Definition at line 18 of file ui_viewer.

18 :parent(a_out,a_width,a_height){}

◆ ~ui_viewer()

virtual tools::metal::ui_viewer::~ui_viewer ( )
inlinevirtual

Definition at line 19 of file ui_viewer.

19 {}

◆ ui_viewer() [2/2]

tools::metal::ui_viewer::ui_viewer ( const ui_viewer a_from)
inlineprotected

Definition at line 21 of file ui_viewer.

21 :parent(a_from){}

Member Function Documentation

◆ operator=()

ui_viewer& tools::metal::ui_viewer::operator= ( const ui_viewer a_from)
inlineprotected

Definition at line 22 of file ui_viewer.

22  {
23  if(&a_from==this) return *this;
24  parent::operator=(a_from);
25  return *this;
26  }

◆ win_render()

virtual void tools::metal::ui_viewer::win_render ( )
pure virtual

The documentation for this class was generated from the following file:
tools::sg::viewer::operator=
viewer & operator=(const viewer &a_from)
Definition: viewer:79