Changeset 1980


Ignore:
Timestamp:
01/15/07 15:24:30 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp

    r1972 r1980  
    693693 
    694694 
     695void 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 
    695735bool GlobalLinesRenderer::ProcessDepthBuffer(VssRayContainer &vssRays,  
    696736                                                                                         const bool oldBufferInitialised, 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.h

    r1969 r1980  
    4949                                                VssRayContainer &rays); 
    5050 
     51 
     52        void ComputeBoundingQuad(float &xMin,  
     53                                                         float &yMin,  
     54                                                         float &xMax, 
     55                                                         float &yMax); 
    5156 
    5257        void InitGl(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Matrix4x4.cpp

    r863 r1980  
    6161// full constructor 
    6262Matrix4x4::Matrix4x4(float x11, float x12, float x13, float x14, 
    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) 
     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) 
    6666{ 
    6767  // first index is column [x], the second is row [y] 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj

    r1972 r1980  
    194194                                OptimizeForWindowsApplication="TRUE" 
    195195                                AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(QTDIR)\include\Qt&quot;;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include&quot;;QtInterface" 
    196                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT" 
     196                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;TRY_GLOBAL_LINES" 
    197197                                RuntimeLibrary="2" 
    198198                                RuntimeTypeInfo="TRUE" 
Note: See TracChangeset for help on using the changeset viewer.