source: experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp @ 375

Last change on this file since 375 was 372, checked in by Torben Dannhauer, 12 years ago

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

File size: 1.9 KB
RevLine 
[372]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
19#include "DistortionSetupStrategyProjectSyntropy.h"
20
21DistortionSetupStrategyProjectSyntropy::DistortionSetupStrategyProjectSyntropy()
22{
23}
24
25DistortionSetupStrategyProjectSyntropy::~DistortionSetupStrategyProjectSyntropy()
26{
27}
28
29void DistortionSetupStrategyProjectSyntropy::delegateDistortionSetup(osgViewer::DistortionSet* distortionSet)
30{
31        if(distortionSet == NULL)
32        {
33                OSG_ALWAYS<<"DistortionSetupStrategyProjectSyntropy::delegateDistortionSetup : Invalid DistortionSet"<<std::endl;
34                return;
35        }
36
37        OSG_ALWAYS<<"drin"<<std::endl;
38
39        /* Todo: In diese Klasse das Einlesen und übertragen der Project Syntropy Dateien packen:
40        *
41        * 1. Blendmap einlesen, auf Screensize skalieren und in den distortioncontainer übertragen
42        * 2. Frustum CSV auslesen und die Werte in ViewMatrix und  Projectionmatrix übertragen
43        * 3. Meshkoordinaten aus CSV einlesen und in DistortionSet übertragen
44        *
45        */
46}
Note: See TracBrowser for help on using the repository browser.