- Timestamp:
- 02/21/08 18:42:09 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2643 r2644 1282 1282 renderText(20, 40, s); 1283 1283 #endif 1284 #if 0 1284 1285 1285 QFont font40; font40.setPointSize(30); 1286 1286 //s.sprintf("PVS: %04d", mPvsSize); 1287 1287 //renderText(20, 40, s, font40); 1288 #endif1289 1288 1290 1289 //s.sprintf("RAW TRI: %07d", mViewCellsManager->GetPreprocessor()->mGenericStats); … … 1924 1923 vl->addWidget(label); 1925 1924 1926 slider = new QSlider(Qt::Horizontal , vbox);1925 slider = new QSlider(Qt::Horizontal); 1927 1926 vl->addWidget(slider); 1928 1927 slider->show(); … … 1938 1937 vl->addWidget(label); 1939 1938 1940 slider = new QSlider(Qt::Horizontal , vbox);1939 slider = new QSlider(Qt::Horizontal); 1941 1940 vl->addWidget(slider); 1942 1941 slider->show(); … … 1950 1949 ////////////////////////////////////////7 1951 1950 1952 button = new QPushButton("Update all PVSs" , vbox);1951 button = new QPushButton("Update all PVSs"); 1953 1952 vl->addWidget(button); 1954 1953 connect(button, SIGNAL(clicked()), SLOT(UpdateAllPvs())); … … 1959 1958 vl->addWidget(label); 1960 1959 1961 slider = new QSlider(Qt::Horizontal , vbox);1960 slider = new QSlider(Qt::Horizontal); 1962 1961 vl->addWidget(slider); 1963 1962 slider->show(); … … 1975 1974 1976 1975 1977 QWidget *hbox = new QWidget(); //vbox);1976 QWidget *hbox = new QWidget(); 1978 1977 vl->addWidget(hbox); 1979 1978 QHBoxLayout *hlayout = new QHBoxLayout; … … 2032 2031 ////////////////////////////////// 2033 2032 2033 bool tmp = false; 2034 const int range = 1000; 2034 2035 2035 2036 //vbox->resize(800,150); … … 2058 2059 connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetSceneCut(int))); 2059 2060 2061 2062 cb = new QCheckBox("Use spatial filter", vbox); 2063 vbox->layout()->addWidget(cb); 2064 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilitySpatialFilter", tmp); 2065 cb->setChecked(tmp); 2066 connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetUseSpatialFilter(bool))); 2067 2068 2069 label = new QLabel("Spatial Filter size"); 2070 vbox->layout()->addWidget(label); 2071 2072 slider = new QSlider(Qt::Horizontal, vbox); 2073 vbox->layout()->addWidget(slider); 2074 slider->show(); 2075 slider->setRange(1, 100); 2076 slider->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); 2077 slider->setValue(10); 2078 2079 connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetSpatialFilterSize(int))); 2080 2081 //////////////////////////// 2082 2060 2083 2061 2084 cb = new QCheckBox("Hide view cells by render cost ", vbox); … … 2063 2086 cb->setChecked(false); 2064 2087 connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetHideByCost(bool))); 2065 2066 ////////////////////////////2067 2068 const int range = 1000;2069 2088 2070 2089 label = new QLabel("Hide by cost"); … … 2118 2137 slider->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); 2119 2138 slider->setValue(0); 2139 connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetTransparency(int))); 2120 2140 #endif 2121 connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetTransparency(int)));2141 2122 2142 2123 2143 ////////////////////////////// 2124 2144 2125 2145 #if REMOVE_TEMPORARY 2146 2126 2147 cb = new QCheckBox("Cut scene", vbox); 2127 2148 vbox->layout()->addWidget(cb); … … 2140 2161 #endif 2141 2162 2142 bool tmp;2143 2163 #if REMOVE_TEMPORARY 2144 2164 2145 2165 cb = new QCheckBox("Use filter", vbox); 2146 2166 vbox->layout()->addWidget(cb); 2147 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilityFilter", tmp 2167 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilityFilter", tmp); 2148 2168 cb->setChecked(tmp); 2149 2169 connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetUseFilter(bool))); 2150 2170 #endif 2151 2171 2152 cb = new QCheckBox("Use spatial filter", vbox); 2153 vbox->layout()->addWidget(cb); 2154 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilitySpatialFilter", 2155 tmp ); 2156 cb->setChecked(tmp); 2157 connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetUseSpatialFilter(bool))); 2172 2173 2174 2158 2175 #if REMOVE_TEMPORARY 2176 2159 2177 cb = new QCheckBox("Render filter", vbox); 2160 2178 vbox->layout()->addWidget(cb); … … 2184 2202 vbox->layout()->addWidget(button); 2185 2203 connect(button, SIGNAL(clicked()), SIGNAL(StoreStatistics())); 2204 2186 2205 #endif 2187 2206 … … 2226 2245 2227 2246 ////////////////////////////////////////// 2228 2229 label = new QLabel("Spatial Filter size");2230 vbox->layout()->addWidget(label);2231 2232 slider = new QSlider(Qt::Horizontal, vbox);2233 vbox->layout()->addWidget(slider);2234 slider->show();2235 slider->setRange(1, 100);2236 slider->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);2237 slider->setValue(10);2238 2239 connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetSpatialFilterSize(int)));2240 2247 2241 2248 -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.h
r2643 r2644 20 20 class QWidget; 21 21 22 23 #define REMOVE_TEMPORARY 1 22 24 23 25
Note: See TracChangeset
for help on using the changeset viewer.