Static Public Member Functions | Static Private Member Functions
vgui_utils Class Reference

Useful static functions for vgui. More...

#include <vgui_utils.h>

List of all members.

Static Public Member Functions

static vil1_memory_image_of
< vil1_rgb< unsigned char > > 
colour_buffer_to_image ()
 Get a memory image (vil1) corresponding to the OpenGL area.
static vil_image_view< vxl_byte > colour_buffer_to_view ()
 Get an image view corresponding to the OpenGL area.
static void dump_colour_buffer (char const *file)
 Dump the OpenGL area to the given image filename.
static void copy_front_to_back ()
 Copy front colour buffer to back colour buffer.
static void copy_back_to_front ()
 Copy back colour buffer to front colour buffer.
static void begin_sw_overlay ()
 Begin software overlay.
static void end_sw_overlay ()
 End software overlay.
static GLuint * enter_pick_mode (float x, float y, float w, float h=0)
static unsigned leave_pick_mode ()
static void process_hits (int num_hits, GLuint *ptr, vcl_vector< vcl_vector< unsigned > > &hits)
static int bits_per_pixel (GLenum format, GLenum type)
 Returns the number of bits per pixel.

Static Private Member Functions

static vil1_memory_image_of
< vil1_rgb< GLubyte > > 
get_image ()
static vil_image_view< GLubyte > get_view ()
static void do_copy ()

Detailed Description

Useful static functions for vgui.

Definition at line 22 of file vgui_utils.h.


Member Function Documentation

void vgui_utils::begin_sw_overlay ( ) [static]

Begin software overlay.

Definition at line 236 of file vgui_utils.cxx.

int vgui_utils::bits_per_pixel ( GLenum  format,
GLenum  type 
) [static]

Returns the number of bits per pixel.

Definition at line 357 of file vgui_utils.cxx.

vil1_memory_image_of< vil1_rgb< unsigned char > > vgui_utils::colour_buffer_to_image ( ) [static]

Get a memory image (vil1) corresponding to the OpenGL area.

Definition at line 81 of file vgui_utils.cxx.

vil_image_view< vxl_byte > vgui_utils::colour_buffer_to_view ( ) [static]

Get an image view corresponding to the OpenGL area.

Definition at line 152 of file vgui_utils.cxx.

void vgui_utils::copy_back_to_front ( ) [static]

Copy back colour buffer to front colour buffer.

Definition at line 218 of file vgui_utils.cxx.

void vgui_utils::copy_front_to_back ( ) [static]

Copy front colour buffer to back colour buffer.

Definition at line 204 of file vgui_utils.cxx.

void vgui_utils::do_copy ( ) [static, private]

Definition at line 164 of file vgui_utils.cxx.

void vgui_utils::dump_colour_buffer ( char const *  file) [static]

Dump the OpenGL area to the given image filename.

Definition at line 90 of file vgui_utils.cxx.

void vgui_utils::end_sw_overlay ( ) [static]

End software overlay.

Definition at line 243 of file vgui_utils.cxx.

GLuint * vgui_utils::enter_pick_mode ( float  x,
float  y,
float  w,
float  h = 0 
) [static]

Definition at line 260 of file vgui_utils.cxx.

vil1_memory_image_of< vil1_rgb< GLubyte > > vgui_utils::get_image ( ) [static, private]

Definition at line 23 of file vgui_utils.cxx.

vil_image_view< GLubyte > vgui_utils::get_view ( ) [static, private]

Definition at line 100 of file vgui_utils.cxx.

unsigned vgui_utils::leave_pick_mode ( ) [static]

Definition at line 298 of file vgui_utils.cxx.

void vgui_utils::process_hits ( int  num_hits,
GLuint *  ptr,
vcl_vector< vcl_vector< unsigned > > &  hits 
) [static]

Definition at line 308 of file vgui_utils.cxx.


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