Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

EMAN::GLUtil Class Reference

#include <glutil.h>

List of all members.

Static Public Member Functions

unsigned int gen_glu_mipmaps (const EMData *const emdata)
 create an OpenGL mipmap set
unsigned int gen_gl_texture (const EMData *const emdata)
 create an OpenGL texture
unsigned int render_amp8_gl_texture (EMData *emdata, int x0, int y0, int ixsize, int iysize, int bpl, float scale, int mingray, int maxgray, float render_min, float render_max, float gamma, int flags)
 create an OpenGL texture using render_amp8
int nearest_projected_points (const vector< float > &model_matrix, const vector< float > &proj_matrix, const vector< int > &view_matrix, const vector< Vec3f > &points, const float mouse_x, const float mouse_y, const float &nearnes)
 Determine the intersection of ....
void colored_rectangle (const vector< float > &data, const float &alpha, const bool center_point=false)
void mx_bbox (const vector< float > &data, const vector< float > &text_color, const vector< float > &bg_color)
std::string render_amp8 (EMData *emdata, int x, int y, int xsize, int ysize, int bpl, float scale, int min_gray, int max_gray, float min_render, float max_render, float gamma, int flags)
 Render the image into an 8-bit image.
unsigned long get_isosurface_dl (MarchingCubes *mc, unsigned int tex_id=0, bool surface_face_z=false)
 Get an isosurface display list Traverses the tree, marches the cubes, and renders a display list using the associated vertices and normals Uses OpenGL arrays for maximum performance.


Member Function Documentation

void EMAN::GLUtil::colored_rectangle const vector< float > &  data,
const float &  alpha,
const bool  center_point = false
[static]
 

unsigned int EMAN::GLUtil::gen_gl_texture const EMData *const   emdata  )  [static]
 

create an OpenGL texture

Returns:
the texture id used in the call to glBindTextures

unsigned int EMAN::GLUtil::gen_glu_mipmaps const EMData *const   emdata  )  [static]
 

create an OpenGL mipmap set

Returns:
the texture id used in the call to glBindTextures

unsigned long EMAN::GLUtil::get_isosurface_dl MarchingCubes mc,
unsigned int  tex_id = 0,
bool  surface_face_z = false
[static]
 

Get an isosurface display list Traverses the tree, marches the cubes, and renders a display list using the associated vertices and normals Uses OpenGL arrays for maximum performance.

Returns:
an OpenGL display list number

void EMAN::GLUtil::mx_bbox const vector< float > &  data,
const vector< float > &  text_color,
const vector< float > &  bg_color
[static]
 

int EMAN::GLUtil::nearest_projected_points const vector< float > &  model_matrix,
const vector< float > &  proj_matrix,
const vector< int > &  view_matrix,
const vector< Vec3f > &  points,
const float  mouse_x,
const float  mouse_y,
const float &  nearnes
[static]
 

Determine the intersection of ....

just ask David Woolford

std::string EMAN::GLUtil::render_amp8 EMData emdata,
int  x,
int  y,
int  xsize,
int  ysize,
int  bpl,
float  scale,
int  min_gray,
int  max_gray,
float  min_render,
float  max_render,
float  gamma,
int  flags
[static]
 

Render the image into an 8-bit image.

2D images only. flags provide a way to do unusual things with this function, such as calculating a histogram of the rendered area.

Parameters:
x origin of the area to render
y 
xsize size of the area to render in output pixels
ysize 
bpl bytes per line, if asrgb remember *3
scale scale factor for rendering
min_gray minimum gray value to render (0-255)
max_gray maximum gray value to render (0-255)
min_render float image density corresponding to min_gray
max_render float image density corresponding to max_gray
gamma 
flags 1-duplicate each output pixel 3x for RGB rendering,2-add a 256 int greyscale histogram to the end of the image array,4-invert y axis,8-render 32 bit 0xffRRGGBB
Exceptions:
ImageDimensionException If the image is not 2D.

unsigned int EMAN::GLUtil::render_amp8_gl_texture EMData emdata,
int  x0,
int  y0,
int  ixsize,
int  iysize,
int  bpl,
float  scale,
int  mingray,
int  maxgray,
float  render_min,
float  render_max,
float  gamma,
int  flags
[static]
 

create an OpenGL texture using render_amp8

Returns:
the texture id used in the call to glBindTextures


The documentation for this class was generated from the following file:
Generated on Fri Apr 30 15:39:17 2010 for EMAN2 by  doxygen 1.3.9.1