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

IDRefImage Class Reference

#include <ref_image.H>

Inheritance diagram for IDRefImage:

Inheritance graph
[legend]
Collaboration diagram for IDRefImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void update ()
Bsimplexsimplex (uint id) const
Bsimplexsimplex (CNDCpt &ndc) const
Bsimplexsimplex (Cpoint2i &pix) const
Bvertvert (uint id) const
Bedgeedge (uint id) const
Bfaceface (uint id) const
Bvertvert (CNDCpt &ndc) const
Bedgeedge (CNDCpt &ndc) const
Bfaceface (CNDCpt &ndc) const
Patchpatch (CNDCpt &ndc) const
Patchface_patch (CNDCpt &ndc) const
Bvertvert (Cpoint2i &pix) const
Bedgeedge (Cpoint2i &pix) const
Bfaceface (Cpoint2i &pix) const
Bsimplexintersect_sim (CNDCpt &ndc, Wpt &obj_pt) const
Bfaceintersect (CNDCpt &ndc, Wpt &obj_pt) const
Bfaceintersect (CNDCpt &ndc) const
bool search (CNDCpt &center, double screen_pix_rad, CSimplexFilter &filt, Point2i &hit)
Bsimplexfind_near_simplex (CNDCpt &center, double screen_pix_rad=1.0, CSimplexFilter &filt=SimplexFilter())
bool is_patch_sil_edge (Cpoint2i &pix, const Patch *patch) const
bool is_patch_sil_edge (CNDCpt &pix, const Patch *patch) const
Bedgefind_neighbor (CNDCpt &p, Bedge *current, int radius=1) const
ARRAY< Bedge * > find_all_neighbors (CNDCpt &p, Patch *patch, int radius=1) const
ARRAY< Bedge * > find_all_neighbors (Cpoint2i &p, Patch *patch, int radius=1) const
bool is_simplex_near (CNDCpt &p, const Bsimplex *simp, int radius=1) const
bool is_patch_sil_edge_near (CNDCpt &ndc, const Patch *patch, int radius=1) const
bool is_face_visible (CNDCpt &ndc, const Bface *bf) const
bool near_pix (Cpoint2i &pix, Point2i &ret, Patch *patch)
CVIEWptr & view () const
int copy_rgb (Image &img) const
void read_FB ()
void draw_FB () const
void fill (uchar r, uchar g, uchar b, uchar a=255U)
void fill (uint fill_color)
void set (Cpoint2i &pix, uint rgba_color)
void set (Cpoint2i &pix, uchar r, uchar g, uchar b, uchar a=255U)
void set (int x, int y, uint rgba_color)
void set (int x, int y, uchar r, uchar g, uchar b, uchar a=255U)
void set (int x, int y, CCOLOR &c, double alpha=1)
void blend (int x, int y, CCOLOR &c, double alpha)
COLOR color (int x, int y) const
COLOR color (CNDCpt &ndc) const
uint red (uint id) const
uint red (CNDCpt &ndc) const
uint red (Cpoint2i &pix) const
uint red (int x, int y) const
uint green (uint id) const
uint green (CNDCpt &ndc) const
uint green (Cpoint2i &pix) const
uint green (int x, int y) const
uint blue (uint id) const
uint blue (CNDCpt &ndc) const
uint blue (Cpoint2i &pix) const
uint blue (int x, int y) const
uint alpha (uint id) const
uint alpha (CNDCpt &ndc) const
uint alpha (Cpoint2i &pix) const
uint alpha (int x, int y) const
uint grey (uint id) const
uint grey (CNDCpt &ndc) const
uint grey (Cpoint2i &pix) const
uint grey (int x, int y) const
double grey_d (uint id) const
double grey_d (CNDCpt &ndc) const
double grey_d (Cpoint2i &pix) const
double grey_d (int x, int y) const
int read_file (char *file)
int write_file (char *file)
bool find_val_in_box (uint v, Cpoint2i &center, uint rad=1) const
bool find_val_in_box (uint v, CNDCpt &center, uint rad=1) const
bool find_val_in_box (uint v, uint mask, Cpoint2i &center, uint rad=1, int nbr=256) const
bool find_val_in_box (uint v, uint mask, CNDCpt &center, uint rad=1, int nbr=256) const
 Array2d ()
 Array2d (const Array2d< GLuint > &arr)
