VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
mtflt
mtFltGridStructure.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 mtFltGridStructure_H_
10
#define mtFltGridStructure_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/mtFltNode.h
"
19
#include <vlutil/vlConfig.h>
20
#include <vector>
21
22
class
DtMfGridLevel
;
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
DtMtFltGridStructure
:
public
DtMtFltNode
29
{
30
public
:
31
32
// Default constructor.
33
DtMtFltGridStructure
();
34
35
// Destructor
36
virtual
~
DtMtFltGridStructure
();
37
38
// Copy constructor
39
DtMtFltGridStructure
(
const
DtMtFltGridStructure
& node);
40
41
// Assignment operator
42
DtMtFltGridStructure
&
operator=
(
const
DtMtFltGridStructure
& orig);
43
44
// Overrides the \p DtMtFltNode::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
DtMfGridLevel
*
level
(
size_t
ithLevel)
const
;
61
62
protected
:
63
64
int
myNumLevels
;
65
int
myStartingLevel
;
66
std::vector< DtMfGridLevel* >
myGridLevels
;
67
68
};
69
70
#endif
71
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)