VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.
25 {
26 public:
27 
28  // Default constructor.
30 
31  // Destructor
32  virtual ~DtMetaFlightGridLevel( );
33 
34  // Copy constructor
36 
37  // Assignment operator
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 
61 
62 };
63 
64 #endif
Definition: metaFlightNode.h:30
DtMetaFlightNode & operator=(const DtMetaFlightNode &orig)
virtual bool readNode(const xmlNodePtr root, xmlNodePtr node)=0
int myNumRowDivisions
Definition: metaFlightGridLevel.h:60
xmlNode * xmlNodePtr
Definition: DtLightPointTable.h:20
int myNumColDivisions
Definition: metaFlightGridLevel.h:59
#define DT_DLL_mtflt
Definition: mtfltDefines.h:23
DtString myLevelName
Definition: metaFlightGridLevel.h:58
Definition: metaFlightGridLevel.h:24

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)