VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navigationGeneratorInput.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
14 
16 
17 #include "geometry/extent.h"
18 
19 #include <vector>
20 
21 class DtRwNavGenConfig;
22 
23 namespace vrfNav
24 {
25  class DtCoordinateConverter;
26 }
27 
32 {
33 public:
34  typedef std::vector<std::vector<DtNavTrianglesPtr> > TriangleSets;
35 
36  //Default constructor
38 
39  //Returns the extent of the individual sector, based on
40  //the full extent size and the number of sectors in x and y.
41  DtExtent sectorExtent(int xIndex = 0, int yIndex = 0) const;
42 
43  void sectorCellBox(int xIndex, int yIndex,
44  int& xMin, int& yMin, int& xMax, int& yMax) const;
45 
46  std::pair<int, int> indicesFromCellMin(int minX, int minY) const;
47 
48  DtNavTrianglesPtr triangleSet(int xIndex = 0, int yIndex = 0) const;
49 
50  void setTriangles(int xIndex, int yIndex, DtNavTrianglesPtr triangleSet);
51 
52  void clearTriangles(int xIndex, int yIndex);
53 
55  void usingTriangles(int xIndex, int yIndex);
56 
59  bool notUsingTriangles(int xIndex, int yIndex);
60 
61  void alignExtentToCellSize(DtVector& ne, DtVector& nw, DtVector& se, DtVector& sw);
62 
63  void getCellPositionFromLocation(const DtVector& loc, int& cellX, int& cellY);
64 
67 
69  std::vector<std::vector<unsigned> > myTrianglesInUse;
70 
71  std::vector<DtVector> myTransitionPoints;
72 
73  vrfNav::DtCoordinateConverter* myConverter;
74 
79 };
DtRwNavGenConfig * myConfig
Definition: navigationGeneratorInput.h:65
TriangleSets myTriangles
Definition: navigationGeneratorInput.h:68
vrfNav::DtCoordinateConverter * myConverter
Definition: navigationGeneratorInput.h:73
std::vector< std::vector< unsigned > > myTrianglesInUse
Definition: navigationGeneratorInput.h:69
DtVector myKaimExtentSE
Definition: navigationGeneratorInput.h:78
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
DtVector myKaimExtentSW
Definition: navigationGeneratorInput.h:77
DtRwNavigationProfileList myProfiles
Definition: navigationGeneratorInput.h:66
class DtNavigationGeneratorInput
Definition: navigationGeneratorInput.h:31
Definition: rwNavGenConfig.h:26
std::vector< std::vector< DtNavTrianglesPtr > > TriangleSets
Definition: navigationGeneratorInput.h:34
DtVector myKaimExtentNW
Definition: navigationGeneratorInput.h:75
Contains the declaration of the DtExtent class.
DtVector myKaimExtentNE
Definition: navigationGeneratorInput.h:76
#define DT_DLL_vrfNavigation
This file is used to determine how to build.
Definition: vrfNavigationDefines.h:26
Definition: rwNavigationProfile.h:133
std::vector< DtVector > myTransitionPoints
Definition: navigationGeneratorInput.h:71

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)