void clear (int clear_val=0)
virtual bool resize (uint new_w, uint new_h)
GLuint & val (uint id) const
GLuint & val (CNDCpt &ndc) const
GLuint & val (Cpoint2i &pix) const
GLuint & val (int x, int y) const
uint width () const
uint height () const
uint max () const
CNDCvecndc_offset ()
void set_ndc_offset (CNDCvec &v)
bool uint_in_range (uint id) const
bool pix_in_range (Cpoint2i &pix) const
uint pix_to_uint (Cpoint2i &pix) const
Point2i uint_to_pix (uint id) const
NDCpt pix_to_ndc (Cpoint2i &pix) const
Point2i ndc_to_pix (CNDCpt &ndc) const
NDCpt uint_to_ndc (uint id) const
uint ndc_to_uint (CNDCpt &ndc) const

Static Public Member Functions

static IDRefImagelookup (CVIEWptr &v=VIEW::peek())
static uint key_to_rgba (uint key)
static uint rgba_to_key (uint rgba)
static uint key_to_rgba2 (uint key)
static uint rgba_to_key2 (uint rgba)
static void set_instance (IDRefImage *id_ref)
static void set_instance (CVIEWptr &v)
static IDRefImageinstance ()
static void setup_bits (CVIEWptr &)

Protected Member Functions

 IDRefImage (CVIEWptr &v)
virtual void draw_objects (CGELlist &) const
Patchpatch (Bsimplex *sim) const
Patchface_patch (Bsimplex *sim) const
void allocate ()

Protected Attributes

VIEWptr _view
str_ptr _rend_str
GLenum _format
GLenum _type
RefImageClient::ref_img_t _ref_img_type
GLuint * _values
uint _width
uint _height
uint _max
double _half_width
double _half_height
double _half_min_dim
NDCvec _ndc_offset

Static Protected Attributes

static HASH _hash
static uint _red_bits = 0
static uint _green_bits = 0
static uint _blue_bits = 0
static uint _alpha_bits = 0
static bool _nonstandard_bits = false
static IDRefImage_instance = 0

Detailed Description

Definition at line 341 of file ref_image.H.


Constructor & Destructor Documentation

IDRefImage::IDRefImage CVIEWptr &  v  )  [protected]
 

Definition at line 350 of file ref_image.C.

References RefImage::_ref_img_type, RCOLOR_ID, RefImageClient::REF_IMG_ID, and setup_bits().

Referenced by lookup().


Member Function Documentation

void Array2d< GLuint >::allocate  )  [inline, protected, inherited]
 

Definition at line 141 of file ref_image.H.

References CoordSystem2d::_max, and Array2d< T >::_values.

uint RefImage::alpha int  x,
int  y
const [inline, inherited]
 

Definition at line 260 of file ref_image.H.

References rgba_to_a(), and Array2d< GLuint >::val().

uint RefImage::alpha Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 259 of file ref_image.H.

References rgba_to_a(), and Array2d< GLuint >::val().

uint RefImage::alpha CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 258 of file ref_image.H.

References rgba_to_a(), and Array2d< GLuint >::val().

uint RefImage::alpha uint  id  )  const [inline, inherited]
 

Definition at line 257 of file ref_image.H.

References rgba_to_a(), and Array2d< GLuint >::val().

Referenced by debug_vis_ref_img(), and RefImage::set().

Array2d< GLuint >::Array2d const Array2d< GLuint > &  arr  )  [inline, inherited]
 

Definition at line 111 of file ref_image.H.

References CoordSystem2d::_height, CoordSystem2d::_max, Array2d< T >::_values, CoordSystem2d::_width, and Array2d< T >::resize().

Array2d< GLuint >::Array2d  )  [inline, inherited]
 

Definition at line 110 of file ref_image.H.

void RefImage::blend int  x,
int  y,
CCOLOR c,
double  alpha
[inline, inherited]
 

Definition at line 226 of file ref_image.H.

References RefImage::color(), and RefImage::set().

uint RefImage::blue int  x,
int  y
const [inline, inherited]
 

Definition at line 255 of file ref_image.H.

References rgba_to_b(), and Array2d< GLuint >::val().

uint RefImage::blue Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 254 of file ref_image.H.

References rgba_to_b(), and Array2d< GLuint >::val().

uint RefImage::blue CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 253 of file ref_image.H.

References rgba_to_b(), and Array2d< GLuint >::val().

uint RefImage::blue uint  id  )  const [inline, inherited]
 

Definition at line 252 of file ref_image.H.

References rgba_to_b(), and Array2d< GLuint >::val().

Referenced by debug_vis_ref_img().

void Array2d< GLuint >::clear int  clear_val = 0  )  [inline, inherited]
 

Definition at line 120 of file ref_image.H.

References CoordSystem2d::_max, and Array2d< T >::_values.

COLOR RefImage::color CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 237 of file ref_image.H.

