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

VisRefImage Class Reference

#include <ref_image.H>

Inheritance diagram for VisRefImage:

Inheritance graph
[legend]
Collaboration diagram for VisRefImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~VisRefImage ()
bool need_update ()
virtual void update ()
void force_dirty ()
virtual void vis_update ()
virtual Bsimplex * vis_simplex (CNDCpt &ndc) const
virtual Bface * vis_intersect (CNDCpt &ndc, Wpt &obj_pt) const
virtual void debug (CNDCpt &p) const
void observe ()
void unobserve ()
virtual int tick ()
Bsimplex * simplex (uint id) const
Bsimplex * simplex (CNDCpt &ndc) const
Bsimplex * simplex (Cpoint2i &pix) const
Bvert * vert (uint id) const
Bvert * vert (CNDCpt &ndc) const
Bvert * vert (Cpoint2i &pix) const
Bedge * edge (uint id) const
Bedge * edge (CNDCpt &ndc) const
Bedge * edge (Cpoint2i &pix) const
Bface * face (uint id) const
Bface * face (CNDCpt &ndc) const
Bface * face (Cpoint2i &pix) const
Patch * patch (CNDCpt &ndc) const
Patch * face_patch (CNDCpt &ndc) const
Bsimplex * intersect_sim (CNDCpt &ndc, Wpt &obj_pt) const
Bface * intersect (CNDCpt &ndc, Wpt &obj_pt) const
Bface * intersect (CNDCpt &ndc) const
bool search (CNDCpt &center, double screen_pix_rad, CSimplexFilter &filt, Point2i &hit)
Bsimplex * find_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
Bedge * find_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)
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
CNDCvec & ndc_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 void init ()
static VisRefImage * lookup (CVIEWptr &view=VIEW::peek())
static NDCpt get_cursor ()
static Bsimplex * get_simplex (CNDCpt &cur=get_cursor(), double screen_rad=1, CSimplexFilter &filt=SimplexFilter())
static Bface * get_face (CNDCpt &cur=get_cursor(), double screen_rad=1)
static Bface_list get_faces (const PIXEL_list &pix, double screen_rad=1)
static Bface * Intersect (CNDCpt &ndc, Wpt &obj_pt)
static Bface * Intersect (CNDCpt &ndc)
static Bface * get_face_bc (Wvec &bc, CNDCpt &ndc=get_cursor(), double rad=1)
static Bface * get_sub_face (int level, Wvec &bc, CNDCpt &ndc=get_cursor(), double rad=1)
static Bface * get_edit_face (Wvec &bc, CNDCpt &ndc=get_cursor(), double rad=1)
static Bface * get_edit_face (CNDCpt &ndc=get_cursor(), double rad=1)
static Bface * get_ctrl_face (CNDCpt &cur=get_cursor(), double screen_rad=1)
static Bedge * get_edge (CNDCpt &cur=get_cursor(), double screen_rad=1)
static Bvert * get_vert (CNDCpt &cur=get_cursor(), double screen_rad=1)
static Patch * get_patch (CNDCpt &cur=get_cursor(), double screen_rad=1)
static Patch * get_ctrl_patch (CNDCpt &cur=get_cursor(), double screen_rad=1)
static BMESH * get_mesh (CNDCpt &cur=get_cursor(), double screen_rad=1)
static BMESH * get_ctrl_mesh (CNDCpt &cur=get_cursor(), double screen_rad=1)
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 IDRefImage * instance ()
static void setup_bits (CVIEWptr &)

Protected Types

enum  STATE {
  START = 0, MIDDLE, END, PRIMARY,
  GRAB, DRAG, DROP, NET,
  EVERY
}

Protected Member Functions

 VisRefImage (CVIEWptr &v)
