Ignore:
Timestamp:
Apr 20, 2012, 9:39:22 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/distortionNG
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/distortionNG.vcproj

    r344 r346  
    334334                        >
    335335                        <File
     336                                RelativePath=".\DistortionManipulator.cpp"
     337                                >
     338                        </File>
     339                        <File
    336340                                RelativePath=".\distortionNG.cpp"
    337341                                >
     
    356360                        >
    357361                        <File
     362                                RelativePath=".\DistortionManipulator.h"
     363                                >
     364                        </File>
     365                        <File
    358366                                RelativePath=".\distortionNG.h"
    359367                                >
  • experimental/distortionNG/extViewer.cpp

    r345 r346  
     1/* osgVisual test. distortionNG, experimental.
     2*
     3*  Permission is hereby granted, free of charge, to any person obtaining a copy
     4*  of this software and associated documentation files (the "Software"), to deal
     5*  in the Software without restriction, including without limitation the rights
     6*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7*  copies of the Software, and to permit persons to whom the Software is
     8*  furnished to do so, subject to the following conditions:
     9*
     10*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     11*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     12*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     13*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     14*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     15*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     16*  THE SOFTWARE.
     17*/
     18
    119#include "extViewer.h"
    220#include "distortionNG.h"
     
    1432#include <osgUtil/SmoothingVisitor>
    1533
     34#include "DistortionManipulator.h"
     35
    1636extViewer::extViewer() : Viewer()
    1737{
     
    2040extViewer::extViewer(osg::ArgumentParser& arguments) : Viewer(arguments)
    2141{
    22         // Add help for command-line options read here
     42        // Add help for command-line options here
    2343    arguments.getApplicationUsage()->addCommandLineOption("--distort","load distortion file and set up geometrical distortion for viewer. This includes blending");
    2444    arguments.getApplicationUsage()->addCommandLineOption("--blend","Set up viewer vor simple blending CullDrawThreadPerContext threading model for viewer.");
     
    327347                camera->setCullingMode( mode & (~osg::CullSettings::SMALL_FEATURE_CULLING) );
    328348
     349                // Add the distortionHandler
     350                addEventHandler(new osgViewer::DistortionManipulator);
     351
    329352
    330353        camera->setName("Dist Cam");
  • experimental/distortionNG/extViewer.h

    r341 r346  
    11#pragma once
     2
     3/* osgVisual test. distortionNG, experimental.
     4*
     5*  Permission is hereby granted, free of charge, to any person obtaining a copy
     6*  of this software and associated documentation files (the "Software"), to deal
     7*  in the Software without restriction, including without limitation the rights
     8*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     9*  copies of the Software, and to permit persons to whom the Software is
     10*  furnished to do so, subject to the following conditions:
     11*
     12*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     13*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     14*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     15*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     16*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     17*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     18*  THE SOFTWARE.
     19*/
     20
     21
    222#include<osgViewer/Viewer>
    323
Note: See TracChangeset for help on using the changeset viewer.