- Timestamp:
- 02/27/08 18:40:49 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/src/ObjManualMeshLoader.cpp
r2123 r2645 93 93 rop.useIndexes = false; 94 94 #endif 95 96 95 97 ////// 96 98 //-- Creates the index data 97 99 98 100 const int indexCount = vertexCount; 101 99 102 submesh->indexData->indexStart = 0; 100 103 submesh->operationType = RenderOperation::OT_TRIANGLE_LIST; -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2643 r2645 1849 1849 } 1850 1850 1851 void 1852 Preprocessor::UpdateDynamicObjects() 1853 { 1854 if (mUpdateDynamicObjects) { 1855 1856 preprocessor->mRayCaster->DeleteDynamicObjects(); 1857 1858 for (int i=0; i < mDynamicObjects.size(); i++) { 1859 SceneGraphLeaf *l = mDynamicObjects[i]; 1860 cout<<"Updating dynamic objects in ray caster..."<<endl; 1861 mRayCaster->AddDynamicObjecs(l->mGeometry, l->GetTransformation()); 1862 cout<<"done."<<endl; 1863 cout<<"Updating affected PVSs..."<<endl; 1864 preprocessor->ObjectMoved(l); 1865 cout<<"done."<<endl; 1851 1852 void Preprocessor::UpdateDynamicObjects() 1853 { 1854 if (mUpdateDynamicObjects) 1855 { 1866 1856 1867 } 1868 mUpdateDynamicObjects = false; 1869 } 1870 } 1871 1872 } 1857 preprocessor->mRayCaster->DeleteDynamicObjects(); 1858 1859 for (size_t i=0; i < mDynamicObjects.size(); ++ i) 1860 { 1861 SceneGraphLeaf *l = mDynamicObjects[i]; 1862 1863 cout<<"Updating dynamic objects in ray caster..."<<endl; 1864 1865 mRayCaster->AddDynamicObjecs(l->mGeometry, l->GetTransformation()); 1866 1867 cout<<"done."<<endl; 1868 1869 cout<<"Updating affected PVSs..."<<endl; 1870 preprocessor->ObjectMoved(l); 1871 cout<<"done."<<endl; 1872 } 1873 1874 mUpdateDynamicObjects = false; 1875 1876 } 1877 } 1878 1879 1880 void Preprocessor::ScheduleUpdateDynamicObjects() 1881 { 1882 mUpdateDynamicObjects = true; 1883 } 1884 1885 1886 } -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.h
r2643 r2645 272 272 RayCaster *mRayCaster; 273 273 274 275 int mGenericStats; 274 int mGenericStats; 276 275 int mGenericStats2; 277 276 278 void ScheduleUpdateDynamicObjects() { 279 mUpdateDynamicObjects = true; 280 } 281 282 void UpdateDynamicObjects(); 277 void ScheduleUpdateDynamicObjects(); 278 void UpdateDynamicObjects(); 279 283 280 284 281 protected: … … 298 295 virtual void EvalViewCellHistogram(); 299 296 300 virtual void ObjectMoved(SceneGraphLeaf *object); 297 virtual void ObjectMoved(SceneGraphLeaf *object); 298 299 300 301 301 ///////////////////////// 302 302 -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2644 r2645 1060 1060 1061 1061 // setting the main window size here 1062 //resize(800, 600); 1063 //resize(640, 480); 1064 //resize(512, 384); 1065 //resize(512, 320); 1066 resize(640, 400); 1062 resize(800, 600); 1063 //resize(640, 400); 1067 1064 1068 1065 mControlWidget->show(); … … 1120 1117 void QtGlRendererWidget::LoadObject() 1121 1118 { 1122 // string filename("../data/teapot.bn"); 1123 // string filename("../data/teapot.bn"); 1124 string filename("../data/cube.obj"); 1119 string filename("../data/teapot.bn"); 1120 //string filename("../data/cube.obj"); 1125 1121 1126 1122 cout << "Loading model << " << filename << endl; … … 1917 1913 QPushButton *button; 1918 1914 1919 #if REMOVE_TEMPORARY1915 #if 0//REMOVE_TEMPORARY 1920 1916 1921 1917 label = new QLabel("Granularity");
Note: See TracChangeset
for help on using the changeset viewer.