VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAddTerrainPatchLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAddTerrainPatchLogic.h,v $ $Revision: 1.13 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <vrvCore/DtHeaderParser.h>
17 #include <vrvCore/DtDe.h>
19 
20 namespace makVrv
21 {
25  {
26  public:
27 
30  {
31  USE_GLOBAL, // use the global setting
32  FORCE_OFF, // force alpha to coverage off
33  FORCE_ON //force alpha to coverage on for this model
34  };
35 
36  public:
37 
40 
43 
45  void onTerrainPatchFileChosen(const std::string& filePath);
46 
51  bool processTerrainHeader(const std::string& filePath,
53 
56  void addTerrainPatch();
57 
59  bool terrainPatchLoadable();
60 
61  protected:
62 
64  void onCoordinateSystemChanged(const std::string& coordSystem);
65 
67  void onCoordinateSystemParamsChanged(const std::string& coordSystemParams);
68 
70  void onDdsFlipChanged(bool ddsFlip);
71 
73  void onAlphaToCoverageChanged(int state);
74 
76  int coordSysStrToEnum(const std::string& coordSys);
77 
78  protected:
79 
82  std::string myTerrainPath;
83  std::string myCoordinateSystem;
85  bool myDdsFlip;
89  };
90 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)