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

BufferRefImage Class Reference

#include <buffer_ref_image.H>

Inheritance diagram for BufferRefImage:

Inheritance graph
[legend]
Collaboration diagram for BufferRefImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~BufferRefImage ()
virtual void update ()
int need_update ()
void force_dirty ()
void observe ()
void unobserve ()
bool is_observing ()
void add (CGELptr &g)
bool rem (CGELptr &g)
CGELlistlist ()
virtual int tick ()
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)
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
virtual void setIndex (int idx)
virtual int getIndex () const
void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const

Static Public Member Functions

static BufferRefImagelookup (CVIEWptr &v)

Protected Types

enum  STATE {
  START = 0, MIDDLE, END, PRIMARY,
  GRAB, DRAG, DROP, NET,
  EVERY
}
typedef ARRAYptrs< VIEWobs * > view_list

Protected Member Functions

 BufferRefImage (CVIEWptr &v)
void reset ()
virtual bool resize (uint new_w, uint new_h)
void changed ()
virtual void notify_exist (CGELptr &, int)
virtual void notify (CGELptr &, int)
virtual void notify (CCAMdataptr &)
virtual void notify_xform (CGEOMptr &, STATE)
virtual void notify_xform (BMESH *, mlib::CWtransf &, CMOD &)
virtual void notify_change (BMESH *, BMESH::change_t)
virtual void notify_view (CVIEWptr &v, int)
virtual void draw_objects (CGELlist &) const
void allocate ()
void disp_obs (CGELptr &g)
void disp_obs ()
void unobs_display (CGELptr &g)
void unobs_display ()
virtual void notify_xform (CGEOMptr &, STATE state)=0
void xform_obs (CGELptr &g)
void xform_obs ()
void every_xform_obs ()
void unobs_xform ()
void unobs_xform (CGEOMptr &g)
void unobs_every_xform ()
virtual void notify_manip_start (CCAMdataptr &data)
virtual void notify_manip_end (CCAMdataptr &data)
void subscribe_mesh_notifications (BMESH *m)
void unsubscribe_mesh_notifications (BMESH *m)
void subscribe_all_mesh_notifications ()
void unsubscribe_all_mesh_notifications ()
virtual void notify_xform (BMESH *, CWtransf &, CMOD &)
virtual void notify_merge (BMESH *, BMESH *)
virtual void notify_split (BMESH *, CARRAY< BMESH * > &)
virtual void notify_subdiv_gen (BMESH *)
virtual void notify_delete (BMESH *)
virtual void notify_sub_delete (BMESH *)
virtual void notify_update_request (BMESH *)
virtual str_ptr name () const
void view_obs ()
void unobs_view ()

Static Protected Member Functions

static void notify_disp_obs (CGELptr &g, int disp)
static void suspend_disp_obs ()
static void activate_disp_obs ()
static DISPobs_listdisp_obs_list (CGELptr &g)
static void notify_xform_obs (CGEOMptr &, STATE start)
static void notify_xform_every_obs (CGEOMptr &)
static XFORMobs_listxform_obs_list (CGELptr &g)
static void broadcast_change (BMESH *, BMESH::change_t)
static void broadcast_xform (BMESH *, CWtransf &xf, CMOD &)
static void broadcast_merge (BMESH *joined, BMESH *removed)
static void broadcast_split (BMESH *, CARRAY< BMESH * > &)
static void broadcast_subdiv_gen (BMESH *)
static void broadcast_delete (BMESH *)
static void broadcast_sub_delete (BMESH *)
static void broadcast_update_request (BMESH *)
static const BMESHobs_listobservers (BMESH *m)
static void print_names (BMESH *m)
static BMESHobs_listbmesh_obs_list (BMESH *m)
static view_listviewobs_list ()
static void notify_viewobs (CVIEWptr &v, int f)

Protected Attributes

int _dirty
int _countup
bool _observing
GELlist _list
GELptr _f
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
int _index

Static Protected Attributes

static HASH _hash
static BMESHobs_list _all_observers
static view_list_view_obs

Detailed Description

Definition at line 28 of file buffer_ref_image.H.


Member Typedef Documentation

typedef ARRAYptrs<VIEWobs *> VIEWobs::view_list [inherited]
 