References Color::rgba_to_color(), and Array2d< GLuint >::val().

COLOR RefImage::color int  x,
int  y
const [inline, inherited]
 

Definition at line 233 of file ref_image.H.

References Color::rgba_to_color(), and Array2d< GLuint >::val().

Referenced by RefImage::blend().

int RefImage::copy_rgb Image img  )  const [inherited]
 

Definition at line 158 of file ref_image.C.

References CoordSystem2d::_height, CoordSystem2d::_max, CoordSystem2d::_width, Image::data(), err_msg(), Image::resize(), rgba_to_b(), rgba_to_g(), rgba_to_r(), and Array2d< GLuint >::val().

Referenced by AuxRefImage::update().

void RefImage::draw_FB  )  const [inherited]
 

Definition at line 44 of file ref_image.C.

References RefImage::_format, CoordSystem2d::_height, RefImage::_type, Array2d< GLuint >::_values, CoordSystem2d::_width, GL_BLEND, GL_ENABLE_BIT, GL_MODELVIEW, GL_PROJECTION, glDisable(), glDrawPixels(), glLoadIdentity(), glLoadMatrixd(), glMatrixMode(), glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glRasterPos2i(), and VIEW::peek().

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

Reimplemented from RefImage.

Reimplemented in VisRefImage.

Definition at line 415 of file ref_image.C.

References RIC_list< T >::draw_ref_img(), GL_DEPTH_BUFFER_BIT, GL_FALSE, GL_MODELVIEW, GL_PROJECTION, GL_TRUE, glClear(), glColorMask(), glLoadMatrixd(), glMatrixMode(), mlib::Mat4< M, P, V, L, Q >::matrix(), ARRAY< T >::num(), VIEW::peek(), RefImageClient::REF_IMG_ID, RefImageClient::REF_IMG_ID_PRE1, RefImageClient::REF_IMG_ID_PRE2, RefImageClient::REF_IMG_ID_PRE3, RefImageClient::REF_IMG_ID_PRE4, and RefImage::view().

Referenced by update().

Bedge* IDRefImage::edge Cpoint2i &  pix  )  const [inline]
 

Definition at line 408 of file ref_image.H.

References edge(), and CoordSystem2d::pix_to_uint().

Bedge* IDRefImage::edge CNDCpt ndc  )  const [inline]
 

Definition at line 402 of file ref_image.H.

References edge(), and CoordSystem2d::ndc_to_uint().

Bedge* IDRefImage::edge uint  id  )  const [inline]
 

Definition at line 393 of file ref_image.H.

References is_edge(), and simplex().

Referenced by edge(), find_all_neighbors(), find_neighbor(), and is_patch_sil_edge().

Bface* IDRefImage::face Cpoint2i &  pix  )  const [inline]
 

Definition at line 409 of file ref_image.H.

References face(), and CoordSystem2d::pix_to_uint().

Bface* IDRefImage::face CNDCpt ndc  )  const [inline]
 

Definition at line 403 of file ref_image.H.

References face(), and CoordSystem2d::ndc_to_uint().

Bface* IDRefImage::face uint  id  )  const [inline]
 

Definition at line 397 of file ref_image.H.

References is_face(), and simplex().

Referenced by face(), and is_face_visible().

Patch* IDRefImage::face_patch Bsimplex sim  )  const [inline, protected]
 

Definition at line 540 of file ref_image.H.

References is_face(), and patch().

Patch* IDRefImage::face_patch CNDCpt ndc  )  const [inline]
 

Definition at line 405 of file ref_image.H.

References simplex().

Referenced by near_pix().

void RefImage::fill uint  fill_color  )  [inherited]
 

Definition at line 133 of file ref_image.C.

References CoordSystem2d::_max, and Array2d< GLuint >::val().

void RefImage::fill uchar  r,
uchar  g,
uchar  b,
uchar  a = 255U
[inline, inherited]
 

Definition at line 204 of file ref_image.H.

References build_rgba().

ARRAY< Bedge * > IDRefImage::find_all_neighbors Cpoint2i &  p,
Patch patch,
int  radius = 1
const
 

Definition at line 606 of file ref_image.C.

References ARRAY< T >::add_uniquely(), check(), ARRAY< T >::clear(), edge(), Bedge::is_sil(), j, Bedge::patch(), and CoordSystem2d::pix_in_range().

ARRAY< Bedge * > IDRefImage::find_all_neighbors CNDCpt p,
Patch patch,
int  radius = 1
const
 

Definition at line 598 of file ref_image.C.

References center(), and CoordSystem2d::ndc_to_pix().

