VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
mtflt
mtFltGridLevel.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 mtFltGridLevel_H_
10
#define mtFltGridLevel_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/mtFltNode.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
DtMfGridLevel
:
public
DtMtFltNode
25
{
26
public
:
27
28
// Default constructor.
29
DtMfGridLevel
( );
30
31
// Destructor
32
virtual
~
DtMfGridLevel
( );
33
34
// Copy constructor
35
DtMfGridLevel
(
const
DtMfGridLevel
& node);
36
37
// Assignment operator
38
DtMfGridLevel
&
operator=
(
const
DtMfGridLevel
& orig);
39
40
// Overrides the \p DtMtFltNode::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 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
)