Definition at line 49 of file view.H.


Member Enumeration Documentation

enum XFORMobs::STATE [inherited]
 

Enumerator:
START 
MIDDLE 
END 
PRIMARY 
GRAB 
DRAG 
DROP 
NET 
EVERY 

Definition at line 20 of file geom_obs.H.


Constructor & Destructor Documentation

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

Definition at line 37 of file buffer_ref_image.H.

References unobserve().

BufferRefImage::BufferRefImage CVIEWptr &  v  )  [protected]
 

Definition at line 69 of file buffer_ref_image.C.

References _f, _observing, and reset().

Referenced by lookup().


Member Function Documentation

static void DISPobs::activate_disp_obs  )  [inline, static, inherited]
 

Definition at line 87 of file gel_obs.H.

References DISPobs::_suspend_disp.

void BufferRefImage::add CGELptr g  )  [inline]
 

Definition at line 54 of file buffer_ref_image.H.

References _list, and ARRAY< T >::add().

Referenced by GEST_INT::down(), and observe().

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().

static BMESHobs_list& BMESHobs::bmesh_obs_list BMESH m  )  [inline, static, protected, inherited]
 

Definition at line 943 of file bmesh.H.

References BMESHobs::_hash, HASH::add(), and HASH::find().

Referenced by BMESHobs::broadcast_change(), BMESHobs::broadcast_delete(), BMESHobs::broadcast_merge(), BMESHobs::broadcast_split(), BMESHobs::broadcast_sub_delete(), BMESHobs::broadcast_subdiv_gen(), BMESHobs::broadcast_update_request(), BMESHobs::broadcast_xform(), BMESHobs::observers(), BMESHobs::subscribe_mesh_notifications(), and BMESHobs::unsubscribe_mesh_notifications().

void BMESHobs::broadcast_change BMESH ,
BMESH::change_t 
[static, inherited]
 

Definition at line 4507 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_change().

Referenced by BMESH::changed().

void BMESHobs::broadcast_delete BMESH  )  [static, inherited]
 

Definition at line 4578 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_delete().

Referenced by BMESH::~BMESH().

void BMESHobs::broadcast_merge BMESH joined,
BMESH removed
[static, inherited]
 

Definition at line 4527 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_merge().

Referenced by BMESH::_merge().

void BMESHobs::broadcast_split BMESH ,
CARRAY< BMESH * > & 
[static, inherited]
 

Definition at line 4555 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_split().

Referenced by BMESH::split_components().

void BMESHobs::broadcast_sub_delete BMESH  )  [static, inherited]
 

Definition at line 4591 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_sub_delete().

Referenced by LMESH::delete_subdiv_mesh().

void BMESHobs::broadcast_subdiv_gen BMESH  )  [static, inherited]
 

Definition at line 4568 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_subdiv_gen().

Referenced by LMESH::allocate_subdiv_mesh().

void BMESHobs::broadcast_update_request BMESH  )  [static, inherited]
 

Definition at line 4601 of file bmesh.C.

References BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_update_request().

Referenced by BMESH::send_update_notification(), and LMESH::update_subdivision().

void BMESHobs::broadcast_xform BMESH ,
CWtransf xf,
CMOD & 
[static, inherited]
 

Definition at line 4517 of file bmesh.C.

References BMESHobs::_all_observers, BMESHobs::bmesh_obs_list(), and BMESHobs_list::notify_xform().

Referenced by BMESH::transform().

void BufferRefImage::changed  )  [inline, protected]
 

Definition at line 91 of file buffer_ref_image.H.

References _countup, COUNTUP, and reset().

Referenced by notify(), notify_change(), notify_exist(), notify_view(), and notify_xform().

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 DISPobs::disp_obs  )  [inline, inherited]
 

Definition at line 84 of file gel_obs.H.

References DISPobs::_all_disp.

Referenced by DISTRIB::DISTRIB(), DrawWidget::DrawWidget(), VisRefImage::observe(), observe(), and VIEW::VIEW().

void DISPobs::disp_obs CGELptr g  )  [inline, inherited]
 

Definition at line 82 of file gel_obs.H.

References DISPobs::disp_obs_list().

