Changeset 1980 for GTP/trunk/Lib
- Timestamp:
- 01/15/07 15:24:30 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1972 r1980 693 693 694 694 695 void GlobalLinesRenderer::ComputeBoundingQuad(float &xMin, 696 float &yMin, 697 float &xMax, 698 float &yMax) 699 { 700 const AxisAlignedBox3 bbox = mPreprocessor->mKdTree->GetBox(); 701 702 Matrix4x4 m(mEyeVec, mUpVec, mLeftVec); 703 704 m.Invert(); 705 706 Vector3 eye(m.x[0][0], m.x[0][1], m.x[0][2]); 707 Vector3 up(m.x[1][0], m.x[1][1], m.x[1][2]); 708 Vector3 left(m.x[2][0], m.x[2][1], m.x[2][2]); 709 710 Vector3 boxMin(1e20f); 711 Vector3 boxMax(-1e20f); 712 713 /* for (int i = 0; i < 6; ++ i) 714 { 715 Vector3 pt; 716 // TODO 717 if (boxMin.x < pt[i].x) 718 boxMin.x = pt[i].x; 719 720 if (boxMin.y < pt[i].y) 721 boxMin.y = pt[i].y; 722 723 if (boxMin.z < pt[i].z) 724 boxMin.z = pt[i].z; 725 } 726 */ 727 xMin = boxMin.x; 728 yMin = boxMin.y; 729 730 xMax = boxMax.x; 731 yMax = boxMax.y; 732 } 733 734 695 735 bool GlobalLinesRenderer::ProcessDepthBuffer(VssRayContainer &vssRays, 696 736 const bool oldBufferInitialised, -
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.h
r1969 r1980 49 49 VssRayContainer &rays); 50 50 51 52 void ComputeBoundingQuad(float &xMin, 53 float &yMin, 54 float &xMax, 55 float &yMax); 51 56 52 57 void InitGl(); -
GTP/trunk/Lib/Vis/Preprocessing/src/Matrix4x4.cpp
r863 r1980 61 61 // full constructor 62 62 Matrix4x4::Matrix4x4(float x11, float x12, float x13, float x14, 63 64 65 63 float x21, float x22, float x23, float x24, 64 float x31, float x32, float x33, float x34, 65 float x41, float x42, float x43, float x44) 66 66 { 67 67 // first index is column [x], the second is row [y] -
GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj
r1972 r1980 194 194 OptimizeForWindowsApplication="TRUE" 195 195 AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;"$(QTDIR)\include\QtOpenGl";"$(QTDIR)\include\Qt";"$(QTDIR)\include\QtCore";"$(QTDIR)\include";QtInterface" 196 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT "196 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;TRY_GLOBAL_LINES" 197 197 RuntimeLibrary="2" 198 198 RuntimeTypeInfo="TRUE"
Note: See TracChangeset
for help on using the changeset viewer.