#include "gl-render.h"
Classes | |
class | patch_tessellator |
Public Member Functions | |
opengl_renderer (const opengl_renderer &)=delete | |
opengl_renderer (opengl_functions &glfcns) | |
virtual | ~opengl_renderer (void)=default |
virtual void | draw (const graphics_object &go, bool toplevel=true) |
void | draw (const Matrix &hlist, bool toplevel=false) |
virtual void | draw_zoom_box (int width, int height, int x1, int y1, int x2, int y2, const Matrix &overlaycolor, double overlayalpha, const Matrix &bordercolor, double borderalpha, double borderwidth) |
virtual void | finish (void) |
opengl_functions & | get_opengl_functions (void) const |
virtual uint8NDArray | get_pixels (int width, int height) |
virtual graphics_xform | get_transform (void) const |
virtual Matrix | get_viewport_scaled (void) const |
opengl_renderer & | operator= (const opengl_renderer &)=delete |
virtual void | set_device_pixel_ratio (double dpr) |
virtual void | set_viewport (int w, int h) |
Protected Member Functions | |
virtual void | change_marker (const std::string &m, double size) |
virtual void | draw_axes (const axes::properties &props) |
virtual void | draw_figure (const figure::properties &props) |
virtual void | draw_hggroup (const hggroup::properties &props) |
virtual void | draw_image (const image::properties &props) |
virtual void | draw_light (const light::properties &props) |
virtual void | draw_line (const line::properties &props) |
virtual void | draw_marker (double x, double y, double z, const Matrix &lc, const Matrix &fc, const double la=1.0, const double fa=1.0) |
virtual void | draw_patch (const patch::properties &props) |
virtual void | draw_scatter (const scatter::properties &props) |
virtual void | draw_surface (const surface::properties &props) |
virtual void | draw_text (const text::properties &props) |
virtual void | draw_text_background (const text::properties &props, bool do_rotate=false) |
virtual void | draw_uibuttongroup (const uibuttongroup::properties &props, const graphics_object &go) |
virtual void | draw_uipanel (const uipanel::properties &props, const graphics_object &go) |
virtual void | draw_zoom_rect (int x1, int y1, int x2, int y2) |
virtual void | end_marker (void) |
virtual void | init_gl_context (bool enhanced, const Matrix &backgroundColor) |
virtual void | init_marker (const std::string &m, double size, float width) |
virtual void | render_grid (const double linewidth, const std::string &gridstyle, const Matrix &gridcolor, const double gridalpha, const Matrix &ticks, double lim1, double lim2, double p1, double p1N, double p2, double p2N, int xyz, bool is_3D) |
virtual Matrix | render_text (const std::string &txt, double x, double y, double z, int halign, int valign, double rotation=0.0) |
virtual void | render_tickmarks (const Matrix &ticks, double lim1, double lim2, double p1, double p1N, double p2, double p2N, double dx, double dy, double dz, int xyz, bool doubleside) |
virtual void | render_ticktexts (const Matrix &ticks, const string_vector &ticklabels, double lim1, double lim2, double p1, double p2, int xyz, int ha, int va, int &wmax, int &hmax) |
virtual void | set_clipbox (double x1, double x2, double y1, double y2, double z1, double z2) |
virtual void | set_clipping (bool on) |
virtual void | set_color (const Matrix &c) |
virtual void | set_font (const base_properties &props) |
virtual void | set_interpreter (const caseless_str &interp) |
virtual void | set_linecap (const std::string &) |
virtual void | set_linejoin (const std::string &) |
virtual void | set_linestyle (const std::string &s, bool stipple=false, double linewidth=0.5) |
virtual void | set_linewidth (float w) |
virtual void | set_polygon_offset (bool on, float offset=0.0f) |
virtual void | set_selecting (bool on) |
virtual void | setup_opengl_transformation (const axes::properties &props) |
virtual void | text_to_pixels (const std::string &txt, uint8NDArray &pixels, Matrix &bbox, int halign=0, int valign=0, double rotation=0.0) |
virtual void | text_to_strlist (const std::string &txt, std::list< text_renderer::string > &lst, Matrix &bbox, int halign=0, int valign=0, double rotation=0.0) |
Protected Attributes | |
double | m_devpixratio |
opengl_functions & | m_glfcns |
graphics_xform | m_xform |
double | m_xmax |
double | m_xmin |
double | m_ymax |
double | m_ymin |
double | m_zmax |
double | m_zmin |
Private Member Functions | |
uint8_t | clip_code (double x, double y, double z) const |
void | draw_all_lights (const base_properties &props, std::list< graphics_object > &obj_list) |
void | draw_axes_boxes (const axes::properties &props) |
void | draw_axes_children (const axes::properties &props) |
void | draw_axes_grids (const axes::properties &props) |
void | draw_axes_planes (const axes::properties &props) |
void | draw_axes_x_grid (const axes::properties &props) |
void | draw_axes_y_grid (const axes::properties &props) |
void | draw_axes_z_grid (const axes::properties &props) |
void | draw_texture_image (const octave_value cdata, Matrix x, Matrix y, bool ortho=false) |
std::string | get_string (unsigned int id) const |
void | init_maxlights (void) |
bool | is_nan_or_inf (double x, double y, double z) const |
unsigned int | make_marker_list (const std::string &m, double size, bool filled) const |
double | points_to_pixels (const double val) const |
void | render_text (uint8NDArray pixels, Matrix bbox, double x, double y, double z, double rotation) |
void | restore_previous_coordinates (void) |
void | set_normal (int bfl_mode, const NDArray &n, int j, int i) |
void | set_ortho_coordinates (void) |
Private Attributes | |
ColumnVector | m_camera_dir |
ColumnVector | m_camera_pos |
unsigned int | m_current_light |
unsigned int | m_filled_marker_id |
caseless_str | m_interpreter |
unsigned int | m_marker_id |
unsigned int | m_max_lights |
bool | m_printing |
bool | m_selecting |
graphics_toolkit | m_toolkit |
text_renderer | m_txt_renderer |
ColumnVector | m_view_vector |
double | m_xZ1 |
double | m_xZ2 |
Definition at line 38 of file gl-render.h.
opengl_renderer::opengl_renderer | ( | opengl_functions & | glfcns | ) |
Definition at line 684 of file gl-render.cc.
References err_disabled_feature(), and error().
|
delete |
|
virtualdefault |
|
protectedvirtual |
Definition at line 4479 of file gl-render.cc.
References m, m_filled_marker_id, m_marker_id, make_marker_list(), and panic_impossible.
Referenced by draw_scatter().
|
inlineprivate |
Definition at line 195 of file gl-render.h.
References is_nan_or_inf(), and x.
Referenced by draw_line(), draw_patch(), draw_scatter(), draw_surface(), and draw_text().
|
virtual |
Reimplemented in opengl_selector.
Definition at line 714 of file gl-render.cc.
References draw_axes(), draw_figure(), draw_hggroup(), draw_image(), draw_light(), draw_line(), draw_patch(), draw_scatter(), draw_surface(), draw_text(), draw_uibuttongroup(), draw_uipanel(), opengl_functions::glGetError(), m_glfcns, m_toolkit, Utils::properties(), and warning().
Referenced by opengl_selector::draw(), draw(), draw_all_lights(), draw_axes_children(), draw_figure(), draw_hggroup(), draw_uibuttongroup(), and draw_uipanel().
void opengl_renderer::draw | ( | const Matrix & | hlist, |
bool | toplevel = false |
||
) |
Definition at line 4158 of file gl-render.cc.
References __get_gh_manager__(), draw(), len, and Array< T, Alloc >::numel().
|
private |
Definition at line 2163 of file gl-render.cc.
References __get_gh_manager__(), draw(), m_current_light, m_max_lights, m_selecting, Array< T, Alloc >::numel(), panic_impossible, and set_clipping().
Referenced by draw_axes_children().
|
protectedvirtual |
Definition at line 2301 of file gl-render.cc.
References draw_axes_boxes(), draw_axes_children(), draw_axes_grids(), draw_axes_planes(), opengl_functions::glDisable(), opengl_functions::glEnable(), m_glfcns, m_selecting, max(), panic_impossible, set_clipbox(), setup_opengl_transformation(), and warning().
Referenced by draw().
|
private |
Definition at line 1390 of file gl-render.cc.
References opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), Array< T, Alloc >::isempty(), m_glfcns, panic_impossible, set_color(), set_linecap(), and set_linestyle().
Referenced by draw_axes().
|
private |
Definition at line 2210 of file gl-render.cc.
References draw(), draw_all_lights(), opengl_functions::glDisable(), opengl_functions::glLightfv(), init_maxlights(), m_current_light, m_glfcns, m_max_lights, m_view_vector, panic_impossible, set_clipping(), and warning_with_id().
Referenced by draw_axes().
|
private |
Definition at line 2128 of file gl-render.cc.
References draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glGetBooleanv(), m_glfcns, panic_impossible, set_font(), set_interpreter(), set_linecap(), and set_linewidth().
Referenced by draw_axes().
|
private |
Definition at line 1330 of file gl-render.cc.
References opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), Array< T, Alloc >::isempty(), m_glfcns, panic_impossible, set_color(), and set_polygon_offset().
Referenced by draw_axes().
|
private |
Definition at line 1550 of file gl-render.cc.
References __get_gh_manager__(), opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), Array< T, Alloc >::isempty(), isinf(), m_glfcns, m_selecting, m_xform, max(), min(), string_vector::numel(), panic_impossible, render_grid(), render_tickmarks(), render_ticktexts(), set_color(), and signum().
Referenced by draw_axes_grids().
|
private |
Definition at line 1746 of file gl-render.cc.
References __get_gh_manager__(), opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), Array< T, Alloc >::isempty(), isinf(), m_glfcns, m_selecting, m_xform, max(), min(), string_vector::numel(), panic_impossible, render_grid(), render_tickmarks(), render_ticktexts(), set_color(), and signum().
Referenced by draw_axes_grids().
|
private |
Definition at line 1943 of file gl-render.cc.
References __get_gh_manager__(), Array< T, Alloc >::isempty(), isinf(), m_selecting, m_xform, string_vector::numel(), render_grid(), render_tickmarks(), render_ticktexts(), set_color(), and signum().
Referenced by draw_axes_grids().
|
protectedvirtual |
Definition at line 777 of file gl-render.cc.
References draw(), get_string(), init_gl_context(), and m_printing.
Referenced by draw().
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in opengl_selector.
Definition at line 4053 of file gl-render.cc.
References draw_texture_image(), panic_impossible, and x.
Referenced by draw().
|
protectedvirtual |
Definition at line 3840 of file gl-render.cc.
References opengl_functions::glEnable(), opengl_functions::glLightfv(), m_current_light, m_glfcns, and panic_impossible.
Referenced by draw().
|
protectedvirtual |
Definition at line 2373 of file gl-render.cc.
References clip_code(), draw_marker(), end_marker(), opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex2d(), opengl_functions::glVertex3d(), init_marker(), m_glfcns, m_selecting, m_xform, m_zmax, m_zmin, Matrix, max(), min(), n, Array< T, Alloc >::numel(), panic_impossible, set_clipping(), set_color(), set_linecap(), set_linejoin(), set_linestyle(), set_linewidth(), and x.
Referenced by draw().
|
protectedvirtual |
Definition at line 4524 of file gl-render.cc.
References opengl_functions::glCallList(), opengl_functions::glColor4d(), opengl_functions::glEdgeFlag(), opengl_functions::glLoadIdentity(), opengl_functions::glPolygonMode(), opengl_functions::glTranslated(), m_filled_marker_id, m_glfcns, m_marker_id, m_xform, Array< T, Alloc >::numel(), panic_impossible, set_polygon_offset(), and x.
Referenced by draw_line(), draw_patch(), draw_scatter(), and draw_surface().
|
protectedvirtual |
Definition at line 3186 of file gl-render.cc.
References opengl_tessellator::add_vertex(), opengl_tessellator::begin_contour(), opengl_tessellator::begin_polygon(), clip_code(), Array< T, Alloc >::columns(), Array< T, Alloc >::data(), draw_marker(), opengl_tessellator::end_contour(), end_marker(), opengl_tessellator::end_polygon(), f, FLAT, Array< T, Alloc >::fortran_vec(), opengl_functions::glBegin(), opengl_functions::glColor3dv(), opengl_functions::glColor4d(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glEnd(), opengl_functions::glMaterialf(), opengl_functions::glMaterialfv(), opengl_functions::glShadeModel(), opengl_functions::glVertex3d(), GOURAUD, init_marker(), INTERP, is_nan_or_inf(), Array< T, Alloc >::isempty(), isnan(), LIGHT_MODE, m, vertex_data::vertex_data_rep::m_ambient, vertex_data::vertex_data_rep::m_color, vertex_data::vertex_data_rep::m_coords, vertex_data::vertex_data_rep::m_diffuse, m_glfcns, m_selecting, vertex_data::vertex_data_rep::m_specular, vertex_data::vertex_data_rep::m_specular_color_refl, m_view_vector, m_xform, Matrix, Array< T, Alloc >::numel(), panic_impossible, Matrix::resize(), Array< T, Alloc >::rows(), set_linecap(), set_linejoin(), set_linestyle(), set_linewidth(), UNIFORM, and warning().
Referenced by draw().
|
protectedvirtual |
Definition at line 3731 of file gl-render.cc.
References __get_gh_manager__(), change_marker(), clip_code(), draw_marker(), end_marker(), init_marker(), Array< T, Alloc >::isempty(), m_selecting, Matrix, Array< T, Alloc >::numel(), panic_impossible, Utils::properties(), Matrix::resize(), Array< T, Alloc >::rows(), warning(), and x.
Referenced by draw().
|
protectedvirtual |
Definition at line 2519 of file gl-render.cc.
References clip_code(), Array< T, Alloc >::columns(), opengl_texture::create(), Array< T, Alloc >::data(), Array< T, Alloc >::dims(), draw_marker(), end_marker(), FLAT, opengl_functions::glBegin(), opengl_functions::glColor3dv(), opengl_functions::glColor3fv(), opengl_functions::glColor4d(), opengl_functions::glColor4fv(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glEnd(), opengl_functions::glMaterialf(), opengl_functions::glMaterialfv(), opengl_functions::glShadeModel(), opengl_functions::glVertex3d(), GOURAUD, init_marker(), INTERP, is_nan_or_inf(), Array< T, Alloc >::isempty(), isfinite(), LIGHT_MODE, m_glfcns, m_selecting, m_xform, Matrix, min(), panic_impossible, Array< T, Alloc >::rows(), set_linecap(), set_linejoin(), set_linestyle(), set_linewidth(), set_normal(), set_polygon_offset(), opengl_texture::tex_coord(), TEXTURE, UNIFORM, and x.
Referenced by draw().
|
protectedvirtual |
Reimplemented in opengl_selector.
Definition at line 3929 of file gl-render.cc.
References clip_code(), draw_text_background(), m_xform, Array< T, Alloc >::numel(), panic_impossible, render_text(), set_clipping(), and set_font().
Referenced by draw().
|
protectedvirtual |
Definition at line 3967 of file gl-render.cc.
References get_transform(), opengl_functions::glBegin(), opengl_functions::glColor3f(), opengl_functions::glEnd(), opengl_functions::glIsEnabled(), opengl_functions::glRotated(), opengl_functions::glTranslated(), opengl_functions::glVertex2d(), Array< T, Alloc >::isempty(), m, m_devpixratio, m_glfcns, panic_impossible, points_to_pixels(), restore_previous_coordinates(), set_linestyle(), set_linewidth(), set_ortho_coordinates(), and set_polygon_offset().
Referenced by draw_text().
|
private |
Definition at line 4076 of file gl-render.cc.
References opengl_texture::create(), octave_value::dims(), opengl_functions::glBegin(), opengl_functions::glColor4d(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glEnd(), opengl_functions::glVertex2d(), opengl_functions::glVertex3d(), opengl_texture::is_valid(), m_glfcns, dim_vector::ndims(), panic_impossible, opengl_texture::tex_coord(), Faddeeva::w(), warning(), and x.
Referenced by draw_image(), and render_text().
|
protectedvirtual |
Definition at line 817 of file gl-render.cc.
References draw(), init_gl_context(), and Utils::properties().
Referenced by draw().
|
protectedvirtual |
Definition at line 799 of file gl-render.cc.
References draw(), init_gl_context(), and Utils::properties().
Referenced by draw().
|
virtual |
Definition at line 1153 of file gl-render.cc.
References draw_zoom_rect(), opengl_functions::glBegin(), opengl_functions::glColor4f(), opengl_functions::glDisable(), opengl_functions::glEnd(), opengl_functions::glLineWidth(), opengl_functions::glLoadIdentity(), opengl_functions::glMatrixMode(), opengl_functions::glOrtho(), opengl_functions::glPopAttrib(), opengl_functions::glPopMatrix(), opengl_functions::glPushAttrib(), opengl_functions::glPushMatrix(), m_glfcns, and panic_impossible.
|
protectedvirtual |
Definition at line 1127 of file gl-render.cc.
References opengl_functions::glVertex2d(), m_glfcns, and panic_impossible.
Referenced by draw_zoom_box().
|
protectedvirtual |
Definition at line 4500 of file gl-render.cc.
References opengl_functions::glDeleteLists(), opengl_functions::glMatrixMode(), opengl_functions::glPopMatrix(), m_filled_marker_id, m_glfcns, m_marker_id, panic_impossible, and set_linewidth().
Referenced by draw_line(), draw_patch(), draw_scatter(), and draw_surface().
|
virtual |
Definition at line 1255 of file gl-render.cc.
References opengl_functions::glFinish(), m_glfcns, and panic_impossible.
|
inline |
Definition at line 54 of file gl-render.h.
|
virtual |
Definition at line 1218 of file gl-render.cc.
References idx_vector::colon, Array< T, Alloc >::fortran_vec(), opengl_functions::glPixelStorei(), opengl_functions::glReadPixels(), m_glfcns, idx_vector::make_range(), panic_impossible, and MArray< T >::permute().
|
private |
Definition at line 4599 of file gl-render.cc.
References opengl_functions::glGetString(), m_glfcns, and panic_impossible.
Referenced by draw_figure().
|
inlinevirtual |
Definition at line 66 of file gl-render.h.
Referenced by draw_text_background(), opengl_selector::fake_text(), and render_text().
|
virtual |
Definition at line 4194 of file gl-render.cc.
References opengl_functions::glGetIntegerv(), m_devpixratio, m_glfcns, and panic_impossible.
Referenced by opengl_selector::apply_pick_matrix(), init_marker(), set_ortho_coordinates(), and setup_opengl_transformation().
|
protectedvirtual |
Definition at line 835 of file gl-render.cc.
References opengl_functions::glAlphaFunc(), opengl_functions::glBlendFunc(), opengl_functions::glClear(), opengl_functions::glClearColor(), opengl_functions::glDepthFunc(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glGetError(), opengl_functions::glGetIntegerv(), opengl_functions::glHint(), m_glfcns, Array< T, Alloc >::numel(), panic_impossible, and warning().
Referenced by draw_figure(), draw_uibuttongroup(), and draw_uipanel().
|
protectedvirtual |
Reimplemented in opengl_selector.
Definition at line 4446 of file gl-render.cc.
References get_viewport_scaled(), opengl_functions::glLoadIdentity(), opengl_functions::glMatrixMode(), opengl_functions::glOrtho(), opengl_functions::glPushMatrix(), m, m_filled_marker_id, m_glfcns, m_marker_id, m_xZ1, m_xZ2, make_marker_list(), panic_impossible, set_clipping(), and set_linewidth().
Referenced by draw_line(), draw_patch(), draw_scatter(), draw_surface(), and opengl_selector::init_marker().
|
private |
Definition at line 4576 of file gl-render.cc.
References opengl_functions::glGetIntegerv(), m_glfcns, m_max_lights, and panic_impossible.
Referenced by draw_axes_children().
|
inlineprivate |
Definition at line 187 of file gl-render.h.
References isinf(), isnan(), and x.
Referenced by draw_patch(), and draw_surface().
|
private |
Definition at line 4679 of file gl-render.cc.
References opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glEndList(), opengl_functions::glGenLists(), opengl_functions::glNewList(), opengl_functions::glVertex2d(), m_glfcns, max(), panic_impossible, points_to_pixels(), r, and warning().
Referenced by change_marker(), and init_marker().
|
delete |
|
private |
Definition at line 4661 of file gl-render.cc.
References __get_gh_manager__(), and m_printing.
Referenced by draw_text_background(), make_marker_list(), set_linestyle(), and set_linewidth().
|
protectedvirtual |
Definition at line 905 of file gl-render.cc.
References opengl_functions::glBegin(), opengl_functions::glColor3dv(), opengl_functions::glColor4d(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), m_glfcns, Array< T, Alloc >::numel(), panic_impossible, set_linestyle(), X_AXIS, Y_AXIS, and Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
protectedvirtual |
Reimplemented in opengl_selector.
Definition at line 4895 of file gl-render.cc.
References m_txt_renderer, text_renderer::ok(), panic_impossible, text_to_pixels(), and x.
Referenced by draw_text(), and render_ticktexts().
|
private |
Definition at line 4935 of file gl-render.cc.
References draw_texture_image(), get_transform(), opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glIsEnabled(), opengl_functions::glRotated(), opengl_functions::glTranslated(), m_devpixratio, m_glfcns, panic_impossible, MArray< T >::permute(), restore_previous_coordinates(), set_ortho_coordinates(), and x.
|
protectedvirtual |
Definition at line 981 of file gl-render.cc.
References opengl_functions::glBegin(), opengl_functions::glEnd(), opengl_functions::glVertex3d(), m_glfcns, Array< T, Alloc >::numel(), panic_impossible, X_AXIS, Y_AXIS, and Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
protectedvirtual |
Definition at line 1057 of file gl-render.cc.
References max(), Array< T, Alloc >::numel(), string_vector::numel(), panic_impossible, render_text(), X_AXIS, Y_AXIS, and Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
private |
Definition at line 3908 of file gl-render.cc.
References opengl_functions::glMatrixMode(), opengl_functions::glPopMatrix(), m_glfcns, and panic_impossible.
Referenced by draw_text_background(), and render_text().
|
protectedvirtual |
Definition at line 4367 of file gl-render.cc.
References Array< T, Alloc >::data(), opengl_functions::glClipPlane(), m_glfcns, m_xmax, m_xmin, m_ymax, m_ymin, m_zmax, m_zmin, and panic_impossible.
Referenced by draw_axes().
|
protectedvirtual |
Definition at line 4417 of file gl-render.cc.
References opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glIsEnabled(), m_glfcns, and panic_impossible.
Referenced by draw_all_lights(), draw_axes_children(), draw_line(), draw_text(), and init_marker().
|
protectedvirtual |
Definition at line 4223 of file gl-render.cc.
References Array< T, Alloc >::data(), opengl_functions::glColor3dv(), Array< T, Alloc >::isempty(), m_glfcns, m_txt_renderer, panic_impossible, and text_renderer::set_color().
Referenced by draw_axes_boxes(), draw_axes_planes(), draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), and draw_line().
|
inlinevirtual |
Definition at line 64 of file gl-render.h.
|
protectedvirtual |
Definition at line 4245 of file gl-render.cc.
References m_devpixratio, m_txt_renderer, text_renderer::set_anti_aliasing(), and text_renderer::set_font().
Referenced by draw_axes_grids(), and draw_text().
|
inlineprotectedvirtual |
Definition at line 104 of file gl-render.h.
Referenced by draw_axes_grids().
|
inlineprotectedvirtual |
Definition at line 111 of file gl-render.h.
Referenced by draw_axes_boxes(), draw_axes_grids(), draw_line(), draw_patch(), and draw_surface().
|
inlineprotectedvirtual |
Definition at line 112 of file gl-render.h.
Referenced by draw_line(), draw_patch(), and draw_surface().
|
protectedvirtual |
Definition at line 4306 of file gl-render.cc.
References opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glLineStipple(), m_devpixratio, m_glfcns, panic_impossible, points_to_pixels(), and round().
Referenced by draw_axes_boxes(), draw_line(), draw_patch(), draw_surface(), draw_text_background(), and render_grid().
|
protectedvirtual |
Definition at line 4287 of file gl-render.cc.
References opengl_functions::glLineWidth(), m_devpixratio, m_glfcns, panic_impossible, points_to_pixels(), and Faddeeva::w().
Referenced by draw_axes_grids(), draw_line(), draw_patch(), draw_surface(), draw_text_background(), end_marker(), and init_marker().
|
private |
Definition at line 4627 of file gl-render.cc.
References d, opengl_functions::glNormal3d(), m_glfcns, m_view_vector, n, panic_impossible, and x.
Referenced by draw_surface().
|
private |
Definition at line 3883 of file gl-render.cc.
References get_viewport_scaled(), opengl_functions::glLoadIdentity(), opengl_functions::glMatrixMode(), opengl_functions::glOrtho(), opengl_functions::glPushMatrix(), m_glfcns, m_xZ1, m_xZ2, and panic_impossible.
Referenced by draw_text_background(), and render_text().
|
protectedvirtual |
Definition at line 4257 of file gl-render.cc.
References opengl_functions::glDisable(), opengl_functions::glEnable(), opengl_functions::glPolygonOffset(), m_glfcns, and panic_impossible.
Referenced by draw_axes_planes(), draw_marker(), draw_surface(), and draw_text_background().
|
inlineprotectedvirtual |
Definition at line 114 of file gl-render.h.
Referenced by opengl_selector::draw().
|
virtual |
Definition at line 4174 of file gl-render.cc.
References opengl_functions::glViewport(), m_glfcns, panic_impossible, and Faddeeva::w().
|
protectedvirtual |
Reimplemented in opengl_selector.
Definition at line 1272 of file gl-render.cc.
References abs(), Array< T, Alloc >::data(), get_viewport_scaled(), opengl_functions::glClear(), opengl_functions::glLoadIdentity(), opengl_functions::glMatrixMode(), opengl_functions::glMultMatrixd(), opengl_functions::glOrtho(), opengl_functions::glScaled(), m_glfcns, m_xform, m_xZ1, m_xZ2, max(), and panic_impossible.
Referenced by draw_axes(), and opengl_selector::setup_opengl_transformation().
|
protectedvirtual |
Definition at line 4875 of file gl-render.cc.
References m_interpreter, m_txt_renderer, and text_renderer::text_to_pixels().
Referenced by opengl_selector::render_text(), and render_text().
|
protectedvirtual |
Definition at line 4885 of file gl-render.cc.
References m_interpreter, m_txt_renderer, and text_renderer::text_to_strlist().
|
private |
Definition at line 248 of file gl-render.h.
|
private |
Definition at line 248 of file gl-render.h.
|
private |
Definition at line 256 of file gl-render.h.
Referenced by draw_all_lights(), draw_axes_children(), and draw_light().
|
protected |
Definition at line 174 of file gl-render.h.
Referenced by draw_text_background(), get_viewport_scaled(), render_text(), set_font(), set_linestyle(), and set_linewidth().
|
private |
Definition at line 245 of file gl-render.h.
Referenced by change_marker(), draw_marker(), end_marker(), and init_marker().
|
protected |
Definition at line 166 of file gl-render.h.
Referenced by opengl_selector::apply_pick_matrix(), opengl_selector::draw(), draw(), draw_axes(), draw_axes_boxes(), draw_axes_children(), draw_axes_grids(), draw_axes_planes(), draw_axes_x_grid(), draw_axes_y_grid(), opengl_selector::draw_image(), draw_light(), draw_line(), draw_marker(), draw_patch(), draw_surface(), draw_text_background(), draw_texture_image(), draw_zoom_box(), draw_zoom_rect(), end_marker(), opengl_selector::fake_text(), finish(), get_pixels(), get_string(), get_viewport_scaled(), init_gl_context(), init_marker(), init_maxlights(), make_marker_list(), render_grid(), render_text(), render_tickmarks(), restore_previous_coordinates(), opengl_selector::select(), set_clipbox(), set_clipping(), set_color(), set_linestyle(), set_linewidth(), set_normal(), set_ortho_coordinates(), set_polygon_offset(), set_viewport(), and setup_opengl_transformation().
|
private |
Definition at line 251 of file gl-render.h.
Referenced by text_to_pixels(), and text_to_strlist().
|
private |
Definition at line 245 of file gl-render.h.
Referenced by change_marker(), draw_marker(), end_marker(), and init_marker().
|
private |
Definition at line 257 of file gl-render.h.
Referenced by draw_all_lights(), draw_axes_children(), and init_maxlights().
|
private |
Definition at line 263 of file gl-render.h.
Referenced by draw_figure(), and points_to_pixels().
|
private |
Definition at line 260 of file gl-render.h.
Referenced by draw_all_lights(), draw_axes(), draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), draw_line(), draw_patch(), draw_scatter(), and draw_surface().
|
private |
Definition at line 239 of file gl-render.h.
Referenced by draw().
|
private |
Definition at line 253 of file gl-render.h.
Referenced by render_text(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().
|
private |
Definition at line 248 of file gl-render.h.
Referenced by draw_axes_children(), draw_patch(), and set_normal().
|
protected |
Definition at line 177 of file gl-render.h.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), draw_line(), draw_marker(), draw_patch(), draw_surface(), draw_text(), and setup_opengl_transformation().
|
protected |
Definition at line 169 of file gl-render.h.
Referenced by set_clipbox().
|
protected |
Definition at line 169 of file gl-render.h.
Referenced by set_clipbox().
|
private |
Definition at line 242 of file gl-render.h.
Referenced by init_marker(), set_ortho_coordinates(), and setup_opengl_transformation().
|
private |
Definition at line 242 of file gl-render.h.
Referenced by init_marker(), set_ortho_coordinates(), and setup_opengl_transformation().
|
protected |
Definition at line 170 of file gl-render.h.
Referenced by set_clipbox().
|
protected |
Definition at line 170 of file gl-render.h.
Referenced by set_clipbox().
|
protected |
Definition at line 171 of file gl-render.h.
Referenced by draw_line(), and set_clipbox().
|
protected |
Definition at line 171 of file gl-render.h.
Referenced by draw_line(), and set_clipbox().