VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCoreQt
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
>
15
#include <
vrvCoreQt/DtAddTerrainPatchInterface.h
>
16
#include <
vrvCore/DtHeaderParser.h
>
17
#include <
vrvCore/DtDe.h
>
18
#include <
vrvUtil/DtSignalConnectionManager.h
>
19
20
namespace
makVrv
21
{
24
class
DT_DLL_VRVCOREQT
DtAddTerrainPatchLogic
25
{
26
public
:
27
29
enum
AlphaToCoverageState
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
39
DtAddTerrainPatchLogic
(
DtDe
& de,
DtAddTerrainPatchInterface
* iFace);
40
42
~
DtAddTerrainPatchLogic
();
43
45
void
onTerrainPatchFileChosen(
const
std::string& filePath);
46
51
bool
processTerrainHeader(
const
std::string& filePath,
52
DtAddTerrainPatchInterface::ErrorMessage
& msg);
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
80
DtDe
&
myDe
;
81
DtAddTerrainPatchInterface
*
myInterface
;
82
std::string
myTerrainPath
;
83
std::string
myCoordinateSystem
;
84
std::string
myCoordinateSystemParams
;
85
bool
myDdsFlip
;
86
AlphaToCoverageState
myAlphaToCoverageState
;
87
DtHeaderParser::TerrainPatchRecords
myTerrainPatchRecords
;
88
DtSignalConnectionManager
mySignals
;
89
};
90
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)