static DISPobs_list& DISPobs::disp_obs_list CGELptr g  )  [inline, static, protected, inherited]
 

Definition at line 89 of file gel_obs.H.

References DISPobs::_hash_disp, HASH::add(), and HASH::find().

Referenced by DISPobs::disp_obs(), DISPobs::notify_disp_obs(), and DISPobs::unobs_display().

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 RefImage::draw_objects CGELlist  )  const [protected, virtual, inherited]
 

Reimplemented in AuxRefImage, IDRefImage, and VisRefImage.

Definition at line 230 of file ref_image.C.

References RefImage::_ref_img_type, RIC_list< T >::draw_ref_img(), GL_MODELVIEW, GL_PROJECTION, glLoadMatrixd(), glMatrixMode(), mlib::Mat4< M, P, V, L, Q >::matrix(), ARRAY< T >::num(), VIEW::peek(), and RefImage::view().

Referenced by RefImage::update().

void XFORMobs::every_xform_obs  )  [inline, inherited]
 

Definition at line 38 of file geom_obs.H.

References XFORMobs::_every_xf.

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().

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().

void BufferRefImage::force_dirty  )  [inline]
 

Definition at line 47 of file buffer_ref_image.H.

References _dirty.

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

virtual int FRAMEobs::getIndex  )  const [inline, virtual, inherited]
 

Definition at line 45 of file gel.H.

References FRAMEobs::_index.

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.

bool BufferRefImage::is_observing  )  [inline]
 

Definition at line 52 of file buffer_ref_image.H.

References _observing.

Referenced by GEST_INT::down(), need_update(), GEST_INT::notify(), tick(), toggle_buffer(), and GEST_INT::up().

CGELlist& BufferRefImage::list  )  [inline]
 

Definition at line 56 of file buffer_ref_image.H.

References _list.

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

BufferRefImage * BufferRefImage::lookup CVIEWptr &  v  )  [static]
 

Reimplemented from RefImage.

Definition at line 12 of file buffer_ref_image.C.

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

Referenced by GEST_INT::down(), GEST_INT::notify(), toggle_buffer(), and GEST_INT::up().

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 IDRefImage::search().

virtual str_ptr BMESHobs::name  )  const [inline, virtual, inherited]
 

Definition at line 925 of file bmesh.H.

Referenced by BMESHobs_list::print_names().

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 IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), RefImage::find_val_in_box(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_patch_sil_edge_near(), IDRefImage::is_simplex_near(), and IDRefImage::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(), IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert().

int BufferRefImage::need_update  ) 
 

Definition at line 32 of file buffer_ref_image.C.

References _dirty, RefImage::_view, is_observing(), and resize().

Referenced by update().

virtual void BufferRefImage::notify CCAMdataptr &   )  [inline, protected, virtual]
 

Implements CAMobs.

Definition at line 102 of file buffer_ref_image.H.

References reset().

virtual void BufferRefImage::notify CGELptr ,
int 
[inline, protected, virtual]
 

Implements DISPobs.

Definition at line 99 of file buffer_ref_image.H.

References changed().

virtual void BufferRefImage::notify_change BMESH ,
BMESH::change_t 
[inline, protected, virtual]
 

Reimplemented from BMESHobs.

Definition at line 109 of file buffer_ref_image.H.

References changed().

virtual void BMESHobs::notify_delete BMESH  )  [inline, virtual, inherited]
 

Definition at line 903 of file bmesh.H.

Referenced by BMESHobs_list::notify_delete().

void DISPobs::notify_disp_obs CGELptr g,
int  disp
[static, inherited]
 

Definition at line 361 of file gel.C.

References DISPobs::_all_disp, DISPobs::_suspend_disp, CDISPobs_list, and DISPobs::disp_obs_list().

Referenced by DrawnList::add(), and DrawnList::rem().

virtual void BufferRefImage::notify_exist CGELptr ,
int 
[inline, protected, virtual]
 

Definition at line 96 of file buffer_ref_image.H.

References changed().

virtual void CAMobs::notify_manip_end CCAMdataptr &  data  )  [inline, virtual, inherited]
 

Definition at line 164 of file cam.H.

virtual void CAMobs::notify_manip_start CCAMdataptr &  data  )  [inline, virtual, inherited]
 

