Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

glps_renderer Class Reference

#include "gl2ps-renderer.h"

Inheritance diagram for glps_renderer:
Inheritance graph
[legend]
Collaboration diagram for glps_renderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 glps_renderer (const int _fid, const std::string &_term)
 ~glps_renderer (void)
virtual void draw (const graphics_object &go, bool toplevel=true)
virtual void draw (const Matrix &hlist, bool toplevel=false)
void draw (const graphics_object &go)
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_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)
void draw_pixels (GLsizei w, GLsizei h, GLenum format, GLenum type, const GLvoid *data)
virtual void draw_surface (const surface::properties &props)
void draw_text (const text::properties &props)
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 std::string &gridstyle, const Matrix &ticks, double lim1, double lim2, double p1, double p1N, double p2, double p2N, int xyz, bool is_3D)
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)
void set_font (const base_properties &props)
void set_linestyle (const std::string &s, bool use_stipple)
void set_linewidth (float w)
void set_polygon_offset (bool on, double offset=0.0)
virtual void text_to_pixels (const std::string &txt, uint8NDArray &pixels, Matrix &bbox, int halign=0, int valign=0, double rotation=0.0)

Private Member Functions

int alignment_to_mode (int ha, int va) const

Private Attributes

int fid
std::string fontname
double fontsize
caseless_str term

Detailed Description

Definition at line 29 of file gl2ps-renderer.h.


Constructor & Destructor Documentation

glps_renderer::glps_renderer ( const int  _fid,
const std::string &  _term 
) [inline]

Definition at line 30 of file gl2ps-renderer.h.

glps_renderer::~glps_renderer ( void   )  [inline]

Definition at line 34 of file gl2ps-renderer.h.


Member Function Documentation

int glps_renderer::alignment_to_mode ( int  ha,
int  va 
) const [private]
void glps_renderer::draw ( const graphics_object &  go  ) 
virtual void opengl_renderer::draw ( const graphics_object &  go,
bool  toplevel = true 
) [virtual, inherited]
virtual void opengl_renderer::draw ( const Matrix hlist,
bool  toplevel = false 
) [inline, virtual, inherited]

Definition at line 60 of file gl-render.h.

virtual void opengl_renderer::draw_axes ( const axes::properties &  props  )  [protected, virtual, inherited]
virtual void opengl_renderer::draw_figure ( const figure::properties &  props  )  [protected, virtual, inherited]
virtual void opengl_renderer::draw_hggroup ( const hggroup::properties &  props  )  [protected, virtual, inherited]
virtual void opengl_renderer::draw_image ( const image::properties &  props  )  [protected, virtual, inherited]
virtual void opengl_renderer::draw_line ( const line::properties &  props  )  [protected, virtual, inherited]
virtual void opengl_renderer::draw_marker ( double  x,
double  y,
double  z,
const Matrix lc,
const Matrix fc 
) [protected, virtual, inherited]
virtual void opengl_renderer::draw_patch ( const patch::properties &  props  )  [protected, virtual, inherited]
void glps_renderer::draw_pixels ( GLsizei  w,
GLsizei  h,
GLenum  format,
GLenum  type,
const GLvoid *  data 
) [protected, virtual]

Reimplemented from opengl_renderer.

virtual void opengl_renderer::draw_surface ( const surface::properties &  props  )  [protected, virtual, inherited]
void glps_renderer::draw_text ( const text::properties &  props  )  [protected, virtual]

Reimplemented from opengl_renderer.

virtual void opengl_renderer::draw_uipanel ( const uipanel::properties &  props,
const graphics_object &  go 
) [protected, virtual, inherited]
virtual void opengl_renderer::end_marker ( void   )  [protected, virtual, inherited]
virtual graphics_xform opengl_renderer::get_transform ( void   )  const [inline, virtual, inherited]

Definition at line 74 of file gl-render.h.

virtual void opengl_renderer::init_gl_context ( bool  enhanced,
const Matrix backgroundColor 
) [protected, virtual, inherited]
virtual void opengl_renderer::init_marker ( const std::string &  m,
double  size,
float  width 
) [protected, virtual, inherited]
virtual void opengl_renderer::render_grid ( const std::string &  gridstyle,
const Matrix ticks,
double  lim1,
double  lim2,
double  p1,
double  p1N,
double  p2,
double  p2N,
int  xyz,
bool  is_3D 
) [protected, virtual, inherited]
Matrix glps_renderer::render_text ( const std::string &  txt,
double  x,
double  y,
double  z,
int  halign,
int  valign,
double  rotation = 0.0 
) [protected, virtual]

Reimplemented from opengl_renderer.

virtual void opengl_renderer::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 
) [protected, virtual, inherited]
virtual void opengl_renderer::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 
) [protected, virtual, inherited]
virtual void opengl_renderer::set_clipbox ( double  x1,
double  x2,
double  y1,
double  y2,
double  z1,
double  z2 
) [protected, virtual, inherited]
virtual void opengl_renderer::set_clipping ( bool  on  )  [protected, virtual, inherited]
virtual void opengl_renderer::set_color ( const Matrix c  )  [protected, virtual, inherited]
void glps_renderer::set_font ( const base_properties &  props  )  [protected, virtual]

Reimplemented from opengl_renderer.

void glps_renderer::set_linestyle ( const std::string &  s,
bool  use_stipple 
) [inline, protected, virtual]

Reimplemented from opengl_renderer.

Definition at line 51 of file gl2ps-renderer.h.

void glps_renderer::set_linewidth ( float  w  )  [inline, protected, virtual]

Reimplemented from opengl_renderer.

Definition at line 69 of file gl2ps-renderer.h.

void glps_renderer::set_polygon_offset ( bool  on,
double  offset = 0.0 
) [inline, protected, virtual]

Reimplemented from opengl_renderer.

Definition at line 60 of file gl2ps-renderer.h.

virtual void opengl_renderer::set_viewport ( int  w,
int  h 
) [virtual, inherited]
virtual void opengl_renderer::text_to_pixels ( const std::string &  txt,
uint8NDArray pixels,
Matrix bbox,
int  halign = 0,
int  valign = 0,
double  rotation = 0.0 
) [protected, virtual, inherited]

Member Data Documentation

Definition at line 76 of file gl2ps-renderer.h.

std::string glps_renderer::fontname [private]

Definition at line 79 of file gl2ps-renderer.h.

Definition at line 78 of file gl2ps-renderer.h.

Definition at line 77 of file gl2ps-renderer.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines