VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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.
29 {
30 public:
31 
32  // Default constructor.
34 
35  // Destructor
36  virtual ~DtMetaFlightGridStructure();
37 
38  // Copy constructor
40 
41  // Assignment operator
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 
66  std::vector< DtMetaFlightGridLevel* > myGridLevels;
67 
68 };
69 
70 #endif
71 
Definition: metaFlightNode.h:30
DtMetaFlightNode & operator=(const DtMetaFlightNode &orig)
int myStartingLevel
Definition: metaFlightGridStructure.h:65
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
virtual bool readNode(const xmlNodePtr root, xmlNodePtr node)=0
std::vector< DtMetaFlightGridLevel * > myGridLevels
Definition: metaFlightGridStructure.h:66
xmlNode * xmlNodePtr
Definition: DtLightPointTable.h:20
#define DT_DLL_mtflt
Definition: mtfltDefines.h:23
int myNumLevels
Definition: metaFlightGridStructure.h:64
Definition: metaFlightGridStructure.h:28
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)