Definition at line 163 of file cam.H.

virtual void BMESHobs::notify_merge BMESH ,
BMESH
[inline, virtual, inherited]
 

Definition at line 900 of file bmesh.H.

Referenced by BMESHobs_list::notify_merge().

virtual void BMESHobs::notify_split BMESH ,
CARRAY< BMESH * > & 
[inline, virtual, inherited]
 

Definition at line 901 of file bmesh.H.

Referenced by BMESHobs_list::notify_split().

virtual void BMESHobs::notify_sub_delete BMESH  )  [inline, virtual, inherited]
 

Definition at line 904 of file bmesh.H.

Referenced by BMESHobs_list::notify_sub_delete().

virtual void BMESHobs::notify_subdiv_gen BMESH  )  [inline, virtual, inherited]
 

Definition at line 902 of file bmesh.H.

Referenced by BMESHobs_list::notify_subdiv_gen().

virtual void BMESHobs::notify_update_request BMESH  )  [inline, virtual, inherited]
 

Definition at line 908 of file bmesh.H.

Referenced by BMESHobs_list::notify_update_request().

virtual void BufferRefImage::notify_view CVIEWptr &  v,
int 
[inline, protected, virtual]
 

Implements VIEWobs.

Definition at line 111 of file buffer_ref_image.H.

References RefImage::_view, and changed().

static void VIEWobs::notify_viewobs CVIEWptr &  v,
int  f
[inline, static, inherited]
 

Definition at line 57 of file view.H.

References VIEWobs::viewobs_list().

Referenced by VIEWlist::add(), VIEWlist::rem(), VIEW::set_alpha(), VIEW::set_color(), and VIEW::set_render_mode().

virtual void BMESHobs::notify_xform BMESH ,
CWtransf ,
CMOD & 
[inline, virtual, inherited]
 

Reimplemented in VisRefImage.

Definition at line 899 of file bmesh.H.

Referenced by BMESHobs_list::notify_xform().

virtual void XFORMobs::notify_xform CGEOMptr &  ,
STATE  state
[pure virtual, inherited]
 

Referenced by XFORMobs::notify_xform_obs().

virtual void BufferRefImage::notify_xform BMESH ,
mlib::CWtransf ,
CMOD & 
[inline, protected, virtual]
 

Definition at line 108 of file buffer_ref_image.H.

References changed().

virtual void BufferRefImage::notify_xform CGEOMptr &  ,
STATE 
[inline, protected, virtual]
 

Definition at line 105 of file buffer_ref_image.H.

References changed().

void XFORMobs::notify_xform_every_obs CGEOMptr &   )  [static, inherited]
 

Definition at line 499 of file geom.C.

References XFORMobs::_every_xf, and XFORMobs::EVERY.

void XFORMobs::notify_xform_obs CGEOMptr &  ,
STATE  start
[static, inherited]
 

Definition at line 480 of file geom.C.

References XFORMobs::_all_xf, XFORMobs::notify_xform(), and XFORMobs::xform_obs_list().

Referenced by FilmTrans::down(), JOTxform::get(), FilmTrans::move(), and FilmTrans::up().

void BufferRefImage::observe  ) 
 

Definition at line 84 of file buffer_ref_image.C.

References _f, _observing, RefImage::_view, add(), DISPobs::disp_obs(), reset(), BMESHobs::subscribe_all_mesh_notifications(), VIEWobs::view_obs(), and XFORMobs::xform_obs().

Referenced by toggle_buffer().

static const BMESHobs_list& BMESHobs::observers BMESH m  )  [inline, static, inherited]
 

Definition at line 928 of file bmesh.H.

References BMESHobs::bmesh_obs_list().

Referenced by BMESHobs::print_names().

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

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 IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_simplex_near(), and IDRefImage::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 IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert().

static void BMESHobs::print_names BMESH m  )  [inline, static, inherited]
 

Definition at line 932 of file bmesh.H.

References BMESHobs::observers(), and BMESHobs_list::print_names().

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().

bool BufferRefImage::rem CGELptr g  )  [inline]
 

Definition at line 55 of file buffer_ref_image.H.

References _list, and ARRAY< T >::rem().

