Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
rs2::ux_window Class Reference

#include <ux-window.h>

Public Member Functions

void add_on_load_message (const std::string &msg)
 
void begin_frame ()
 
void begin_viewport ()
 
void cross_hovered ()
 
void end_frame ()
 
float framebuf_height () const
 
float framebuf_width () const
 
ImFontget_font () const
 
bool get_hovered_over_input () const
 
ImFontget_large_font () const
 
ImFontget_monofont () const
 
rs2::mouse_infoget_mouse ()
 
float get_scale_factor () const
 
texture_bufferget_splash ()
 
float height () const
 
bool is_fullscreen ()
 
bool is_ui_aligned ()
 
void link_hovered ()
 
 operator bool ()
 
 operator GLFWwindow * () const
 
void refresh ()
 
void reload ()
 
void reset ()
 
void set_hovered_over_input ()
 
double time () const
 
 ux_window (const char *title, context &ctx)
 
float width () const
 
 ~ux_window ()
 

Public Attributes

std::function< void(std::string)> on_file_drop = [](std::string) {}
 
std::function< bool()> on_load = []() { return false; }
 
std::function< void()> on_reload_complete = []() { }
 

Private Member Functions

void imgui_config_pop ()
 
void imgui_config_push ()
 
void open_window ()
 
void setup_icon ()
 

Private Attributes

std::shared_ptr< visualizer_2d_2d_vis
 
std::atomic< bool > _app_ready
 
GLFWcursor_cross_cursor = nullptr
 
bool _cross_hovered = false
 
context_ctx
 
std::string _dev_stat_message
 
bool _enable_msaa = false
 
std::string _error_message
 
int _fb_height = 0
 
int _fb_width = 0
 
bool _first_frame
 
std::thread _first_load
 
ImFont_font_14
 
ImFont_font_18
 
bool _fullscreen = false
 
bool _fullscreen_pressed = false
 
GLFWcursor_hand_cursor = nullptr
 
int _height
 
int _hourglass_index = 0
 
bool _hovers_any_input_window = false
 
bool _is_ui_aligned = false
 
std::atomic< bool > _keep_alive
 
bool _link_hovered = false
 
bool _missing_device = false
 
ImFont_monofont
 
rs2::mouse_info _mouse {}
 
int _msaa_samples = 0
 
std::vector< std::string_on_load_message
 
std::mutex _on_load_message_mtx
 
int _output_height
 
bool _query_devices = true
 
bool _reload = false
 
float _scale_factor
 
bool _show_fps = false
 
texture_buffer _splash_tex
 
utilities::time::stopwatch _splash_timer
 
std::string _title
 
std::string _title_str
 
bool _use_glsl_proc = false
 
bool _use_glsl_render = false
 
rs2::rect _viewer_rect
 
bool _vsync = true
 
int _width
 
GLFWwindow_win
 

Detailed Description

Definition at line 32 of file ux-window.h.

Constructor & Destructor Documentation

rs2::ux_window::ux_window ( const char *  title,
context ctx 
)

Definition at line 421 of file ux-window.cpp.

rs2::ux_window::~ux_window ( )

Definition at line 628 of file ux-window.cpp.

Member Function Documentation

void rs2::ux_window::add_on_load_message ( const std::string msg)

Definition at line 433 of file ux-window.cpp.

void rs2::ux_window::begin_frame ( )

Definition at line 651 of file ux-window.cpp.

void rs2::ux_window::begin_viewport ( )

Definition at line 732 of file ux-window.cpp.

void rs2::ux_window::cross_hovered ( )

Definition at line 171 of file ux-window.cpp.

void rs2::ux_window::end_frame ( )

Definition at line 746 of file ux-window.cpp.

float rs2::ux_window::framebuf_height ( ) const
inline

Definition at line 45 of file ux-window.h.

float rs2::ux_window::framebuf_width ( ) const
inline

Definition at line 44 of file ux-window.h.

ImFont* rs2::ux_window::get_font ( ) const
inline

Definition at line 64 of file ux-window.h.

bool rs2::ux_window::get_hovered_over_input ( ) const
inline

Definition at line 83 of file ux-window.h.

ImFont* rs2::ux_window::get_large_font ( ) const
inline

Definition at line 62 of file ux-window.h.

ImFont* rs2::ux_window::get_monofont ( ) const
inline

Definition at line 63 of file ux-window.h.

rs2::mouse_info& rs2::ux_window::get_mouse ( )
inline

Definition at line 66 of file ux-window.h.

float rs2::ux_window::get_scale_factor ( ) const
inline

Definition at line 67 of file ux-window.h.

texture_buffer& rs2::ux_window::get_splash ( )
inline

Definition at line 74 of file ux-window.h.

float rs2::ux_window::height ( ) const
inline

Definition at line 42 of file ux-window.h.

void rs2::ux_window::imgui_config_pop ( )
private

Definition at line 439 of file ux-window.cpp.

void rs2::ux_window::imgui_config_push ( )
private

Definition at line 451 of file ux-window.cpp.

bool rs2::ux_window::is_fullscreen ( )
inline

Definition at line 72 of file ux-window.h.

bool rs2::ux_window::is_ui_aligned ( )
inline

Definition at line 71 of file ux-window.h.

void rs2::ux_window::link_hovered ( )

Definition at line 166 of file ux-window.cpp.

void rs2::ux_window::open_window ( )
private

Definition at line 207 of file ux-window.cpp.

rs2::ux_window::operator bool ( )

Definition at line 520 of file ux-window.cpp.

rs2::ux_window::operator GLFWwindow * ( ) const
inline

