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 //vrf includes
14 #include "vrfutil/vrfutilDefines.h"
15 
16 //vrl includes
17 #include <matrix/vlVector.h>
18 
19 //std lib includes
20 #include <vector>
21 
22 class Coordinate_System;
23 
25 DT_DLL_vrfutil bool generateOffsetRoute(const std::vector<DtVector>& routeVertices,
26  const DtVector& bodyOffset,
27  const DtVector& downDirection,
28  bool createConnectingArc,
29  double distanceBetweenPointsAlongArc,
30  std::vector<DtVector>& offsetRoute);
31 
35 DT_DLL_vrfutil std::vector<DtVector> simplifyRoute(const std::vector<DtVector>& route,
36  const Coordinate_System* localCS,
37  double nearDistance = 1.0);
38 
77  const std::vector<DtVector>& routeVertices,
78  const DtVector& bodyOffset,
79  const Coordinate_System* cs,
80  std::vector<DtVector>& offsetRoute,
81  const double minTurnRadius = 0.0,
82  const bool useVariableRadius = false,
83  const double angleForMinRadius = M_PI_2,
84  bool createConnectingArc = true,
85  double minArcPointSpacing = 10.0,
86  const bool debug = false
87 );
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)