Bsimplex * IDRefImage::find_near_simplex CNDCpt center,
double  screen_pix_rad = 1.0,
CSimplexFilter filt = SimplexFilter()
 

Definition at line 525 of file ref_image.C.

References search(), and simplex().

Referenced by VisRefImage::get_simplex().

Bedge * IDRefImage::find_neighbor CNDCpt p,
Bedge current,
int  radius = 1
const
 

Definition at line 539 of file ref_image.C.

References center(), check(), edge(), Bedge::is_sil(), j, CoordSystem2d::ndc_to_pix(), Bedge::patch(), and CoordSystem2d::pix_in_range().

bool RefImage::find_val_in_box uint  v,
uint  mask,
CNDCpt center,
uint  rad = 1,
int  nbr = 256
const [inline, inherited]
 

Definition at line 291 of file ref_image.H.

References RefImage::find_val_in_box(), and CoordSystem2d::ndc_to_pix().

bool RefImage::find_val_in_box uint  v,
uint  mask,
Cpoint2i &  center,
uint  rad = 1,
int  nbr = 256
const [inherited]
 

Definition at line 271 of file ref_image.C.

References CoordSystem2d::_height, CoordSystem2d::_width, int(), CoordSystem2d::max(), min(), and Array2d< GLuint >::val().

bool RefImage::find_val_in_box uint  v,
CNDCpt center,
uint  rad = 1
const [inline, inherited]
 

Definition at line 286 of file ref_image.H.

References RefImage::find_val_in_box(), and CoordSystem2d::ndc_to_pix().

bool RefImage::find_val_in_box uint  v,
Cpoint2i &  center,
uint  rad = 1
const [inherited]
 

Definition at line 249 of file ref_image.C.

References CoordSystem2d::_height, CoordSystem2d::_width, CoordSystem2d::max(), min(), and Array2d< GLuint >::val().

Referenced by RefImage::find_val_in_box().

uint RefImage::green int  x,
int  y
const [inline, inherited]
 

Definition at line 250 of file ref_image.H.

References rgba_to_g(), and Array2d< GLuint >::val().

uint RefImage::green Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 249 of file ref_image.H.

References rgba_to_g(), and Array2d< GLuint >::val().

uint RefImage::green CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 248 of file ref_image.H.

References rgba_to_g(), and Array2d< GLuint >::val().

uint RefImage::green uint  id  )  const [inline, inherited]
 

Definition at line 247 of file ref_image.H.

References rgba_to_g(), and Array2d< GLuint >::val().

Referenced by debug_vis_ref_img().

uint RefImage::grey int  x,
int  y
const [inline, inherited]
 

Definition at line 267 of file ref_image.H.

References rgba_to_grey(), and Array2d< GLuint >::val().

uint RefImage::grey Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 266 of file ref_image.H.

References rgba_to_grey(), and Array2d< GLuint >::val().

uint RefImage::grey CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 265 of file ref_image.H.

References rgba_to_grey(), and Array2d< GLuint >::val().

uint RefImage::grey uint  id  )  const [inline, inherited]
 

Definition at line 264 of file ref_image.H.

References rgba_to_grey(), and Array2d< GLuint >::val().

double RefImage::grey_d int  x,
int  y
const [inline, inherited]
 

Definition at line 274 of file ref_image.H.

References rgba_to_grey_d(), and Array2d< GLuint >::val().

double RefImage::grey_d Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 273 of file ref_image.H.

References rgba_to_grey_d(), and Array2d< GLuint >::val().

double RefImage::grey_d CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 272 of file ref_image.H.

References rgba_to_grey_d(), and Array2d< GLuint >::val().

double RefImage::grey_d uint  id  )  const [inline, inherited]
 

Definition at line 271 of file ref_image.H.

References rgba_to_grey_d(), and Array2d< GLuint >::val().

uint CoordSystem2d::height  )  const [inline, inherited]
 

Definition at line 47 of file ref_image.H.

References CoordSystem2d::_height.

static IDRefImage* IDRefImage::instance  )  [inline, static]
 

Definition at line 522 of file ref_image.H.

References _instance.

Bface* IDRefImage::intersect CNDCpt ndc  )  const [inline]
 

Definition at line 430 of file ref_image.H.

References intersect().

Bface* IDRefImage::intersect CNDCpt ndc,
Wpt obj_pt
const [inline]
 

Definition at line 424 of file ref_image.H.

References Bsimplex::get_face(), and intersect_sim().

Referenced by VisRefImage::Intersect(), intersect(), toggle_crease(), and VisRefImage::vis_intersect().

