Revision 492,
1.2 KB
checked in by bittner, 19 years ago
(diff) |
Large merge - viewcells seem not functional now
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #include <QApplication>
|
---|
2 |
|
---|
3 | #include "PreprocessorThread.h"
|
---|
4 | #include "Camera.h"
|
---|
5 | #include "KdTree.h"
|
---|
6 | #include "SceneGraph.h"
|
---|
7 | #include "Preprocessor.h"
|
---|
8 |
|
---|
9 |
|
---|
10 |
|
---|
11 | PreprocessorThread::PreprocessorThread(Preprocessor *p,
|
---|
12 | QObject *parent):QThread(parent)
|
---|
13 | {
|
---|
14 | mPreprocessor = p;
|
---|
15 | }
|
---|
16 |
|
---|
17 | void
|
---|
18 | PreprocessorThread::Main()
|
---|
19 | {
|
---|
20 |
|
---|
21 | if (1) {
|
---|
22 | mPreprocessor->ComputeVisibility();
|
---|
23 | mPreprocessor->ExportPreprocessedData("scene.vis");
|
---|
24 | }
|
---|
25 |
|
---|
26 | Camera camera;
|
---|
27 | if (0) {
|
---|
28 | camera.LookAtBox(mPreprocessor->mKdTree->GetBox());
|
---|
29 | // camera.LookInBox(mPreprocessor->mKdTree->GetBox());
|
---|
30 | // camera.SetPosition(camera.mPosition + Vector3(0,300,0));
|
---|
31 | camera.SnapImage("camera.jpg", mPreprocessor->mKdTree, mPreprocessor->mSceneGraph);
|
---|
32 | }
|
---|
33 | if (0) {
|
---|
34 | camera.LookInBox(mPreprocessor->mKdTree->GetBox());
|
---|
35 | camera.SetPosition(camera.mPosition + Vector3(-250,0,-550));
|
---|
36 | camera.SnapImage("camera2.jpg", mPreprocessor->mKdTree, mPreprocessor->mSceneGraph);
|
---|
37 | }
|
---|
38 |
|
---|
39 | if (0) {
|
---|
40 | camera.SetPosition( mPreprocessor->mKdTree->GetBox().Center() - Vector3(0,-100,0) );
|
---|
41 | camera.SetDirection(Vector3(1, 0, 0));
|
---|
42 | camera.SnapImage("camera3.jpg", mPreprocessor->mKdTree, mPreprocessor->mSceneGraph);
|
---|
43 | }
|
---|
44 |
|
---|
45 | QApplication::quit();
|
---|
46 |
|
---|
47 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.