Referenced by GEST_INT::notify(), unobserve(), and GEST_INT::up().

void BufferRefImage::reset  )  [inline, protected]
 

Definition at line 79 of file buffer_ref_image.H.

References _countup, and _dirty.

Referenced by BufferRefImage(), changed(), notify(), observe(), and resize().

virtual bool BufferRefImage::resize uint  new_w,
uint  new_h
[inline, protected, virtual]
 

Reimplemented from Array2d< GLuint >.

Definition at line 81 of file buffer_ref_image.H.

References reset(), and Array2d< GLuint >::resize().

Referenced by need_update().

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().

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

Definition at line 61 of file ref_image.H.

References CoordSystem2d::_ndc_offset.

virtual void FRAMEobs::setIndex int  idx  )  [inline, virtual, inherited]
 

Definition at line 44 of file gel.H.

References FRAMEobs::_index.

void BMESHobs::subscribe_all_mesh_notifications  )  [inline, inherited]
 

Definition at line 887 of file bmesh.H.

References BMESHobs::_all_observers, and ARRAY< T >::add_uniquely().

Referenced by VisRefImage::observe(), and observe().

void BMESHobs::subscribe_mesh_notifications BMESH m  )  [inline, inherited]
 

Definition at line 878 of file bmesh.H.

References ARRAY< T >::add_uniquely(), and BMESHobs::bmesh_obs_list().

static void DISPobs::suspend_disp_obs  )  [inline, static, inherited]
 

Definition at line 86 of file gel_obs.H.

References DISPobs::_suspend_disp.

int BufferRefImage::tick  )  [virtual]
 

Reimplemented from FRAMEobs.

Definition at line 132 of file buffer_ref_image.C.

References _countup, _dirty, COUNTUP, is_observing(), and update().

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.

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().

void DISPobs::unobs_display  )  [inline, inherited]
 

Definition at line 85 of file gel_obs.H.

References DISPobs::_all_disp.

Referenced by VisRefImage::unobserve(), unobserve(), and DrawWidget::~DrawWidget().

void DISPobs::unobs_display CGELptr g  )  [inline, inherited]
 

Definition at line 83 of file gel_obs.H.

References DISPobs::disp_obs_list().

void XFORMobs::unobs_every_xform  )  [inline, inherited]
 

Definition at line 40 of file geom_obs.H.

References XFORMobs::_every_xf.

void VIEWobs::unobs_view  )  [inline, inherited]
 

Definition at line 61 of file view.H.

References VIEWobs::viewobs_list().

Referenced by unobserve().

void XFORMobs::unobs_xform CGEOMptr &  g  )  [inline, inherited]
 

Definition at line 41 of file geom_obs.H.

References XFORMobs::xform_obs_list().

void XFORMobs::unobs_xform  )  [inline, inherited]
 

Definition at line 39 of file geom_obs.H.

References XFORMobs::_all_xf.

Referenced by VisRefImage::unobserve(), and unobserve().

void BufferRefImage::unobserve  ) 
 

Definition at line 105 of file buffer_ref_image.C.

References _f, _list, _observing, RefImage::_view, ARRAY< T >::num(), rem(), DISPobs::unobs_display(), VIEWobs::unobs_view(), XFORMobs::unobs_xform(), and BMESHobs::unsubscribe_all_mesh_notifications().

Referenced by toggle_buffer(), and ~BufferRefImage().

void BMESHobs::unsubscribe_all_mesh_notifications  )  [inline, inherited]
 

Definition at line 890 of file bmesh.H.

References BMESHobs::_all_observers, and ARRAY< T >::rem().

Referenced by VisRefImage::unobserve(), and unobserve().

void BMESHobs::unsubscribe_mesh_notifications BMESH m  )  [inline, inherited]
 

Definition at line 881 of file bmesh.H.

References BMESHobs::bmesh_obs_list(), and ARRAY< T >::rem().

void BufferRefImage::update  )  [virtual]
 

Reimplemented from RefImage.

Definition at line 46 of file buffer_ref_image.C.

References _dirty, RefImage::_format, CoordSystem2d::_height, _observing, RefImage::_type, Array2d< GLuint >::_values, RefImage::_view, CoordSystem2d::_width, glReadPixels(), glViewport(), and need_update().