Bsimplex* IDRefImage::intersect_sim CNDCpt ndc,
Wpt obj_pt
const [inline]
 

Definition at line 415 of file ref_image.H.

References Bface::find_intersect_sim(), Bsimplex::get_face(), and simplex().

Referenced by intersect().

bool IDRefImage::is_face_visible CNDCpt ndc,
const Bface bf
const [inline]
 

Definition at line 475 of file ref_image.H.

References face(), Bface::find_intersect_sim(), and Bsimplex::on_face().

bool IDRefImage::is_patch_sil_edge CNDCpt pix,
const Patch patch
const [inline]
 

Definition at line 465 of file ref_image.H.

References is_patch_sil_edge(), and CoordSystem2d::ndc_to_pix().

bool IDRefImage::is_patch_sil_edge Cpoint2i &  pix,
const Patch patch
const [inline]
 

Definition at line 458 of file ref_image.H.

References edge(), Bedge::is_sil(), Bedge::patch(), and CoordSystem2d::pix_in_range().

Referenced by is_patch_sil_edge(), and is_patch_sil_edge_near().

bool IDRefImage::is_patch_sil_edge_near CNDCpt ndc,
const Patch patch,
int  radius = 1
const
 

Definition at line 654 of file ref_image.C.

References center(), check(), is_patch_sil_edge(), j, and CoordSystem2d::ndc_to_pix().

bool IDRefImage::is_simplex_near CNDCpt p,
const Bsimplex simp,
int  radius = 1
const
 

Definition at line 630 of file ref_image.C.

References center(), check(), j, CoordSystem2d::ndc_to_pix(), CoordSystem2d::pix_in_range(), and simplex().

static uint IDRefImage::key_to_rgba uint  key  )  [inline, static]
 

Definition at line 362 of file ref_image.H.

References key_to_rgba2().

Referenced by ColorIDStripCB::edgeCB(), ColorIDStripCB::faceCB(), and ColorIDStripCB::vertCB().

uint IDRefImage::key_to_rgba2 uint  key  )  [static]
 

Definition at line 926 of file ref_image.C.

References _blue_bits, _green_bits, _nonstandard_bits, and _red_bits.

Referenced by key_to_rgba().

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

Reimplemented from RefImage.

Reimplemented in VisRefImage.

Definition at line 331 of file ref_image.C.

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

Referenced by set_instance().

uint CoordSystem2d::max  )  const [inline, inherited]
 

Definition at line 48 of file ref_image.H.

References CoordSystem2d::_max.

Referenced by RefImage::find_val_in_box(), RefImage::read_file(), and search().

CNDCvec& CoordSystem2d::ndc_offset  )  [inline, inherited]
 

Definition at line 60 of file ref_image.H.

References CoordSystem2d::_ndc_offset.

Point2i CoordSystem2d::ndc_to_pix CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 86 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width.

Referenced by find_all_neighbors(), find_neighbor(), RefImage::find_val_in_box(), is_patch_sil_edge(), is_patch_sil_edge_near(), is_simplex_near(), and search().

uint CoordSystem2d::ndc_to_uint CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 96 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_height, CoordSystem2d::_width, and int().

Referenced by VisRefImage::debug(), edge(), face(), simplex(), Array2d< GLuint >::val(), and vert().

bool IDRefImage::near_pix Cpoint2i &  pix,
Point2i ret,
Patch patch
[inline]
 

Definition at line 486 of file ref_image.H.

References face_patch(), CoordSystem2d::pix_in_range(), and simplex().

Patch* IDRefImage::patch Bsimplex sim  )  const [inline, protected]
 

Definition at line 534 of file ref_image.H.

References is_edge(), is_face(), and patch().

Patch* IDRefImage::patch CNDCpt ndc  )  const [inline]
 

Definition at line 404 of file ref_image.H.

References simplex().

Referenced by face_patch(), and patch().

bool CoordSystem2d::pix_in_range Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 65 of file ref_image.H.

References CoordSystem2d::_height, and CoordSystem2d::_width.

Referenced by find_all_neighbors(), find_neighbor(), is_patch_sil_edge(), is_simplex_near(), and near_pix().

NDCpt CoordSystem2d::pix_to_ndc Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 82 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width.

uint CoordSystem2d::pix_to_uint Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 73 of file ref_image.H.

References CoordSystem2d::_height, and CoordSystem2d::_width.

Referenced by edge(), face(), simplex(), Array2d< GLuint >::val(), and vert().

void RefImage::read_FB  )  [inline, inherited]
 

Definition at line 197 of file ref_image.H.

References RefImage::_format, CoordSystem2d::_height, RefImage::_type, Array2d< GLuint >::_values, CoordSystem2d::_width, and glReadPixels().

