#include "gl-select.h"
Public Member Functions | |
opengl_selector (opengl_functions &glfcns) | |
virtual | ~opengl_selector (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 |
graphics_object | select (const graphics_object &ax, int x, int y, int flags=0) |
virtual void | set_device_pixel_ratio (double dpr) |
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_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 | xform |
double | xmax |
double | xmin |
double | ymax |
double | ymin |
double | zmax |
double | zmin |
Private Member Functions | |
void | apply_pick_matrix (void) |
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 | fake_text (double x, double y, double z, const Matrix &bbox, bool use_scale=true) |
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 | set_normal (int bfl_mode, const NDArray &n, int j, int i) |
Private Attributes | |
ColumnVector | camera_dir |
ColumnVector | camera_pos |
unsigned int | filled_marker_id |
caseless_str | interpreter |
unsigned int | m_current_light |
unsigned int | m_max_lights |
bool | m_printing |
unsigned int | marker_id |
std::map< GLuint, graphics_object > | object_map |
bool | selecting |
int | size |
graphics_toolkit | toolkit |
text_renderer | txt_renderer |
ColumnVector | view_vector |
int | xp |
double | xZ1 |
double | xZ2 |
int | yp |
Definition at line 44 of file gl-select.h.
|
inline |
Definition at line 47 of file gl-select.h.
|
virtualdefault |
|
private |
Definition at line 36 of file gl-select.cc.
References octave::opengl_renderer::get_viewport_scaled(), octave::opengl_functions::glGetDoublev(), octave::opengl_functions::glLoadIdentity(), octave::opengl_functions::glMatrixMode(), octave::opengl_functions::glMultMatrixd(), octave::opengl_functions::glScalef(), octave::opengl_functions::glTranslatef(), octave::opengl_renderer::m_glfcns, size, xp, and yp.
Referenced by init_marker(), and setup_opengl_transformation().
|
inlineprivateinherited |
Definition at line 173 of file gl-render.h.
References octave::is_nan_or_inf(), x, xmax(), and xmin().
Referenced by octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), and octave::opengl_renderer::draw_text().
|
virtual |
Reimplemented from octave::opengl_renderer.
Definition at line 151 of file gl-select.cc.
References octave::opengl_renderer::draw(), octave::opengl_functions::glPopName(), octave::opengl_functions::glPushName(), octave::opengl_renderer::m_glfcns, name, object_map, and octave::opengl_renderer::set_selecting().
Referenced by select().
|
inherited |
Definition at line 3957 of file gl-render.cc.
References octave::__get_gh_manager__(), octave::opengl_renderer::draw(), gh_manager::get_object(), len, and Array< T >::numel().
|
privateinherited |
Definition at line 2153 of file gl-render.cc.
References octave::__get_gh_manager__(), octave::opengl_renderer::draw(), base_properties::get_all_children(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), octave::opengl_renderer::m_current_light, octave::opengl_renderer::m_max_lights, Array< T >::numel(), panic_impossible, octave::opengl_renderer::selecting, and octave::opengl_renderer::set_clipping().
Referenced by octave::opengl_renderer::draw_axes_children().
|
protectedvirtualinherited |
Definition at line 2292 of file gl-render.cc.
References octave::opengl_renderer::draw_axes_boxes(), octave::opengl_renderer::draw_axes_children(), octave::opengl_renderer::draw_axes_grids(), octave::opengl_renderer::draw_axes_planes(), axes::properties::get_is2D(), 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(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_renderer::m_glfcns, max(), panic_impossible, octave::opengl_renderer::selecting, octave::opengl_renderer::set_clipbox(), octave::opengl_renderer::setup_opengl_transformation(), and warning().
Referenced by octave::opengl_renderer::draw().
|
privateinherited |
Definition at line 1377 of file gl-render.cc.
References axes::properties::get_is2D(), axes::properties::get_layer2Dtop(), axes::properties::get_xPlane(), axes::properties::get_xPlaneN(), axes::properties::get_xpTick(), axes::properties::get_xpTickN(), axes::properties::get_xySym(), 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(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), base_properties::has_property(), Array< T >::isempty(), octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::set_color(), octave::opengl_renderer::set_linecap(), and octave::opengl_renderer::set_linestyle().
Referenced by octave::opengl_renderer::draw_axes().
|
privateinherited |
Definition at line 2201 of file gl-render.cc.
References octave::opengl_renderer::draw(), octave::opengl_renderer::draw_all_lights(), graphics_object::get(), axes::properties::get_num_lights(), graphics_object::get_properties(), octave::opengl_functions::glDisable(), octave::opengl_functions::glLightfv(), octave::opengl_renderer::init_maxlights(), graphics_object::isa(), octave::opengl_renderer::m_current_light, octave::opengl_renderer::m_glfcns, octave::opengl_renderer::m_max_lights, panic_impossible, octave::opengl_renderer::set_clipping(), octave_value::string_value(), octave::opengl_renderer::view_vector, and warning_with_id().
Referenced by octave::opengl_renderer::draw_axes().
|
privateinherited |
Definition at line 2118 of file gl-render.cc.
References octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glGetBooleanv(), octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::set_font(), octave::opengl_renderer::set_interpreter(), octave::opengl_renderer::set_linecap(), and octave::opengl_renderer::set_linewidth().
Referenced by octave::opengl_renderer::draw_axes().
|
privateinherited |
Definition at line 1317 of file gl-render.cc.
References 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(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), Array< T >::isempty(), octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::set_color(), and octave::opengl_renderer::set_polygon_offset().
Referenced by octave::opengl_renderer::draw_axes().
|
privateinherited |
Definition at line 1537 of file gl-render.cc.
References octave::__get_gh_manager__(), AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_HORZ_DIR, AXE_VERT_DIR, axes::properties::get_fy(), axes::properties::get_fz(), axes::properties::get_is2D(), axes::properties::get_layer2Dtop(), 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_xstate(), axes::properties::get_xticklen(), axes::properties::get_xtickoffset(), axes::properties::get_xyzSym(), axes::properties::get_y_max(), axes::properties::get_y_min(), 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(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), Array< T >::isempty(), octave::math::isinf(), octave::opengl_renderer::m_glfcns, octave::math::max(), octave::math::min(), string_vector::numel(), panic_impossible, octave::opengl_renderer::render_grid(), octave::opengl_renderer::render_tickmarks(), octave::opengl_renderer::render_ticktexts(), octave::opengl_renderer::selecting, graphics_object::set(), octave::opengl_renderer::set_color(), octave::math::signum(), octave::opengl_renderer::xform, and graphics_xform::xscale().
Referenced by octave::opengl_renderer::draw_axes_grids().
|
privateinherited |
Definition at line 1734 of file gl-render.cc.
References octave::__get_gh_manager__(), AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_HORZ_DIR, AXE_VERT_DIR, axes::properties::get_fx(), axes::properties::get_fz(), axes::properties::get_is2D(), axes::properties::get_layer2Dtop(), axes::properties::get_nearhoriz(), gh_manager::get_object(), axes::properties::get_x_max(), axes::properties::get_x_min(), 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_ystate(), 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(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), base_properties::has_property(), Array< T >::isempty(), octave::math::isinf(), octave::opengl_renderer::m_glfcns, octave::math::max(), octave::math::min(), string_vector::numel(), panic_impossible, octave::opengl_renderer::render_grid(), octave::opengl_renderer::render_tickmarks(), octave::opengl_renderer::render_ticktexts(), octave::opengl_renderer::selecting, graphics_object::set(), octave::opengl_renderer::set_color(), octave::math::signum(), octave::opengl_renderer::xform, and graphics_xform::yscale().
Referenced by octave::opengl_renderer::draw_axes_grids().
|
privateinherited |
Definition at line 1932 of file gl-render.cc.
References octave::__get_gh_manager__(), AXE_ANY_DIR, AXE_DEPTH_DIR, AXE_VERT_DIR, axes::properties::get_fx(), axes::properties::get_fy(), 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_zSign(), axes::properties::get_zstate(), axes::properties::get_zticklen(), axes::properties::get_ztickoffset(), Array< T >::isempty(), octave::math::isinf(), string_vector::numel(), octave::opengl_renderer::render_grid(), octave::opengl_renderer::render_tickmarks(), octave::opengl_renderer::render_ticktexts(), octave::opengl_renderer::selecting, graphics_object::set(), octave::opengl_renderer::set_color(), octave::math::signum(), octave::opengl_renderer::xform, and graphics_xform::zscale().
Referenced by octave::opengl_renderer::draw_axes_grids().
|
protectedvirtualinherited |
Definition at line 777 of file gl-render.cc.
References octave::opengl_renderer::draw(), base_properties::get_all_children(), octave::opengl_renderer::get_string(), octave::opengl_renderer::init_gl_context(), and octave::opengl_renderer::m_printing.
Referenced by octave::opengl_renderer::draw().
|
protectedvirtualinherited |
Definition at line 3735 of file gl-render.cc.
References octave::opengl_renderer::draw(), and base_properties::get_children().
Referenced by octave::opengl_renderer::draw().
|
protectedvirtual |
Reimplemented from octave::opengl_renderer.
Definition at line 221 of file gl-select.cc.
References Array< T >::data(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3dv(), and octave::opengl_renderer::m_glfcns.
|
protectedvirtualinherited |
Definition at line 3698 of file gl-render.cc.
References octave::opengl_functions::glEnable(), octave::opengl_functions::glLightfv(), octave::opengl_renderer::m_current_light, octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by octave::opengl_renderer::draw().
|
protectedvirtualinherited |
Definition at line 2364 of file gl-render.cc.
References octave::opengl_renderer::clip_code(), octave::opengl_renderer::draw_marker(), octave::opengl_renderer::end_marker(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex2d(), octave::opengl_functions::glVertex3d(), octave::opengl_renderer::init_marker(), octave::opengl_renderer::m_glfcns, max(), min(), n, Array< T >::numel(), panic_impossible, octave::opengl_renderer::selecting, octave::opengl_renderer::set_clipping(), octave::opengl_renderer::set_color(), octave::opengl_renderer::set_linecap(), octave::opengl_renderer::set_linejoin(), octave::opengl_renderer::set_linestyle(), octave::opengl_renderer::set_linewidth(), x, octave::opengl_renderer::xform, graphics_xform::xscale(), graphics_xform::yscale(), octave::opengl_renderer::zmax, octave::opengl_renderer::zmin, and graphics_xform::zscale().
Referenced by octave::opengl_renderer::draw().
|
protectedvirtualinherited |
Definition at line 4302 of file gl-render.cc.
References Array< T >::data(), octave::opengl_renderer::filled_marker_id, octave::opengl_functions::glCallList(), octave::opengl_functions::glColor3dv(), octave::opengl_functions::glEdgeFlag(), octave::opengl_functions::glLoadIdentity(), octave::opengl_functions::glPolygonMode(), octave::opengl_functions::glTranslated(), octave::opengl_renderer::m_glfcns, octave::opengl_renderer::marker_id, Array< T >::numel(), panic_impossible, octave::opengl_renderer::set_polygon_offset(), graphics_xform::transform(), x, and octave::opengl_renderer::xform.
Referenced by octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
protectedvirtualinherited |
Definition at line 3159 of file gl-render.cc.
References octave::opengl_tessellator::add_vertex(), octave::vertex_data::vertex_data_rep::ambient, octave::opengl_tessellator::begin_contour(), octave::opengl_tessellator::begin_polygon(), octave::opengl_renderer::clip_code(), octave::vertex_data::vertex_data_rep::color, Array< T >::columns(), octave::vertex_data::vertex_data_rep::coords, patch::properties::coplanar_last_idx, Array< T >::data(), octave::vertex_data::vertex_data_rep::diffuse, octave::opengl_renderer::draw_marker(), octave::opengl_tessellator::end_contour(), octave::opengl_renderer::end_marker(), octave::opengl_tessellator::end_polygon(), octave::f(), octave::FLAT, Array< T >::fortran_vec(), patch::properties::get_color_data(), patch::properties::get_do_lighting(), octave::opengl_functions::glBegin(), octave::opengl_functions::glColor3dv(), octave::opengl_functions::glColor4d(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glEnd(), octave::opengl_functions::glMaterialf(), octave::opengl_functions::glMaterialfv(), octave::opengl_functions::glShadeModel(), octave::opengl_functions::glVertex3d(), octave::GOURAUD, patch::properties::has_bad_data(), octave::opengl_renderer::init_marker(), octave::INTERP, octave::opengl_renderer::is_nan_or_inf(), Array< T >::isempty(), octave::math::isnan(), LIGHT_MODE, m, octave::opengl_renderer::m_glfcns, octave_value::matrix_value(), Array< T >::numel(), panic_impossible, Matrix::resize(), Array< T >::rows(), graphics_xform::scale(), octave::opengl_renderer::selecting, octave::opengl_renderer::set_linecap(), octave::opengl_renderer::set_linejoin(), octave::opengl_renderer::set_linestyle(), octave::opengl_renderer::set_linewidth(), octave::vertex_data::vertex_data_rep::specular, octave::vertex_data::vertex_data_rep::specular_color_refl, octave::UNIFORM, octave::opengl_renderer::view_vector, warning(), and octave::opengl_renderer::xform.
Referenced by octave::opengl_renderer::draw().
|
protectedvirtualinherited |
Definition at line 2510 of file gl-render.cc.
References octave_value::array_value(), octave::opengl_renderer::clip_code(), Array< T >::columns(), octave::opengl_texture::create(), Array< T >::data(), Array< T >::dims(), octave::opengl_renderer::draw_marker(), octave::opengl_renderer::end_marker(), octave::FLAT, surface::properties::get_color_data(), surface::properties::get_do_lighting(), octave::opengl_functions::glBegin(), octave::opengl_functions::glColor3dv(), octave::opengl_functions::glColor3fv(), octave::opengl_functions::glColor4d(), octave::opengl_functions::glColor4fv(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glEnd(), octave::opengl_functions::glMaterialf(), octave::opengl_functions::glMaterialfv(), octave::opengl_functions::glShadeModel(), octave::opengl_functions::glVertex3d(), octave::GOURAUD, octave::opengl_renderer::init_marker(), octave::INTERP, octave::opengl_renderer::is_nan_or_inf(), Array< T >::isempty(), octave::math::isfinite(), LIGHT_MODE, octave::opengl_renderer::m_glfcns, min(), panic_impossible, Array< T >::rows(), octave::opengl_renderer::selecting, octave::opengl_renderer::set_linecap(), octave::opengl_renderer::set_linejoin(), octave::opengl_renderer::set_linestyle(), octave::opengl_renderer::set_linewidth(), octave::opengl_renderer::set_normal(), octave::opengl_renderer::set_polygon_offset(), octave::opengl_texture::tex_coord(), octave::TEXTURE, octave::UNIFORM, x, octave::opengl_renderer::xform, graphics_xform::xscale(), graphics_xform::yscale(), and graphics_xform::zscale().
Referenced by octave::opengl_renderer::draw().
|
protectedvirtual |
Reimplemented from octave::opengl_renderer.
Definition at line 193 of file gl-select.cc.
References fake_text(), and Array< T >::numel().
|
protectedvirtualinherited |
Definition at line 3788 of file gl-render.cc.
References octave::opengl_renderer::get_transform(), octave::opengl_renderer::get_viewport_scaled(), octave::opengl_functions::glBegin(), octave::opengl_functions::glColor3f(), octave::opengl_functions::glEnd(), octave::opengl_functions::glIsEnabled(), octave::opengl_functions::glLoadIdentity(), octave::opengl_functions::glMatrixMode(), octave::opengl_functions::glOrtho(), octave::opengl_functions::glPopMatrix(), octave::opengl_functions::glPushMatrix(), octave::opengl_functions::glRotated(), octave::opengl_functions::glTranslated(), octave::opengl_functions::glVertex2d(), Array< T >::isempty(), m, octave::opengl_renderer::m_devpixratio, octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::points_to_pixels(), octave::opengl_renderer::set_linestyle(), octave::opengl_renderer::set_linewidth(), octave::opengl_renderer::set_polygon_offset(), graphics_xform::transform(), octave::opengl_renderer::xZ1, and octave::opengl_renderer::xZ2.
Referenced by octave::opengl_renderer::draw_text().
|
protectedvirtualinherited |
Definition at line 817 of file gl-render.cc.
References octave::opengl_renderer::draw(), base_properties::get_all_children(), graphics_object::get_ancestor(), graphics_object::get_properties(), and octave::opengl_renderer::init_gl_context().
Referenced by octave::opengl_renderer::draw().
|
protectedvirtualinherited |
Definition at line 799 of file gl-render.cc.
References octave::opengl_renderer::draw(), base_properties::get_all_children(), graphics_object::get_ancestor(), graphics_object::get_properties(), and octave::opengl_renderer::init_gl_context().
Referenced by octave::opengl_renderer::draw().
|
virtualinherited |
Definition at line 1153 of file gl-render.cc.
References octave::opengl_renderer::draw_zoom_rect(), octave::opengl_functions::glBegin(), octave::opengl_functions::glColor4f(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnd(), octave::opengl_functions::glLineWidth(), octave::opengl_functions::glLoadIdentity(), octave::opengl_functions::glMatrixMode(), octave::opengl_functions::glOrtho(), octave::opengl_functions::glPopAttrib(), octave::opengl_functions::glPopMatrix(), octave::opengl_functions::glPushAttrib(), octave::opengl_functions::glPushMatrix(), octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by QtHandles::GLCanvas::drawZoomBox().
|
protectedvirtualinherited |
Definition at line 1127 of file gl-render.cc.
References octave::opengl_functions::glVertex2d(), octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by octave::opengl_renderer::draw_zoom_box().
|
protectedvirtualinherited |
Definition at line 4278 of file gl-render.cc.
References octave::opengl_renderer::filled_marker_id, octave::opengl_functions::glDeleteLists(), octave::opengl_functions::glMatrixMode(), octave::opengl_functions::glPopMatrix(), octave::opengl_renderer::m_glfcns, octave::opengl_renderer::marker_id, panic_impossible, and octave::opengl_renderer::set_linewidth().
Referenced by octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
private |
Definition at line 164 of file gl-select.cc.
References Array< T >::data(), octave::opengl_renderer::get_transform(), octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3dv(), octave::opengl_renderer::m_glfcns, graphics_xform::transform(), graphics_xform::untransform(), and x.
Referenced by draw_text(), and render_text().
|
virtualinherited |
Definition at line 1255 of file gl-render.cc.
References octave::opengl_functions::glFinish(), octave::opengl_renderer::m_glfcns, and panic_impossible.
|
inlineinherited |
Definition at line 54 of file gl-render.h.
|
virtualinherited |
Definition at line 1218 of file gl-render.cc.
References idx_vector::colon, Array< T >::fortran_vec(), octave::opengl_functions::glPixelStorei(), octave::opengl_functions::glReadPixels(), octave::opengl_renderer::m_glfcns, idx_vector::make_range(), panic_impossible, and MArray< T >::permute().
Referenced by QtHandles::GLCanvas::do_getPixels().
|
privateinherited |
Definition at line 4374 of file gl-render.cc.
References octave::opengl_functions::glGetString(), octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by octave::opengl_renderer::draw_figure().
|
inlinevirtualinherited |
Definition at line 66 of file gl-render.h.
References xform().
Referenced by octave::opengl_renderer::draw_text_background(), and fake_text().
|
virtualinherited |
Definition at line 3993 of file gl-render.cc.
References octave::opengl_functions::glGetIntegerv(), octave::opengl_renderer::m_devpixratio, octave::opengl_renderer::m_glfcns, panic_impossible, and retval.
Referenced by apply_pick_matrix(), octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::init_marker(), and octave::opengl_renderer::setup_opengl_transformation().
|
protectedvirtualinherited |
Definition at line 835 of file gl-render.cc.
References octave::opengl_functions::glAlphaFunc(), octave::opengl_functions::glBlendFunc(), octave::opengl_functions::glClear(), octave::opengl_functions::glClearColor(), octave::opengl_functions::glDepthFunc(), octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glGetError(), octave::opengl_functions::glGetIntegerv(), octave::opengl_functions::glHint(), octave::opengl_renderer::m_glfcns, Array< T >::numel(), panic_impossible, and warning().
Referenced by octave::opengl_renderer::draw_figure(), octave::opengl_renderer::draw_uibuttongroup(), and octave::opengl_renderer::draw_uipanel().
|
protectedvirtual |
Reimplemented from octave::opengl_renderer.
Definition at line 71 of file gl-select.cc.
References apply_pick_matrix(), octave::opengl_renderer::init_marker(), and m.
|
privateinherited |
Definition at line 4351 of file gl-render.cc.
References octave::opengl_functions::glGetIntegerv(), octave::opengl_renderer::m_glfcns, octave::opengl_renderer::m_max_lights, and panic_impossible.
Referenced by octave::opengl_renderer::draw_axes_children().
|
inlineprivateinherited |
Definition at line 165 of file gl-render.h.
References octave::math::isinf(), octave::math::isnan(), and x.
Referenced by octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
privateinherited |
Definition at line 4454 of file gl-render.cc.
References octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glEndList(), octave::opengl_functions::glGenLists(), octave::opengl_functions::glNewList(), octave::opengl_functions::glVertex2d(), octave::opengl_renderer::m_glfcns, max(), panic_impossible, octave::opengl_renderer::points_to_pixels(), r, and warning().
Referenced by octave::opengl_renderer::init_marker().
|
privateinherited |
Definition at line 4436 of file gl-render.cc.
References octave::__get_gh_manager__(), octave_value::double_value(), graphics_object::get(), gh_manager::get_object(), octave::opengl_renderer::m_printing, and retval.
Referenced by octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::make_marker_list(), octave::opengl_renderer::set_linestyle(), and octave::opengl_renderer::set_linewidth().
|
protectedvirtualinherited |
Definition at line 905 of file gl-render.cc.
References octave::opengl_functions::glBegin(), octave::opengl_functions::glColor3dv(), octave::opengl_functions::glColor4d(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), octave::opengl_renderer::m_glfcns, Array< T >::numel(), panic_impossible, octave::opengl_renderer::set_linestyle(), octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), and octave::opengl_renderer::draw_axes_z_grid().
|
protectedvirtual |
Reimplemented from octave::opengl_renderer.
Definition at line 205 of file gl-select.cc.
References fake_text(), octave::opengl_renderer::text_to_pixels(), and x.
|
protectedvirtualinherited |
Definition at line 981 of file gl-render.cc.
References octave::opengl_functions::glBegin(), octave::opengl_functions::glEnd(), octave::opengl_functions::glVertex3d(), octave::opengl_renderer::m_glfcns, Array< T >::numel(), panic_impossible, octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), and octave::opengl_renderer::draw_axes_z_grid().
|
protectedvirtualinherited |
Definition at line 1057 of file gl-render.cc.
References max(), Array< T >::numel(), string_vector::numel(), panic_impossible, octave::opengl_renderer::render_text(), octave::X_AXIS, octave::Y_AXIS, and octave::Z_AXIS.
Referenced by octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), and octave::opengl_renderer::draw_axes_z_grid().
graphics_object octave::opengl_selector::select | ( | const graphics_object & | ax, |
int | x, | ||
int | y, | ||
int | flags = 0 |
||
) |
Definition at line 80 of file gl-select.cc.
References BUFFER_SIZE, draw(), graphics_object::get_properties(), octave::opengl_functions::glDepthFunc(), octave::opengl_functions::glEnable(), octave::opengl_functions::glInitNames(), octave::opengl_functions::glRenderMode(), octave::opengl_functions::glSelectBuffer(), octave::opengl_renderer::m_glfcns, min(), n, name, object_map, octave::select_ignore_hittest, octave::select_last, warning(), x, xp, and yp.
Referenced by QtHandles::GLCanvas::selectFromAxes().
|
protectedvirtualinherited |
Definition at line 4166 of file gl-render.cc.
References Array< T >::data(), octave::opengl_functions::glClipPlane(), octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::xmax, octave::opengl_renderer::xmin, octave::opengl_renderer::ymax, octave::opengl_renderer::ymin, octave::opengl_renderer::zmax, and octave::opengl_renderer::zmin.
Referenced by octave::opengl_renderer::draw_axes().
|
protectedvirtualinherited |
Definition at line 4216 of file gl-render.cc.
References octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glIsEnabled(), octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by octave::opengl_renderer::draw_all_lights(), octave::opengl_renderer::draw_axes_children(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_text(), and octave::opengl_renderer::init_marker().
|
protectedvirtualinherited |
Definition at line 4022 of file gl-render.cc.
References Array< T >::data(), octave::opengl_functions::glColor3dv(), Array< T >::isempty(), octave::opengl_renderer::m_glfcns, panic_impossible, octave::text_renderer::set_color(), and octave::opengl_renderer::txt_renderer.
Referenced by octave::opengl_renderer::draw_axes_boxes(), octave::opengl_renderer::draw_axes_planes(), octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), and octave::opengl_renderer::draw_line().
|
inlinevirtualinherited |
Definition at line 64 of file gl-render.h.
Referenced by QtHandles::GLCanvas::do_getPixels(), and QtHandles::GLCanvas::draw().
|
protectedvirtualinherited |
Definition at line 4044 of file gl-render.cc.
References octave_value::double_value(), base_properties::get(), octave::opengl_renderer::m_devpixratio, octave::text_renderer::set_anti_aliasing(), octave::text_renderer::set_font(), octave_value::string_value(), and octave::opengl_renderer::txt_renderer.
Referenced by octave::opengl_renderer::draw_axes_grids(), and octave::opengl_renderer::draw_text().
|
inlineprotectedvirtualinherited |
Definition at line 102 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_axes_grids().
|
inlineprotectedvirtualinherited |
Definition at line 109 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_axes_boxes(), octave::opengl_renderer::draw_axes_grids(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
inlineprotectedvirtualinherited |
Definition at line 110 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
protectedvirtualinherited |
Definition at line 4105 of file gl-render.cc.
References octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glLineStipple(), octave::opengl_renderer::m_devpixratio, octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::points_to_pixels(), and octave::math::round().
Referenced by octave::opengl_renderer::draw_axes_boxes(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), octave::opengl_renderer::draw_text_background(), and octave::opengl_renderer::render_grid().
|
protectedvirtualinherited |
Definition at line 4086 of file gl-render.cc.
References octave::opengl_functions::glLineWidth(), octave::opengl_renderer::m_devpixratio, octave::opengl_renderer::m_glfcns, panic_impossible, octave::opengl_renderer::points_to_pixels(), and Faddeeva::w().
Referenced by octave::opengl_renderer::draw_axes_grids(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::end_marker(), and octave::opengl_renderer::init_marker().
|
privateinherited |
Definition at line 4402 of file gl-render.cc.
References d, octave::opengl_functions::glNormal3d(), octave::opengl_renderer::m_glfcns, n, panic_impossible, octave::opengl_renderer::view_vector, and x.
Referenced by octave::opengl_renderer::draw_surface().
|
protectedvirtualinherited |
Definition at line 4056 of file gl-render.cc.
References octave::opengl_functions::glDisable(), octave::opengl_functions::glEnable(), octave::opengl_functions::glPolygonOffset(), octave::opengl_renderer::m_glfcns, and panic_impossible.
Referenced by octave::opengl_renderer::draw_axes_planes(), octave::opengl_renderer::draw_marker(), octave::opengl_renderer::draw_surface(), and octave::opengl_renderer::draw_text_background().
|
inlineprotectedvirtualinherited |
Definition at line 112 of file gl-render.h.
Referenced by draw().
|
virtualinherited |
Definition at line 3973 of file gl-render.cc.
References octave::opengl_functions::glViewport(), octave::opengl_renderer::m_glfcns, panic_impossible, and Faddeeva::w().
Referenced by QtHandles::GLCanvas::do_getPixels(), QtHandles::GLCanvas::draw(), and QtHandles::GLCanvas::selectFromAxes().
|
protectedvirtual |
Reimplemented from octave::opengl_renderer.
Definition at line 64 of file gl-select.cc.
References apply_pick_matrix(), and octave::opengl_renderer::setup_opengl_transformation().
|
protectedvirtualinherited |
Definition at line 4637 of file gl-render.cc.
References octave::text_renderer::text_to_pixels(), and octave::opengl_renderer::txt_renderer.
Referenced by render_text(), and octave::opengl_renderer::render_text().
|
protectedvirtualinherited |
Definition at line 4647 of file gl-render.cc.
References octave::text_renderer::text_to_strlist(), and octave::opengl_renderer::txt_renderer.
|
privateinherited |
Definition at line 231 of file gl-render.h.
|
privateinherited |
Definition at line 231 of file gl-render.h.
|
privateinherited |
Definition at line 228 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_marker(), octave::opengl_renderer::end_marker(), and octave::opengl_renderer::init_marker().
|
privateinherited |
Definition at line 234 of file gl-render.h.
|
privateinherited |
Definition at line 239 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_all_lights(), octave::opengl_renderer::draw_axes_children(), and octave::opengl_renderer::draw_light().
|
protectedinherited |
Definition at line 214 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::get_viewport_scaled(), octave::opengl_renderer::set_font(), octave::opengl_renderer::set_linestyle(), and octave::opengl_renderer::set_linewidth().
|
protectedinherited |
Definition at line 206 of file gl-render.h.
Referenced by apply_pick_matrix(), draw(), octave::opengl_renderer::draw(), octave::opengl_renderer::draw_axes(), octave::opengl_renderer::draw_axes_boxes(), octave::opengl_renderer::draw_axes_children(), octave::opengl_renderer::draw_axes_grids(), octave::opengl_renderer::draw_axes_planes(), octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), draw_image(), octave::opengl_renderer::draw_image(), octave::opengl_renderer::draw_light(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_marker(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), octave::opengl_renderer::draw_text(), octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::draw_zoom_box(), octave::opengl_renderer::draw_zoom_rect(), octave::opengl_renderer::end_marker(), fake_text(), octave::opengl_renderer::finish(), octave::opengl_renderer::get_pixels(), octave::opengl_renderer::get_string(), octave::opengl_renderer::get_viewport_scaled(), octave::opengl_renderer::init_gl_context(), octave::opengl_renderer::init_marker(), octave::opengl_renderer::init_maxlights(), octave::opengl_renderer::make_marker_list(), octave::opengl_renderer::render_grid(), octave::opengl_renderer::render_text(), octave::opengl_renderer::render_tickmarks(), select(), octave::opengl_renderer::set_clipbox(), octave::opengl_renderer::set_clipping(), octave::opengl_renderer::set_color(), octave::opengl_renderer::set_linestyle(), octave::opengl_renderer::set_linewidth(), octave::opengl_renderer::set_normal(), octave::opengl_renderer::set_polygon_offset(), octave::opengl_renderer::set_viewport(), and octave::opengl_renderer::setup_opengl_transformation().
|
privateinherited |
Definition at line 240 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_all_lights(), octave::opengl_renderer::draw_axes_children(), and octave::opengl_renderer::init_maxlights().
|
privateinherited |
Definition at line 246 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_figure(), and octave::opengl_renderer::points_to_pixels().
|
privateinherited |
Definition at line 228 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_marker(), octave::opengl_renderer::end_marker(), and octave::opengl_renderer::init_marker().
|
private |
Definition at line 85 of file gl-select.h.
|
privateinherited |
Definition at line 243 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_all_lights(), octave::opengl_renderer::draw_axes(), octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::draw_surface().
|
private |
Definition at line 82 of file gl-select.h.
Referenced by apply_pick_matrix().
|
privateinherited |
Definition at line 222 of file gl-render.h.
Referenced by octave::opengl_renderer::draw().
|
privateinherited |
Definition at line 236 of file gl-render.h.
Referenced by octave::opengl_renderer::render_text(), octave::opengl_renderer::set_color(), octave::opengl_renderer::set_font(), octave::opengl_renderer::text_to_pixels(), and octave::opengl_renderer::text_to_strlist().
|
privateinherited |
Definition at line 231 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_axes_children(), octave::opengl_renderer::draw_patch(), and octave::opengl_renderer::set_normal().
|
protectedinherited |
Definition at line 217 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), octave::opengl_renderer::draw_line(), octave::opengl_renderer::draw_marker(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), octave::opengl_renderer::draw_text(), and octave::opengl_renderer::setup_opengl_transformation().
|
protectedinherited |
Definition at line 209 of file gl-render.h.
Referenced by octave::opengl_renderer::set_clipbox().
|
protectedinherited |
Definition at line 209 of file gl-render.h.
Referenced by octave::opengl_renderer::set_clipbox().
|
private |
Definition at line 79 of file gl-select.h.
Referenced by apply_pick_matrix(), and select().
|
privateinherited |
Definition at line 225 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::init_marker(), and octave::opengl_renderer::setup_opengl_transformation().
|
privateinherited |
Definition at line 225 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_text_background(), octave::opengl_renderer::init_marker(), and octave::opengl_renderer::setup_opengl_transformation().
|
protectedinherited |
Definition at line 210 of file gl-render.h.
Referenced by octave::opengl_renderer::set_clipbox().
|
protectedinherited |
Definition at line 210 of file gl-render.h.
Referenced by octave::opengl_renderer::set_clipbox().
|
private |
Definition at line 79 of file gl-select.h.
Referenced by apply_pick_matrix(), and select().
|
protectedinherited |
Definition at line 211 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_line(), and octave::opengl_renderer::set_clipbox().
|
protectedinherited |
Definition at line 211 of file gl-render.h.
Referenced by octave::opengl_renderer::draw_line(), and octave::opengl_renderer::set_clipbox().