Referenced by tick().

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 IDRefImage::simplex().

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

Definition at line 190 of file ref_image.H.

References RefImage::_view.

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

void VIEWobs::view_obs  )  [inline, inherited]
 

Definition at line 60 of file view.H.

References VIEWobs::viewobs_list().

Referenced by observe().

static view_list* VIEWobs::viewobs_list  )  [inline, static, protected, inherited]
 

Definition at line 52 of file view.H.

References VIEWobs::_view_obs.

Referenced by VIEWobs::notify_viewobs(), VIEWobs::unobs_view(), and VIEWobs::view_obs().

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().

void XFORMobs::xform_obs  )  [inline, inherited]
 

Definition at line 37 of file geom_obs.H.

References XFORMobs::_all_xf.

Referenced by DISTRIB::DISTRIB(), VisRefImage::observe(), and observe().

void XFORMobs::xform_obs CGELptr g  )  [inline, inherited]
 

Definition at line 36 of file geom_obs.H.

References XFORMobs::xform_obs_list().

static XFORMobs_list& XFORMobs::xform_obs_list CGELptr g  )  [inline, static, protected, inherited]
 

Definition at line 43 of file geom_obs.H.

References XFORMobs::_hash_xf, HASH::add(), and HASH::find().

Referenced by XFORMobs::notify_xform_obs(), XFORMobs::unobs_xform(), and XFORMobs::xform_obs().


Member Data Documentation

BMESHobs_list BMESHobs::_all_observers [static, protected, inherited]
 

Definition at line 940 of file bmesh.H.

Referenced by BMESHobs::broadcast_change(), BMESHobs::broadcast_delete(), BMESHobs::broadcast_merge(), BMESHobs::broadcast_split(), BMESHobs::broadcast_sub_delete(), BMESHobs::broadcast_subdiv_gen(), BMESHobs::broadcast_xform(), BMESHobs::subscribe_all_mesh_notifications(), and BMESHobs::unsubscribe_all_mesh_notifications().

int BufferRefImage::_countup [protected]
 

Definition at line 72 of file buffer_ref_image.H.

Referenced by changed(), reset(), and tick().

int BufferRefImage::_dirty [protected]
 

Definition at line 71 of file buffer_ref_image.H.

Referenced by force_dirty(), need_update(), reset(), tick(), and update().

GELptr BufferRefImage::_f [protected]
 

Definition at line 76 of file buffer_ref_image.H.

Referenced by BufferRefImage(), observe(), and unobserve().

GLenum RefImage::_format [protected, inherited]
 

Definition at line 164 of file ref_image.H.

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

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(), IDRefImage::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 BufferRefImage::_hash [static, protected]
 

Reimplemented from RefImage.

Definition at line 68 of file buffer_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(), IDRefImage::search(), IDRefImage::update(), RefImage::update(), update(), AuxRefImage::update(), and RefImage::write_file().

int FRAMEobs::_index [protected, inherited]
 

Definition at line 37 of file gel.H.

Referenced by FRAMEobs::getIndex(), and FRAMEobs::setIndex().

GELlist BufferRefImage::_list [protected]
 

Definition at line 74 of file buffer_ref_image.H.

Referenced by add(), list(), rem(), and unobserve().

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 BufferRefImage::_observing [protected]
 

Definition at line 73 of file buffer_ref_image.H.

Referenced by BufferRefImage(), is_observing(), observe(), unobserve(), and update().

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::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(), IDRefImage::update(), RefImage::update(), 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(), IDRefImage::update(), RefImage::update(), 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(), need_update(), notify_view(), VisRefImage::observe(), observe(), VisRefImage::unobserve(), unobserve(), update(), AuxRefImage::update(), and RefImage::view().

VIEWobs::view_list * VIEWobs::_view_obs [static, protected, inherited]
 

Definition at line 51 of file view.H.

Referenced by VIEWobs::viewobs_list().

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(), IDRefImage::search(), CoordSystem2d::uint_to_ndc(), CoordSystem2d::uint_to_pix(), IDRefImage::update(), RefImage::update(), 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:44:39 2006 for jot by  doxygen 1.4.4