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
mtflt
metaFlightGridLevel.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: mtFltGridLevel.h,v $ $Revision: 1.8 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef metaFlightGridLevel_H_
10
#define metaFlightGridLevel_H_
11
12
//
13
// \file mtFltGridLevel.h
14
// \brief Represents a GridLevel node inside the Metaflight file
15
//
16
17
#include "
mtflt/mtfltDefines.h
"
18
#include "
mtflt/metaFlightNode.h
"
19
#include <libxml/xmlreader.h>
20
21
// \brief Grid levels represent different resolution of data inside a metaflight
22
// Grid levels are each divided into colums and rows of <em>cells</em>. Each cell
23
// is associated with one flight file.
24
class
DT_DLL_mtflt
DtMetaFlightGridLevel
:
public
DtMetaFlightNode
25
{
26
public
:
27
28
// Default constructor.
29
DtMetaFlightGridLevel
( );
30
31
// Destructor
32
virtual
~
DtMetaFlightGridLevel
( );
33
34
// Copy constructor
35
DtMetaFlightGridLevel
(
const
DtMetaFlightGridLevel
& node);
36
37
// Assignment operator
38
DtMetaFlightGridLevel
&
operator=
(
const
DtMetaFlightGridLevel
& orig);
39
40
// Overrides the \p DtMetaFlightNode::readNode method to read the
41
// node information from a Metaflight GridLevel node.
42
// \param root pointer to the root node of the document
43
// \param node pointer to the xml node that will be read
44
// \return \b true if success reading the node. \b false otherwise.
45
virtual
bool
readNode
(
const
xmlNodePtr
root,
xmlNodePtr
node);
46
47
// Returns the name of the grid level
48
virtual
DtString
levelName()
const
;
49
50
// Returns the total of column divisions in the grid level
51
virtual
unsigned
int
numColDivisions()
const
;
52
53
// Returns the total of row divisions in the grid level
54
virtual
unsigned
int
numRowDivisions()
const
;
55
56
protected
:
57
58
DtString
myLevelName
;
59
int
myNumColDivisions
;
60
int
myNumRowDivisions
;
61
62
};
63
64
#endif
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
)