Definition at line 52 of file ux-window.h.

void rs2::ux_window::refresh ( )

Definition at line 154 of file ux-window.cpp.

void rs2::ux_window::reload ( )

Definition at line 149 of file ux-window.cpp.

void rs2::ux_window::reset ( void  )

Definition at line 757 of file ux-window.cpp.

void rs2::ux_window::set_hovered_over_input ( )
inline

Definition at line 82 of file ux-window.h.

void rs2::ux_window::setup_icon ( )
private

Definition at line 176 of file ux-window.cpp.

double rs2::ux_window::time ( ) const
inline

Definition at line 85 of file ux-window.h.

float rs2::ux_window::width ( ) const
inline

Definition at line 41 of file ux-window.h.

Member Data Documentation

std::shared_ptr<visualizer_2d> rs2::ux_window::_2d_vis
private

Definition at line 136 of file ux-window.h.

std::atomic<bool> rs2::ux_window::_app_ready
private

Definition at line 107 of file ux-window.h.

GLFWcursor* rs2::ux_window::_cross_cursor = nullptr
private

Definition at line 133 of file ux-window.h.

bool rs2::ux_window::_cross_hovered = false
private

Definition at line 132 of file ux-window.h.

context& rs2::ux_window::_ctx
private

Definition at line 137 of file ux-window.h.

std::string rs2::ux_window::_dev_stat_message
private

Definition at line 119 of file ux-window.h.

bool rs2::ux_window::_enable_msaa = false
private

Definition at line 127 of file ux-window.h.

std::string rs2::ux_window::_error_message
private

Definition at line 102 of file ux-window.h.

int rs2::ux_window::_fb_height = 0
private

Definition at line 97 of file ux-window.h.

int rs2::ux_window::_fb_width = 0
private

Definition at line 96 of file ux-window.h.

bool rs2::ux_window::_first_frame
private

Definition at line 106 of file ux-window.h.

std::thread rs2::ux_window::_first_load
private

Definition at line 105 of file ux-window.h.

ImFont* rs2::ux_window::_font_14
private

Definition at line 100 of file ux-window.h.

ImFont * rs2::ux_window::_font_18
private

Definition at line 100 of file ux-window.h.

bool rs2::ux_window::_fullscreen = false
private

Definition at line 121 of file ux-window.h.

bool rs2::ux_window::_fullscreen_pressed = false
private

Definition at line 120 of file ux-window.h.

GLFWcursor* rs2::ux_window::_hand_cursor = nullptr
private

Definition at line 131 of file ux-window.h.

int rs2::ux_window::_height
private

Definition at line 95 of file ux-window.h.

int rs2::ux_window::_hourglass_index = 0
private

Definition at line 118 of file ux-window.h.

bool rs2::ux_window::_hovers_any_input_window = false
private

Definition at line 115 of file ux-window.h.

bool rs2::ux_window::_is_ui_aligned = false
private

Definition at line 139 of file ux-window.h.

std::atomic<bool> rs2::ux_window::_keep_alive
private

Definition at line 108 of file ux-window.h.

bool rs2::ux_window::_link_hovered = false
private

Definition at line 130 of file ux-window.h.

bool rs2::ux_window::_missing_device = false
private

Definition at line 117 of file ux-window.h.

ImFont * rs2::ux_window::_monofont
private

Definition at line 100 of file ux-window.h.

rs2::mouse_info rs2::ux_window::_mouse {}
private

Definition at line 101 of file ux-window.h.

int rs2::ux_window::_msaa_samples = 0
private

Definition at line 128 of file ux-window.h.

std::vector<std::string> rs2::ux_window::_on_load_message
private

Definition at line 112 of file ux-window.h.

std::mutex rs2::ux_window::_on_load_message_mtx
private

Definition at line 113 of file ux-window.h.

int rs2::ux_window::_output_height
private

Definition at line 95 of file ux-window.h.

bool rs2::ux_window::_query_devices = true
private

Definition at line 116 of file ux-window.h.

bool rs2::ux_window::_reload = false
private

Definition at line 122 of file ux-window.h.

float rs2::ux_window::_scale_factor
private

Definition at line 103 of file ux-window.h.

bool rs2::ux_window::_show_fps = false
private

Definition at line 123 of file ux-window.h.

texture_buffer rs2::ux_window::_splash_tex
private

Definition at line 109 of file ux-window.h.

utilities::time::stopwatch rs2::ux_window::_splash_timer
private

Definition at line 110 of file ux-window.h.

std::string rs2::ux_window::_title
private

Definition at line 135 of file ux-window.h.

std::string rs2::ux_window::_title_str
private

Definition at line 111 of file ux-window.h.

bool rs2::ux_window::_use_glsl_proc = false
private

Definition at line 125 of file ux-window.h.

bool rs2::ux_window::_use_glsl_render = false
private

Definition at line 126 of file ux-window.h.

rs2::rect rs2::ux_window::_viewer_rect
private

Definition at line 98 of file ux-window.h.

bool rs2::ux_window::_vsync = true
private

Definition at line 124 of file ux-window.h.

int rs2::ux_window::_width
private

Definition at line 95 of file ux-window.h.

GLFWwindow* rs2::ux_window::_win
private

Definition at line 94 of file ux-window.h.

std::function<void(std::string)> rs2::ux_window::on_file_drop = [](std::string) {}

Definition at line 35 of file ux-window.h.

std::function<bool()> rs2::ux_window::on_load = []() { return false; }

Definition at line 36 of file ux-window.h.

std::function<void()> rs2::ux_window::on_reload_complete = []() { }

Definition at line 37 of file ux-window.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41