void reset ()
virtual void draw_objects (CGELlist &) const
virtual bool resize (uint new_w, uint new_h)
virtual void notify_change (BMESH *, BMESH::change_t)
virtual void notify_xform (BMESH *, CWtransf &, CMOD &)
virtual void notify (CCAMdataptr &)
virtual void notify (CGELptr &, int)
virtual void notify_exist (CGELptr &, int)
virtual void notify_xform (CGEOMptr &, STATE)
Patch * patch (Bsimplex *sim) const
Patch * face_patch (Bsimplex *sim) const
void allocate ()
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_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
virtual void notify_manip_start (CCAMdataptr &data)
virtual void notify_manip_end (CCAMdataptr &data)
void disp_obs (CGELptr &g)
void disp_obs ()
void unobs_display (CGELptr &g)
void unobs_display ()
void exist_obs ()
void unobs_exist ()
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 ()

Static Protected Member Functions

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_list & observers (BMESH *m)
static void print_names (BMESH *m)
static BMESHobs_list & bmesh_obs_list (BMESH *m)
static void notify_disp_obs (CGELptr &g, int disp)
static void suspend_disp_obs ()
static void activate_disp_obs ()
static DISPobs_list & disp_obs_list (CGELptr &g)
static EXISTobs_list * existobs_list ()
static void notify_exist_obs (CGELptr &o, int f)
static void notify_xform_obs (CGEOMptr &, STATE start)
static void notify_xform_every_obs (CGEOMptr &)
static XFORMobs_list & xform_obs_list (CGELptr &g)

Protected Attributes

int _dirty
int _countup
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 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
static HASH _hash
static BMESHobs_list _all_observers
static GELlist _created
static EXISTobs_list * _exist_obs = 0
static BaseVisRefImageFactory * _factory = 0
static HASH _hash

Friends

class VisRefImageFactory

Detailed Description

Definition at line 565 of file ref_image.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 VisRefImage::~VisRefImage (   )  [inline, virtual]
 

Definition at line 575 of file ref_image.H.

References unobserve().

VisRefImage::VisRefImage (  CVIEWptr &  v  )  [protected]
 

Definition at line 795 of file ref_image.C.

References observe(), and reset().


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 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 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 VisRefImage::debug (  CNDCpt &  p  )  const [virtual]
 

Reimplemented from BaseVisRefImage.

Definition at line 836 of file ref_image.C.

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

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(), observe(), BufferRefImage::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 VisRefImage::draw_objects (  CGELlist &   )  const [protected, virtual]
 

Reimplemented from IDRefImage.

Definition at line 851 of file ref_image.C.

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

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

Definition at line 408 of file ref_image.H.

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