int RefImage::read_file char *  file  )  [inherited]
 

Definition at line 71 of file ref_image.C.

References Image::bpp(), build_rgba(), Image::data(), err_msg(), Image::height(), Image::load_file(), CoordSystem2d::max(), Array2d< GLuint >::resize(), Array2d< GLuint >::val(), and Image::width().

uint RefImage::red int  x,
int  y
const [inline, inherited]
 

Definition at line 245 of file ref_image.H.

References rgba_to_r(), and Array2d< GLuint >::val().

uint RefImage::red Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 244 of file ref_image.H.

References rgba_to_r(), and Array2d< GLuint >::val().

uint RefImage::red CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 243 of file ref_image.H.

References rgba_to_r(), and Array2d< GLuint >::val().

uint RefImage::red uint  id  )  const [inline, inherited]
 

Definition at line 242 of file ref_image.H.

References rgba_to_r(), and Array2d< GLuint >::val().

Referenced by debug_vis_ref_img().

virtual bool Array2d< GLuint >::resize uint  new_w,
uint  new_h
[inline, virtual, inherited]
 

Reimplemented from CoordSystem2d.

Reimplemented in BufferRefImage, and VisRefImage.

Definition at line 124 of file ref_image.H.

References CoordSystem2d::_height, CoordSystem2d::_width, Array2d< T >::allocate(), and CoordSystem2d::resize().

Referenced by RefImage::read_file(), VisRefImage::resize(), BufferRefImage::resize(), and AuxRefImage::update().

static uint IDRefImage::rgba_to_key uint  rgba  )  [inline, static]
 

Definition at line 370 of file ref_image.H.

References rgba_to_key2().

Referenced by VisRefImage::debug(), and simplex().

uint IDRefImage::rgba_to_key2 uint  rgba  )  [static]
 

Definition at line 1000 of file ref_image.C.

References _alpha_bits, _blue_bits, _green_bits, _nonstandard_bits, and _red_bits.

Referenced by rgba_to_key().

bool IDRefImage::search CNDCpt center,
double  screen_pix_rad,
CSimplexFilter filt,
Point2i hit
 

Definition at line 479 of file ref_image.C.

References CoordSystem2d::_half_min_dim, CoordSystem2d::_height, CoordSystem2d::_width, SimplexFilter::accept(), center(), mlib::Point2i::dist(), int(), CoordSystem2d::max(), min(), CoordSystem2d::ndc_to_pix(), VIEW::pix_to_ndc_scale(), and simplex().

Referenced by find_near_simplex().

void RefImage::set int  x,
int  y,
CCOLOR c,
double  alpha = 1
[inline, inherited]
 

Definition at line 222 of file ref_image.H.

References RefImage::alpha(), Color::color_to_rgba(), and RefImage::set().

void RefImage::set int  x,
int  y,
uchar  r,
uchar  g,
uchar  b,
uchar  a = 255U
[inline, inherited]
 

Definition at line 217 of file ref_image.H.

References build_rgba(), and RefImage::set().

void RefImage::set int  x,
int  y,
uint  rgba_color
[inline, inherited]
 

Definition at line 214 of file ref_image.H.

References RefImage::set().

void RefImage::set Cpoint2i &  pix,
uchar  r,
uchar  g,
uchar  b,
uchar  a = 255U
[inline, inherited]
 

Definition at line 211 of file ref_image.H.

References build_rgba(), and RefImage::set().

void RefImage::set Cpoint2i &  pix,
uint  rgba_color
[inline, inherited]
 

Definition at line 210 of file ref_image.H.

References Array2d< GLuint >::val().

Referenced by RefImage::blend(), and RefImage::set().

static void IDRefImage::set_instance CVIEWptr &  v  )  [inline, static]
 

Definition at line 521 of file ref_image.H.

References lookup(), and set_instance().

static void IDRefImage::set_instance IDRefImage id_ref  )  [inline, static]
 

Definition at line 520 of file ref_image.H.

References _instance.

Referenced by set_instance().

void CoordSystem2d::set_ndc_offset CNDCvec v  )  [inline, inherited]
 

Definition at line 61 of file ref_image.H.

References CoordSystem2d::_ndc_offset.

void IDRefImage::setup_bits CVIEWptr &   )  [static]
 

Definition at line 358 of file ref_image.C.

References _alpha_bits, _blue_bits, _green_bits, _nonstandard_bits, _red_bits, err_msg(), GL_MAX_TEXTURE_UNITS, GL_RENDERER, GL_VENDOR, GL_VERSION, glGetIntegerv(), and glGetString().

