VR-Forces 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  virtual ~DtNavigationGeneratorInput();
39 
40  //Returns the extent of the individual sector, based on
41  //the full extent size and the number of sectors in x and y.
42  DtExtent sectorExtent(int xIndex = 0, int yIndex = 0) const;
43 
44  void sectorCellBox(int xIndex, int yIndex,
45  int& xMin, int& yMin, int& xMax, int& yMax) const;
46 
47  std::pair<int, int> indicesFromCellMin(int minX, int minY) const;
48 
49  DtNavTrianglesPtr triangleSet(int xIndex = 0, int yIndex = 0) const;
50 
51  void setTriangles(int xIndex, int yIndex, DtNavTrianglesPtr triangleSet);
52 
53  void clearTriangles(int xIndex, int yIndex);
54 
56  void usingTriangles(int xIndex, int yIndex);
57 
60  bool notUsingTriangles(int xIndex, int yIndex);
61 
62  void alignExtentToCellSize(DtVector& ne, DtVector& nw, DtVector& se, DtVector& sw);
63 
64  void getCellPositionFromLocation(const DtVector& loc, int& cellX, int& cellY);
65 
68 
70  std::vector<std::vector<unsigned> > myTrianglesInUse;
71 
72  std::vector<DtVector> myTransitionPoints;
73 
74  vrfNav::DtCoordinateConverter* myConverter;
75 
80 };
DtRwNavGenConfig * myConfig
Definition: navigationGeneratorInput.h:66
TriangleSets myTriangles
Definition: navigationGeneratorInput.h:69
vrfNav::DtCoordinateConverter * myConverter
Definition: navigationGeneratorInput.h:74
std::vector< std::vector< unsigned > > myTrianglesInUse
Definition: navigationGeneratorInput.h:70
DtVector myKaimExtentSE
Definition: navigationGeneratorInput.h:79
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
DtVector myKaimExtentSW
Definition: navigationGeneratorInput.h:78
DtRwNavigationProfileList myProfiles
Definition: navigationGeneratorInput.h:67
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:76
Contains the declaration of the DtExtent class.
DtVector myKaimExtentNE
Definition: navigationGeneratorInput.h:77
#define DT_DLL_vrfNavigation
This file is used to determine how to build.
Definition: vrfNavigationDefines.h:26
Definition: rwNavigationProfile.h:137
std::vector< DtVector > myTransitionPoints
Definition: navigationGeneratorInput.h:72

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)