Bedge* IDRefImage::edge (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 402 of file ref_image.H.

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

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

Definition at line 393 of file ref_image.H.

References is_edge(), and IDRefImage::simplex().

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

void XFORMobs::every_xform_obs (   )  [inline, inherited]
 

Definition at line 38 of file geom_obs.H.

References XFORMobs::_every_xf.

void EXISTobs::exist_obs (   )  [inline, inherited]
 

Definition at line 58 of file gel_obs.H.

References EXISTobs::existobs_list().

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

static EXISTobs_list* EXISTobs::existobs_list (   )  [inline, static, protected, inherited]
 

Definition at line 47 of file gel_obs.H.

References EXISTobs::_exist_obs.

Referenced by EXISTobs::exist_obs(), EXISTobs::notify_exist_obs(), and EXISTobs::unobs_exist().

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

Definition at line 409 of file ref_image.H.

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

Bface* IDRefImage::face (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 403 of file ref_image.H.

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

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

Definition at line 397 of file ref_image.H.

References is_face(), and IDRefImage::simplex().

Referenced by IDRefImage::face(), and IDRefImage::is_face_visible().

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

Definition at line 540 of file ref_image.H.

References is_face(), and IDRefImage::patch().

Patch* IDRefImage::face_patch (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 405 of file ref_image.H.

References IDRefImage::simplex().

Referenced by IDRefImage::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 [inherited]
 

Definition at line 606 of file ref_image.C.

References ARRAY< T >::add_uniquely(), check(), ARRAY< T >::clear(), IDRefImage::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 [inherited]
 

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()
)  [inherited]
 

Definition at line 525 of file ref_image.C.

References IDRefImage::search(), and IDRefImage::simplex().

Referenced by get_simplex().

Bedge * IDRefImage::find_neighbor (  CNDCpt &  p,
Bedge *  current,
int  radius = 1
)  const [inherited]
 

Definition at line 539 of file ref_image.C.

References center(), check(), IDRefImage::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().

void VisRefImage::force_dirty (   )  [inline]
 

Definition at line 584 of file 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.

static Bface* VisRefImage::get_ctrl_face (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 664 of file ref_image.H.

References get_ctrl_face(), and get_face().

static BMESH* VisRefImage::get_ctrl_mesh (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 697 of file ref_image.H.

References get_ctrl_mesh(), and get_mesh().

static Patch* VisRefImage::get_ctrl_patch (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 685 of file ref_image.H.

References get_ctrl_patch(), and get_simplex().

Referenced by next_texture().

static NDCpt VisRefImage::get_cursor (   )  [inline, static]
 

Definition at line 597 of file ref_image.H.

References err_msg(), and DEVice_2d::last.

Referenced by toggle_crease(), and toggle_transp().

static Bedge* VisRefImage::get_edge (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 669 of file ref_image.H.

References get_simplex().

static Bface* VisRefImage::get_edit_face (  CNDCpt &  ndc = get_cursor(),
double  rad = 1
)  [inline, static]
 

Definition at line 660 of file ref_image.H.

References get_edit_face().

Bface * VisRefImage::get_edit_face (  Wvec &  bc,
CNDCpt &  ndc = get_cursor(),
double  rad = 1
)  [static]
 

Definition at line 740 of file ref_image.C.

References get_face_bc(), and Bsimplex::mesh().

Referenced by get_edit_face().

Bface * VisRefImage::get_face (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [static]
 

Definition at line 677 of file ref_image.C.

References get_simplex().

Referenced by get_ctrl_face(), get_face_bc(), and get_faces().

Bface * VisRefImage::get_face_bc (  Wvec &  bc,
CNDCpt &  ndc = get_cursor(),
double  rad = 1
)  [static]
 

Definition at line 702 of file ref_image.C.

References get_face(), and Bface::near_pt().

Referenced by get_edit_face(), and get_sub_face().

Bface_list VisRefImage::get_faces (  const PIXEL_list &  pix,
double  screen_rad = 1
)  [static]
 

Definition at line 687 of file ref_image.C.

References ARRAY< T >::add_uniquely(), get_face(), and ARRAY< T >::num().

static BMESH* VisRefImage::get_mesh (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 691 of file ref_image.H.

References get_mesh(), and get_simplex().

Referenced by find_mesh(), and get_ctrl_mesh().

static Patch* VisRefImage::get_patch (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 679 of file ref_image.H.

References get_patch(), and get_simplex().

static Bsimplex* VisRefImage::get_simplex (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1,
CSimplexFilter &  filt = SimplexFilter()
)  [inline, static]
 

Definition at line 605 of file ref_image.H.

References IDRefImage::find_near_simplex(), lookup(), VIEW::peek(), and update().

Referenced by get_ctrl_patch(), get_edge(), get_face(), get_mesh(), get_patch(), and get_vert().

Bface * VisRefImage::get_sub_face (  int  level,
Wvec &  bc,
CNDCpt &  ndc = get_cursor(),
double  rad = 1
)  [static]
 

Definition at line 722 of file ref_image.C.

References get_face_bc(), and Bsimplex::mesh().

static Bvert* VisRefImage::get_vert (  CNDCpt &  cur = get_cursor(),
double  screen_rad = 1
)  [inline, static]
 

Definition at line 674 of file ref_image.H.

References get_simplex().

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.

void VisRefImage::init (   )  [static]
 

Definition at line 803 of file ref_image.C.

References BaseVisRefImage::_factory.

Referenced by lookup(), and SetupGL::SetupGL().

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

Definition at line 522 of file ref_image.H.

References IDRefImage::_instance.

Bface* IDRefImage::intersect (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 430 of file ref_image.H.

References IDRefImage::intersect().

Bface* IDRefImage::intersect (  CNDCpt &  ndc,
Wpt &  obj_pt
)  const [inline, inherited]
 

Definition at line 424 of file ref_image.H.

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

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

static Bface* VisRefImage::Intersect (  CNDCpt &  ndc  )  [inline, static]
 

Definition at line 632 of file ref_image.H.

References Intersect().

static Bface* VisRefImage::Intersect (  CNDCpt &  ndc,
Wpt &  obj_pt
)  [inline, static]
 

Definition at line 624 of file ref_image.H.

References IDRefImage::intersect(), lookup(), VIEW::peek(), and update().

Referenced by Intersect().

Bsimplex* IDRefImage::intersect_sim (  CNDCpt &  ndc,
Wpt &  obj_pt
)  const [inline, inherited]
 

Definition at line 415 of file ref_image.H.

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

Referenced by IDRefImage::intersect().

bool IDRefImage::is_face_visible (  CNDCpt &  ndc,
const Bface *  bf
)  const [inline, inherited]
 

Definition at line 475 of file ref_image.H.

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

bool IDRefImage::is_patch_sil_edge (  CNDCpt &  pix,
const Patch *  patch
)  const [inline, inherited]
 

Definition at line 465 of file ref_image.H.

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

bool IDRefImage::is_patch_sil_edge (  Cpoint2i &  pix,
const Patch *  patch
)  const [inline, inherited]
 

Definition at line 458 of file ref_image.H.

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

Referenced by IDRefImage::is_patch_sil_edge(), and IDRefImage::is_patch_sil_edge_near().

bool IDRefImage::is_patch_sil_edge_near (  CNDCpt &  ndc,
const Patch *  patch,
int  radius = 1
)  const [inherited]
 

Definition at line 654 of file ref_image.C.

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

bool IDRefImage::is_simplex_near (  CNDCpt &  p,
const Bsimplex *  simp,
int  radius = 1
)  const [inherited]
 

Definition at line 630 of file ref_image.C.

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

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

Definition at line 362 of file ref_image.H.

References IDRefImage::key_to_rgba2().

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

uint IDRefImage::key_to_rgba2 (  uint  key  )  [static, inherited]
 

Definition at line 926 of file ref_image.C.

References IDRefImage::_blue_bits, IDRefImage::_green_bits, IDRefImage::_nonstandard_bits, and IDRefImage::_red_bits.

Referenced by IDRefImage::key_to_rgba().

int REFcounter::Lock (   )  [inline, inherited]
 

Definition at line 105 of file ref.H.

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

Referenced by REFlock::REFlock().

static VisRefImage* VisRefImage::lookup (  CVIEWptr &  view = VIEW::peek()  )  [inline, static]
 

Reimplemented from IDRefImage.

Definition at line 588 of file ref_image.H.

References BaseVisRefImage::_factory, init(), BaseVisRefImage::lookup(), and RefImage::view().

Referenced by debug_vis_ref_img(), get_simplex(), Intersect(), and toggle_crease().

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

bool IDRefImage::near_pix (  Cpoint2i &  pix,
Point2i &  ret,
Patch *  patch
)  [inline, inherited]
 

Definition at line 486 of file ref_image.H.

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

bool VisRefImage::need_update (   ) 
 

Definition at line 810 of file ref_image.C.

References _dirty, RefImage::_view, int(), min(), resize(), and round().

Referenced by debug_vis_ref_img(), and update().

virtual void VisRefImage::notify (  CGELptr &  ,
int 
)  [inline, protected, virtual]
 

Implements DISPobs.

Definition at line 755 of file ref_image.H.

References reset().

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

Implements CAMobs.

Definition at line 752 of file ref_image.H.

References reset().

virtual void VisRefImage::notify_change (  BMESH *  ,
BMESH::change_t 
)  [inline, protected, virtual]
 

Reimplemented from BMESHobs.

Definition at line 748 of file ref_image.H.

References reset().

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 VisRefImage::notify_exist (  CGELptr &  ,
int 
)  [inline, protected, virtual]
 

Implements EXISTobs.

Definition at line 758 of file ref_image.H.

References reset().

static void EXISTobs::notify_exist_obs (  CGELptr &  o,
int  f
)  [inline, static, inherited]
 

Definition at line 52 of file gel_obs.H.

References EXISTobs::_exist_obs, and EXISTobs::existobs_list().

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 XFORMobs::notify_xform (  CGEOMptr &  ,
STATE  state
)  [pure virtual, inherited]
 

Referenced by XFORMobs::notify_xform_obs().

virtual void VisRefImage::notify_xform (  CGEOMptr &  ,
STATE 
)  [inline, protected, virtual]
 

Definition at line 761 of file ref_image.H.

References reset().

virtual void VisRefImage::notify_xform (  BMESH *  ,
CWtransf &  ,
CMOD & 
)  [inline, protected, virtual]
 

Reimplemented from BMESHobs.

Definition at line 749 of file ref_image.H.

References reset().

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 VisRefImage::observe (   ) 
 

Definition at line 870 of file ref_image.C.

References RefImage::_view, DISPobs::disp_obs(), EXISTobs::exist_obs(), BMESHobs::subscribe_all_mesh_notifications(), and XFORMobs::xform_obs().

Referenced by VisRefImage().

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.

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

Definition at line 534 of file ref_image.H.

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

Patch* IDRefImage::patch (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 404 of file ref_image.H.

References IDRefImage::simplex().

Referenced by IDRefImage::face_patch(), and IDRefImage::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 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().

void VisRefImage::reset (   )  [inline, protected]
 

Definition at line 734 of file ref_image.H.

References _countup, and _dirty.

Referenced by notify(), notify_change(), notify_exist(), notify_xform(), resize(), and VisRefImage().

virtual bool VisRefImage::resize (  uint  new_w,
uint  new_h
)  [inline, protected, virtual]
 

Reimplemented from Array2d< GLuint >.

Definition at line 739 of file ref_image.H.

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

Referenced by need_update().

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

Definition at line 370 of file ref_image.H.

References IDRefImage::rgba_to_key2().

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

uint IDRefImage::rgba_to_key2 (  uint  rgba  )  [static, inherited]
 

Definition at line 1000 of file ref_image.C.

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

Referenced by IDRefImage::rgba_to_key().

bool IDRefImage::search (  CNDCpt &  center,
double  screen_pix_rad,
CSimplexFilter &  filt,
Point2i &  hit
)  [inherited]
 

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

Referenced by IDRefImage::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, inherited]
 

Definition at line 521 of file ref_image.H.

References IDRefImage::lookup(), and IDRefImage::set_instance().

static void IDRefImage::set_instance (  IDRefImage *  id_ref  )  [inline, static, inherited]
 

Definition at line 520 of file ref_image.H.

References IDRefImage::_instance.

Referenced by IDRefImage::set_instance().

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 IDRefImage::setup_bits (  CVIEWptr &   )  [static, inherited]
 

Definition at line 358 of file ref_image.C.

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

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

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

Definition at line 387 of file ref_image.H.

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

Bsimplex* IDRefImage::simplex (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 386 of file ref_image.H.

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

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

Definition at line 383 of file ref_image.H.

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

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

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 observe(), and BufferRefImage::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 VisRefImage::tick (   )  [virtual]
 

Reimplemented from FRAMEobs.

Definition at line 918 of file ref_image.C.

References _countup, _dirty, 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 unobserve(), BufferRefImage::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 EXISTobs::unobs_exist (   )  [inline, inherited]
 

Definition at line 59 of file gel_obs.H.

References EXISTobs::existobs_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 unobserve(), and BufferRefImage::unobserve().

void VisRefImage::unobserve (   ) 
 

Definition at line 894 of file ref_image.C.

References RefImage::_view, DISPobs::unobs_display(), EXISTobs::unobs_exist(), XFORMobs::unobs_xform(), and BMESHobs::unsubscribe_all_mesh_notifications().

Referenced by ~VisRefImage().

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 unobserve(), and BufferRefImage::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().

virtual void VisRefImage::update (   )  [inline, virtual]
 

Reimplemented from IDRefImage.

Definition at line 579 of file ref_image.H.

References _dirty, need_update(), and IDRefImage::update().

Referenced by get_simplex(), Intersect(), tick(), toggle_crease(), and vis_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(), 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().

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

Definition at line 407 of file ref_image.H.

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

Bvert* IDRefImage::vert (  CNDCpt &  ndc  )  const [inline, inherited]
 

Definition at line 401 of file ref_image.H.

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

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

Definition at line 389 of file ref_image.H.

References is_vert(), and IDRefImage::simplex().

Referenced by IDRefImage::vert().

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

Definition at line 190 of file ref_image.H.

References RefImage::_view.

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

virtual Bface* VisRefImage::vis_intersect (  CNDCpt &  ndc,
Wpt &  obj_pt
)  const [inline, virtual]
 

Implements BaseVisRefImage.

Definition at line 707 of file ref_image.H.

References IDRefImage::intersect().

virtual Bsimplex* VisRefImage::vis_simplex (  CNDCpt &  ndc  )  const [inline, virtual]
 

Implements BaseVisRefImage.

Definition at line 706 of file ref_image.H.

References IDRefImage::simplex().

virtual void VisRefImage::vis_update (   )  [inline, virtual]
 

Implements BaseVisRefImage.

Definition at line 705 of file ref_image.H.

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

void XFORMobs::xform_obs (   )  [inline, inherited]
 

Definition at line 37 of file geom_obs.H.

References XFORMobs::_all_xf.

Referenced by DISTRIB::DISTRIB(), observe(), and BufferRefImage::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().


Friends And Related Function Documentation

friend class VisRefImageFactory [friend]
 

Definition at line 724 of file ref_image.H.


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

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

Definition at line 550 of file ref_image.H.

Referenced by IDRefImage::rgba_to_key2(), and IDRefImage::setup_bits().

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

Definition at line 549 of file ref_image.H.

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

int VisRefImage::_countup [protected]
 

Definition at line 728 of file ref_image.H.

Referenced by reset(), and tick().

GELlist EXISTobs::_created [static, protected, inherited]
 

Definition at line 44 of file gel_obs.H.

int VisRefImage::_dirty [protected]
 

Definition at line 727 of file ref_image.H.

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

EXISTobs_list * EXISTobs::_exist_obs = 0 [static, protected, inherited]
 

Definition at line 46 of file gel_obs.H.

Referenced by EXISTobs::existobs_list(), and EXISTobs::notify_exist_obs().

BaseVisRefImageFactory * BaseVisRefImage::_factory = 0 [static, protected, inherited]
 

Definition at line 55 of file base_ref_image.H.

Referenced by init(), lookup(), and BaseVisRefImage::lookup().

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(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

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

Definition at line 548 of file ref_image.H.

Referenced by IDRefImage::key_to_rgba2(), IDRefImage::rgba_to_key2(), and IDRefImage::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(), 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 BaseVisRefImage::_hash [static, protected, inherited]
 

Definition at line 58 of file base_ref_image.H.

Referenced by BaseVisRefImage::lookup().

HASH BMESHobs::_hash [static, protected, inherited]
 

Reimplemented in BufferRefImage.

Definition at line 936 of file bmesh.H.

Referenced by BMESHobs::bmesh_obs_list().

HASH IDRefImage::_hash [static, protected, inherited]
 

Reimplemented from RefImage.

Definition at line 545 of file ref_image.H.

Referenced by IDRefImage::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(), BufferRefImage::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().

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

Definition at line 554 of file ref_image.H.

Referenced by IDRefImage::instance(), and IDRefImage::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, inherited]
 

Definition at line 551 of file ref_image.H.

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

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

Definition at line 547 of file ref_image.H.

Referenced by IDRefImage::key_to_rgba2(), IDRefImage::rgba_to_key2(), and IDRefImage::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::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(), 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(), IDRefImage::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 need_update(), BufferRefImage::need_update(), BufferRefImage::notify_view(), observe(), BufferRefImage::observe(), 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(), IDRefImage::search(), CoordSystem2d::uint_to_ndc(), CoordSystem2d::uint_to_pix(), IDRefImage::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:47:54 2006 for jot by  doxygen 1.4.4