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

TexMemRefImage Class Reference

#include <ref_image.H>

Collaboration diagram for TexMemRefImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TexMemRefImage (CVIEWptr &v, RefImageClient::ref_img_t img_type=RefImageClient::REF_IMG_TEX_MEM)
virtual ~TexMemRefImage ()
CVIEWptr & view () const
bool resize (const Point2i &dims)
void update ()
void read_FB ()
void draw_FB ()
TEXTUREglptr get_texture () const

Static Public Member Functions

static TexMemRefImagelookup (CVIEWptr &v=VIEW::peek())
static TEXTUREglptr lookup_texture (CVIEWptr &v=VIEW::peek())
static GLenum lookup_tex_unit (CVIEWptr &v=VIEW::peek())
static void activate_tex_unit (CVIEWptr &v=VIEW::peek())

Protected Member Functions

virtual void draw_objects (CGELlist &) const

Protected Attributes

VIEWptr _view
RefImageClient::ref_img_t _ref_img_type
TEXTUREglptr _texture

Static Protected Attributes

static HASH _hash

Detailed Description

Definition at line 771 of file ref_image.H.


Constructor & Destructor Documentation

TexMemRefImage::TexMemRefImage CVIEWptr &  v,
RefImageClient::ref_img_t  img_type = RefImageClient::REF_IMG_TEX_MEM
 

Definition at line 1064 of file ref_image.C.

References _texture, GL_REPLACE, GL_TEXTURE0, and TexUnit::REF_IMG.

Referenced by lookup().

virtual TexMemRefImage::~TexMemRefImage  )  [inline, virtual]
 

Definition at line 786 of file ref_image.H.


Member Function Documentation

static void TexMemRefImage::activate_tex_unit CVIEWptr &  v = VIEW::peek()  )  [inline, static]
 

Definition at line 823 of file ref_image.H.

References lookup_texture().

Referenced by GLSLPaperShader::activate_textures().

void TexMemRefImage::draw_FB  ) 
 

Definition at line 1243 of file ref_image.C.

References _texture, GL_BLEND, GL_DEPTH_TEST, GL_ENABLE_BIT, GL_LIGHTING, GL_MODELVIEW, GL_PROJECTION, GL_QUADS, glBegin(), glColor4f(), glDisable(), glEnd(), glLoadIdentity(), glLoadMatrixd(), glMatrixMode(), glMultiTexCoord2f, glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glVertex2f(), and VIEW::peek().

void TexMemRefImage::draw_objects CGELlist  )  const [protected, virtual]
 

Definition at line 1157 of file ref_image.C.

References _ref_img_type, _view, ARRAY< T >::clear(), GL_VIEW::depth_compare(), GEOM::do_halo_ref(), RIC_list< T >::draw_ref_img(), GL_BLEND, GL_MODELVIEW, GL_ONE_MINUS_SRC_ALPHA, GL_PROJECTION, GL_SRC_ALPHA, glBlendFunc(), glEnable(), glLoadMatrixd(), glMatrixMode(), glPopMatrix(), glPushMatrix(), mlib::Mat4< M, P, V, L, Q >::matrix(), ARRAY< T >::num(), and ARRAY< T >::sort().

Referenced by update().

TEXTUREglptr TexMemRefImage::get_texture  )  const [inline]
 

Definition at line 806 of file ref_image.H.

References _texture.

Referenced by HalftoneShaderEx::init_textures(), HalftoneShader::init_textures(), and lookup_texture().

TexMemRefImage * TexMemRefImage::lookup CVIEWptr &  v = VIEW::peek()  )  [static]
 

Definition at line 1101 of file ref_image.C.

References _hash, HASH::add(), err_msg(), HASH::find(), and TexMemRefImage().

Referenced by HalftoneShaderEx::init_textures(), HalftoneShader::init_textures(), and lookup_texture().

static GLenum TexMemRefImage::lookup_tex_unit CVIEWptr &  v = VIEW::peek()  )  [inline, static]
 

Definition at line 817 of file ref_image.H.

References GL_TEXTURE0, lookup_texture(), and TexUnit::REF_IMG.

Referenced by MSLDShader::set_uniform_variables(), GLSLHatching::set_uniform_variables(), DotsShader_EX::set_uniform_variables(), and DotsShader::set_uniform_variables().

static TEXTUREglptr TexMemRefImage::lookup_texture CVIEWptr &  v = VIEW::peek()  )  [inline, static]
 

Definition at line 811 of file ref_image.H.

References get_texture(), and lookup().

Referenced by activate_tex_unit(), and lookup_tex_unit().

void TexMemRefImage::read_FB  ) 
 

Definition at line 1214 of file ref_image.C.

References _texture, _view, GL_BACK, GL_ENABLE_BIT, GL_RGBA, GL_TEXTURE_2D, glCopyTexImage2D(), glPopAttrib(), glPushAttrib(), glReadBuffer(), Image::height(), resize(), and Image::width().

Referenced by update().

bool TexMemRefImage::resize const Point2i dims  ) 
 

Definition at line 1083 of file ref_image.C.

References _texture, debug_tmri, Image::height(), and Image::width().

Referenced by read_FB().

void TexMemRefImage::update  ) 
 

Definition at line 1121 of file ref_image.C.

References draw_objects(), GL_BACK, GL_COLOR_BUFFER_BIT, GL_COLOR_MATERIAL, GL_DEPTH_BUFFER_BIT, GL_DIFFUSE, GL_ENABLE_BIT, GL_FRONT_AND_BACK, GL_SMOOTH, glClear(), glClearColor(), glColorMaterial(), glDrawBuffer(), glEnable(), glPopAttrib(), glPushAttrib(), glReadBuffer(), glShadeModel(), VIEW::peek(), read_FB(), set_default_gl_state(), and view().

CVIEWptr& TexMemRefImage::view  )  const [inline]
 

Definition at line 789 of file ref_image.H.

References _view.

Referenced by update().


Member Data Documentation

HASH TexMemRefImage::_hash [static, protected]
 

Definition at line 834 of file ref_image.H.

Referenced by lookup().

RefImageClient::ref_img_t TexMemRefImage::_ref_img_type [protected]
 

Definition at line 831 of file ref_image.H.

Referenced by draw_objects().

TEXTUREglptr TexMemRefImage::_texture [protected]
 

Definition at line 832 of file ref_image.H.

Referenced by draw_FB(), get_texture(), read_FB(), resize(), and TexMemRefImage().

VIEWptr TexMemRefImage::_view [protected]
 

Definition at line 830 of file ref_image.H.

Referenced by draw_objects(), read_FB(), and view().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:47:34 2006 for jot by  doxygen 1.4.4