VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
mtflt
metaFlightGridStructure.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: mtFltGridStructure.h,v $ $Revision: 1.11 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef metaFlightGridStructure_H_
10
#define metaFlightGridStructure_H_
11
12
//
13
// \file mtFltGridStructure.h
14
// \brief Represents a GridStructure node inside the MetaFlight file
15
//
16
17
#include "
mtflt/mtfltDefines.h
"
18
#include "
mtflt/metaFlightNode.h
"
19
#include <vlutil/vlConfig.h>
20
#include <vector>
21
22
class
DtMetaFlightGridLevel
;
23
24
// \brief Represents a GridStructure node inside the MetaFlight file
25
// This class represents a Grid Structure, which defines a system of spatial
26
// subdivisions independent of location, coverage, or dataset type. This is
27
// one of the types of information conveyed by MetaFlight.
28
class
DT_DLL_mtflt
DtMetaFlightGridStructure
:
public
DtMetaFlightNode
29
{
30
public
:
31
32
// Default constructor.
33
DtMetaFlightGridStructure
();
34
35
// Destructor
36
virtual
~
DtMetaFlightGridStructure
();
37
38
// Copy constructor
39
DtMetaFlightGridStructure
(
const
DtMetaFlightGridStructure
& node);
40
41
// Assignment operator
42
DtMetaFlightGridStructure
&
operator=
(
const
DtMetaFlightGridStructure
& orig);
43
44
// Overrides the \p DtMetaFlightNode::readNode method to read the
45
// node information from a Metaflight GridStructure node.
46
// \param root pointer to the root node of the document
47
// \param node pointer to the xml node that will be read
48
// \return \b true if success reading the node. \b false otherwise.
49
virtual
bool
readNode
(
const
xmlNodePtr root, xmlNodePtr node);
50
51
// Returns the number of levels in the grid structure
52
virtual
unsigned
int
numLevels()
const
;
53
54
// Returns the starting level in the grid structure
55
virtual
unsigned
int
startingLevel()
const
;
56
57
// Returns the ith GridLevel of the grid structure. ithLevel must be
58
// between 0 and the total number of levels. Returns 0 if not found or
59
// if it is out of bounds.
60
virtual
DtMetaFlightGridLevel
*
level
(
size_t
ithLevel)
const
;
61
62
protected
:
63
64
int
myNumLevels
;
65
int
myStartingLevel
;
66
std::vector< DtMetaFlightGridLevel* >
myGridLevels
;
67
68
};
69
70
#endif
71
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)