#include <show_tris.H>
Inheritance diagram for SHOW_TRIS:
Public Types | |
typedef const Triangle | CTriangle |
typedef ARRAY< Triangle > | Triangle_list |
typedef const Triangle_list | CTriangle_list |
enum | ref_img_t { REF_IMG_NONE = 0, REF_IMG_ID = 1, REF_IMG_COLOR = 2, REF_IMG_COLOR_2 = 4, REF_IMG_ID_PRE1 = 8, REF_IMG_ID_PRE2 = 16, REF_IMG_ID_PRE3 = 32, REF_IMG_ID_PRE4 = 64, REF_IMG_TEX_MEM = 128 } |
Public Member Functions | |
SHOW_TRIS (const Triangle_list &tris=Triangle_list(), const COLOR &fill_color=Color::yellow, const COLOR &line_color=Color::black, double alpha=1) | |
CTriangle_list & | tris () const |
void | set_tris (CTriangle_list &tris) |
CCOLOR & | fill_color () const |
CCOLOR & | line_color () const |
double | alpha () const |
void | set_fill_color (CCOLOR &color) |
void | set_line_color (CCOLOR &color) |
void | set_alpha (double alpha) |
void | set_line_width (double w) |
void | set_do_fill (bool b=true) |
void | set_do_lines (bool b=true) |
void | add (CTriangle &tri) |
void | clear () |
int | num () const |
virtual int | draw (CVIEWptr &v) |
virtual DATA_ITEM * | dup () const |
DEFINE_RTTI_METHODS3 ("GEL", GEL *, DATA_ITEM, CDATA_ITEM *) | |
virtual CTAGlist & | tags () const |
virtual RAYhit & | intersect (RAYhit &r, mlib::CWtransf &m=mlib::Identity, int uv=0) const |
virtual RAYnear & | nearest (RAYnear &r, mlib::CWtransf &m=mlib::Identity) const |
virtual bool | inside (mlib::CXYpt_list &) const |
virtual bool | needs_blend () const |
virtual BBOX | bbox (int=0) const |
virtual bool | cull (const VIEW *) const |
virtual bool | is_3D () const |
virtual bool | can_do_halo () const |
virtual Cstr_ptr & | name () const |
virtual ostream & | print (ostream &s) const |
void | Own () const |
void | Free () const |
int | Lock () |
void | Unlock () |
int | Unique () const |
virtual void | add_tags () const |
virtual STDdstream & | format (STDdstream &d) const |
virtual STDdstream & | decode (STDdstream &d) |
virtual void | recompute () |
virtual STAT_STR_RET | class_name () const =0 |
virtual int | is_of_type (Cstr_ptr &t) const |
virtual int | draw_id_ref () |
virtual int | draw_id_ref_pre1 () |
virtual int | draw_id_ref_pre2 () |
virtual int | draw_id_ref_pre3 () |
virtual int | draw_id_ref_pre4 () |
virtual int | draw_color_ref () |
virtual int | draw_color_ref_2 () |
virtual int | draw_tex_mem_ref () |
virtual ref_img_t | use_ref_image () |
virtual int | draw_vis_ref () |
virtual int | draw_ref_img (ref_img_t t) |
virtual int | draw_final (CVIEWptr &) |
Static Public Member Functions | |
static STAT_STR_RET | static_name () |
static STAT_STR_RET | static_name () |
static int | add_decoder (Cstr_ptr &d, DATA_ITEM *di, int copy=-1) |
static void | set_default_decoder (DATA_ITEM *(*d)(STDdstream &, Cstr_ptr &, DATA_ITEM *)) |
static DATA_ITEM * | Decode (STDdstream &d, int DelayDecoding=0) |
static DATA_ITEM * | lookup (Cstr_ptr &d) |
static HASH * | di_hash () |
Protected Member Functions | |
void | draw_filled () const |
void | draw_flat_tri (const Triangle &tri) const |
void | draw_lines () const |
void | draw_wire_tri (const Triangle &tri) const |
Protected Attributes | |
Triangle_list | _tris |
COLOR | _fill_color |
COLOR | _line_color |
double | _alpha |
GLfloat | _line_width |
bool | _do_fill |
bool | _do_lines |
int | _copy |
TAGlist | _DEFINERtags |
Static Protected Attributes | |
static TAGlist * | _gel_tags = 0 |
Classes | |
struct | Triangle |
Definition at line 14 of file show_tris.H.
|
Definition at line 30 of file show_tris.H. |
|
Definition at line 32 of file show_tris.H. |
|
Definition at line 31 of file show_tris.H. |
|
Definition at line 25 of file ref_img_client.H. |
|
Definition at line 36 of file show_tris.H. Referenced by dup(). |
|
Definition at line 66 of file show_tris.H. References _tris. |
|
Definition at line 41 of file data_item.C. References DATA_ITEM::_hash, and HASH::add(). Referenced by JOTvar< OBJ, TYPE >::check_inst_name(), FUNC_ITEM::FUNC_ITEM(), hashdist::hashdist(), JOTvar< OBJ, TYPE >::JOTvar(), and DISTRIB::notify_exist(). |
|
Definition at line 205 of file data_item.H. |
|
Definition at line 55 of file show_tris.H. References _alpha. |
|
|
|
Reimplemented in GEOM. |
|
|
Definition at line 67 of file show_tris.H. References _tris, and ARRAY< T >::clear(). |
|
|
|
Definition at line 57 of file data_item.C. References DATA_ITEM::_copy, DATA_ITEM::_decode_unknown, DATA_ITEM::class_name(), DATA_ITEM::decode(), DATA_ITEM::dup(), Config::get_var_bool(), and DATA_ITEM::lookup(). Referenced by JOThash::get(), DISTRIB::interpret(), and operator>>(). |
|
Reimplemented in JOTsend_geom, and BMESH. Definition at line 145 of file data_item.C. References DATA_ITEM::class_name(), COMMENT::decode(), j, COMMENT::name(), TAGformat::read_end_id(), TAGformat::read_id(), DATA_ITEM::recompute(), and DATA_ITEM::tags(). Referenced by DATA_ITEM::Decode(), BMESH::decode(), JOTio::get(), BMESH::get_patches(), Patch::get_texture(), VIEW::get_view_animator(), and VIEW::get_view_data_file(). |
|
|
|
Definition at line 225 of file data_item.H. References DATA_ITEM::_hash. |
|
Reimplemented from GEL. Definition at line 72 of file show_tris.H. References _do_fill, _do_lines, _tris, draw_filled(), draw_lines(), ARRAY< T >::empty(), and num(). |
|
Reimplemented in GELset. Definition at line 55 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(), and RefImageClient::draw_tex_mem_ref(). |
|
Reimplemented in GELset. Definition at line 56 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Definition at line 94 of file show_tris.H. References _alpha, _fill_color, _tris, draw_flat_tri(), GL_VIEW::end_polygon_offset(), GL_COL(), GL_CURRENT_BIT, GL_ENABLE_BIT, GL_FLAT, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, GL_LIGHTING_BIT, GL_TRIANGLES, GL_TRUE, glBegin(), glEnable(), glEnd(), glLightModeli(), glPopAttrib(), glPushAttrib(), glShadeModel(), GL_VIEW::init_polygon_offset(), and ARRAY< T >::num(). Referenced by draw(). |
|
Reimplemented in GELset, GEOM, GESTURE, ControlLineTexture, HiddenLineTexture, BMESH, and Patch. Definition at line 100 of file ref_img_client.H. Referenced by Patch::draw_final(), HiddenLineTexture::draw_final(), and ControlLineTexture::draw_final(). |
|
Definition at line 110 of file show_tris.H. References SHOW_TRIS::Triangle::_a, SHOW_TRIS::Triangle::_b, SHOW_TRIS::Triangle::_c, mlib::Point3< P, V >::data(), mlib::Vec3< V >::data(), glNormal3dv(), glVertex3dv(), and SHOW_TRIS::Triangle::norm(). Referenced by draw_filled(). |
|
Reimplemented in GELset, and OGLTexture. Definition at line 50 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 51 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 52 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 53 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset. Definition at line 54 of file ref_img_client.H. Referenced by RefImageClient::draw_ref_img(). |
|
Definition at line 116 of file show_tris.H. References _alpha, _line_color, _line_width, _tris, draw_wire_tri(), GL_VIEW::end_line_smooth(), GL_COL(), GL_CURRENT_BIT, GL_LIGHTING, GL_LINES, glBegin(), glDisable(), glEnd(), GL_VIEW::init_line_smooth(), and ARRAY< T >::num(). Referenced by draw(). |
|
|
Reimplemented in DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, and MSLDShader. Definition at line 57 of file ref_img_client.H. References RefImageClient::draw_color_ref(). Referenced by RefImageClient::draw_ref_img(). |
|
Reimplemented in GELset, GEOM, LINE3D, OGLTexture, ControlFrameTexture, ControlLineTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, ZcrossTexture, CAMwidget_anchor, CAMwidget_anchor, BMESH, Patch, BALLwidget_anchor, and GRIDwidget_anchor. Definition at line 68 of file ref_img_client.H. Referenced by Patch::draw_vis_ref(). |
|
Definition at line 128 of file show_tris.H. References SHOW_TRIS::Triangle::_a, SHOW_TRIS::Triangle::_b, SHOW_TRIS::Triangle::_c, mlib::Point3< P, V >::data(), and glVertex3dv(). Referenced by draw_lines(). |
|
Implements GEL. Definition at line 83 of file show_tris.H. References SHOW_TRIS(). |
|
Definition at line 53 of file show_tris.H. References _fill_color. |
|
Reimplemented in Animator, JOTdone, JOTsend_geom, and BMESH. Definition at line 194 of file data_item.C. References DATA_ITEM::class_name(), TAGformat::end_id(), Config::get_var_bool(), TAGformat::id(), DATA_ITEM::tags(), and STDdstream::write_newline(). Referenced by JOTdone::format(), BMESH::format(), Animator::format(), JOTio::put(), and VIEW::put_view_data_file(). |
|
Definition at line 76 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Reimplemented in TEXT2D. |
|
|
|
Reimplemented in GEOM. |
|
Definition at line 214 of file data_item.H. References IS. Referenced by BMESH::operator=(). |
|
Definition at line 54 of file show_tris.H. References _line_color. |
|
Definition at line 105 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::REFlock(). |
|
Definition at line 222 of file data_item.H. References DATA_ITEM::_hash, and HASH::find(). Referenced by DATA_ITEM::Decode(), FUNC_ITEM::FUNC_ITEM(), Patch::get_tex(), and BMESH::read_jot_stream(). |
|
Reimplemented in GEOM. Definition at line 129 of file gel.H. References GEL::_name. Referenced by operator<<(). |
|
Reimplemented in GEOM. |
|
Reimplemented in GEOM, ICON2D, DrawWidget, DEBUG_ELLIPSE, GESTURE, CAMwidget_anchor, CAMwidget_anchor, BALLwidget_anchor, and GRIDwidget_anchor. |
|
Definition at line 68 of file show_tris.H. References _tris, and ARRAY< T >::num(). Referenced by draw(). |
|
Definition at line 59 of file ref.H. References REFcounter::_mutex, REFcounter::_u, and REF_ME. |
|
Reimplemented in GEOM. Definition at line 131 of file gel.H. Referenced by operator<<(). |
|
Reimplemented in Patch. Definition at line 208 of file data_item.H. Referenced by DATA_ITEM::decode(). |
|
Definition at line 59 of file show_tris.H. References _alpha. |
|
Definition at line 218 of file data_item.H. References DATA_ITEM::_decode_unknown. |
|
Definition at line 63 of file show_tris.H. References _do_fill. |
|
Definition at line 64 of file show_tris.H. References _do_fill. |
|
Definition at line 57 of file show_tris.H. References _fill_color. |
|
Definition at line 58 of file show_tris.H. References _line_color. |
|
Definition at line 61 of file show_tris.H. References _line_width. |
|
Definition at line 51 of file show_tris.H. References _tris. |
|
Definition at line 44 of file ref_img_client.H. References RET_STAT_STR. Referenced by BMESH::operator=(). |
|
Definition at line 31 of file data_item.C. References RET_STAT_STR. Referenced by BALLwidget_anchor::BALLwidget_anchor(), CAMwidget_anchor::CAMwidget_anchor(), Patch::cur_tex(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_triangles(), OGLTexture::draw_vis_ref(), VIEW::get_view_animator(), GRIDwidget_anchor::GRIDwidget_anchor(), and toggle_sil_frame(). |
|
Reimplemented from DATA_ITEM. Reimplemented in GEOM. Definition at line 113 of file gel.H. References GEL::_gel_tags. Referenced by GEOM::tags(). |
|
Definition at line 50 of file show_tris.H. References _tris. |
|
Definition at line 115 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. |
|
Definition at line 111 of file ref.H. References REFcounter::_mutex, and REFcounter::_u. Referenced by REFlock::~REFlock(). |
|
Reimplemented in GEOM, DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, MSLDShader, BMESH, and Patch. Definition at line 60 of file ref_img_client.H. References RefImageClient::REF_IMG_NONE. Referenced by OGLTexture::draw_id_ref(), and Patch::use_ref_image(). |
|
Definition at line 89 of file show_tris.H. Referenced by alpha(), draw_filled(), draw_lines(), and set_alpha(). |
|
Definition at line 197 of file data_item.H. Referenced by DATA_ITEM::Decode(). |
|
Definition at line 198 of file data_item.H. Referenced by DATA_ITEM::tags(). |
|
Definition at line 91 of file show_tris.H. Referenced by draw(), set_do_fill(), and set_do_lines(). |
|
Definition at line 92 of file show_tris.H. Referenced by draw(). |
|
Definition at line 87 of file show_tris.H. Referenced by draw_filled(), fill_color(), and set_fill_color(). |
|
Definition at line 138 of file gel.H. Referenced by GEL::tags(). |
|
Definition at line 88 of file show_tris.H. Referenced by draw_lines(), line_color(), and set_line_color(). |
|
Definition at line 90 of file show_tris.H. Referenced by draw_lines(), and set_line_width(). |
|
Definition at line 86 of file show_tris.H. Referenced by add(), clear(), draw(), draw_filled(), draw_lines(), num(), set_tris(), and tris(). |