Changeset 1560 for GTP/trunk/Lib/Geom/shared/GeoTool
- Timestamp:
- 10/03/06 14:11:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r1549 r1560 1034 1034 else 1035 1035 { 1036 // Transform NoSV Mesh to a SV Mesh. 1037 mesh_aux = mGeoMesh->toSharedVertex(); 1038 1039 // Deletes the mesh No Shared Vertex. 1040 delete mGeoMesh; 1041 1042 // Gets the mesh Shared Vertex. 1043 mGeoMesh = mesh_aux; 1044 1045 // Visualize mesh. 1046 geoMeshView->setMesh(mGeoMesh); 1047 1036 1048 // Simplify the mesh object. 1037 1049 if(simplifyEdgeCollapse()) 1038 1050 { 1039 delete mMeshSimplifier;1040 1051 geoMeshView->restoreContext(); 1041 1052 } … … 1056 1067 // Simplify and generate simplification sequence. 1057 1068 case LODTREES_AUTO: 1058 if (idMeshLeaves==(unsigned short)-1) 1069 1070 if (idMeshLeaves == (unsigned short)-1) 1059 1071 { 1060 1072 fltk::alert("Leaves submesh not selected!"); … … 1141 1153 if (simplifyEdgeCollapse()) 1142 1154 { 1143 // Create the simplification sequence.1144 //createSimplificationSequence();1145 1146 1155 //delete mMeshSimplifier; 1147 1156 geoMeshView->restoreContext(); … … 2600 2609 o->box(fltk::FLAT_BOX); 2601 2610 o->color((fltk::Color)0xffffff00); 2602 //fltk::Group::current()->resizable(o);2603 2611 } 2604 2612 … … 2621 2629 { 2622 2630 fltk::Button* o; 2623 //o = mButtonProcess = new fltk::Button(665, 410, 73, 25, "Process");2624 2631 o = mButtonProcess = new fltk::Button(75, 410, 73, 25, "Process"); 2625 2632 o->callback((fltk::Callback*)cb_mButtonProcess); … … 2630 2637 { 2631 2638 fltk::ProgressBar* o; 2632 //o = mProcessBar = new fltk::ProgressBar(616, 435, 175, 18);2633 2639 o = mProcessBar = new fltk::ProgressBar(16, 435, 195, 18); 2634 2640 o->hide(); … … 2669 2675 fltk::Slider* o; 2670 2676 o = mLodStripSlider = new fltk::Slider(16, 50, 30, 450); 2677 o->linesize(0.01f); 2671 2678 o->type(fltk::Slider::TICK_BELOW); 2672 2679 o->set_vertical(); … … 2678 2685 fltk::Slider* o; 2679 2686 o = mLodTreeSlider = new fltk::Slider(46, 50, 30, 450); 2687 o->linesize(0.01f); 2680 2688 o->type(fltk::Slider::TICK_BELOW); 2681 2689 o->set_vertical(); … … 2706 2714 } 2707 2715 2708 //mChangeVertices = new fltk::CheckButton(30, 104, 25, 25, "Change vertices");2709 2710 2716 { 2711 2717 mProcessTitle = new fltk::Widget(0, 0, 230, 25, ""); … … 2719 2725 } 2720 2726 2721 /*2722 {2723 mTypeLabel = new fltk::Output(26, 82, 5, 25, "Type");2724 fltk::Output* o = mTypeLabel;2725 o->set_vertical();2726 o->box(fltk::NO_BOX);2727 o->labelfont(fltk::HELVETICA_BOLD);2728 o->color((fltk::Color)0xe0dfe300);2729 o->align(fltk::ALIGN_RIGHT);2730 }2731 */2732 2733 2727 { 2734 2728 mMeshReductionLabel = new fltk::Output(26, 124, 0, 25, "Mesh Reduction"); … … 2741 2735 } 2742 2736 2743 //mChangeTexture = new fltk::CheckButton(30, 104, 25, 25, "Change texture");2744 2745 2737 { 2746 2738 fltk::Group* o; … … 2815 2807 } 2816 2808 2817 //{2818 // fltk::Item* o = menuFileTransformSharedVertex = new fltk::Item("Transform to Shared Vertex");2819 // o->callback((fltk::Callback*)cb_menuFileTransformSharedVertex);2820 //}2821 2822 2809 { 2823 2810 menuLoadTextures = new fltk::ItemGroup("Load Textures"); … … 2862 2849 } 2863 2850 2864 //{2865 // fltk::Item* o = menuEditZoom = new fltk::Item("Zoom");2866 // o->callback((fltk::Callback*)cb_menuEditZoom);2867 //}2868 2869 2851 new fltk::Divider(); 2870 2852 … … 2879 2861 o->callback((fltk::Callback*)cb_menuSelectLeaves); 2880 2862 } 2881 2882 2863 o->end(); 2883 2864 } … … 2900 2881 } 2901 2882 2902 //new fltk::Divider();2903 2904 2883 { 2905 2884 fltk::Item* o = menuRenderCW = new fltk::Item("CW"); 2906 2885 o->type(fltk::Item::RADIO); 2907 2886 o->callback((fltk::Callback*)cb_menuRenderCW); 2908 2909 //o->hide();2910 2887 } 2911 2888 … … 2915 2892 o->set_value(); 2916 2893 o->callback((fltk::Callback*)cb_menuRenderCCW); 2917 2918 //o->hide();2919 2894 } 2920 2895 … … 2996 2971 2997 2972 // Menu LodTrees. 2998 2999 2973 { 3000 2974 fltk::ItemGroup* o; … … 3029 3003 } 3030 3004 3031 /* {3032 fltk::SharedImage *gifLogo = logo->get("media\\logos\\logo.gif");3033 3034 //o->callback((fltk::Callback*)cb_mLogo);3035 3036 mLogo = new fltk::InvisibleBox(406, 1, 43, 13);3037 mLogo->image(gifLogo);3038 }*/3039 3040 3005 o->end(); 3041 3006 } … … 3046 3011 o->box(fltk::BORDER_BOX); 3047 3012 o->begin(); 3048 3049 /*3050 {3051 fltk::Widget* o;3052 o = mFPS = new fltk::Widget(10, 4, 30, 15, "FPS ");3053 o->box(fltk::NO_BOX);3054 o->labelfont(fltk::HELVETICA_BOLD);3055 o->color((fltk::Color)0xe0dfe300);3056 }3057 */3058 3013 3059 3014 { … … 3071 3026 o->labelfont(fltk::HELVETICA_BOLD); 3072 3027 o->color((fltk::Color)0xe0dfe300); 3073 3074 // Hide triangle count.3075 //o->hide();3076 3028 } 3077 3029 … … 3083 3035 o->color((fltk::Color)0xe0dfe300); 3084 3036 } 3085 3086 //{3087 // fltk::Widget* o;3088 // o = mQuads = new fltk::Widget(454, 4, 40, 15, "Quads");3089 // o->box(fltk::NO_BOX);3090 // o->labelfont(fltk::HELVETICA_BOLD);3091 // o->color((fltk::Color)0xe0dfe300);3092 //}3093 3037 3094 3038 { … … 3101 3045 o->end(); 3102 3046 } 3103 3104 3105 3047 o->end(); 3106 3048 } … … 3108 3050 fltk::focus(geoMeshView); 3109 3051 3110 3111 3052 /*Hide Right Panel*/ 3112 3053 hideRightPanel();
Note: See TracChangeset
for help on using the changeset viewer.