Referenced by IDRefImage(), and BaseJOTapp::init().

Bsimplex* IDRefImage::simplex Cpoint2i &  pix  )  const [inline]
 

Definition at line 387 of file ref_image.H.

References CoordSystem2d::pix_to_uint(), and simplex().

Bsimplex* IDRefImage::simplex CNDCpt ndc  )  const [inline]
 

Definition at line 386 of file ref_image.H.

References CoordSystem2d::ndc_to_uint(), and simplex().

Bsimplex* IDRefImage::simplex uint  id  )  const [inline]
 

Definition at line 383 of file ref_image.H.

References Bsimplex::lookup(), rgba_to_key(), and Array2d< GLuint >::val().

Referenced by edge(), face(), face_patch(), find_near_simplex(), intersect_sim(), is_simplex_near(), near_pix(), patch(), search(), simplex(), vert(), and VisRefImage::vis_simplex().

bool CoordSystem2d::uint_in_range uint  id  )  const [inline, inherited]
 

Definition at line 64 of file ref_image.H.

References CoordSystem2d::_max.

NDCpt CoordSystem2d::uint_to_ndc uint  id  )  const [inline, inherited]
 

Definition at line 92 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_ndc_offset, and CoordSystem2d::_width.

Point2i CoordSystem2d::uint_to_pix uint  id  )  const [inline, inherited]
 

Definition at line 77 of file ref_image.H.

References CoordSystem2d::_width.

void IDRefImage::update  )  [virtual]
 

Reimplemented from RefImage.

Reimplemented in VisRefImage.

Definition at line 755 of file ref_image.C.

References RefImage::_format, CoordSystem2d::_height, RefImage::_type, Array2d< GLuint >::_values, CoordSystem2d::_width, draw_objects(), GL_BACK, GL_COLOR_BUFFER_BIT, GL_COLOR_MATERIAL, GL_DEPTH_BUFFER_BIT, GL_FLAT, GL_LIGHT0, GL_LIGHT1, GL_LIGHTING, glClear(), glClearColor(), glDisable(), glDrawBuffer(), glReadBuffer(), glReadPixels(), glShadeModel(), glViewport(), VIEW::peek(), set_default_gl_state(), and VIEW_SIZE.

Referenced by VisRefImage::update().

GLuint & Array2d< GLuint >::val int  x,
int  y
const [inline, inherited]
 

Definition at line 136 of file ref_image.H.

References Array2d< T >::val().

GLuint & Array2d< GLuint >::val Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 135 of file ref_image.H.

References CoordSystem2d::pix_to_uint(), and Array2d< T >::val().

GLuint & Array2d< GLuint >::val CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 134 of file ref_image.H.

References CoordSystem2d::ndc_to_uint(), and Array2d< T >::val().

GLuint & Array2d< GLuint >::val uint  id  )  const [inline, inherited]
 

Definition at line 133 of file ref_image.H.

References Array2d< T >::_values.

Referenced by RefImage::alpha(), RefImage::blue(), RefImage::color(), RefImage::copy_rgb(), VisRefImage::debug(), RefImage::fill(), RefImage::find_val_in_box(), RefImage::green(), RefImage::grey(), RefImage::grey_d(), RefImage::read_file(), RefImage::red(), RefImage::set(), and simplex().

Bvert* IDRefImage::vert Cpoint2i &  pix  )  const [inline]
 

Definition at line 407 of file ref_image.H.

References CoordSystem2d::pix_to_uint(), and vert().

Bvert* IDRefImage::vert CNDCpt ndc  )  const [inline]
 

Definition at line 401 of file ref_image.H.

References CoordSystem2d::ndc_to_uint(), and vert().

Bvert* IDRefImage::vert uint  id  )  const [inline]
 

Definition at line 389 of file ref_image.H.

References is_vert(), and simplex().

Referenced by vert().

CVIEWptr& RefImage::view  )  const [inline, inherited]
 

Definition at line 190 of file ref_image.H.

References RefImage::_view.

Referenced by VisRefImage::draw_objects(), draw_objects(), RefImage::draw_objects(), AuxRefImage::draw_objects(), VisRefImage::lookup(), and RefImage::update().

uint CoordSystem2d::width  )  const [inline, inherited]
 

Definition at line 46 of file ref_image.H.

References CoordSystem2d::_width.

int RefImage::write_file char *  file  )  [inherited]
 

Definition at line 141 of file ref_image.C.

References RefImage::_format, CoordSystem2d::_height, Array2d< GLuint >::_values, CoordSystem2d::_width, err_msg(), GL_RGB, GL_RGBA, and Image::write_png().


