#include <tri_strips_texture.H>
Inheritance diagram for TriStripsTexture:
Public Types | |
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 | |
TriStripsTexture (Patch *patch=0) | |
DEFINE_RTTI_METHODS2 ("Show tri-strips", BasicTexture, CDATA_ITEM *) | |
virtual void | push_alpha (double a) |
virtual void | pop_alpha () |
virtual int | draw (CVIEWptr &v) |
virtual DATA_ITEM * | dup () const |
DEFINE_RTTI_METHODS3 ("Textured patch", GTexture *, DATA_ITEM, CDATA_ITEM *) | |
DEFINE_RTTI_METHODS2 ("BasicTexture", OGLTexture, CDATA_ITEM *) | |
DEFINE_RTTI_METHODS2 ("OGLTexture", GTexture, CDATA_ITEM *) | |
virtual void | changed () |
virtual int | dl_valid (CVIEWptr &v) |
bool | set_face_culling () const |
int | draw_id_sils (bool omit_concave_sils, GLfloat width) |
int | draw_id_triangles (bool use_polygon_offset, bool draw_id_colors, double offset_factor=Config::get_var_dbl("BMESH_OFFSET_FACTOR", 12.0, true), double offset_units=Config::get_var_dbl("BMESH_OFFSET_UNITS", 1.0, true)) |
int | draw_id_creases (GLfloat width) |
int | draw_stencil () |
void | draw_vert_and_edge_strips (bool disable_lights=0, GLfloat line_width=3, GLfloat point_size=5, bool set_color=1, CCOLOR &color=COLOR::black) const |
virtual int | draw_vis_ref () |
virtual int | draw_id_ref () |
STAT_STR_RET | type () const |
Patch * | patch () const |
BMESH * | mesh () const |
StripCB * | cb () const |
void | set_cb (StripCB *cb) |
GTexture * | ctrl () const |
void | set_ctrl (GTexture *c) |
virtual int | set_color (CCOLOR &) |
virtual GTexture_list | gtextures () const |
virtual void | set_patch (Patch *p) |
double | alpha () const |
virtual bool | draws_filled () const |
virtual void | draw_with_alpha (double alpha) |
virtual void | draw_filled_tris (double alpha) |
virtual void | draw_non_filled_tris (double alpha) |
virtual int | read_stream (istream &, str_list &) |
virtual int | write_data (ostream &) const |
virtual int | write_stream (ostream &os) const |
virtual CTAGlist & | tags () 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_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_ref_img (ref_img_t t) |
virtual int | draw_final (CVIEWptr &) |
Run-Time Type Id | |
DEFINE_RTTI_METHODS3 ("Flat Shading", FlatShadeTexture *, BasicTexture, CDATA_ITEM *) | |
Run-Time Type Id | |
DEFINE_RTTI_METHODS3 ("Flat Shading", FlatShadeTexture *, BasicTexture, CDATA_ITEM *) | |
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 () |
Statics | |
static void | toggle_debug_uv () |
static bool | debug_uv () |
Statics | |
static void | toggle_debug_uv () |
static bool | debug_uv () |
Protected Member Functions | |
void | delete_dl () |
void | check_patch_texture_map () |
Protected Attributes | |
bool | _debug_uv_in_dl |
True if "debug uv" calls are in current display list. | |
bool | _has_uv_coords |
True if some faces have uv-coords. | |
uint | _check_uv_coords_stamp |
_patch->stamp() at last check for uv-coords. | |
TEXTUREptr | _debug_uv_tex |
texture image for revealing uv-coords | |
str_ptr | _debug_tex_path |
path to above image | |
DLhandler | _dl |
Patch * | _patch |
StripCB * | _cb |
ARRAY< double > | _alphas |
GTexture * | _ctrl |
int | _copy |
TAGlist | _DEFINERtags |
Static Protected Attributes | |
static bool | _debug_uv = false |
Tells whether to make "debug uv" calls when rendering:. | |
static Cstr_ptr | _type_name |
static Cstr_ptr | _begin_tag |
static Cstr_ptr | _end_tag |
Definition at line 86 of file tri_strips_texture.H.
|
Definition at line 25 of file ref_img_client.H. |
|
Definition at line 88 of file tri_strips_texture.H. |
|
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. |
|
|
|
Reimplemented from GTexture. Reimplemented in DotsShader_EX, and HalftoneShaderEx. Definition at line 80 of file basic_texture.H. References BasicTexture::_dl, and DLhandler::invalidate(). Referenced by HalftoneShaderEx::changed(), DotsShader_EX::changed(), pop_alpha(), push_alpha(), ColorIDTexture::set_polygon_mode(), MSLDShader::set_tone_shader(), GLSLHatching::set_tone_shader(), and DotsShader::set_tone_shader(). |
|
Definition at line 264 of file basic_texture.C. References GTexture::_patch, Cstr_ptr, APPEAR::has_texture(), NULL_STR, Patch::set_texture(), Patch::set_texture_file(), and Patch::texture_file(). Referenced by SmoothShadeTexture::draw(), LineDrawingTexture::draw(), FlatShadeTexture::draw(), and CurvatureTexture::draw(). |
|
|
Definition at line 47 of file gtexture.H. References GTexture::_ctrl. |
|
Definition at line 98 of file flat_shade.H. References FlatShadeTexture::_debug_uv. Referenced by debug_cb(), and FlatShadeTexture::draw(). |
|
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 91 of file basic_texture.H. References BasicTexture::_dl, and DLhandler::delete_all_dl(). Referenced by BasicTexture::~BasicTexture(). |
|
Definition at line 225 of file data_item.H. References DATA_ITEM::_hash. |
|
Definition at line 310 of file basic_texture.C. References BasicTexture::_dl, GTexture::_patch, Patch::stamp(), and DLhandler::valid(). Referenced by XToonTexture::draw(), ToonTexture_1D::draw(), SmoothShadeTexture::draw(), LineDrawingTexture::draw(), GLSLShader::draw(), CurvatureTexture::draw(), and BasicTexture::draw(). |
|
Reimplemented from FlatShadeTexture. Definition at line 110 of file tri_strips_texture.H. References GTexture::_cb, GTexture::_patch, Patch::cur_borders(), Patch::cur_creases(), FlatShadeTexture::draw(), EdgeStrip::draw(), GL_CURRENT_BIT, GL_ENABLE_BIT, GL_LIGHTING, GL_LINE_BIT, glDisable(), glLineWidth(), glPopAttrib(), and glPushAttrib(). |
|
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(). |
|
Reimplemented in ControlLineTexture, HiddenLineTexture, KeyLineTexture, and NormalsTexture. Definition at line 112 of file gtexture.H. References GTexture::draw_with_alpha(), and GTexture::draws_filled(). Referenced by FaderTexture::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 211 of file basic_texture.C. References GTexture::_patch, Patch::cur_creases(), and ColorIDTexture::draw_edges(). |
|
Reimplemented from RefImageClient. Definition at line 139 of file basic_texture.C. References GTexture::_patch, ColorIDTexture::draw(), ColorIDTexture::draw_black(), Patch::get_tex(), VIEW::peek(), RefImageClient::REF_IMG_ID, DATA_ITEM::static_name(), and RefImageClient::use_ref_image(). |
|
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 160 of file basic_texture.C. References GTexture::_patch, Patch::cur_sils(), ColorIDTexture::draw_edges(), and EdgeStrip::get_filtered(). |
|
Definition at line 186 of file basic_texture.C. References GTexture::_patch, ColorIDTexture::draw(), ColorIDTexture::draw_black(), GL_VIEW::end_polygon_offset(), err_msg(), Patch::get_tex(), GL_VIEW::init_polygon_offset(), Patch::num_faces(), VIEW::peek(), and DATA_ITEM::static_name(). |
|
Reimplemented in ControlLineTexture, HiddenLineTexture, KeyLineTexture, and NormalsTexture. Definition at line 116 of file gtexture.H. References GTexture::draw_with_alpha(), and GTexture::draws_filled(). Referenced by FaderTexture::draw(). |
|
|
Definition at line 91 of file basic_texture.C. References GTexture::_patch, GTexture::cb(), Patch::draw_tri_strips(), GL_ALWAYS, GL_DEPTH_TEST, GL_INCR, GL_KEEP, glColorMask(), glDisable(), glEnable(), glStencilFunc(), and glStencilOp(). |
|
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(). |
|
Definition at line 224 of file basic_texture.C. References GTexture::_cb, GTexture::_patch, Patch::draw_edge_strips(), Patch::draw_vert_strips(), GL_LIGHTING, glColor3dv(), glDisable(), glLineWidth(), glPointSize(), Patch::num_edge_strips(), and Patch::num_vert_strips(). |
|
Reimplemented from RefImageClient. Reimplemented in ControlFrameTexture, ControlLineTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, and ZcrossTexture. Definition at line 127 of file basic_texture.C. References GTexture::_patch, BMESHdrawable::draw(), Patch::get_tex(), VIEW::peek(), and DATA_ITEM::static_name(). Referenced by ControlLineTexture::draw_vis_ref(). |
|
|
Reimplemented in ControlFrameTexture, VertNormalsTexture, VertUVTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, and ZcrossTexture. Definition at line 95 of file gtexture.H. Referenced by FaderTexture::draw(), GTexture::draw_filled_tris(), and GTexture::draw_non_filled_tris(). |
|
Reimplemented from FlatShadeTexture. Definition at line 123 of file tri_strips_texture.H. |
|
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(). |
|
Reimplemented in ColorIDTexture, ControlLineTexture, DotsShader, DotsShader_EX, GLSLHatching, HalftoneShader, HalftoneShaderEx, HiddenLineTexture, KeyLineTexture, MSLDShader, NormalsTexture, SilFrameTexture, WireframeTexture, and ZcrossFrameTexture. Definition at line 58 of file gtexture.H. Referenced by GTexture::pop_alpha(), GTexture::push_alpha(), and GTexture::set_patch(). |
|
Definition at line 214 of file data_item.H. References IS. Referenced by BMESH::operator=(). |
|
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(). |
|
Definition at line 42 of file gtexture.H. References GTexture::_patch, and Patch::mesh(). Referenced by ControlFrameTexture::build_strip(), VertUVTexture::draw(), VertNormalsTexture::draw(), ControlLineTexture::draw(), ControlFrameTexture::draw_level(), and OGLTexture::set_face_culling(). |
|
Definition at line 41 of file gtexture.H. References GTexture::_patch. Referenced by VertUVTexture::compute_UV_grads(), HalftoneShaderEx::draw(), ControlFrameTexture::draw_selected_edges(), ControlFrameTexture::draw_selected_faces(), ControlFrameTexture::draw_selected_verts(), and DotsShader_EX::draw_tex_mem_ref(). |
|
Reimplemented from GTexture. Definition at line 103 of file tri_strips_texture.H. References BasicTexture::changed(), and GTexture::pop_alpha(). |
|
Reimplemented from GTexture. Definition at line 99 of file tri_strips_texture.H. References BasicTexture::changed(), and GTexture::push_alpha(). |
|
Reimplemented in SolidColorTexture. Definition at line 123 of file gtexture.H. Referenced by Patch::read_texture(). |
|
Reimplemented in Patch. Definition at line 208 of file data_item.H. Referenced by DATA_ITEM::decode(). |
|
Definition at line 45 of file gtexture.H. References GTexture::_cb. Referenced by LineDrawingTexture::draw(), and CurvatureTexture::draw(). |
|
Reimplemented in ControlFrameTexture, CreasesTexture, GLSLXToonShader, HiddenLineTexture, KeyLineTexture, NormalsTexture, SilFrameTexture, SilsTexture, SolidColorTexture, ToonTexture_1D, WireframeTexture, XToonTexture, ZcrossFrameTexture, and ZcrossTexture. Definition at line 52 of file gtexture.H. Referenced by NormalsTexture::set_color(). |
|
Definition at line 48 of file gtexture.H. References GTexture::_ctrl. Referenced by FaderTexture::draw(), and FaderTexture::FaderTexture(). |
|
Definition at line 218 of file data_item.H. References DATA_ITEM::_decode_unknown. |
|
Definition at line 112 of file basic_texture.C. References get_cur_mesh(), Config::get_var_bool(), GL_CULL_FACE, glDisable(), glEnable(), BMESH::is_closed_surface(), and GTexture::mesh(). Referenced by XToonTexture::draw(), ToonTexture_1D::draw(), SolidColorTexture::draw(), SmoothShadeTexture::draw(), FlatShadeTexture::draw(), ColorIDTexture::draw(), and GLSLShader::set_gl_state(). |
|
Reimplemented in DotsShader_EX, and HalftoneShaderEx. Definition at line 60 of file gtexture.H. References GTexture::_patch, GTexture::changed(), GTexture::gtextures(), and GTexture_list::set_patch(). Referenced by GLSLPaperShader::begin_glsl_paper(), GLSLPaperShader::end_glsl_paper(), Patch::get_tex(), HalftoneShaderEx::set_patch(), GTexture_list::set_patch(), and DotsShader_EX::set_patch(). |
|
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 SolidColorTexture, ToonTexture_1D, and XToonTexture. Definition at line 15 of file gtexture.C. Referenced by XToonTexture::tags(), ToonTexture_1D::tags(), and SolidColorTexture::tags(). |
|
Definition at line 97 of file flat_shade.H. References FlatShadeTexture::_debug_uv. Referenced by debug_cb(). |
|
Definition at line 37 of file gtexture.H. References DATA_ITEM::class_name(). |
|
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 124 of file gtexture.H. Referenced by GTexture::write_stream(). |
|
Reimplemented in SolidColorTexture. Definition at line 125 of file gtexture.H. References GTexture::_begin_tag, GTexture::_end_tag, DATA_ITEM::class_name(), and GTexture::write_data(). Referenced by GTexture_list::write_stream(). |
|
Definition at line 145 of file gtexture.H. Referenced by GTexture::alpha(), GTexture::pop_alpha(), and GTexture::push_alpha(). |
|
Definition at line 153 of file gtexture.H. Referenced by SolidColorTexture::write_stream(), and GTexture::write_stream(). |
|
|
_patch->stamp() at last check for uv-coords.
Definition at line 125 of file flat_shade.H. Referenced by FlatShadeTexture::draw(). |
|
Definition at line 197 of file data_item.H. Referenced by DATA_ITEM::Decode(). |
|
|
path to above image
Definition at line 127 of file flat_shade.H. Referenced by FlatShadeTexture::draw(). |
|
Tells whether to make "debug uv" calls when rendering:.
Definition at line 130 of file flat_shade.H. Referenced by FlatShadeTexture::debug_uv(), FlatShadeTexture::draw(), and FlatShadeTexture::toggle_debug_uv(). |
|
True if "debug uv" calls are in current display list.
Definition at line 119 of file flat_shade.H. Referenced by FlatShadeTexture::draw(). |
|
texture image for revealing uv-coords
Definition at line 126 of file flat_shade.H. Referenced by FlatShadeTexture::draw(). |
|
Definition at line 198 of file data_item.H. Referenced by DATA_ITEM::tags(). |
|
|
Definition at line 154 of file gtexture.H. Referenced by SolidColorTexture::write_stream(), and GTexture::write_stream(). |
|
True if some faces have uv-coords.
Definition at line 122 of file flat_shade.H. Referenced by FlatShadeTexture::draw(). |
|
|
Definition at line 152 of file gtexture.H. |