VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
generateOffsetRoute.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
13 #include "vrfutil/vrfutilDefines.h"
14 #include <matrix/vlVector.h>
15 
16 #include <vector>
17 
18 class Coordinate_System;
19 
21 DT_DLL_vrfutil bool generateOffsetRoute(const std::vector<DtVector>& routeVertices,
22  const DtVector& bodyOffset,
23  const DtVector& downDirection,
24  bool createConnectingArc,
25  double distanceBetweenPointsAlongArc,
26  std::vector<DtVector>& offsetRoute);
27 
31 DT_DLL_vrfutil std::vector<DtVector> simplifyRoute(const std::vector<DtVector>& route,
32  const Coordinate_System* localCS,
33  double nearDistance = 1.0);
34 
73  const std::vector<DtVector>& routeVertices,
74  const DtVector& bodyOffset,
75  const Coordinate_System* cs,
76  std::vector<DtVector>& offsetRoute,
77  const double minTurnRadius = 0.0,
78  const bool useVariableRadius = false,
79  const double angleForMinRadius = M_PI_2,
80  bool createConnectingArc = true,
81  double minArcPointSpacing = 10.0,
82  const bool debug = false
83 );
DT_DLL_vrfutil bool generateRelaxedOffsetRoute(const std::vector< DtVector > &routeVertices, const DtVector &bodyOffset, const Coordinate_System *cs, std::vector< DtVector > &offsetRoute, const double minTurnRadius=0.0, const bool useVariableRadius=false, const double angleForMinRadius=M_PI_2, bool createConnectingArc=true, double minArcPointSpacing=10.0, const bool debug=false)
Generate a path that is offset from the given path (vector of points) by a given offset. The offset is a &quot;body&quot; offset that is relative to the direction of each segment. No z offset is used.
DT_DLL_vrfutil std::vector< DtVector > simplifyRoute(const std::vector< DtVector > &route, const Coordinate_System *localCS, double nearDistance=1.0)
Generate a new route vector that has close vertices removed. That is, if vertex i+1 is within nearDis...
Definition: coordSystem.h:54
DT_DLL_vrfutil bool generateOffsetRoute(const std::vector< DtVector > &routeVertices, const DtVector &bodyOffset, const DtVector &downDirection, bool createConnectingArc, double distanceBetweenPointsAlongArc, std::vector< DtVector > &offsetRoute)
Deprecated. Use generateRelaxedOffsetRoute().
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34

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)