VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtAddTerrainPatchLogic.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtAddTerrainPatchLogic.h,v $ $Revision: 1.13 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvCoreQt/vrvCoreQt.h>
00015 #include <vrvCoreQt/DtAddTerrainPatchInterface.h>
00016 #include <vrvCore/DtHeaderParser.h>
00017 #include <vrvCore/DtDe.h>
00018 #include <vrvUtil/DtSignalConnectionManager.h>
00019 
00020 namespace makVrv
00021 {
00024    class DT_DLL_VRVCOREQT DtAddTerrainPatchLogic
00025    {
00026 
00027    public:
00028 
00030       DtAddTerrainPatchLogic(DtDe& de, DtAddTerrainPatchInterface* iFace);
00031    
00033       ~DtAddTerrainPatchLogic();
00034 
00036       void onTerrainPatchFileChosen(const std::string& filePath);
00037 
00042       bool processTerrainHeader( const std::string& filePath,
00043          DtAddTerrainPatchInterface::ErrorMessage& msg);
00044 
00047       void addTerrainPatch();
00048 
00050       bool terrainPatchLoadable();
00051       
00052    protected:
00053 
00055       void onCoordinateSystemChanged(const std::string& coordSystem);
00056 
00058       void onCoordinateSystemParamsChanged(const std::string& coordSystemParams);
00059 
00061       void onDdsFlipChanged(bool ddsFlip);
00062 
00064       int coordSysStrToEnum( const std::string& coordSys);
00065 
00066    protected:
00067 
00068       DtDe& myDe;
00069       DtAddTerrainPatchInterface* myInterface;
00070       std::string myTerrainPath;
00071       std::string myCoordinateSystem;
00072       std::string myCoordinateSystemParams;
00073       bool myDdsFlip;
00074       DtHeaderParser::TerrainPatchRecords myTerrainPatchRecords;
00075       DtSignalConnectionManager mySignals;
00076    };
00077 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)