Ignore:
Timestamp:
Jun 1, 2012, 9:57:13 PM (12 years ago)
Author:
Torben Dannhauer
Message:

Alpha version of the strategy pattern to separate the delegated DistortionSetup? algorithms from the main software.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/main.cpp

    r371 r372  
    3737
    3838#include "DistortionManipulator.h"
     39#include "DistortionSetupStrategyProjectSyntropy.h"
    3940
    4041int main(int argc, char** argv)
     
    9293
    9394        // Add the distortion manipulator
    94         viewer.addEventHandler(new osgViewer::DistortionManipulator(_distortionSet));
     95        osgViewer::DistortionManipulator* distortionManip = new osgViewer::DistortionManipulator(_distortionSet);
     96        distortionManip->setDistortionSetupStrategy( new DistortionSetupStrategyProjectSyntropy() );
     97        viewer.addEventHandler(distortionManip);
    9598
    9699    // add the state manipulator
Note: See TracChangeset for help on using the changeset viewer.