GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
opengl_selector Class Reference

#include "gl-select.h"

Inheritance diagram for opengl_selector:
Inheritance graph
Collaboration diagram for opengl_selector:
Collaboration graph

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_objectobject_map
int size
int xp
int yp

Detailed Description

Definition at line 36 of file gl-select.h.

Constructor & Destructor Documentation

opengl_selector::opengl_selector ( void  )

Definition at line 39 of file gl-select.h.

virtual opengl_selector::~opengl_selector ( void  )

Definition at line 41 of file gl-select.h.

Member Function Documentation

void opengl_selector::apply_pick_matrix ( void  )

Definition at line 32 of file

References size, xp, and yp.

Referenced by init_marker(), and setup_opengl_transformation().

void opengl_selector::draw ( const graphics_object go,
bool  toplevel = true 

Definition at line 134 of file

References object_map.

Referenced by select().

void opengl_selector::draw_image ( const image::properties props)
void opengl_selector::draw_text ( const text::properties props)
void opengl_selector::fake_text ( double  x,
double  y,
double  z,
const Matrix bbox,
bool  use_scale = true 

Definition at line 145 of file

References Array< T >::data().

Referenced by draw_text(), and render_text().

void opengl_selector::init_marker ( const std::string &  m,
double  size,
float  width 

Definition at line 54 of file

References apply_pick_matrix().

Matrix opengl_selector::render_text ( const std::string &  txt,
double  x,
double  y,
double  z,
int  halign,
int  valign,
double  rotation = 0.0 

Definition at line 186 of file

References fake_text().

graphics_object opengl_selector::select ( const graphics_object ax,
int  x,
int  y,
int  flags = 0 
void opengl_selector::setup_opengl_transformation ( const axes::properties props)

Definition at line 47 of file

References apply_pick_matrix().

Member Data Documentation

std::map<GLuint, graphics_object> opengl_selector::object_map

Definition at line 75 of file gl-select.h.

Referenced by draw(), and select().

int opengl_selector::size

Definition at line 72 of file gl-select.h.

Referenced by apply_pick_matrix().

int opengl_selector::xp

Definition at line 69 of file gl-select.h.

Referenced by apply_pick_matrix(), and select().

int opengl_selector::yp

Definition at line 69 of file gl-select.h.

Referenced by apply_pick_matrix(), and select().

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