40 #include "OpenGL/gl.h"
69 static 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);
74 static 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);
75 static void colored_rectangle(
const vector<float>& data,
const float& alpha,
const bool center_point=
false);
76 static void mx_bbox(
const vector<float>& data,
const vector<float>& text_color,
const vector<float>& bg_color);
97 int bpl,
float scale,
int min_gray,
int max_gray,
98 float min_render,
float max_render,
float gamma,
int flags);
EMData stores an image's data and defines core image processing routines.
static void mx_bbox(const vector< float > &data, const vector< float > &text_color, const vector< float > &bg_color)
static void render_using_VBOs(MarchingCubes *mc, unsigned int tex_id=0, bool surface_face_z=false)
Render a isosurface using buffer objects, this uses non-deprecated methods and improves performance.
static void colored_rectangle(const vector< float > &data, const float &alpha, const bool center_point=false)
static EMBytes 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.
static void glDrawBoundingBox(float width, float height, float depth)
Draw a bounding box.
static void glMultMatrix(const Transform &xform)
Mult a EMAN style transform to open GL w/o having to go through python Calls glMultTransposeMatrix ra...
static 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 ....
static 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
static unsigned int gen_glu_mipmaps(const EMData *const emdata)
create an OpenGL mipmap set
static void contour_isosurface(MarchingCubes *mc)
Recountour isosurface, for use with VBOs.
static void glLoadMatrix(const Transform &xform)
Load a EMAN style transform to open GL w/o having to go through python Calls glLoadTransposeMatrix ra...
static void glDrawDisk(float radius, int spokes)
static unsigned int gen_gl_texture(const EMData *const emdata, GLenum format=GL_LUMINANCE)
create an OpenGL texture
static unsigned long get_isosurface_dl(MarchingCubes *mc, unsigned int tex_id=0, bool surface_face_z=false, bool recontour=true)
Get an isosurface display list Traverses the tree, marches the cubes, and renders a display list usin...