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
[legend]
Collaboration diagram for opengl_selector:
Collaboration graph
[legend]

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  )
inline

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

virtual opengl_selector::~opengl_selector ( void  )
inlinevirtual

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

Member Function Documentation

void opengl_selector::apply_pick_matrix ( void  )
private

Definition at line 32 of file gl-select.cc.

References size, xp, and yp.

Referenced by init_marker(), and setup_opengl_transformation().

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

Definition at line 134 of file gl-select.cc.

References object_map.

Referenced by select().

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

Definition at line 145 of file gl-select.cc.

References Array< T >::data().

Referenced by draw_text(), and render_text().

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

Definition at line 54 of file gl-select.cc.

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 
)
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 
)
void opengl_selector::setup_opengl_transformation ( const axes::properties props)
protectedvirtual

Definition at line 47 of file gl-select.cc.

References apply_pick_matrix().

Member Data Documentation

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

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

Referenced by draw(), and select().

int opengl_selector::size
private

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

Referenced by apply_pick_matrix().

int opengl_selector::xp
private

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

Referenced by apply_pick_matrix(), and select().

int opengl_selector::yp
private

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: