#include <gtexture.H>
Inheritance diagram for GTexture:
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 | |
GTexture (Patch *p=0, StripCB *cb=0) | |
virtual | ~GTexture () |
DEFINE_RTTI_METHODS3 ("Textured patch", GTexture *, DATA_ITEM, CDATA_ITEM *) | |
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 void | changed () |
virtual GTexture_list | gtextures () const |
virtual void | set_patch (Patch *p) |
virtual void | push_alpha (double a) |
virtual void | pop_alpha () |
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 DATA_ITEM * | dup () 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 (CVIEWptr &)=0 |
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 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 () |
static STAT_STR_RET | static_name () |
Protected Attributes | |
Patch * | _patch |
StripCB * | _cb |
ARRAY< double > | _alphas |
GTexture * | _ctrl |
int | _copy |
TAGlist | _DEFINERtags |
Static Protected Attributes | |
static Cstr_ptr | _type_name |
static Cstr_ptr | _begin_tag |
static Cstr_ptr | _end_tag |
Definition at line 26 of file gtexture.H.
|
Definition at line 25 of file ref_img_client.H. |
|
Definition at line 25 of file gtexture.C. References changed(). |
|
Definition at line 32 of file gtexture.H. References _cb. |
|
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 in BasicTexture, DotsShader_EX, and HalftoneShaderEx. Definition at line 53 of file gtexture.H. Referenced by GTexture(), and set_patch(). |
|
|
Definition at line 47 of file gtexture.H. References _ctrl. |
|
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 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 draw_with_alpha(), and 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(). |
|
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(). |
|
Reimplemented in ControlLineTexture, HiddenLineTexture, KeyLineTexture, and NormalsTexture. Definition at line 116 of file gtexture.H. References draw_with_alpha(), and draws_filled(). Referenced by FaderTexture::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(). |
|
|
Reimplemented in ControlFrameTexture, VertNormalsTexture, VertUVTexture, SilFrameTexture, SilsTexture, WireframeTexture, ZcrossFrameTexture, and ZcrossTexture. Definition at line 95 of file gtexture.H. Referenced by FaderTexture::draw(), draw_filled_tris(), and draw_non_filled_tris(). |
|
|
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 pop_alpha(), push_alpha(), and 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 _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 _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 in TriStripsTexture. Definition at line 78 of file gtexture.H. References _alphas, gtextures(), ARRAY< T >::pop(), and GTexture_list::pop_alpha(). Referenced by draw_with_alpha(), TriStripsTexture::pop_alpha(), and GTexture_list::pop_alpha(). |
|
Reimplemented in TriStripsTexture. Definition at line 74 of file gtexture.H. References _alphas, gtextures(), and GTexture_list::push_alpha(). Referenced by draw_with_alpha(), TriStripsTexture::push_alpha(), and GTexture_list::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 _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 _ctrl. Referenced by FaderTexture::draw(), and FaderTexture::FaderTexture(). |
|
Definition at line 218 of file data_item.H. References DATA_ITEM::_decode_unknown. |
|
Reimplemented in DotsShader_EX, and HalftoneShaderEx. Definition at line 60 of file gtexture.H. References _patch, changed(), 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 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 write_stream(). |
|
Reimplemented in SolidColorTexture. Definition at line 125 of file gtexture.H. References _begin_tag, _end_tag, DATA_ITEM::class_name(), and write_data(). Referenced by GTexture_list::write_stream(). |
|
Definition at line 145 of file gtexture.H. Referenced by alpha(), pop_alpha(), and push_alpha(). |
|
Definition at line 153 of file gtexture.H. Referenced by SolidColorTexture::write_stream(), and write_stream(). |
|
|
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 154 of file gtexture.H. Referenced by SolidColorTexture::write_stream(), and write_stream(). |
|
|
Definition at line 152 of file gtexture.H. |