|
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 |
|
Definition at line 18 of file viewer.
◆ viewer() [1/2]
tools::sg::viewer::viewer |
( |
std::ostream & |
a_out, |
|
|
unsigned int |
a_width, |
|
|
unsigned int |
a_height |
|
) |
| |
|
inline |
Definition at line 41 of file viewer.
53 mem::increment(s_class().c_str());
◆ ~viewer()
virtual tools::sg::viewer::~viewer |
( |
| ) |
|
|
inlinevirtual |
Definition at line 56 of file viewer.
59 mem::decrement(s_class().c_str());
◆ viewer() [2/2]
tools::sg::viewer::viewer |
( |
const viewer & |
a_from | ) |
|
|
inline |
Definition at line 63 of file viewer.
76 mem::increment(s_class().c_str());
◆ background()
const colorf& tools::sg::viewer::background |
( |
| ) |
const |
|
inline |
◆ cast()
virtual void* tools::sg::viewer::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
Definition at line 21 of file viewer.
22 if(
void* p = cmp_cast<viewer>(
this,a_class)) {
return p;}
◆ get_clear_color()
void tools::sg::viewer::get_clear_color |
( |
float & |
a_r, |
|
|
float & |
a_g, |
|
|
float & |
a_b, |
|
|
float & |
a_a |
|
) |
| |
|
inline |
◆ height()
unsigned int tools::sg::viewer::height |
( |
| ) |
const |
|
inline |
◆ operator=()
viewer& tools::sg::viewer::operator= |
( |
const viewer & |
a_from | ) |
|
|
inline |
◆ out()
std::ostream& tools::sg::viewer::out |
( |
| ) |
const |
|
inline |
◆ out_dir()
const std::string& tools::sg::viewer::out_dir |
( |
| ) |
const |
|
inline |
◆ produce_out_bpp()
unsigned int tools::sg::viewer::produce_out_bpp |
( |
| ) |
const |
|
inline |
◆ produce_out_file()
const std::string& tools::sg::viewer::produce_out_file |
( |
| ) |
const |
|
inline |
◆ produce_out_jpeg()
bool tools::sg::viewer::produce_out_jpeg |
( |
| ) |
const |
|
inline |
◆ produce_out_png()
bool tools::sg::viewer::produce_out_png |
( |
| ) |
const |
|
inline |
◆ screen2aspect()
bool tools::sg::viewer::screen2aspect |
( |
int |
a_x, |
|
|
int |
a_y, |
|
|
float & |
a_wx, |
|
|
float & |
a_wy |
|
) |
| const |
|
inline |
Definition at line 100 of file viewer.
104 float aspect = float(
m_ww)/float(
m_wh);
106 float wcw = wch*aspect;
107 a_wx = float(a_x) * wcw/float(
m_ww);
108 a_wy = float(a_y) * wch/float(
m_wh);
◆ set_clear_color() [1/2]
void tools::sg::viewer::set_clear_color |
( |
const colorf & |
a_color | ) |
|
|
inline |
◆ set_clear_color() [2/2]
void tools::sg::viewer::set_clear_color |
( |
float |
a_r, |
|
|
float |
a_g, |
|
|
float |
a_b, |
|
|
float |
a_a = 1 |
|
) |
| |
|
inline |
◆ set_cursor_shape()
virtual bool tools::sg::viewer::set_cursor_shape |
( |
cursor_shape |
| ) |
|
|
inlinevirtual |
◆ set_default_cursor_shape()
bool tools::sg::viewer::set_default_cursor_shape |
( |
| ) |
|
|
inline |
◆ set_produce_out_bpp()
void tools::sg::viewer::set_produce_out_bpp |
( |
unsigned int |
a_bpp | ) |
|
|
inline |
◆ set_produce_out_file()
void tools::sg::viewer::set_produce_out_file |
( |
const std::string & |
a_file | ) |
|
|
inline |
◆ set_produce_out_jpeg()
void tools::sg::viewer::set_produce_out_jpeg |
( |
bool |
a_value | ) |
|
|
inline |
◆ set_produce_out_png()
void tools::sg::viewer::set_produce_out_png |
( |
bool |
a_value | ) |
|
|
inline |
◆ set_size()
virtual void tools::sg::viewer::set_size |
( |
unsigned int |
a_w, |
|
|
unsigned int |
a_h |
|
) |
| |
|
inlinevirtual |
◆ sg() [1/2]
group& tools::sg::viewer::sg |
( |
| ) |
|
|
inline |
◆ sg() [2/2]
const group& tools::sg::viewer::sg |
( |
| ) |
const |
|
inline |
◆ width()
unsigned int tools::sg::viewer::width |
( |
| ) |
const |
|
inline |
◆ m_clear_color
colorf tools::sg::viewer::m_clear_color |
|
protected |
◆ m_out
std::ostream& tools::sg::viewer::m_out |
|
protected |
◆ m_out_dir
std::string tools::sg::viewer::m_out_dir |
|
protected |
◆ m_produce_out_bpp
unsigned int tools::sg::viewer::m_produce_out_bpp |
|
protected |
◆ m_produce_out_file
std::string tools::sg::viewer::m_produce_out_file |
|
protected |
◆ m_produce_out_jpeg
bool tools::sg::viewer::m_produce_out_jpeg |
|
protected |
◆ m_produce_out_png
bool tools::sg::viewer::m_produce_out_png |
|
protected |
◆ m_sg
group tools::sg::viewer::m_sg |
|
protected |
◆ m_use_gsto
bool tools::sg::viewer::m_use_gsto |
|
protected |
◆ m_wh
unsigned int tools::sg::viewer::m_wh |
|
protected |
◆ m_ww
unsigned int tools::sg::viewer::m_ww |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/viewer