Ignore:
Timestamp:
Jun 13, 2012, 9:18:04 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.h

    r372 r376  
    1919#pragma once
    2020
    21 #include "distortionsetupstrategy.h"
     21#include "DistortionSetupStrategy.h"
    2222
     23
     24/**
     25 * \brief "Project Syntropy" Setup Strategy reads setup files of http://www.project-syntropy.de/ and configures the distortion accordingly.
     26 *
     27 * @author Torben Dannhauer
     28 * @date  Jun 2012
     29 */
    2330class DistortionSetupStrategyProjectSyntropy :
    2431        public DistortionSetupStrategy
     
    2835        ~DistortionSetupStrategyProjectSyntropy();
    2936        void delegateDistortionSetup(osgViewer::DistortionSet* distortionSet);
     37        void setDistortionInputFiles( std::string distortionFile, std::string blendmapFile, std::string frustumFile, DistortionSetupStrategy::distortionType type);
     38private:
     39        //Functions related to CSV-File-Reading
     40        int readFrustumFromCSVFile(std::string filePath, int numValues, float* frustumValues);
     41        int readMeshDimensionsFromCSVFile(std::string filePath, int* meshRows, int* meshColumns);
     42        int readMeshPointsFromCSVFile(std::string filePath, osg::Vec2Array* meshPointsVec2, osg::Vec3Array* meshPointsVec3);
     43        int readMeshPointsFromCSVFile(std::string filePath, osg::Vec2Array* meshPointsVec2, osg::Vec3Array* meshPointsVec3, int displayWidth, int displayHeight);
     44
     45        bool _distortionInitialized;                            //Is Distortion already initialized?
     46        bool _switchDistortionTypeVortexToTexcoords;            //Indicates if Texcoord- (true) or Vortexdistortion (false) is selected
     47
     48        //Paths of Blending/Warping related Files
     49        std::string _intensityMapFilename;
     50
     51        std::string _frustumVortexDistortionFilename;
     52        std::string _frustumTexcoordDistortionFilename;
     53
     54        std::string _meshVortexDistortionFilename;
     55        std::string _meshTexcoordDistortionFilename;
    3056};
Note: See TracChangeset for help on using the changeset viewer.