- Timestamp:
- Jun 13, 2012, 9:18:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.h
r372 r376 19 19 #pragma once 20 20 21 #include " distortionsetupstrategy.h"21 #include "DistortionSetupStrategy.h" 22 22 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 */ 23 30 class DistortionSetupStrategyProjectSyntropy : 24 31 public DistortionSetupStrategy … … 28 35 ~DistortionSetupStrategyProjectSyntropy(); 29 36 void delegateDistortionSetup(osgViewer::DistortionSet* distortionSet); 37 void setDistortionInputFiles( std::string distortionFile, std::string blendmapFile, std::string frustumFile, DistortionSetupStrategy::distortionType type); 38 private: 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; 30 56 };
Note: See TracChangeset
for help on using the changeset viewer.