Member Data Documentation

uint IDRefImage::_alpha_bits = 0 [static, protected]
 

Definition at line 550 of file ref_image.H.

Referenced by rgba_to_key2(), and setup_bits().

uint IDRefImage::_blue_bits = 0 [static, protected]
 

Definition at line 549 of file ref_image.H.

Referenced by key_to_rgba2(), rgba_to_key2(), and setup_bits().

GLenum RefImage::_format [protected, inherited]
 

Definition at line 164 of file ref_image.H.

Referenced by RefImage::draw_FB(), RefImage::read_FB(), update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

uint IDRefImage::_green_bits = 0 [static, protected]
 

Definition at line 548 of file ref_image.H.

Referenced by key_to_rgba2(), rgba_to_key2(), and setup_bits().

double CoordSystem2d::_half_height [protected, inherited]
 

Definition at line 32 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc().

double CoordSystem2d::_half_min_dim [protected, inherited]
 

Definition at line 33 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), search(), and CoordSystem2d::uint_to_ndc().

double CoordSystem2d::_half_width [protected, inherited]
 

Definition at line 31 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc().

HASH IDRefImage::_hash [static, protected]
 

Reimplemented from RefImage.

Definition at line 545 of file ref_image.H.

Referenced by lookup().

uint CoordSystem2d::_height [protected, inherited]
 

Definition at line 29 of file ref_image.H.

Referenced by Array2d< GLuint >::Array2d(), RefImage::copy_rgb(), RefImage::draw_FB(), RefImage::find_val_in_box(), CoordSystem2d::height(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_in_range(), CoordSystem2d::pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), CoordSystem2d::resize(), search(), update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

IDRefImage * IDRefImage::_instance = 0 [static, protected]
 

Definition at line 554 of file ref_image.H.

Referenced by instance(), and set_instance().

uint CoordSystem2d::_max [protected, inherited]
 

Definition at line 30 of file ref_image.H.

Referenced by Array2d< GLuint >::allocate(), Array2d< GLuint >::Array2d(), Array2d< GLuint >::clear(), RefImage::copy_rgb(), RefImage::fill(), CoordSystem2d::max(), CoordSystem2d::resize(), and CoordSystem2d::uint_in_range().

NDCvec CoordSystem2d::_ndc_offset [protected, inherited]
 

Definition at line 35 of file ref_image.H.

Referenced by CoordSystem2d::ndc_offset(), CoordSystem2d::set_ndc_offset(), and CoordSystem2d::uint_to_ndc().

bool IDRefImage::_nonstandard_bits = false [static, protected]
 

Definition at line 551 of file ref_image.H.

Referenced by key_to_rgba2(), rgba_to_key2(), and setup_bits().

uint IDRefImage::_red_bits = 0 [static, protected]
 

Definition at line 547 of file ref_image.H.

Referenced by key_to_rgba2(), rgba_to_key2(), and setup_bits().

RefImageClient::ref_img_t RefImage::_ref_img_type [protected, inherited]
 

Definition at line 166 of file ref_image.H.

Referenced by RefImage::draw_objects(), IDRefImage(), and RefImage2::RefImage2().

str_ptr RefImage::_rend_str [protected, inherited]
 

Definition at line 158 of file ref_image.H.

GLenum RefImage::_type [protected, inherited]
 

Definition at line 165 of file ref_image.H.

Referenced by RefImage::draw_FB(), RefImage::read_FB(), update(), RefImage::update(), BufferRefImage::update(), and AuxRefImage::update().

GLuint * Array2d< GLuint >::_values [protected, inherited]
 

Definition at line 139 of file ref_image.H.

Referenced by RefImage::draw_FB(), RefImage::read_FB(), update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

VIEWptr RefImage::_view [protected, inherited]
 

Definition at line 157 of file ref_image.H.

Referenced by VisRefImage::need_update(), BufferRefImage::need_update(), BufferRefImage::notify_view(), VisRefImage::observe(), BufferRefImage::observe(), VisRefImage::unobserve(), BufferRefImage::unobserve(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::view().

uint CoordSystem2d::_width [protected, inherited]
 

Definition at line 28 of file ref_image.H.

Referenced by Array2d< GLuint >::Array2d(), RefImage::copy_rgb(), RefImage::draw_FB(), RefImage::find_val_in_box(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_in_range(), CoordSystem2d::pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), CoordSystem2d::resize(), search(), CoordSystem2d::uint_to_ndc(), CoordSystem2d::uint_to_pix(), update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), CoordSystem2d::width(), and RefImage::write_file().


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