GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "gl-select.h"
Public Member Functions | |
opengl_selector (void) | |
virtual | ~opengl_selector (void) |
virtual void | draw (const graphics_object &go, bool toplevel=true) |
graphics_object | select (const graphics_object &ax, int x, int y, int flags=0) |
Protected Member Functions | |
virtual void | draw_image (const image::properties &props) |
virtual void | draw_text (const text::properties &props) |
virtual void | init_marker (const std::string &m, double size, float width) |
virtual Matrix | render_text (const std::string &txt, double x, double y, double z, int halign, int valign, double rotation=0.0) |
virtual void | setup_opengl_transformation (const axes::properties &props) |
Private Member Functions | |
void | apply_pick_matrix (void) |
void | fake_text (double x, double y, double z, const Matrix &bbox, bool use_scale=true) |
Private Attributes | |
std::map< GLuint, graphics_object > | object_map |
int | size |
int | xp |
int | yp |
Definition at line 36 of file gl-select.h.
|
inline |
Definition at line 39 of file gl-select.h.
|
inlinevirtual |
Definition at line 41 of file gl-select.h.
|
private |
Definition at line 32 of file gl-select.cc.
Referenced by init_marker(), and setup_opengl_transformation().
|
virtual |
|
protectedvirtual |
Definition at line 206 of file gl-select.cc.
References Array< T >::columns(), Array< T >::data(), image::properties::get_cdata(), image::properties::get_xdata(), image::properties::get_ydata(), octave_value::matrix_value(), and Array< T >::rows().
|
protectedvirtual |
Definition at line 174 of file gl-select.cc.
References fake_text(), text::properties::get_data_position(), text::properties::get_extent_matrix(), text::properties::get_string(), octave_value::is_empty(), and Array< T >::numel().
|
private |
Definition at line 145 of file gl-select.cc.
References Array< T >::data().
Referenced by draw_text(), and render_text().
|
protectedvirtual |
Definition at line 54 of file gl-select.cc.
References apply_pick_matrix().
|
protectedvirtual |
Definition at line 186 of file gl-select.cc.
References fake_text().
graphics_object opengl_selector::select | ( | const graphics_object & | ax, |
int | x, | ||
int | y, | ||
int | flags = 0 |
||
) |
Definition at line 63 of file gl-select.cc.
References BUFFER_SIZE, draw(), graphics_object::get_properties(), base_properties::is_hittest(), min(), object_map, select_ignore_hittest, select_last, warning(), x, xp, and yp.
Referenced by QtHandles::GLCanvas::selectFromAxes().
|
protectedvirtual |
Definition at line 47 of file gl-select.cc.
References apply_pick_matrix().
|
private |
Definition at line 75 of file gl-select.h.
|
private |
Definition at line 72 of file gl-select.h.
Referenced by apply_pick_matrix().
|
private |
Definition at line 69 of file gl-select.h.
Referenced by apply_pick_matrix(), and select().
|
private |
Definition at line 69 of file gl-select.h.
Referenced by apply_pick_matrix(), and select().