|
Ion
|
The Printer class can be used for debugging. More...
#include "printer.h"
Public Types | |
| enum | Format { kText, kHtml } |
| Available output formats. More... | |
Public Member Functions | |
| Printer () | |
| Printer class functions. More... | |
| ~Printer () | |
| void | SetFormat (Format format) |
| Sets/returns the printed format. The default is kText. More... | |
| Format | GetFormat () const |
| void | EnableFullShapePrinting (bool enable) |
| Sets/returns a flag indicating whether shape contents should be written. More... | |
| bool | IsFullShapePrintingEnabled () const |
| void | EnableAddressPrinting (bool enable) |
| Sets/returns a flag indicating whether the addresses of objects should be written. More... | |
| bool | IsAddressPrintingEnabled () const |
| void | PrintScene (const gfx::NodePtr &node, std::ostream &out) |
| Prints the scene graph rooted by the given node. More... | |
The Printer class can be used for debugging.
It prints ION scene graphs to a stream.
| ion::gfxutils::Printer::Printer | ( | ) |
Printer class functions.
Definition at line 1548 of file printer.cc.
| ion::gfxutils::Printer::~Printer | ( | ) |
Definition at line 1554 of file printer.cc.
|
inline |
Sets/returns a flag indicating whether the addresses of objects should be written.
The default is true.
Definition at line 57 of file printer.h.
References address_printing_enabled_.
|
inline |
Sets/returns a flag indicating whether shape contents should be written.
The default is false.
Definition at line 48 of file printer.h.
References full_shape_printing_enabled_.
|
inline |
Definition at line 60 of file printer.h.
References address_printing_enabled_.
|
inline |
Definition at line 51 of file printer.h.
References full_shape_printing_enabled_.
| void ion::gfxutils::Printer::PrintScene | ( | const gfx::NodePtr & | node, |
| std::ostream & | out | ||
| ) |
Prints the scene graph rooted by the given node.
Definition at line 1558 of file printer.cc.
References kText.
|
inline |