Changeset 2705


Ignore:
Timestamp:
05/24/08 11:59:35 (16 years ago)
Author:
mattausch
Message:

enabled view cell visualization

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GtpVisibility05.vcproj

    r2695 r2705  
    202202        <Files> 
    203203                <Filter 
    204                         Name="Header Files" 
    205                         Filter="h;hpp;hxx;hm;inl;inc;xsd" 
    206                         UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" 
    207                         > 
    208                         <File 
    209                                 RelativePath=".\AxisAlignedBox3.h" 
    210                                 > 
    211                         </File> 
    212                         <File 
    213                                 RelativePath=".\Beam.h" 
    214                                 > 
    215                         </File> 
    216                         <File 
    217                                 RelativePath=".\Timer\BenchTimer.h" 
    218                                 > 
    219                         </File> 
    220                         <File 
    221                                 RelativePath=".\BitVectorPvs.h" 
    222                                 > 
    223                         </File> 
    224                         <File 
    225                                 RelativePath=".\BoostPreprocessorThread.h" 
    226                                 > 
    227                         </File> 
    228                         <File 
    229                                 RelativePath=".\BoundingBoxConverter.h" 
    230                                 > 
    231                         </File> 
    232                         <File 
    233                                 RelativePath=".\BvHierarchy.h" 
    234                                 > 
    235                         </File> 
    236                         <File 
    237                                 RelativePath=".\Camera.h" 
    238                                 > 
    239                         </File> 
    240                         <File 
    241                                 RelativePath=".\common.h" 
    242                                 > 
    243                         </File> 
    244                         <File 
    245                                 RelativePath=".\havran\configh.h" 
    246                                 > 
    247                         </File> 
    248                         <File 
    249                                 RelativePath=".\Containers.h" 
    250                                 > 
    251                         </File> 
    252                         <File 
    253                                 RelativePath=".\DifferenceSampling.h" 
    254                                 > 
    255                         </File> 
    256                         <File 
    257                                 RelativePath=".\Environment.h" 
    258                                 > 
    259                         </File> 
    260                         <File 
    261                                 RelativePath=".\ExactPreprocessor.h" 
    262                                 > 
    263                         </File> 
    264                         <File 
    265                                 RelativePath=".\Exporter.h" 
    266                                 > 
    267                         </File> 
    268                         <File 
    269                                 RelativePath=".\FilterBasedDistribution.cpp" 
    270                                 > 
    271                         </File> 
    272                         <File 
    273                                 RelativePath=".\FilterBasedDistribution.h" 
    274                                 > 
    275                         </File> 
    276                         <File 
    277                                 RelativePath=".\FlexibleHeap.h" 
    278                                 > 
    279                         </File> 
    280                         <File 
    281                                 RelativePath=".\GzBinFileInputStream.h" 
    282                                 > 
    283                         </File> 
    284                         <File 
    285                                 RelativePath=".\GzFileInputSource.h" 
    286                                 > 
    287                         </File> 
    288                         <File 
    289                                 RelativePath=".\gzstream.h" 
    290                                 > 
    291                         </File> 
    292                         <File 
    293                                 RelativePath=".\Halton.h" 
    294                                 > 
    295                         </File> 
    296                         <File 
    297                                 RelativePath=".\HashPvs.h" 
    298                                 > 
    299                         </File> 
    300                         <File 
    301                                 RelativePath=".\HavranRayCaster.h" 
    302                                 > 
    303                         </File> 
    304                         <File 
    305                                 RelativePath=".\HierarchyManager.h" 
    306                                 > 
    307                         </File> 
    308                         <File 
    309                                 RelativePath=".\IntelRayCaster.h" 
    310                                 > 
    311                         </File> 
    312                         <File 
    313                                 RelativePath=".\InternalRayCaster.h" 
    314                                 > 
    315                         </File> 
    316                         <File 
    317                                 RelativePath=".\Intersectable.h" 
    318                                 > 
    319                         </File> 
    320                         <File 
    321                                 RelativePath=".\IntersectableWrapper.h" 
    322                                 > 
    323                         </File> 
    324                         <File 
    325                                 RelativePath=".\IntersectionBoundingBoxConverter.h" 
    326                                 > 
    327                         </File> 
    328                         <File 
    329                                 RelativePath=".\KdTree.h" 
    330                                 > 
    331                         </File> 
    332                         <File 
    333                                 RelativePath=".\LogManager.h" 
    334                                 > 
    335                         </File> 
    336                         <File 
    337                                 RelativePath=".\Mailable.h" 
    338                                 > 
    339                         </File> 
    340                         <File 
    341                                 RelativePath=".\Material.h" 
    342                                 > 
    343                         </File> 
    344                         <File 
    345                                 RelativePath=".\Matrix4x4.h" 
    346                                 > 
    347                         </File> 
    348                         <File 
    349                                 RelativePath=".\Timer\merror.h" 
    350                                 > 
    351                         </File> 
    352                         <File 
    353                                 RelativePath=".\Mesh.h" 
    354                                 > 
    355                         </File> 
    356                         <File 
    357                                 RelativePath=".\MeshKdTree.h" 
    358                                 > 
    359                         </File> 
    360                         <File 
    361                                 RelativePath=".\Timer\mstring.h" 
    362                                 > 
    363                         </File> 
    364                         <File 
    365                                 RelativePath=".\Mutation.h" 
    366                                 > 
    367                         </File> 
    368                         <File 
    369                                 RelativePath=".\MutualVisibility.h" 
    370                                 > 
    371                         </File> 
    372                         <File 
    373                                 RelativePath=".\ObjectPvs.h" 
    374                                 > 
    375                         </File> 
    376                         <File 
    377                                 RelativePath=".\ObjExporter.h" 
    378                                 > 
    379                         </File> 
    380                         <File 
    381                                 RelativePath=".\OcclusionQuery.h" 
    382                                 > 
    383                         </File> 
    384                         <File 
    385                                 RelativePath=".\OspTree.h" 
    386                                 > 
    387                         </File> 
    388                         <File 
    389                                 RelativePath=".\Parser.h" 
    390                                 > 
    391                         </File> 
    392                         <File 
    393                                 RelativePath=".\Timer\PerfTimer.h" 
    394                                 > 
    395                         </File> 
    396                         <File 
    397                                 RelativePath=".\Timer\PerfTimerSkeleton.h" 
    398                                 > 
    399                         </File> 
    400                         <File 
    401                                 RelativePath=".\Plane3.h" 
    402                                 > 
    403                         </File> 
    404                         <File 
    405                                 RelativePath=".\ply.h" 
    406                                 > 
    407                         </File> 
    408                         <File 
    409                                 RelativePath=".\PlyParser.h" 
    410                                 > 
    411                         </File> 
    412                         <File 
    413                                 RelativePath=".\Polygon3.h" 
    414                                 > 
    415                         </File> 
    416                         <File 
    417                                 RelativePath=".\Polytope.h" 
    418                                 > 
    419                         </File> 
    420                         <File 
    421                                 RelativePath=".\PreprocessorThread.h" 
    422                                 > 
    423                         </File> 
    424                         <File 
    425                                 RelativePath=".\Pvs.h" 
    426                                 > 
    427                         </File> 
    428                         <File 
    429                                 RelativePath=".\PvsBase.h" 
    430                                 > 
    431                         </File> 
    432                         <File 
    433                                 RelativePath=".\PvsDefinitions.h" 
    434                                 > 
    435                         </File> 
    436                         <File 
    437                                 RelativePath=".\RandomViewCellsHandler.h" 
    438                                 > 
    439                         </File> 
    440                         <File 
    441                                 RelativePath=".\Ray.h" 
    442                                 > 
    443                         </File> 
    444                         <File 
    445                                 RelativePath=".\RayCaster.h" 
    446                                 > 
    447                         </File> 
    448                         <File 
    449                                 RelativePath=".\RayInfo.h" 
    450                                 > 
    451                         </File> 
    452                         <File 
    453                                 RelativePath=".\havran\raypack.h" 
    454                                 > 
    455                         </File> 
    456                         <File 
    457                                 RelativePath=".\Timer\RDTSCTimer.h" 
    458                                 > 
    459                         </File> 
    460                         <File 
    461                                 RelativePath=".\Rectangle3.h" 
    462                                 > 
    463                         </File> 
    464                         <File 
    465                                 RelativePath=".\Renderer.h" 
    466                                 > 
    467                         </File> 
    468                         <File 
    469                                 RelativePath=".\RenderSimulator.h" 
    470                                 > 
    471                         </File> 
    472                         <File 
    473                                 RelativePath=".\RenderTexture.h" 
    474                                 > 
    475                         </File> 
    476                         <File 
    477                                 RelativePath=".\ResourceManager.h" 
    478                                 > 
    479                         </File> 
    480                         <File 
    481                                 RelativePath=".\ReverseGvs.h" 
    482                                 > 
    483                         </File> 
    484                         <File 
    485                                 RelativePath=".\RndGauss.h" 
    486                                 > 
    487                         </File> 
    488                         <File 
    489                                 RelativePath=".\RssTree.h" 
    490                                 > 
    491                         </File> 
    492                         <File 
    493                                 RelativePath=".\SamplingStrategy.h" 
    494                                 > 
    495                         </File> 
    496                         <File 
    497                                 RelativePath=".\SceneGraph.h" 
    498                                 > 
    499                         </File> 
    500                         <File 
    501                                 RelativePath=".\SimpleRay.h" 
    502                                 > 
    503                         </File> 
    504                         <File 
    505                                 RelativePath=".\Statistics.h" 
    506                                 > 
    507                         </File> 
    508                         <File 
    509                                 RelativePath=".\SubdivisionCandidate.h" 
    510                                 > 
    511                         </File> 
    512                         <File 
    513                                 RelativePath=".\Tetrahedron3.h" 
    514                                 > 
    515                         </File> 
    516                         <File 
    517                                 RelativePath=".\havran\timer.h" 
    518                                 > 
    519                         </File> 
    520                         <File 
    521                                 RelativePath=".\Trackball.h" 
    522                                 > 
    523                         </File> 
    524                         <File 
    525                                 RelativePath=".\TraversalTree.h" 
    526                                 > 
    527                         </File> 
    528                         <File 
    529                                 RelativePath=".\Triangle3.h" 
    530                                 > 
    531                         </File> 
    532                         <File 
    533                                 RelativePath=".\UnigraphicsParser.h" 
    534                                 > 
    535                         </File> 
    536                         <File 
    537                                 RelativePath=".\Vector2.h" 
    538                                 > 
    539                         </File> 
    540                         <File 
    541                                 RelativePath=".\Vector3.h" 
    542                                 > 
    543                         </File> 
    544                         <File 
    545                                 RelativePath=".\ViewCell.h" 
    546                                 > 
    547                         </File> 
    548                         <File 
    549                                 RelativePath=".\ViewCellBsp.h" 
    550                                 > 
    551                         </File> 
    552                         <File 
    553                                 RelativePath=".\ViewCellsManager.h" 
    554                                 > 
    555                         </File> 
    556                         <File 
    557                                 RelativePath=".\VrmlExporter.h" 
    558                                 > 
    559                         </File> 
    560                         <File 
    561                                 RelativePath=".\VspBspTree.h" 
    562                                 > 
    563                         </File> 
    564                         <File 
    565                                 RelativePath=".\VspTree.h" 
    566                                 > 
    567                         </File> 
    568                         <File 
    569                                 RelativePath=".\VssRay.h" 
    570                                 > 
    571                         </File> 
    572                         <File 
    573                                 RelativePath=".\VssTree.h" 
    574                                 > 
    575                         </File> 
    576                         <File 
    577                                 RelativePath=".\X3dParserXerces.h" 
    578                                 > 
    579                         </File> 
    580                 </Filter> 
    581                 <Filter 
    582204                        Name="havran" 
    583205                        > 
     
    591213                        </File> 
    592214                        <File 
     215                                RelativePath=".\havran\configh.h" 
     216                                > 
     217                        </File> 
     218                        <File 
    593219                                RelativePath=".\HavranDynRayCaster.cpp" 
    594220                                > 
     
    656282                        <File 
    657283                                RelativePath=".\havran\ktbtrav.h" 
     284                                > 
     285                        </File> 
     286                        <File 
     287                                RelativePath=".\havran\raypack.h" 
    658288                                > 
    659289                        </File> 
     
    707337                        > 
    708338                        <File 
     339                                RelativePath=".\GzBinFileInputStream.cpp" 
     340                                > 
     341                        </File> 
     342                        <File 
     343                                RelativePath=".\GzBinFileInputStream.h" 
     344                                > 
     345                        </File> 
     346                        <File 
     347                                RelativePath=".\GzFileInputSource.cpp" 
     348                                > 
     349                        </File> 
     350                        <File 
     351                                RelativePath=".\GzFileInputSource.h" 
     352                                > 
     353                        </File> 
     354                        <File 
    709355                                RelativePath=".\ObjectsParser.cpp" 
    710356                                > 
     
    727373                        </File> 
    728374                        <File 
     375                                RelativePath=".\Parser.h" 
     376                                > 
     377                        </File> 
     378                        <File 
     379                                RelativePath=".\ply.h" 
     380                                > 
     381                        </File> 
     382                        <File 
    729383                                RelativePath=".\plyfile.c" 
    730384                                > 
     
    735389                        </File> 
    736390                        <File 
     391                                RelativePath=".\PlyParser.h" 
     392                                > 
     393                        </File> 
     394                        <File 
    737395                                RelativePath=".\PreprocessorFactory.h" 
    738396                                > 
     
    743401                        </File> 
    744402                        <File 
     403                                RelativePath=".\UnigraphicsParser.h" 
     404                                > 
     405                        </File> 
     406                        <File 
     407                                RelativePath=".\ViewCellsParser.cpp" 
     408                                > 
     409                        </File> 
     410                        <File 
    745411                                RelativePath=".\ViewCellsParser.h" 
    746412                                > 
     
    751417                        </File> 
    752418                        <File 
    753                                 RelativePath=".\VrmlExporter.cpp" 
    754                                 > 
    755                         </File> 
    756                         <File 
    757419                                RelativePath=".\X3dParser.cpp" 
    758420                                > 
     
    760422                        <File 
    761423                                RelativePath=".\X3dParser.h" 
     424                                > 
     425                        </File> 
     426                        <File 
     427                                RelativePath=".\X3dParserXerces.h" 
    762428                                > 
    763429                        </File> 
     
    828494                </Filter> 
    829495                <Filter 
    830                         Name="Source Files" 
    831                         Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" 
    832                         UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" 
     496                        Name="Exporters" 
    833497                        > 
    834498                        <File 
    835                                 RelativePath=".\AxisAlignedBox3.cpp" 
    836                                 > 
    837                         </File> 
    838                         <File 
    839                                 RelativePath=".\Beam.cpp" 
     499                                RelativePath=".\Exporter.h" 
     500                                > 
     501                        </File> 
     502                        <File 
     503                                RelativePath=".\ObjExporter.cpp" 
     504                                > 
     505                        </File> 
     506                        <File 
     507                                RelativePath=".\ObjExporter.h" 
     508                                > 
     509                        </File> 
     510                        <File 
     511                                RelativePath=".\VrmlExporter.cpp" 
     512                                > 
     513                        </File> 
     514                        <File 
     515                                RelativePath=".\VrmlExporter.h" 
     516                                > 
     517                        </File> 
     518                        <File 
     519                                RelativePath=".\X3dExporter.cpp" 
     520                                > 
     521                        </File> 
     522                        <File 
     523                                RelativePath=".\X3dExporter.h" 
     524                                > 
     525                        </File> 
     526                </Filter> 
     527                <Filter 
     528                        Name="utils" 
     529                        > 
     530                        <File 
     531                                RelativePath=".\AxisAlignedBox3.h" 
    840532                                > 
    841533                        </File> 
     
    845537                        </File> 
    846538                        <File 
    847                                 RelativePath=".\BitVectorPvs.cpp" 
    848                                 > 
    849                         </File> 
    850                         <File 
    851                                 RelativePath=".\BvHierarchy.cpp" 
    852                                 > 
    853                         </File> 
    854                         <File 
    855                                 RelativePath=".\Camera.cpp" 
     539                                RelativePath=".\Timer\BenchTimer.h" 
     540                                > 
     541                        </File> 
     542                        <File 
     543                                RelativePath=".\BoostPreprocessorThread.h" 
    856544                                > 
    857545                        </File> 
     
    861549                        </File> 
    862550                        <File 
    863                                 RelativePath=".\DifferenceSampling.cpp" 
     551                                RelativePath=".\common.h" 
     552                                > 
     553                        </File> 
     554                        <File 
     555                                RelativePath=".\Containers.h" 
    864556                                > 
    865557                        </File> 
     
    869561                        </File> 
    870562                        <File 
    871                                 RelativePath=".\ExactPreprocessor.cpp" 
    872                                 > 
    873                         </File> 
    874                         <File 
    875                                 RelativePath=".\Exporter.cpp" 
    876                                 > 
    877                         </File> 
    878                         <File 
    879                                 RelativePath=".\GzBinFileInputStream.cpp" 
    880                                 > 
    881                         </File> 
    882                         <File 
    883                                 RelativePath=".\GzFileInputSource.cpp" 
     563                                RelativePath=".\Environment.h" 
     564                                > 
     565                        </File> 
     566                        <File 
     567                                RelativePath=".\FlexibleHeap.h" 
    884568                                > 
    885569                        </File> 
     
    889573                        </File> 
    890574                        <File 
     575                                RelativePath=".\gzstream.h" 
     576                                > 
     577                        </File> 
     578                        <File 
    891579                                RelativePath=".\Halton.cpp" 
    892580                                > 
    893581                        </File> 
    894582                        <File 
    895                                 RelativePath=".\HierarchyManager.cpp" 
    896                                 > 
    897                         </File> 
    898                         <File 
    899                                 RelativePath=".\IntelRayCaster.cpp" 
    900                                 > 
    901                         </File> 
    902                         <File 
    903                                 RelativePath=".\InternalRayCaster.cpp" 
    904                                 > 
    905                         </File> 
    906                         <File 
    907                                 RelativePath=".\Intersectable.cpp" 
    908                                 > 
    909                         </File> 
    910                         <File 
    911                                 RelativePath=".\IntersectableWrapper.cpp" 
    912                                 > 
    913                         </File> 
    914                         <File 
    915                                 RelativePath=".\IntersectionBoundingBoxConverter.cpp" 
    916                                 > 
    917                         </File> 
    918                         <File 
    919                                 RelativePath=".\KdTree.cpp" 
     583                                RelativePath=".\Halton.h" 
     584                                > 
     585                        </File> 
     586                        <File 
     587                                RelativePath=".\HashPvs.h" 
    920588                                > 
    921589                        </File> 
     
    925593                        </File> 
    926594                        <File 
    927                                 RelativePath=".\Mailable.cpp" 
     595                                RelativePath=".\LogManager.h" 
    928596                                > 
    929597                        </File> 
     
    933601                        </File> 
    934602                        <File 
     603                                RelativePath=".\Material.h" 
     604                                > 
     605                        </File> 
     606                        <File 
    935607                                RelativePath=".\Matrix4x4.cpp" 
    936608                                > 
    937609                        </File> 
    938610                        <File 
     611                                RelativePath=".\Matrix4x4.h" 
     612                                > 
     613                        </File> 
     614                        <File 
    939615                                RelativePath=".\Timer\merror.cpp" 
    940616                                > 
    941617                        </File> 
    942618                        <File 
    943                                 RelativePath=".\Mesh.cpp" 
    944                                 > 
    945                         </File> 
    946                         <File 
    947                                 RelativePath=".\MeshKdTree.cpp" 
    948                                 > 
    949                         </File> 
    950                         <File 
    951                                 RelativePath=".\Mutation.cpp" 
    952                                 > 
    953                         </File> 
    954                         <File 
    955                                 RelativePath=".\MutualVisibility.cpp" 
    956                                 > 
    957                         </File> 
    958                         <File 
    959                                 RelativePath=".\ObjectPvs.cpp" 
    960                                 > 
    961                         </File> 
    962                         <File 
    963                                 RelativePath=".\ObjExporter.cpp" 
    964                                 > 
    965                         </File> 
    966                         <File 
    967                                 RelativePath=".\OcclusionQuery.cpp" 
    968                                 > 
    969                         </File> 
    970                         <File 
    971                                 RelativePath=".\OspTree.cpp" 
     619                                RelativePath=".\Timer\merror.h" 
     620                                > 
     621                        </File> 
     622                        <File 
     623                                RelativePath=".\Timer\mstring.h" 
    972624                                > 
    973625                        </File> 
     
    977629                        </File> 
    978630                        <File 
     631                                RelativePath=".\Plane3.h" 
     632                                > 
     633                        </File> 
     634                        <File 
    979635                                RelativePath=".\Polygon3.cpp" 
    980636                                > 
    981637                        </File> 
    982638                        <File 
     639                                RelativePath=".\Polygon3.h" 
     640                                > 
     641                        </File> 
     642                        <File 
    983643                                RelativePath=".\Polytope.cpp" 
    984644                                > 
    985645                        </File> 
    986646                        <File 
     647                                RelativePath=".\Polytope.h" 
     648                                > 
     649                        </File> 
     650                        <File 
    987651                                RelativePath=".\PreprocessorThread.cpp" 
    988652                                > 
    989653                        </File> 
    990654                        <File 
    991                                 RelativePath=".\RandomViewCellsHandler.cpp" 
    992                                 > 
    993                         </File> 
    994                         <File 
    995                                 RelativePath=".\Ray.cpp" 
    996                                 > 
    997                         </File> 
    998                         <File 
    999                                 RelativePath=".\RayCaster.cpp" 
    1000                                 > 
    1001                         </File> 
    1002                         <File 
    1003                                 RelativePath=".\RayInfo.cpp" 
    1004                                 > 
    1005                         </File> 
    1006                         <File 
    1007655                                RelativePath=".\Timer\RDTSCTimer.cpp" 
    1008656                                > 
    1009657                        </File> 
    1010658                        <File 
     659                                RelativePath=".\Timer\RDTSCTimer.h" 
     660                                > 
     661                        </File> 
     662                        <File 
    1011663                                RelativePath=".\Rectangle3.cpp" 
    1012664                                > 
    1013665                        </File> 
    1014666                        <File 
    1015                                 RelativePath=".\Renderer.cpp" 
    1016                                 > 
    1017                         </File> 
    1018                         <File 
    1019                                 RelativePath=".\RenderSimulator.cpp" 
    1020                                 > 
    1021                         </File> 
    1022                         <File 
    1023                                 RelativePath=".\RenderTexture.cpp" 
    1024                                 > 
    1025                         </File> 
    1026                         <File 
    1027                                 RelativePath=".\ReverseGvs.cpp" 
    1028                                 > 
    1029                         </File> 
    1030                         <File 
    1031                                 RelativePath=".\RssTree.cpp" 
    1032                                 > 
    1033                         </File> 
    1034                         <File 
    1035                                 RelativePath=".\SamplingStrategy.cpp" 
    1036                                 > 
    1037                         </File> 
    1038                         <File 
    1039                                 RelativePath=".\SceneGraph.cpp" 
    1040                                 > 
    1041                         </File> 
    1042                         <File 
    1043                                 RelativePath=".\SubdivisionCandidate.cpp" 
    1044                                 > 
    1045                         </File> 
    1046                         <File 
    1047                                 RelativePath=".\Tetrahedron3.cpp" 
     667                                RelativePath=".\Rectangle3.h" 
     668                                > 
     669                        </File> 
     670                        <File 
     671                                RelativePath=".\Tetrahedron3.h" 
    1048672                                > 
    1049673                        </File> 
     
    1053677                        </File> 
    1054678                        <File 
     679                                RelativePath=".\havran\timer.h" 
     680                                > 
     681                        </File> 
     682                        <File 
    1055683                                RelativePath=".\Trackball.cpp" 
    1056684                                > 
    1057685                        </File> 
    1058686                        <File 
    1059                                 RelativePath=".\TraversalTree.cpp" 
     687                                RelativePath=".\Trackball.h" 
    1060688                                > 
    1061689                        </File> 
     
    1065693                        </File> 
    1066694                        <File 
     695                                RelativePath=".\Triangle3.h" 
     696                                > 
     697                        </File> 
     698                        <File 
    1067699                                RelativePath=".\Vector2.cpp" 
    1068700                                > 
    1069701                        </File> 
    1070702                        <File 
     703                                RelativePath=".\Vector2.h" 
     704                                > 
     705                        </File> 
     706                        <File 
    1071707                                RelativePath=".\Vector3.cpp" 
    1072708                                > 
    1073709                        </File> 
    1074710                        <File 
    1075                                 RelativePath=".\ViewCell.cpp" 
    1076                                 > 
    1077                         </File> 
    1078                         <File 
    1079                                 RelativePath=".\ViewCellBsp.cpp" 
    1080                                 > 
    1081                         </File> 
    1082                         <File 
    1083                                 RelativePath=".\ViewCellsManager.cpp" 
    1084                                 > 
    1085                         </File> 
    1086                         <File 
    1087                                 RelativePath=".\ViewCellsParser.cpp" 
    1088                                 > 
    1089                         </File> 
    1090                         <File 
    1091                                 RelativePath=".\VspBspTree.cpp" 
    1092                                 > 
    1093                         </File> 
    1094                         <File 
    1095                                 RelativePath=".\VspTree.cpp" 
    1096                                 > 
    1097                         </File> 
    1098                         <File 
    1099                                 RelativePath=".\VssRay.cpp" 
    1100                                 > 
    1101                         </File> 
    1102                         <File 
    1103                                 RelativePath=".\VssTree.cpp" 
    1104                                 > 
    1105                         </File> 
    1106                         <File 
    1107                                 RelativePath=".\X3dExporter.cpp" 
    1108                                 > 
    1109                         </File> 
    1110                         <File 
    1111                                 RelativePath=".\X3dExporter.h" 
    1112                                 > 
    1113                         </File> 
     711                                RelativePath=".\Vector3.h" 
     712                                > 
     713                        </File> 
     714                </Filter> 
     715                <Filter 
     716                        Name="main" 
     717                        > 
     718                        <Filter 
     719                                Name="Header Files" 
     720                                Filter="h;hpp;hxx;hm;inl;inc;xsd" 
     721                                UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" 
     722                                > 
     723                                <File 
     724                                        RelativePath=".\Beam.h" 
     725                                        > 
     726                                </File> 
     727                                <File 
     728                                        RelativePath=".\BitVectorPvs.h" 
     729                                        > 
     730                                </File> 
     731                                <File 
     732                                        RelativePath=".\BoundingBoxConverter.h" 
     733                                        > 
     734                                </File> 
     735                                <File 
     736                                        RelativePath=".\BvHierarchy.h" 
     737                                        > 
     738                                </File> 
     739                                <File 
     740                                        RelativePath=".\Camera.h" 
     741                                        > 
     742                                </File> 
     743                                <File 
     744                                        RelativePath=".\DifferenceSampling.h" 
     745                                        > 
     746                                </File> 
     747                                <File 
     748                                        RelativePath=".\ExactPreprocessor.h" 
     749                                        > 
     750                                </File> 
     751                                <File 
     752                                        RelativePath=".\FilterBasedDistribution.cpp" 
     753                                        > 
     754                                </File> 
     755                                <File 
     756                                        RelativePath=".\FilterBasedDistribution.h" 
     757                                        > 
     758                                </File> 
     759                                <File 
     760                                        RelativePath=".\HavranRayCaster.h" 
     761                                        > 
     762                                </File> 
     763                                <File 
     764                                        RelativePath=".\HierarchyManager.h" 
     765                                        > 
     766                                </File> 
     767                                <File 
     768                                        RelativePath=".\IntelRayCaster.h" 
     769                                        > 
     770                                </File> 
     771                                <File 
     772                                        RelativePath=".\InternalRayCaster.h" 
     773                                        > 
     774                                </File> 
     775                                <File 
     776                                        RelativePath=".\Intersectable.h" 
     777                                        > 
     778                                </File> 
     779                                <File 
     780                                        RelativePath=".\IntersectableWrapper.h" 
     781                                        > 
     782                                </File> 
     783                                <File 
     784                                        RelativePath=".\IntersectionBoundingBoxConverter.h" 
     785                                        > 
     786                                </File> 
     787                                <File 
     788                                        RelativePath=".\KdTree.h" 
     789                                        > 
     790                                </File> 
     791                                <File 
     792                                        RelativePath=".\Mailable.h" 
     793                                        > 
     794                                </File> 
     795                                <File 
     796                                        RelativePath=".\Mesh.h" 
     797                                        > 
     798                                </File> 
     799                                <File 
     800                                        RelativePath=".\MeshKdTree.h" 
     801                                        > 
     802                                </File> 
     803                                <File 
     804                                        RelativePath=".\Mutation.h" 
     805                                        > 
     806                                </File> 
     807                                <File 
     808                                        RelativePath=".\MutualVisibility.h" 
     809                                        > 
     810                                </File> 
     811                                <File 
     812                                        RelativePath=".\ObjectPvs.h" 
     813                                        > 
     814                                </File> 
     815                                <File 
     816                                        RelativePath=".\OcclusionQuery.h" 
     817                                        > 
     818                                </File> 
     819                                <File 
     820                                        RelativePath=".\OspTree.h" 
     821                                        > 
     822                                </File> 
     823                                <File 
     824                                        RelativePath=".\Timer\PerfTimer.h" 
     825                                        > 
     826                                </File> 
     827                                <File 
     828                                        RelativePath=".\Timer\PerfTimerSkeleton.h" 
     829                                        > 
     830                                </File> 
     831                                <File 
     832                                        RelativePath=".\PreprocessorThread.h" 
     833                                        > 
     834                                </File> 
     835                                <File 
     836                                        RelativePath=".\Pvs.h" 
     837                                        > 
     838                                </File> 
     839                                <File 
     840                                        RelativePath=".\PvsBase.h" 
     841                                        > 
     842                                </File> 
     843                                <File 
     844                                        RelativePath=".\PvsDefinitions.h" 
     845                                        > 
     846                                </File> 
     847                                <File 
     848                                        RelativePath=".\RandomViewCellsHandler.h" 
     849                                        > 
     850                                </File> 
     851                                <File 
     852                                        RelativePath=".\Ray.h" 
     853                                        > 
     854                                </File> 
     855                                <File 
     856                                        RelativePath=".\RayCaster.h" 
     857                                        > 
     858                                </File> 
     859                                <File 
     860                                        RelativePath=".\RayInfo.h" 
     861                                        > 
     862                                </File> 
     863                                <File 
     864                                        RelativePath=".\Renderer.h" 
     865                                        > 
     866                                </File> 
     867                                <File 
     868                                        RelativePath=".\RenderSimulator.h" 
     869                                        > 
     870                                </File> 
     871                                <File 
     872                                        RelativePath=".\RenderTexture.h" 
     873                                        > 
     874                                </File> 
     875                                <File 
     876                                        RelativePath=".\ResourceManager.h" 
     877                                        > 
     878                                </File> 
     879                                <File 
     880                                        RelativePath=".\ReverseGvs.h" 
     881                                        > 
     882                                </File> 
     883                                <File 
     884                                        RelativePath=".\RndGauss.h" 
     885                                        > 
     886                                </File> 
     887                                <File 
     888                                        RelativePath=".\RssTree.h" 
     889                                        > 
     890                                </File> 
     891                                <File 
     892                                        RelativePath=".\SamplingStrategy.h" 
     893                                        > 
     894                                </File> 
     895                                <File 
     896                                        RelativePath=".\SceneGraph.h" 
     897                                        > 
     898                                </File> 
     899                                <File 
     900                                        RelativePath=".\SimpleRay.h" 
     901                                        > 
     902                                </File> 
     903                                <File 
     904                                        RelativePath=".\Statistics.h" 
     905                                        > 
     906                                </File> 
     907                                <File 
     908                                        RelativePath=".\SubdivisionCandidate.h" 
     909                                        > 
     910                                </File> 
     911                                <File 
     912                                        RelativePath=".\TraversalTree.h" 
     913                                        > 
     914                                </File> 
     915                                <File 
     916                                        RelativePath=".\ViewCell.h" 
     917                                        > 
     918                                </File> 
     919                                <File 
     920                                        RelativePath=".\ViewCellBsp.h" 
     921                                        > 
     922                                </File> 
     923                                <File 
     924                                        RelativePath=".\ViewCellsManager.h" 
     925                                        > 
     926                                </File> 
     927                                <File 
     928                                        RelativePath=".\VspBspTree.h" 
     929                                        > 
     930                                </File> 
     931                                <File 
     932                                        RelativePath=".\VspTree.h" 
     933                                        > 
     934                                </File> 
     935                                <File 
     936                                        RelativePath=".\VssRay.h" 
     937                                        > 
     938                                </File> 
     939                                <File 
     940                                        RelativePath=".\VssTree.h" 
     941                                        > 
     942                                </File> 
     943                        </Filter> 
     944                        <Filter 
     945                                Name="Source Files" 
     946                                Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" 
     947                                UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" 
     948                                > 
     949                                <File 
     950                                        RelativePath=".\AxisAlignedBox3.cpp" 
     951                                        > 
     952                                </File> 
     953                                <File 
     954                                        RelativePath=".\Beam.cpp" 
     955                                        > 
     956                                </File> 
     957                                <File 
     958                                        RelativePath=".\BitVectorPvs.cpp" 
     959                                        > 
     960                                </File> 
     961                                <File 
     962                                        RelativePath=".\BvHierarchy.cpp" 
     963                                        > 
     964                                </File> 
     965                                <File 
     966                                        RelativePath=".\Camera.cpp" 
     967                                        > 
     968                                </File> 
     969                                <File 
     970                                        RelativePath=".\DifferenceSampling.cpp" 
     971                                        > 
     972                                </File> 
     973                                <File 
     974                                        RelativePath=".\ExactPreprocessor.cpp" 
     975                                        > 
     976                                </File> 
     977                                <File 
     978                                        RelativePath=".\Exporter.cpp" 
     979                                        > 
     980                                </File> 
     981                                <File 
     982                                        RelativePath=".\HierarchyManager.cpp" 
     983                                        > 
     984                                </File> 
     985                                <File 
     986                                        RelativePath=".\IntelRayCaster.cpp" 
     987                                        > 
     988                                </File> 
     989                                <File 
     990                                        RelativePath=".\InternalRayCaster.cpp" 
     991                                        > 
     992                                </File> 
     993                                <File 
     994                                        RelativePath=".\Intersectable.cpp" 
     995                                        > 
     996                                </File> 
     997                                <File 
     998                                        RelativePath=".\IntersectableWrapper.cpp" 
     999                                        > 
     1000                                </File> 
     1001                                <File 
     1002                                        RelativePath=".\IntersectionBoundingBoxConverter.cpp" 
     1003                                        > 
     1004                                </File> 
     1005                                <File 
     1006                                        RelativePath=".\KdTree.cpp" 
     1007                                        > 
     1008                                </File> 
     1009                                <File 
     1010                                        RelativePath=".\Mailable.cpp" 
     1011                                        > 
     1012                                </File> 
     1013                                <File 
     1014                                        RelativePath=".\Mesh.cpp" 
     1015                                        > 
     1016                                </File> 
     1017                                <File 
     1018                                        RelativePath=".\MeshKdTree.cpp" 
     1019                                        > 
     1020                                </File> 
     1021                                <File 
     1022                                        RelativePath=".\Mutation.cpp" 
     1023                                        > 
     1024                                </File> 
     1025                                <File 
     1026                                        RelativePath=".\MutualVisibility.cpp" 
     1027                                        > 
     1028                                </File> 
     1029                                <File 
     1030                                        RelativePath=".\ObjectPvs.cpp" 
     1031                                        > 
     1032                                </File> 
     1033                                <File 
     1034                                        RelativePath=".\OcclusionQuery.cpp" 
     1035                                        > 
     1036                                </File> 
     1037                                <File 
     1038                                        RelativePath=".\OspTree.cpp" 
     1039                                        > 
     1040                                </File> 
     1041                                <File 
     1042                                        RelativePath=".\RandomViewCellsHandler.cpp" 
     1043                                        > 
     1044                                </File> 
     1045                                <File 
     1046                                        RelativePath=".\Ray.cpp" 
     1047                                        > 
     1048                                </File> 
     1049                                <File 
     1050                                        RelativePath=".\RayCaster.cpp" 
     1051                                        > 
     1052                                </File> 
     1053                                <File 
     1054                                        RelativePath=".\RayInfo.cpp" 
     1055                                        > 
     1056                                </File> 
     1057                                <File 
     1058                                        RelativePath=".\Renderer.cpp" 
     1059                                        > 
     1060                                </File> 
     1061                                <File 
     1062                                        RelativePath=".\RenderSimulator.cpp" 
     1063                                        > 
     1064                                </File> 
     1065                                <File 
     1066                                        RelativePath=".\RenderTexture.cpp" 
     1067                                        > 
     1068                                </File> 
     1069                                <File 
     1070                                        RelativePath=".\ReverseGvs.cpp" 
     1071                                        > 
     1072                                </File> 
     1073                                <File 
     1074                                        RelativePath=".\RssTree.cpp" 
     1075                                        > 
     1076                                </File> 
     1077                                <File 
     1078                                        RelativePath=".\SamplingStrategy.cpp" 
     1079                                        > 
     1080                                </File> 
     1081                                <File 
     1082                                        RelativePath=".\SceneGraph.cpp" 
     1083                                        > 
     1084                                </File> 
     1085                                <File 
     1086                                        RelativePath=".\SubdivisionCandidate.cpp" 
     1087                                        > 
     1088                                </File> 
     1089                                <File 
     1090                                        RelativePath=".\Tetrahedron3.cpp" 
     1091                                        > 
     1092                                </File> 
     1093                                <File 
     1094                                        RelativePath=".\TraversalTree.cpp" 
     1095                                        > 
     1096                                </File> 
     1097                                <File 
     1098                                        RelativePath=".\ViewCell.cpp" 
     1099                                        > 
     1100                                </File> 
     1101                                <File 
     1102                                        RelativePath=".\ViewCellBsp.cpp" 
     1103                                        > 
     1104                                </File> 
     1105                                <File 
     1106                                        RelativePath=".\ViewCellsManager.cpp" 
     1107                                        > 
     1108                                </File> 
     1109                                <File 
     1110                                        RelativePath=".\VspBspTree.cpp" 
     1111                                        > 
     1112                                </File> 
     1113                                <File 
     1114                                        RelativePath=".\VspTree.cpp" 
     1115                                        > 
     1116                                </File> 
     1117                                <File 
     1118                                        RelativePath=".\VssRay.cpp" 
     1119                                        > 
     1120                                </File> 
     1121                                <File 
     1122                                        RelativePath=".\VssTree.cpp" 
     1123                                        > 
     1124                                </File> 
     1125                        </Filter> 
    11141126                </Filter> 
    11151127        </Files> 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp

    r2696 r2705  
    2222#define NOT_ACCOUNTED_OBJECT 0 
    2323#define ACCOUNTED_OBJECT 2 
    24 #define SHOW_QT_VISUALIZATION 0 
     24 
    2525 
    2626static const float MIN_DIST = 0.001f; 
     
    174174 
    175175 
    176 void GvsPreprocessor::CountObject(Intersectable *triObj) 
    177 { 
     176int GvsPreprocessor::CountObject(Intersectable *triObj) 
     177{ 
     178        int numObjects = 0; 
     179 
    178180        if ((triObj->mCounter != (NOT_ACCOUNTED_OBJECT + 1)) &&  
    179181                (triObj->mCounter != (ACCOUNTED_OBJECT + 1))) 
    180182        { 
    181183                ++ triObj->mCounter; 
    182                 ++ mGenericStats[1]; 
    183         } 
     184                ++ numObjects; 
     185        } 
     186 
     187        mGenericStats[1] += numObjects; 
     188 
     189        return numObjects; 
    184190} 
    185191 
     
    187193void GvsPreprocessor::UpdateStatsForVisualization(KdIntersectable *kdInt) 
    188194{ 
    189         //mViewCellsManager->UpdateStatsForViewCell(mCurrentViewCell, kdInt); 
    190  
    191195        // count new objects in pvs due to kd node conversion    
    192196        myobjects.clear(); 
    193         mKdTree->CollectObjects(kdInt->GetItem(), myobjects); 
     197        // also gather duplicates to avoid mailing 
     198        mKdTree->CollectObjectsWithDublicates(kdInt->GetItem(), myobjects); 
     199 
     200        int numObj; 
    194201 
    195202        ObjectContainer::const_iterator oit, oit_end = myobjects.end(); 
    196203 
    197204        for (oit = myobjects.begin(); oit != oit_end; ++ oit) 
    198                 CountObject(*oit); 
     205                numObj = CountObject(*oit); 
     206 
     207        mViewCellsManager->UpdateStatsForViewCell(mCurrentViewCell, kdInt, numObj); 
    199208}        
    200209 
     
    240249                                mCurrentViewCell->GetPvs().AddSampleDirty(kdInt, 1.0f); 
    241250 
    242                                 if (SHOW_QT_VISUALIZATION) UpdateStatsForVisualization(kdInt);   
     251                                if (QT_VISUALIZATION_SHOWN) UpdateStatsForVisualization(kdInt);  
    243252                        } 
    244253                } 
     
    871880 
    872881 
    873 void GvsPreprocessor::IntersectWithViewCell() 
     882void GvsPreprocessor::ComputeViewCellGeometryIntersection() 
    874883{ 
    875884        AxisAlignedBox3 box = mCurrentViewCell->GetBox(); 
     
    915924                        mCurrentViewCell->GetPvs().AddSampleDirty(kdInt, 1.0f); 
    916925                        //mCurrentViewCell->GetPvs().AddSampleDirtyCheck(kdInt, 1.0f); 
    917                         if (SHOW_QT_VISUALIZATION) UpdateStatsForVisualization(kdInt); 
     926                        if (QT_VISUALIZATION_SHOWN) UpdateStatsForVisualization(kdInt); 
    918927                } 
    919928        } 
     
    12961305         
    12971306        // at last compute objects that directly intersect view cell 
    1298         IntersectWithViewCell(); 
     1307        ComputeViewCellGeometryIntersection(); 
    12991308 
    13001309                 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.h

    r2695 r2705  
    227227        bool HasContribution(VssRay &ray); 
    228228 
    229         void IntersectWithViewCell(); 
     229        void ComputeViewCellGeometryIntersection(); 
    230230 
    231231        void DeterminePvsObjects(VssRayContainer &rays); 
     
    239239        */ 
    240240        void UpdateStatsForVisualization(KdIntersectable *kdInt); 
    241         /** Keep count of new objects for stats. 
    242         */ 
    243         void CountObject(Intersectable *triObj); 
     241        /** Keep count of new objects for stats. Returns number of new pvs entries. 
     242        */ 
     243        int CountObject(Intersectable *triObj); 
    244244 
    245245        void CompileViewCellsFromPointList(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp

    r2699 r2705  
    399399  Vector3 max = sbox.Max(); 
    400400   
    401   int packets = rays.size() / 16; 
     401  int packets = (int)rays.size() / 16; 
    402402   
    403403  int i, k = 0; 
     
    431431                               const bool pruneInvalidRays ) 
    432432{ 
    433   int buckets = rays.size()/16; 
     433  int buckets = (int)rays.size()/16; 
    434434  int offset = 0; 
    435435 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r2588 r2705  
    488488 
    489489        // hack: assume that object space can be seen from view space 
    490         mHierarchyStats.mTotalCost = mInitialRenderCost = GetViewCellsManager()->ComputeRenderCost(objects.size(), 1); 
     490        mHierarchyStats.mTotalCost = mInitialRenderCost =  
     491                GetViewCellsManager()->ComputeRenderCost(objects.size(), 1); 
    491492 
    492493        // only one entry for start 
  • GTP/trunk/Lib/Vis/Preprocessing/src/IntelRayCaster.cpp

    r2606 r2705  
    429429  Vector3 max = sbox.Max(); 
    430430   
    431   int packets = rays.size() / 16; 
     431  int packets = (int)rays.size() / 16; 
    432432   
    433433  int i, j, k = 0; 
     
    460460 
    461461void 
    462 IntelRayCaster::CastRays( 
    463                          SimpleRayContainer &rays, 
    464                          VssRayContainer &vssRays, 
    465                          const AxisAlignedBox3 &sbox, 
    466                          const bool castDoubleRay, 
    467                          const bool pruneInvalidRays ) 
    468 { 
    469  
    470   int buckets = rays.size()/16; 
     462IntelRayCaster::CastRays(SimpleRayContainer &rays, 
     463                                                 VssRayContainer &vssRays, 
     464                                                 const AxisAlignedBox3 &sbox, 
     465                                                 bool castDoubleRay, 
     466                                                 bool pruneInvalidRays) 
     467{ 
     468 
     469  int buckets = (int)rays.size() / 16; 
    471470  int offset = 0; 
    472471 
  • GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp

    r2691 r2705  
    3434 
    3535KdNode::KdNode(KdInterior *parent): 
    36 mParent(parent), mMailbox(0), mIntersectable(NULL), mMailbox2(0) 
     36mParent(parent),  
     37mMailbox(0),  
     38mIntersectable(NULL),  
     39mMailbox2(0), 
     40mNumObjects(0) 
    3741{ 
    3842  if (parent) 
     
    136140  SetPvsTerminationNodes(area); 
    137141   
     142  // sets the number of objects in the subtree 
     143  KdNode::NewMail(); 
     144  SetNumObjects(mRoot); 
     145 
    138146  return true; 
    139147} 
     
    10571065void 
    10581066KdTree::CollectKdObjects(const AxisAlignedBox3 &box, 
    1059                         ObjectContainer &objects 
    1060                         ) 
     1067                                                ObjectContainer &objects 
     1068                                                 ) 
    10611069{ 
    10621070  stack<KdNode *> nodeStack; 
     
    11241132void 
    11251133KdTree::CollectObjects(const AxisAlignedBox3 &box, 
    1126                        ObjectContainer &objects) 
     1134                                           ObjectContainer &objects) 
    11271135{ 
    11281136  stack<KdNode *> nodeStack; 
     
    11521160    } 
    11531161  } 
     1162} 
     1163 
     1164 
     1165int KdTree::GetNumObjects(KdNode *node) const 
     1166{ 
     1167        return node->mNumObjects; 
     1168} 
     1169 
     1170 
     1171void KdTree::SetNumObjects(KdNode *node) 
     1172{ 
     1173        node->mNumObjects = 0; 
     1174 
     1175        if (node->IsLeaf())  
     1176        { 
     1177                KdLeaf *leaf = (KdLeaf *)node; 
     1178 
     1179                for (int j=0; j < leaf->mObjects.size(); ++ j)  
     1180                { 
     1181                        Intersectable *object = leaf->mObjects[j]; 
     1182 
     1183                        if (!object->Mailed())  
     1184                        { 
     1185                                object->Mail(); 
     1186                                ++ node->mNumObjects; 
     1187                        } 
     1188                } 
     1189        } 
     1190        else  
     1191        { 
     1192                KdInterior *interior = (KdInterior *)node; 
     1193 
     1194                SetNumObjects(interior->mFront); 
     1195                SetNumObjects(interior->mBack); 
     1196 
     1197                node->mNumObjects += interior->mFront->mNumObjects; 
     1198                node->mNumObjects += interior->mBack->mNumObjects; 
     1199        } 
    11541200} 
    11551201 
     
    16701716        SetPvsTerminationNodes(area); 
    16711717 
     1718        // sets the number of objects in the subtree 
     1719        KdNode::NewMail(); 
     1720        SetNumObjects(mRoot); 
     1721 
    16721722        Debug << mStat << endl; 
    16731723 
  • GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.h

    r2691 r2705  
    164164  short mDepth; 
    165165  short mPvsTermination; 
     166  int mNumObjects; 
    166167}; 
    167168 
     
    344345  AxisAlignedBox3 GetBox() const { return mBox; } 
    345346 
    346   int 
    347   CastRay( 
    348                   Ray &ray 
    349                   ); 
    350    
    351  
    352   int 
    353   CastBeam( 
    354                    Beam &beam 
    355                    ); 
     347  int CastRay(Ray &ray); 
     348   
     349 
     350  int CastBeam(Beam &beam); 
    356351   
    357352   
     
    368363                                           vector<ViewCell *> &viewcells); 
    369364 
    370   const KdTreeStatistics &GetStatistics() const { 
    371     return mStat; 
    372   } 
     365  const KdTreeStatistics &GetStatistics() const { return mStat;  } 
    373366 
    374367  /** Returns or creates a new intersectable for use in a kd based pvs. 
     
    394387                   ); 
    395388 
    396   // colect objects which are in the bounding box by explictly specifying the 
    397   // allowed size of the boxes. If this size is smaller than size used for pvs entries 
    398   // filtering will be more precise 
     389  /** colect objects which are in the bounding box by explictly specifying the 
     390      allowed size of the boxes. If this size is smaller than size used for pvs entries 
     391          filtering will be more precise. 
     392  */ 
    399393  void 
    400394  CollectSmallKdObjects(const AxisAlignedBox3 &box, 
     
    403397                                                ); 
    404398 
    405   void 
    406   CollectObjects(KdNode *n, ObjectContainer &objects); 
    407    
     399  /** warning - uses mailing. 
     400  */ 
     401  void CollectObjects(KdNode *n, ObjectContainer &objects); 
     402  /** Sets the number of objects under the current subtree for each node. 
     403          warning - uses mailing. 
     404  */ 
     405  void SetNumObjects(KdNode *root); 
     406  /** Returns the number of objects under the curretn subtree. 
     407  */ 
     408  int GetNumObjects(KdNode *node) const; 
    408409  /** Collects objects with dublicates (no mailing going on) 
    409410  */ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2704 r2705  
    333333                        char filename[256]; 
    334334                        //sprintf(filename, "error-frame-%04d-%0.5f.png", mFrame, pErrorPixels); 
    335                         sprintf(filename, "error-frame-%04d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 
     335                        sprintf_s(filename, "error-frame-%04d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 
    336336                        QImage im = toImage(); 
    337337                        string str = mSnapPrefix + filename; 
     
    367367 
    368368                                im = toImage(); 
    369                                 sprintf(filename, "error-frame-%04d-%04d-%08d-pvs.png", mFrame, viewcell->GetId(), pixelCount); 
     369                                sprintf_s(filename, "error-frame-%04d-%04d-%08d-pvs.png", mFrame, viewcell->GetId(), pixelCount); 
    370370                                str = mSnapPrefix + filename; 
    371371                                qstr = str.c_str(); 
     
    10041004        switch (e->key())  
    10051005        { 
    1006 case Qt::Key_E: 
    1007         mRenderErrors = !mRenderErrors; 
    1008         updateGL(); 
    1009         break; 
    1010 case Qt::Key_R: 
    1011         mUseRandomColorPerPvsObject = !mUseRandomColorPerPvsObject;; 
    1012         updateGL(); 
    1013         break; 
    1014 case Qt::Key_T: 
    1015         mTopView = !mTopView; 
    1016         SetupCameraProjection(width(), height()); 
    1017         updateGL(); 
    1018         break; 
    1019 case Qt::Key_V: 
    1020         mRenderViewCells = !mRenderViewCells; 
    1021         updateGL(); 
    1022         break; 
    1023 case Qt::Key_P: 
    1024         // set random viewpoint 
    1025         mViewCellsManager->GetViewPoint(mViewPoint); 
    1026         updateGL(); 
    1027         break; 
    1028 case Qt::Key_S: { 
    1029         // set view poitn and direction 
    1030         QString text; 
    1031         bool ok; 
    1032         text.sprintf("%f %f %f", mViewPoint.x, mViewPoint.y, mViewPoint.z); 
    1033         text = QInputDialog::getText(this, 
    1034                 "Enter a view point", 
    1035                 "", 
    1036                 QLineEdit::Normal, 
    1037                 text, 
    1038                 &ok); 
    1039         if (!ok) 
     1006        case Qt::Key_E: 
     1007                mRenderErrors = !mRenderErrors; 
     1008                updateGL(); 
    10401009                break; 
    1041  
    1042         if (sscanf(text.toAscii(), "%f %f %f", &mViewPoint.x, &mViewPoint.y, &mViewPoint.z) == 3) { 
    1043                 text.sprintf("%f %f %f", mViewDirection.x, mViewDirection.y, mViewDirection.z); 
     1010        case Qt::Key_R: 
     1011                mUseRandomColorPerPvsObject = !mUseRandomColorPerPvsObject;; 
     1012                updateGL(); 
     1013                break; 
     1014        case Qt::Key_T: 
     1015                mTopView = !mTopView; 
     1016                SetupCameraProjection(width(), height()); 
     1017                updateGL(); 
     1018                break; 
     1019        case Qt::Key_V: 
     1020                mRenderViewCells = !mRenderViewCells; 
     1021                updateGL(); 
     1022                break; 
     1023        case Qt::Key_P: 
     1024                // set random viewpoint 
     1025                mViewCellsManager->GetViewPoint(mViewPoint); 
     1026                updateGL(); 
     1027                break; 
     1028        case Qt::Key_S: { 
     1029                // set view poitn and direction 
     1030                QString text; 
     1031                bool ok; 
     1032                text.sprintf("%f %f %f", mViewPoint.x, mViewPoint.y, mViewPoint.z); 
    10441033                text = QInputDialog::getText(this, 
    1045                         "Enter a direction", 
     1034                        "Enter a view point", 
    10461035                        "", 
    10471036                        QLineEdit::Normal, 
     
    10501039                if (!ok) 
    10511040                        break; 
    1052                 if (sscanf(text.toAscii(), "%f %f %f", &mViewDirection.x, 
    1053                         &mViewDirection.y, &mViewDirection.z) == 3) { 
    1054                                 updateGL(); 
     1041 
     1042                if (sscanf_s(text.toAscii(), "%f %f %f", &mViewPoint.x, &mViewPoint.y, &mViewPoint.z) == 3) { 
     1043                        text.sprintf("%f %f %f", mViewDirection.x, mViewDirection.y, mViewDirection.z); 
     1044                        text = QInputDialog::getText(this, 
     1045                                "Enter a direction", 
     1046                                "", 
     1047                                QLineEdit::Normal, 
     1048                                text, 
     1049                                &ok); 
     1050                        if (!ok) 
     1051                                break; 
     1052                        if (sscanf_s(text.toAscii(), "%f %f %f", &mViewDirection.x, 
     1053                                &mViewDirection.y, &mViewDirection.z) == 3) { 
     1054                                        updateGL(); 
    10551055                        } 
    10561056                        break; 
    1057         } 
    1058                                 } 
    1059 default: 
    1060         cerr << "unknown key" << endl; 
    1061         e->ignore(); 
    1062         break; 
     1057                } 
     1058                                        } 
     1059        default: 
     1060                cerr << "unknown key" << endl; 
     1061                e->ignore(); 
     1062                break; 
    10631063        } 
    10641064} 
     
    27002700        SetupCamera(); 
    27012701 
    2702         for (size_t i = 0; i < GetPreprocessor()->mDynamicObjects.size(); ++ i) 
     2702        for (GLuint i = 0; i < GetPreprocessor()->mDynamicObjects.size(); ++ i) 
    27032703        { 
    27042704                glLoadName(i); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.cpp

    r2686 r2705  
    6060void QtGlViewer::RenderScene() 
    6161{ 
    62         GLfloat mat_ambient[]   = {  0.5, 0.5, 0.5, 1.0  }; 
     62        GLfloat mat_ambient[]   = {0.5f, 0.5f, 0.5f, 1.0f}; 
    6363         
    6464        // mat_specular and mat_shininess are NOT default values 
    65         GLfloat mat_diffuse[]   = {  1.0, 1.0, 1.0, 1.0  }; 
    66         GLfloat mat_specular[]  = {  0.3, 0.3, 0.3, 1.0  }; 
    67         GLfloat mat_shininess[] = {  1.0  }; 
    68  
    69         GLfloat light_ambient[]  = {  0.2f, 0.2f, 0.2f, 1.0f  }; 
    70         GLfloat light_diffuse[]  = {  0.4f, 0.4f, 0.4f, 1.0f  }; 
    71         GLfloat light_specular[] = {  0.3f, 0.3f, 0.3f, 1.0f }; 
     65        GLfloat mat_diffuse[]   = {1.0f, 1.0f, 1.0f, 1.0f}; 
     66        GLfloat mat_specular[]  = {0.3f, 0.3f, 0.3f, 1.0f}; 
     67        GLfloat mat_shininess[] = {1.0f  }; 
     68 
     69        GLfloat light_ambient[]  = {0.2f, 0.2f, 0.2f, 1.0f}; 
     70        GLfloat light_diffuse[]  = {0.4f, 0.4f, 0.4f, 1.0f}; 
     71        GLfloat light_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
    7272 
    7373        GLfloat lmodel_ambient[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
     
    7575 
    7676        // set position of the light 
    77         GLfloat infinite_light[] = {1.0, 0.8, 1.0, 0.0}; 
     77        GLfloat infinite_light[] = {1.0f, 0.8f, 1.0f, 0.0f}; 
    7878        glLightfv (GL_LIGHT0, GL_POSITION, infinite_light); 
    7979 
    8080        // set position of the light2 
    81         GLfloat infinite_light2[] = {-0.3, 1.5, 1.0, 0.0}; 
     81        GLfloat infinite_light2[] = {-0.3f, 1.5f, 1.0f, 0.0f}; 
    8282        glLightfv (GL_LIGHT1, GL_POSITION, infinite_light2); 
    8383 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2702 r2705  
    14451445 
    14461446 
    1447 float ViewCellsManager::ComputeRenderCost(const int tri, const int obj) //const 
     1447float ViewCellsManager::ComputeRenderCost(int tri, int obj) //const 
    14481448{ 
    14491449        return max((float)tri * mTriangleWeight, (float)obj * mObjectWeight); 
     
    23742374{ 
    23752375#ifdef USE_VERBOSE_PVS 
    2376         KdIntersectable *kdObj = static_cast<KdIntersectable *>(obj); 
    2377  
    2378         const AxisAlignedBox3 box = kdObj->GetBox(); 
     2376        const AxisAlignedBox3 box = obj->GetBox(); 
    23792377        const float dist = Distance(vc->GetBox().Center(), box.Center()); 
    23802378 
     
    24312429                //hasAbsContribution = viewCell->GetPvs().AddSample(obj,ray.mPdf); 
    24322430                 
    2433                 //if (hasAbsContribution)       UpdateStatsForViewCell(viewCell, obj); 
    2434                  
     2431                if (hasAbsContribution) 
     2432                { 
     2433                        if (QT_VISUALIZATION_SHOWN) 
     2434                        { 
     2435                                int numTriangles; 
     2436 
     2437                                if (obj->Type() == Intersectable::KD_INTERSECTABLE) 
     2438                                { 
     2439                                        numTriangles = GetPreprocessor()->mKdTree->GetNumObjects(static_cast<KdIntersectable *>(obj)->GetItem()); 
     2440                                } 
     2441                                else if (obj->Type() == Intersectable::SCENEGRAPHLEAF_INTERSECTABLE) 
     2442                                { 
     2443                                        numTriangles = static_cast<SceneGraphLeafIntersectable *>(obj)->GetItem()->mGeometry.size(); 
     2444                                } 
     2445 
     2446                                UpdateStatsForViewCell(viewCell, obj, numTriangles); 
     2447                        } 
     2448                } 
    24352449        } 
    24362450        else  
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r2696 r2705  
    461461        /** Evaluautes histogram for a given number of view cells. 
    462462        */ 
    463         void EvalViewCellHistogram(const string filename, const int nViewCells); 
     463        void EvalViewCellHistogram(const string filename, int nViewCells); 
    464464        /** Evaluautes histogram for a given number of view cells. 
    465465        */ 
    466466        void EvalViewCellHistogramForPvsSize(const string filename,  
    467                                                                                  const int nViewCells); 
     467                                                                                 int nViewCells); 
    468468        /** Evaluautes histogram for a given vector of view cells. 
    469469        */ 
    470470        void EvalViewCellHistogramForPvsSize(const string filename,  
    471471                                                                                 ViewCellContainer &viewCells); 
    472         float ComputeRenderCost(const int tri, const int obj); //const 
     472        float ComputeRenderCost(int tri, int obj); //const 
    473473        /** Sets pvs size of a view cell as a scalar. Used when storing pvs only in the leaves 
    474474                of the hierarchy. 
    475475        */ 
    476476        void UpdateScalarPvsSize(ViewCell *vc,  
    477                                                          const float pvsCost,  
    478                                                          const int entriesInPvs) const; 
     477                                                         float pvsCost,  
     478                                                         int entriesInPvs) const; 
    479479        /** Sets render cost of a view cell as a scalar. 
    480480        */ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/common.h

    r2702 r2705  
    537537#define OUT_OF_BOUNDS_ID -1 
    538538 
    539 #endif 
    540  
    541  
    542  
    543  
    544  
    545  
    546  
    547  
     539 
     540#define QT_VISUALIZATION_SHOWN 1 
     541 
     542 
     543#endif 
     544 
     545 
     546 
     547 
     548 
     549 
     550 
     551 
Note: See TracChangeset for help on using the changeset viewer.