VR-Forces 4.8 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) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 
15 #include <vrvCore/DtHeaderParser.h>
16 #include <vrvCore/DtDe.h>
17 
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  void onIndirectEnabledChanged(bool indirectEnabled);
77 
79  int coordSysStrToEnum(const std::string& coordSys);
80 
81  protected:
82 
85  std::string myTerrainPath;
86  std::string myCoordinateSystem;
88  bool myDdsFlip;
91 
94  };
95 }
bool myIndirectEnabled
Definition: DtAddTerrainPatchLogic.h:90
DtHeaderParser::TerrainPatchRecords myTerrainPatchRecords
Definition: DtAddTerrainPatchLogic.h:92
DtAddTerrainPatchInterface * myInterface
Definition: DtAddTerrainPatchLogic.h:84
std::string myCoordinateSystem
Definition: DtAddTerrainPatchLogic.h:86
DtDe & myDe
Definition: DtAddTerrainPatchLogic.h:83
Definition: DtAddTerrainPatchLogic.h:32
Contains makVrv::DtDe class.
Adds terrain patches to the scene.
Definition: DtAddTerrainPatchLogic.h:24
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
std::string myCoordinateSystemParams
Definition: DtAddTerrainPatchLogic.h:87
AlphaToCoverageState myAlphaToCoverageState
Definition: DtAddTerrainPatchLogic.h:89
Definition: DtAddTerrainPatchLogic.h:31
Contains makVrv::DtHeaderParser class.
AlphaToCoverageState
The possible states of alpha to coverage for a terrain patch.
Definition: DtAddTerrainPatchLogic.h:29
Contains DLL export macros.
DtSignalConnectionManager mySignals
Definition: DtAddTerrainPatchLogic.h:93
ErrorMessage
Definition: DtAddTerrainPatchInterface.h:35
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
std::list< makArchives::DtTerrainPatchRecord > TerrainPatchRecords
Definition: DtHeaderParser.h:48
Base class to provide boost signal/slot management.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
The interface between the Terrain patch logic and the dialog.
Definition: DtAddTerrainPatchInterface.h:20
Contains makVrv::DtAddTerrainPatchInterface class.
std::string myTerrainPath
Definition: DtAddTerrainPatchLogic.h:85
bool myDdsFlip
Definition: DtAddTerrainPatchLogic.h:88

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)