VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTacticalGraphicUtilities.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 
11 #include <vrvCore/vrvCore.h>
12 #include <vector>
13 #include <matrix/vlVector.h>
14 #include <matrix/vlTaitBryan.h>
15 
16 namespace makVrv
17 {
18  class DtCoordinateSystem;
19 }
20 
21 namespace makVrv
22 {
23  namespace vrvTacticalGraphicUtilities
24  {
26  enum LineStyle
27  {
29  Axis,
31  MainAxis,
34  AirCorridor,
37  };
42 
44  {
47  Main,
53  };
54 
56  {
57  None,
64  };
65 
66  enum PenStyle
67  {
68  NoPen = 1,
74  };
75 
76  enum FillStyle
77  {
78  NoFill = 0,
79  SolidFill= 1,
94  };
95 
99  DT_DLL_VRVCORE double angleTo(const makVrv::DtCoordinateSystem&, const DtVector& origin, const DtVector& to);
100 
105 
109  DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem&, const DtVector& from, const DtVector& to);
110 
119  DT_DLL_VRVCORE unsigned short mapPenStyleToStipplePattern(PenStyle penStyle);
120 
123 
125  DT_DLL_VRVCORE bool vrfColorToRgba( unsigned vrfColor, float& r, float& g, float& b, float& a);
126 
128  DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem& cs, const DtVector& localOrigin, double topoHeading);
129 
149  DT_DLL_VRVCORE bool mapFillStyleToFillPattern(FillStyle style, std::vector<unsigned int>&, float* alpha);
150 
152  DT_DLL_VRVCORE std::vector<unsigned int> patternToVector(char* pattern[32]);
153  }
154 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
Simple arrow.
Definition: DtTacticalGraphicUtilities.h:46
Arrow on last segment.
Definition: DtTacticalGraphicUtilities.h:62
DT_DLL_VRVCORE double elevationTo(const makVrv::DtCoordinateSystem &, const DtVector &origin, const DtVector &to)
Returns the elevation (topographic) between the two local points.
No Pen.
Definition: DtTacticalGraphicUtilities.h:69
ArrowHeadPlacement
Definition: DtTacticalGraphicUtilities.h:55
Horizontal line fill.
Definition: DtTacticalGraphicUtilities.h:88
voidpf uLong int origin
Definition: ioapi.h:42
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Reverse diagonal lines.
Definition: DtTacticalGraphicUtilities.h:92
Vertical line fill.
Definition: DtTacticalGraphicUtilities.h:89
50% alpha fill
Definition: DtTacticalGraphicUtilities.h:84
Double-thick line with main arrow at end.
Definition: DtTacticalGraphicUtilities.h:33
Crossing lines.
Definition: DtTacticalGraphicUtilities.h:90
Double arrow line.
Definition: DtTacticalGraphicUtilities.h:48
Solid line.
Definition: DtTacticalGraphicUtilities.h:70
Diagonal lines.
Definition: DtTacticalGraphicUtilities.h:91
LineStyle
Default line Styles.
Definition: DtTacticalGraphicUtilities.h:26
Arrow at the beginning of all segments (will draw arrow as pointing towards start of line segment) ...
Definition: DtTacticalGraphicUtilities.h:61
Straight line for arrow head.
Definition: DtTacticalGraphicUtilities.h:47
Arrow at start of first segment.
Definition: DtTacticalGraphicUtilities.h:63
63% alpha fill
Definition: DtTacticalGraphicUtilities.h:85
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points.
ArrowStyle
Definition: DtTacticalGraphicUtilities.h:43
PenStyle
Definition: DtTacticalGraphicUtilities.h:66
Double-thick line with arrow at the end.
Definition: DtTacticalGraphicUtilities.h:30
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtTacticalGraphicUtilities.h:45
94% alpha fill
Definition: DtTacticalGraphicUtilities.h:87
Double-thick line with arrow at the end and Twist in the first segment.
Definition: DtTacticalGraphicUtilities.h:32
Arrow at the end of all segments.
Definition: DtTacticalGraphicUtilities.h:59
Definition: DtTacticalGraphicUtilities.h:78
Last arrow is reversed (points towards the previous point), whereas all other arrows point to the nex...
Definition: DtTacticalGraphicUtilities.h:52
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:41
Definition: DtTacticalGraphicUtilities.h:68
DT_DLL_VRVCORE bool vrfColorToRgba(unsigned vrfColor, float &r, float &g, float &b, float &a)
Takes a 32 bit argb value and translates it to r, g, b, a colors.
Solid fill but will respect alpha color.
Definition: DtTacticalGraphicUtilities.h:80
No arrow.
Definition: DtTacticalGraphicUtilities.h:58
88% alpha fill
Definition: DtTacticalGraphicUtilities.h:86
DT_DLL_VRVCORE std::vector< unsigned int > patternToVector(char *pattern[32])
Takes a 32x32 character array and turns into 32 integers.
FillStyle
Definition: DtTacticalGraphicUtilities.h:76
Definition: DtTacticalGraphicUtilities.h:28
DT_DLL_VRVCORE double angleTo(const makVrv::DtCoordinateSystem &, const DtVector &origin, const DtVector &to)
Returns the angle (topographic) between the two local points.
Air-corridor line.
Definition: DtTacticalGraphicUtilities.h:36
6% alpha fill
Definition: DtTacticalGraphicUtilities.h:81
Definition: DtTacticalGraphicUtilities.h:57
DT_DLL_VRVCORE unsigned short mapPenStyleToStipplePattern(PenStyle penStyle)
Maps line style to stipple pattern.
12% alpha fill
Definition: DtTacticalGraphicUtilities.h:82
Plain line.
Definition: DtTacticalGraphicUtilities.h:29
DT_DLL_VRVCORE bool mapFillStyleToFillPattern(FillStyle style, std::vector< unsigned int > &, float *alpha)
Sets the fill style according to the following styles 0 - No Fill 1 - Solid Fill 2 - 94% Fill 3 - 88%...
DT_DLL_VRVCORE PenStyle mapStipplePatternToPenStyle(unsigned short)
Maps line style to line style.
No fill.
Definition: DtTacticalGraphicUtilities.h:79
Double-thick line with main arrow at end where second arrow is dotted.
Definition: DtTacticalGraphicUtilities.h:35
Dash-dot line.
Definition: DtTacticalGraphicUtilities.h:73
37% alpha fill
Definition: DtTacticalGraphicUtilities.h:83
Dotted line.
Definition: DtTacticalGraphicUtilities.h:72
Dashed line.
Definition: DtTacticalGraphicUtilities.h:71
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)