|
Open3D (C++ API)
|
#include <Console.h>
Public Types | |
| enum | TextColor { TextColor::Black = 0, TextColor::Red = 1, TextColor::Green = 2, TextColor::Yellow = 3, TextColor::Blue = 4, TextColor::Magenta = 5, TextColor::Cyan = 6, TextColor::White = 7 } |
Public Member Functions | |
| Logger () | |
| Logger (Logger const &)=delete | |
| void | operator= (Logger const &)=delete |
| void | VError (const char *format, fmt::format_args args) const |
| void | VWarning (const char *format, fmt::format_args args) const |
| void | VInfo (const char *format, fmt::format_args args) const |
| void | VDebug (const char *format, fmt::format_args args) const |
| template<typename... Args> | |
| void | Error (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Warning (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Info (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Debug (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Errorf (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Warningf (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Infof (const char *format, const Args &... args) const |
| template<typename... Args> | |
| void | Debugf (const char *format, const Args &... args) const |
Static Public Member Functions | |
| static Logger & | i () |
Data Fields | |
| VerbosityLevel | verbosity_level_ |
Protected Member Functions | |
| void | ChangeConsoleColor (TextColor text_color, int highlight_text) const |
| void | ResetConsoleColor () const |
| std::string | ColorString (const std::string &text, TextColor text_color, int highlight_text) const |
| Colorize and reset the color of a string, does not work on Windows. More... | |
|
strong |
|
inline |
|
delete |
|
protected |
Internal function to change text color for the console Note there is no security check for parameters.
| text_color,from | 0 to 7, they are black, red, green, yellow, blue, magenta, cyan, white |
| emphasis_text | is 0 or 1 |
|
protected |
Colorize and reset the color of a string, does not work on Windows.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
delete |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| VerbosityLevel open3d::utility::Logger::verbosity_level_ |
1.8.13