GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "gl-render.h"
Classes | |
class | patch_tesselator |
Public Member Functions | |
opengl_renderer (void) | |
virtual | ~opengl_renderer (void) |
virtual void | draw (const graphics_object &go, bool toplevel=true) |
virtual void | draw (const Matrix &hlist, bool toplevel=false) |
virtual void | finish (void) |
virtual graphics_xform | get_transform (void) const |
virtual void | set_viewport (int w, int h) |
Protected Member Functions | |
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) |
virtual void | draw_patch (const patch::properties &props) |
virtual void | draw_pixels (int w, int h, const float *data) |
virtual void | draw_pixels (int w, int h, const uint8_t *data) |
virtual void | draw_pixels (int w, int h, const uint16_t *data) |
virtual void | draw_surface (const surface::properties &props) |
virtual void | draw_text (const text::properties &props) |
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 | 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_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 | 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) |
Private Member Functions | |
opengl_renderer (const opengl_renderer &) | |
octave_uint8 | 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_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) |
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 |
opengl_renderer & | operator= (const opengl_renderer &) |
void | set_normal (int bfl_mode, const NDArray &n, int j, int i) |
Private Attributes | |
ColumnVector | camera_dir |
ColumnVector | camera_pos |
unsigned int | current_light |
unsigned int | filled_marker_id |
caseless_str | interpreter |
unsigned int | marker_id |
int | max_lights |
int | num_lights |
graphics_toolkit | toolkit |
text_renderer | txt_renderer |
ColumnVector | view_vector |
graphics_xform | xform |
double | xmax |
double | xmin |
double | xZ1 |
double | xZ2 |
double | ymax |
double | ymin |
double | zmax |
double | zmin |
Definition at line 33 of file gl-render.h.
octave::opengl_renderer::opengl_renderer | ( | void | ) |
Definition at line 625 of file gl-render.cc.
References err_disabled_feature(), and error().
|
inlinevirtual |
Definition at line 41 of file gl-render.h.
|
private |
|
inlineprivate |
Definition at line 154 of file gl-render.h.
References is_nan_or_inf(), xmax(), and xmin().
Referenced by draw_line().
|
virtual |
Reimplemented in octave::opengl_selector.
Definition at line 652 of file gl-render.cc.
References draw_axes(), draw_figure(), draw_hggroup(), draw_image(), draw_light(), draw_line(), draw_patch(), draw_surface(), draw_text(), draw_uibuttongroup(), draw_uipanel(), graphics_object::get_properties(), base_properties::get_toolkit(), base_properties::graphics_object_name(), graphics_object::isa(), toolkit, graphics_object::valid_object(), and warning().
Referenced by QtHandles::GLCanvas::draw(), octave::opengl_selector::draw(), draw_all_lights(), draw_axes_children(), draw_figure(), draw_hggroup(), draw_uibuttongroup(), draw_uipanel(), and G__osmesa_print__().
|
inlinevirtual |
Definition at line 45 of file gl-render.h.
References gh_manager::get_object(), and Array< T >::numel().
|
private |
Definition at line 1780 of file gl-render.cc.
References current_light, draw(), base_properties::get_all_children(), gh_manager::get_object(), graphics_object::get_properties(), base_properties::is_clipping(), base_properties::is_visible(), graphics_object::isa(), max_lights, num_lights, Array< T >::numel(), panic_impossible, set_clipping(), and warning_with_id().
Referenced by draw_axes_children().
|
protectedvirtual |
Definition at line 1914 of file gl-render.cc.
References draw_axes_boxes(), draw_axes_children(), draw_axes_planes(), draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), axes::properties::get_box(), axes::properties::get_linewidth(), base_properties::get_tag(), axes::properties::get_ticklabelinterpreter(), axes::properties::get_x_max(), axes::properties::get_x_min(), axes::properties::get_y_max(), axes::properties::get_y_min(), axes::properties::get_z_max(), axes::properties::get_z_min(), base_properties::is_visible(), max(), panic_impossible, set_clipbox(), set_font(), set_interpreter(), set_linestyle(), set_linewidth(), setup_opengl_transformation(), and warning().
Referenced by draw().
|
private |
Definition at line 1205 of file gl-render.cc.
References axes::properties::get_boxstyle(), axes::properties::get_is2D(), axes::properties::get_layer2Dtop(), axes::properties::get_linewidth(), axes::properties::get_xcolor_rgb(), axes::properties::get_xPlane(), axes::properties::get_xPlaneN(), axes::properties::get_xpTick(), axes::properties::get_xpTickN(), axes::properties::get_xySym(), axes::properties::get_ycolor_rgb(), axes::properties::get_yPlane(), axes::properties::get_yPlaneN(), axes::properties::get_ypTick(), axes::properties::get_ypTickN(), axes::properties::get_zcolor_rgb(), axes::properties::get_zPlane(), axes::properties::get_zPlaneN(), axes::properties::get_zpTick(), axes::properties::get_zpTickN(), axes::properties::has_property(), axes::properties::is_box(), base_properties::is_visible(), panic_impossible, set_color(), set_linestyle(), and swap.
Referenced by draw_axes().
|
private |
Definition at line 1826 of file gl-render.cc.
References draw(), draw_all_lights(), graphics_object::get(), axes::properties::get_ambientlightcolor_rgb(), axes::properties::get_cameraposition(), get_maxlights(), graphics_object::get_properties(), base_properties::is_clipping(), graphics_object::isa(), octave_value::matrix_value(), max_lights, num_lights, panic_impossible, set_clipping(), octave_value::string_value(), and view_vector.
Referenced by draw_axes().
|
private |
Definition at line 1145 of file gl-render.cc.
References axes::properties::get_color_rgb(), axes::properties::get_is2D(), axes::properties::get_xPlane(), axes::properties::get_xPlaneN(), axes::properties::get_yPlane(), axes::properties::get_yPlaneN(), axes::properties::get_zPlane(), axes::properties::get_zPlaneN(), Array< T >::is_empty(), base_properties::is_visible(), panic_impossible, set_color(), and set_polygon_offset().
Referenced by draw_axes().
|
private |
Definition at line 1339 of file gl-render.cc.
References AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_HORZ_DIR, AXE_VERT_DIR, axes::properties::get_fy(), axes::properties::get_fz(), axes::properties::get_gridalpha(), axes::properties::get_gridcolor_rgb(), axes::properties::get_gridlinestyle(), axes::properties::get_layer2Dtop(), axes::properties::get_linewidth(), axes::properties::get_minorgridalpha(), axes::properties::get_minorgridcolor_rgb(), axes::properties::get_minorgridlinestyle(), axes::properties::get_nearhoriz(), gh_manager::get_object(), axes::properties::get_x2Dtop(), axes::properties::get_x_max(), axes::properties::get_x_min(), axes::properties::get_xcolor_rgb(), axes::properties::get_xlabel(), axes::properties::get_xmtick(), axes::properties::get_xstate(), axes::properties::get_xtick(), axes::properties::get_xticklabel(), axes::properties::get_xticklen(), axes::properties::get_xtickoffset(), axes::properties::get_xyzSym(), axes::properties::get_yPlane(), axes::properties::get_yPlaneN(), axes::properties::get_ypTick(), axes::properties::get_ypTickN(), axes::properties::get_zPlane(), axes::properties::get_zPlaneN(), axes::properties::get_zpTick(), axes::properties::get_zpTickN(), axes::properties::get_zstate(), axes::properties::gridcolormode_is(), axes::properties::is_box(), base_properties::is_visible(), axes::properties::is_xgrid(), axes::properties::is_xminorgrid(), axes::properties::is_xminortick(), octave::math::isinf(), octave_value::matrix_value(), axes::properties::minorgridcolormode_is(), Array< T >::numel(), render_grid(), render_tickmarks(), render_ticktexts(), set(), set_color(), octave::math::signum(), string, octave_value::string_vector_value(), axes::properties::xcolormode_is(), xform, and graphics_xform::xscale().
Referenced by draw_axes().
|
private |
Definition at line 1476 of file gl-render.cc.
References AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_HORZ_DIR, AXE_VERT_DIR, axes::properties::get_fx(), axes::properties::get_fz(), axes::properties::get_gridalpha(), axes::properties::get_gridcolor_rgb(), axes::properties::get_gridlinestyle(), axes::properties::get_layer2Dtop(), axes::properties::get_linewidth(), axes::properties::get_minorgridalpha(), axes::properties::get_minorgridcolor_rgb(), axes::properties::get_minorgridlinestyle(), axes::properties::get_nearhoriz(), gh_manager::get_object(), axes::properties::get_xPlane(), axes::properties::get_xPlaneN(), axes::properties::get_xpTick(), axes::properties::get_xpTickN(), axes::properties::get_xyzSym(), axes::properties::get_y2Dright(), axes::properties::get_y_max(), axes::properties::get_y_min(), axes::properties::get_ycolor_rgb(), axes::properties::get_ylabel(), axes::properties::get_ymtick(), axes::properties::get_ystate(), axes::properties::get_ytick(), axes::properties::get_yticklabel(), axes::properties::get_yticklen(), axes::properties::get_ytickoffset(), axes::properties::get_zPlane(), axes::properties::get_zPlaneN(), axes::properties::get_zpTick(), axes::properties::get_zpTickN(), axes::properties::get_zstate(), axes::properties::gridcolormode_is(), axes::properties::has_property(), axes::properties::is_box(), base_properties::is_visible(), axes::properties::is_ygrid(), axes::properties::is_yminorgrid(), axes::properties::is_yminortick(), octave::math::isinf(), octave_value::matrix_value(), axes::properties::minorgridcolormode_is(), Array< T >::numel(), render_grid(), render_tickmarks(), render_ticktexts(), set(), set_color(), octave::math::signum(), string, octave_value::string_vector_value(), xform, axes::properties::ycolormode_is(), and graphics_xform::yscale().
Referenced by draw_axes().
|
private |
Definition at line 1611 of file gl-render.cc.
References AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_VERT_DIR, axes::properties::get_fx(), axes::properties::get_fy(), axes::properties::get_gridalpha(), axes::properties::get_gridcolor_rgb(), axes::properties::get_gridlinestyle(), axes::properties::get_linewidth(), axes::properties::get_minorgridalpha(), axes::properties::get_minorgridcolor_rgb(), axes::properties::get_minorgridlinestyle(), gh_manager::get_object(), axes::properties::get_xPlane(), axes::properties::get_xPlaneN(), axes::properties::get_xySym(), axes::properties::get_yPlane(), axes::properties::get_yPlaneN(), axes::properties::get_z_max(), axes::properties::get_z_min(), axes::properties::get_zcolor_rgb(), axes::properties::get_zlabel(), axes::properties::get_zmtick(), axes::properties::get_zSign(), axes::properties::get_zstate(), axes::properties::get_ztick(), axes::properties::get_zticklabel(), axes::properties::get_zticklen(), axes::properties::get_ztickoffset(), axes::properties::gridcolormode_is(), axes::properties::is_box(), base_properties::is_visible(), axes::properties::is_zgrid(), axes::properties::is_zminorgrid(), axes::properties::is_zminortick(), octave::math::isinf(), octave_value::matrix_value(), axes::properties::minorgridcolormode_is(), Array< T >::numel(), render_grid(), render_tickmarks(), render_ticktexts(), set(), set_color(), octave::math::signum(), string, octave_value::string_vector_value(), xform, axes::properties::zcolormode_is(), and graphics_xform::zscale().
Referenced by draw_axes().
|
protectedvirtual |
Definition at line 727 of file gl-render.cc.
References draw(), base_properties::get_all_children(), figure::properties::get_color_rgb(), octave::gl_get_string(), init_gl_context(), figure::properties::is_graphicssmoothing(), figure::properties::set___gl_extensions__(), figure::properties::set___gl_renderer__(), figure::properties::set___gl_vendor__(), and figure::properties::set___gl_version__().
Referenced by draw().
|
protectedvirtual |
Definition at line 3237 of file gl-render.cc.
References draw(), and base_properties::get_children().
Referenced by draw().
|
protectedvirtual |
Reimplemented in octave::opengl_selector.
Definition at line 3281 of file gl-render.cc.
References a, octave_value::array_value(), octave_value::dims(), draw_pixels(), dv, octave_value::float_array_value(), image::properties::get_color_data(), image::properties::get_xdata(), image::properties::get_ydata(), h, base_properties::is_clipping(), octave_value::is_double_type(), Array< T >::is_empty(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint8_type(), octave::math::isnan(), octave_value::matrix_value(), dim_vector::ndims(), OCTAVE_LOCAL_BUFFER, panic_impossible, graphics_xform::transform(), octave_value::uint16_array_value(), octave_value::uint8_array_value(), Faddeeva::w(), warning(), x, xform, xmax, xmin, y, ymax, and ymin.
Referenced by draw().
|
protectedvirtual |
Definition at line 3200 of file gl-render.cc.
References current_light, light::properties::get_color(), light::properties::get_position(), octave_value::matrix_value(), panic_impossible, and light::properties::style_is().
Referenced by draw().
|
protectedvirtual |
Definition at line 1983 of file gl-render.cc.
References clip_code(), line::properties::color_is(), draw_marker(), end_marker(), f, line::properties::get_color_rgb(), line::properties::get_linestyle(), line::properties::get_linewidth(), line::properties::get_marker(), line::properties::get_markeredgecolor_rgb(), line::properties::get_markerfacecolor_rgb(), line::properties::get_markersize(), line::properties::get_xdata(), line::properties::get_ydata(), line::properties::get_zdata(), init_marker(), base_properties::is_clipping(), line::properties::linestyle_is(), line::properties::marker_is(), line::properties::markeredgecolor_is(), line::properties::markerfacecolor_is(), octave_value::matrix_value(), max(), min(), Array< T >::numel(), panic_impossible, set_clipping(), set_color(), set_linestyle(), set_linewidth(), x, xform, graphics_xform::xscale(), y, graphics_xform::yscale(), zmax, zmin, and graphics_xform::zscale().
Referenced by draw().
|
protectedvirtual |
Definition at line 3827 of file gl-render.cc.
References Array< T >::data(), filled_marker_id, marker_id, Array< T >::numel(), panic_impossible, set_polygon_offset(), tmp, graphics_xform::transform(), and xform.
Referenced by draw_line(), draw_patch(), and draw_surface().
|
protectedvirtual |
Definition at line 2732 of file gl-render.cc.
References a, octave::opengl_tesselator::add_vertex(), octave::vertex_data::vertex_data_rep::ambient, patch::properties::backfacelighting_is(), octave::opengl_tesselator::begin_contour(), octave::opengl_tesselator::begin_polygon(), c, octave::vertex_data::vertex_data_rep::color, Array< T >::columns(), octave::vertex_data::vertex_data_rep::coords, Array< T >::data(), octave::vertex_data::vertex_data_rep::diffuse, draw_marker(), patch::properties::edgealpha_is(), patch::properties::edgealpha_is_double(), patch::properties::edgecolor_is(), patch::properties::edgecolor_is_rgb(), patch::properties::edgelighting_is(), octave::opengl_tesselator::end_contour(), end_marker(), octave::opengl_tesselator::end_polygon(), f, patch::properties::facealpha_is(), patch::properties::facealpha_is_double(), patch::properties::facecolor_is(), patch::properties::facecolor_is_rgb(), patch::properties::facelighting_is(), octave::FLAT, Array< T >::fortran_vec(), patch::properties::get_ambientstrength(), patch::properties::get_color_data(), patch::properties::get_diffusestrength(), patch::properties::get_edgealpha_double(), patch::properties::get_edgecolor_rgb(), patch::properties::get_facealpha_double(), patch::properties::get_facecolor_rgb(), patch::properties::get_faces(), patch::properties::get_linestyle(), patch::properties::get_linewidth(), patch::properties::get_marker(), patch::properties::get_markeredgecolor_rgb(), patch::properties::get_markerfacecolor_rgb(), patch::properties::get_markersize(), patch::properties::get_specularcolorreflectance(), patch::properties::get_specularexponent(), patch::properties::get_specularstrength(), patch::properties::get_vertexnormals(), patch::properties::get_vertices(), octave::GOURAUD, patch::properties::has_bad_data(), init_marker(), octave::INTERP, Array< T >::is_empty(), is_nan_or_inf(), octave::math::isnan(), k, LIGHT_MODE, patch::properties::linestyle_is(), m, patch::properties::marker_is(), patch::properties::markeredgecolor_is(), patch::properties::markerfacecolor_is(), octave_value::matrix_value(), nn, num_lights, Array< T >::numel(), panic_impossible, Matrix::resize(), Array< T >::rows(), graphics_xform::scale(), set_linestyle(), set_linewidth(), octave::vertex_data::vertex_data_rep::specular, octave::vertex_data::vertex_data_rep::specular_color_refl, string, octave::UNIFORM, view_vector, warning(), and xform.
Referenced by draw().
Definition at line 3501 of file gl-render.cc.
References panic_impossible.
Referenced by draw_image().
Definition at line 3522 of file gl-render.cc.
References panic_impossible.
Definition at line 3543 of file gl-render.cc.
References panic_impossible.
|
protectedvirtual |
Definition at line 2120 of file gl-render.cc.
References a, octave_value::array_value(), surface::properties::backfacelighting_is(), c, Array< T >::columns(), octave::opengl_texture::create(), Array< T >::data(), Array< T >::dims(), draw_marker(), surface::properties::edgealpha_is(), surface::properties::edgealpha_is_double(), surface::properties::edgecolor_is(), surface::properties::edgecolor_is_rgb(), surface::properties::edgelighting_is(), end_marker(), f, surface::properties::facealpha_is(), surface::properties::facealpha_is_double(), surface::properties::facecolor_is(), surface::properties::facecolor_is_rgb(), surface::properties::facelighting_is(), octave::math::finite(), octave::FLAT, surface::properties::get_ambientstrength(), surface::properties::get_color_data(), surface::properties::get_diffusestrength(), surface::properties::get_edgealpha_double(), surface::properties::get_edgecolor_rgb(), surface::properties::get_facealpha_double(), surface::properties::get_facecolor_rgb(), surface::properties::get_linestyle(), surface::properties::get_linewidth(), surface::properties::get_marker(), surface::properties::get_markeredgecolor_rgb(), surface::properties::get_markerfacecolor_rgb(), surface::properties::get_markersize(), surface::properties::get_specularcolorreflectance(), surface::properties::get_specularexponent(), surface::properties::get_specularstrength(), surface::properties::get_vertexnormals(), surface::properties::get_xdata(), surface::properties::get_ydata(), surface::properties::get_zdata(), octave::GOURAUD, init_marker(), octave::INTERP, Array< T >::is_empty(), is_nan_or_inf(), k, LIGHT_MODE, surface::properties::linestyle_is(), surface::properties::marker_is(), surface::properties::markeredgecolor_is(), surface::properties::markerfacecolor_is(), octave_value::matrix_value(), surface::properties::meshstyle_is(), num_lights, panic_impossible, Array< T >::rows(), set_linestyle(), set_linewidth(), set_normal(), set_polygon_offset(), octave::opengl_texture::tex_coord(), octave::TEXTURE, octave::UNIFORM, x, xform, graphics_xform::xscale(), y, graphics_xform::yscale(), and graphics_xform::zscale().
Referenced by draw().
|
protectedvirtual |
Reimplemented in octave::opengl_selector.
Definition at line 3243 of file gl-render.cc.
References Array< T >::data(), text::properties::get_data_position(), text::properties::get_extent_matrix(), text::properties::get_pixels(), text::properties::get_string(), octave_value::is_empty(), Array< T >::numel(), panic_impossible, graphics_xform::scale(), set_font(), and xform.
Referenced by draw().
|
protectedvirtual |
Definition at line 766 of file gl-render.cc.
References draw(), base_properties::get_all_children(), graphics_object::get_ancestor(), uibuttongroup::properties::get_backgroundcolor_rgb(), graphics_object::get_properties(), init_gl_context(), and figure::properties::is_graphicssmoothing().
Referenced by draw().
|
protectedvirtual |
Definition at line 748 of file gl-render.cc.
References draw(), base_properties::get_all_children(), graphics_object::get_ancestor(), uipanel::properties::get_backgroundcolor_rgb(), graphics_object::get_properties(), init_gl_context(), and figure::properties::is_graphicssmoothing().
Referenced by draw().
|
protectedvirtual |
Definition at line 3803 of file gl-render.cc.
References f, filled_marker_id, marker_id, panic_impossible, and set_linewidth().
Referenced by draw_line(), draw_patch(), and draw_surface().
|
virtual |
Definition at line 1077 of file gl-render.cc.
References panic_impossible.
Referenced by G__osmesa_print__().
|
inlinevirtual |
Definition at line 59 of file gl-render.h.
References xform().
Referenced by octave::opengl_selector::fake_text().
|
protectedvirtual |
Definition at line 784 of file gl-render.cc.
References c, f, Array< T >::numel(), panic_impossible, and warning().
Referenced by draw_figure(), draw_uibuttongroup(), and draw_uipanel().
|
protectedvirtual |
Reimplemented in octave::opengl_selector.
Definition at line 3763 of file gl-render.cc.
References filled_marker_id, make_marker_list(), marker_id, panic_impossible, set_clipping(), set_linewidth(), xZ1, and xZ2.
Referenced by draw_line(), draw_patch(), draw_surface(), and octave::opengl_selector::init_marker().
Definition at line 146 of file gl-render.h.
References octave::math::isinf(), and octave::math::isnan().
Referenced by draw_patch(), and draw_surface().
|
private |
Definition at line 3910 of file gl-render.cc.
References c, double, graphics_toolkit::get_screen_resolution(), max(), panic_impossible, sz, toolkit, and warning().
Referenced by init_marker().
|
private |
|
protectedvirtual |
Definition at line 855 of file gl-render.cc.
References Array< T >::numel(), panic_impossible, set_linestyle(), val, octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
protectedvirtual |
Reimplemented in octave::opengl_selector.
Definition at line 4111 of file gl-render.cc.
References Array< T >::data(), octave::text_renderer::ok(), panic_impossible, text_to_pixels(), and txt_renderer.
Referenced by render_ticktexts().
|
protectedvirtual |
Definition at line 931 of file gl-render.cc.
References Array< T >::numel(), panic_impossible, val, octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
protectedvirtual |
Definition at line 1007 of file gl-render.cc.
References b, max(), Array< T >::numel(), panic_impossible, render_text(), string, val, octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), and draw_axes_z_grid().
|
protectedvirtual |
Definition at line 3684 of file gl-render.cc.
References Array< T >::data(), p, panic_impossible, xmax, xmin, ymax, ymin, zmax, and zmin.
Referenced by draw_axes().
|
protectedvirtual |
Definition at line 3734 of file gl-render.cc.
References panic_impossible.
Referenced by draw_all_lights(), draw_axes_children(), draw_line(), and init_marker().
|
protectedvirtual |
Definition at line 3564 of file gl-render.cc.
References Array< T >::data(), panic_impossible, octave::text_renderer::set_color(), and txt_renderer.
Referenced by draw_axes_boxes(), draw_axes_planes(), draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), and draw_line().
|
protectedvirtual |
Definition at line 3585 of file gl-render.cc.
References octave_value::double_value(), base_properties::get(), octave::text_renderer::set_font(), octave_value::string_value(), and txt_renderer.
Referenced by draw_axes(), and draw_text().
|
inlineprotectedvirtual |
Definition at line 89 of file gl-render.h.
Referenced by draw_axes().
|
protectedvirtual |
Definition at line 3643 of file gl-render.cc.
References panic_impossible.
Referenced by draw_axes(), draw_axes_boxes(), draw_line(), draw_patch(), draw_surface(), and render_grid().
|
protectedvirtual |
Definition at line 3624 of file gl-render.cc.
References panic_impossible.
Referenced by draw_axes(), draw_line(), draw_patch(), draw_surface(), end_marker(), and init_marker().
Definition at line 3876 of file gl-render.cc.
References d, panic_impossible, view_vector, x, and y.
Referenced by draw_surface().
|
protectedvirtual |
Definition at line 3594 of file gl-render.cc.
References panic_impossible.
Referenced by draw_axes_planes(), draw_marker(), and draw_surface().
Definition at line 3481 of file gl-render.cc.
References panic_impossible.
Referenced by QtHandles::GLCanvas::draw(), and QtHandles::GLCanvas::selectFromAxes().
|
protectedvirtual |
Reimplemented in octave::opengl_selector.
Definition at line 1094 of file gl-render.cc.
References Array< T >::data(), axes::properties::get_opengl_matrix_1(), axes::properties::get_opengl_matrix_2(), axes::properties::get_transform(), axes::properties::get_transform_zlim(), panic_impossible, xform, xZ1, and xZ2.
Referenced by draw_axes(), and octave::opengl_selector::setup_opengl_transformation().
|
protectedvirtual |
Definition at line 4091 of file gl-render.cc.
References octave::text_renderer::text_to_pixels(), and txt_renderer.
Referenced by octave::opengl_selector::render_text(), and render_text().
|
protectedvirtual |
Definition at line 4101 of file gl-render.cc.
References octave::text_renderer::text_to_strlist(), and txt_renderer.
|
private |
Definition at line 201 of file gl-render.h.
|
private |
Definition at line 201 of file gl-render.h.
|
private |
Definition at line 210 of file gl-render.h.
Referenced by draw_all_lights(), and draw_light().
|
private |
Definition at line 198 of file gl-render.h.
Referenced by draw_marker(), end_marker(), and init_marker().
|
private |
Definition at line 204 of file gl-render.h.
|
private |
Definition at line 198 of file gl-render.h.
Referenced by draw_marker(), end_marker(), and init_marker().
|
private |
Definition at line 211 of file gl-render.h.
Referenced by draw_all_lights(), and draw_axes_children().
|
private |
Definition at line 209 of file gl-render.h.
Referenced by draw_all_lights(), draw_axes_children(), draw_patch(), and draw_surface().
|
private |
Definition at line 184 of file gl-render.h.
Referenced by draw(), and make_marker_list().
|
private |
Definition at line 206 of file gl-render.h.
Referenced by render_text(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().
|
private |
Definition at line 201 of file gl-render.h.
Referenced by draw_axes_children(), draw_patch(), and set_normal().
|
private |
Definition at line 187 of file gl-render.h.
Referenced by draw_axes_x_grid(), draw_axes_y_grid(), draw_axes_z_grid(), draw_image(), draw_line(), draw_marker(), draw_patch(), draw_surface(), draw_text(), and setup_opengl_transformation().
|
private |
Definition at line 190 of file gl-render.h.
Referenced by draw_image(), and set_clipbox().
|
private |
Definition at line 190 of file gl-render.h.
Referenced by draw_image(), and set_clipbox().
|
private |
Definition at line 195 of file gl-render.h.
Referenced by init_marker(), and setup_opengl_transformation().
|
private |
Definition at line 195 of file gl-render.h.
Referenced by init_marker(), and setup_opengl_transformation().
|
private |
Definition at line 191 of file gl-render.h.
Referenced by draw_image(), and set_clipbox().
|
private |
Definition at line 191 of file gl-render.h.
Referenced by draw_image(), and set_clipbox().
|
private |
Definition at line 192 of file gl-render.h.
Referenced by draw_line(), and set_clipbox().
|
private |
Definition at line 192 of file gl-render.h.
Referenced by draw_line(), and set_clipbox().