VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Enumerations | Functions
makVrv::vrvTacticalGraphicUtilities Namespace Reference

Typedefs

using DtVerticesVector = std::vector< DtVector >
 

Enumerations

enum  LineStyle {
  LineStyle::Unspecified = -1, LineStyle::Plain = 0, LineStyle::Axis, LineStyle::AirAxis,
  LineStyle::MainAxis, LineStyle::Feint, LineStyle::AirCorridor, LineStyle::Bridge
}
 
enum  ArrowStyle {
  ArrowStyle::Unspecified = -1, ArrowStyle::Simple = 0, ArrowStyle::Linear, ArrowStyle::Main,
  ArrowStyle::SimpleLastArrowReversed, ArrowStyle::Berm
}
 
enum  ArrowHeadPlacement {
  ArrowHeadPlacement::Unspecified = -1, ArrowHeadPlacement::None = 0, ArrowHeadPlacement::AllEndSegments, ArrowHeadPlacement::AllStartSegments,
  ArrowHeadPlacement::LastSegmentOnly, ArrowHeadPlacement::FirstSegmentOnly, ArrowHeadPlacement::StartOfFirstEndOfLast
}
 
enum  PenStyle {
  PenStyle::Unspecified = -1, PenStyle::NoPen = 1, PenStyle::SolidLine, PenStyle::DashedLine,
  PenStyle::DottedLine, PenStyle::DashDotLine, PenStyle::DashDotDotLine
}
 
enum  FillStyle {
  FillStyle::Unspecified = -1, FillStyle::NoFill = 0, FillStyle::SolidFill = 1, FillStyle::Percent94Fill,
  FillStyle::Percent88Fill, FillStyle::Percent63Fill, FillStyle::Percent50Fill, FillStyle::Percent37Fill,
  FillStyle::Percent12Fill, FillStyle::Percent06Fill, FillStyle::HorizontalLines, FillStyle::VerticalLines,
  FillStyle::CrossingLines, FillStyle::DiagonalLines, FillStyle::ReverseDiagonalLines, FillStyle::DiagonalCrossingLines,
  FillStyle::Texture
}
 
enum  FriendlyForceColorStyle : unsigned int { FriendlyForceColorStyle::DefaultColor = 0, FriendlyForceColorStyle::BlackColor, FriendlyForceColorStyle::WhiteColor }
 

Functions

DT_DLL_VRVCORE bool create2DArrowStyleGeometryHalfLinearDown (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DArrowStyleGeometryLinear (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DArrowStyleGeometryMain (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DArrowStyleGeometrySimple (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryAirAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryAirCorridor (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryBridge (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryFeint (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create2DLineStyleGeometryMainAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DArrowStyleGeometryHalfLinearDown (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DArrowStyleGeometryLinear (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DArrowStyleGeometryMain (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DArrowStyleGeometrySimple (const DtCoordinateSystem &cs, const DtVector &start, const DtVector &end, double arrowSize, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryAirAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryAirCorridor (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryBridge (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryFeint (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool create3DLineStyleGeometryMainAxis (const DtCoordinateSystem &cs, const std::vector< DtVector > &linePoints, double size, std::vector< DtVector > &result3DPositions, std::vector< DtVector > &resultOffsetPositions, std::vector< int > &segmentsToErase, const DtVector &offsetFromPoint=DtVector::zero())
 
DT_DLL_VRVCORE bool createVertexAndLabelDataBlock (const DtLinearModelData &createData)
 
DT_DLL_VRVCORE bool createVertexAndLabelDataDisrupt (const DtLinearModelData &createData)
 
DT_DLL_VRVCORE bool createVertexAndLabelDataFix (const DtLinearModelData &createData)
 
DT_DLL_VRVCORE bool createVertexAndLabelDataTurn (const DtLinearModelData &createData)
 
DT_DLL_VRVCORE double angleTo (const makVrv::DtCoordinateSystem &, const DtVector &origin, const DtVector &to)
 
DT_DLL_VRVCORE double elevationTo (const makVrv::DtCoordinateSystem &, const DtVector &origin, const DtVector &to)
 
DT_DLL_VRVCORE double distance (const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
 
DT_DLL_VRVCORE double length (const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
 
DT_DLL_VRVCORE DtVector midpoint (const makVrv::DtCoordinateSystem &, const DtVector &first, const DtVector &second)
 
DT_DLL_VRVCORE DtVector midpoint (const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
 
DT_DLL_VRVCORE unsigned short mapPenStyleToStipplePattern (PenStyle penStyle)
 
DT_DLL_VRVCORE PenStyle mapStipplePatternToPenStyle (unsigned short)
 
DT_DLL_VRVCORE bool vrfColorToRgba (unsigned vrfColor, float &r, float &g, float &b, float &a)
 
DT_DLL_VRVCORE DtTaitBryan level (const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
 
DT_DLL_VRVCORE bool mapFillStyleToFillPattern (FillStyle style, std::vector< unsigned int > &, float *alpha)
 
DT_DLL_VRVCORE std::vector
< unsigned int
patternToVector (bool *pattern[32])
 
DT_DLL_VRVCORE std::vector
< unsigned int
patternToVector (char *pattern[32])
 
DT_DLL_VRVCORE unsigned char reverseBitsWithinByte (unsigned char b)
 
DT_DLL_VRVCORE bool DtInsideTriangulate (const std::vector< DtVector > &contour, std::vector< int > &results)
 
DT_DLL_VRVCORE DtDcm combineOrientationsToDcm (const DtTaitBryan &globalOri, const DtTaitBryan &localOri)
 
DT_DLL_VRVCORE void packPosition (const DtVector &point, const DtDcm &pointOriDcm, const DtVector &offsetPoint, const DtDcm &offsetOriDcm, float packedCoords[4])
 
DT_DLL_VRVCORE void packPosition (const DtVector &point, const DtDcm &oriDcm, float packedCoords[4])
 

Typedef Documentation

Enumeration Type Documentation

Default line Styles.

Enumerator
Unspecified 
Plain 

Has not been set by a network connection.

Axis 

Plain line.

AirAxis 

Double-thick line with arrow at the end.

MainAxis 

Double-thick line with arrow at the end and Twist in the first segment.

Feint 

Double-thick line with main arrow at end.

AirCorridor 

Double-thick line with main arrow at end where second arrow is dotted.

Bridge 

Air-corridor line.

Double thick line with half arrows at each end of the line: ____________/

/---------—\

Enumerator
Unspecified 
Simple 

Has not been set by a network connection.

Linear 

Simple arrow.

Main 

Straight line for arrow head.

SimpleLastArrowReversed 

Double arrow line.

Berm 

Last arrow is reversed (points towards the previous point), whereas all other arrows point to the next point. This is useful for drawing a breach line.

Half height linear line where line is "below" the route

Enumerator
Unspecified 
None 

Has not been set by a network connection.

AllEndSegments 

No arrow.

AllStartSegments 

Arrow at the end of all segments.

LastSegmentOnly 

Arrow at the beginning of all segments (will draw arrow as pointing towards start of line segment)

FirstSegmentOnly 

Arrow on last segment.

StartOfFirstEndOfLast 

Arrow at start of first segment.

Arrow at start of first and end of last segment

Enumerator
Unspecified 
NoPen 

Has not been set by a network connection.

SolidLine 

No Pen.

DashedLine 

Solid line.

DottedLine 

Dashed line.

DashDotLine 

Dotted line.

DashDotDotLine 

Dash-dot line.

Dash-dot-dot line

Enumerator
Unspecified 
NoFill 

Has not been set by a network connection.

SolidFill 

No fill.

Percent94Fill 

Solid fill but will respect alpha color.

Percent88Fill 

6% alpha fill

Percent63Fill 

12% alpha fill

Percent50Fill 

37% alpha fill

Percent37Fill 

50% alpha fill

Percent12Fill 

63% alpha fill

Percent06Fill 

88% alpha fill

HorizontalLines 

94% alpha fill

VerticalLines 

Horizontal line fill.

CrossingLines 

Vertical line fill.

DiagonalLines 

Crossing lines.

ReverseDiagonalLines 

Diagonal lines.

DiagonalCrossingLines 

Reverse diagonal lines.

Texture 

Diagonal crossing liens.

Enumeration used to specify the current friendly force color style By default, the friendly force color tactical graphics are colored some shade of blue. However mil-std 2525d has these colored black or white. This will only affect tactical graphics that specify friendlyColorOverride in their model definitions.

Enumerator
DefaultColor 
BlackColor 
WhiteColor 

Function Documentation

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DArrowStyleGeometryHalfLinearDown ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DArrowStyleGeometryLinear ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DArrowStyleGeometryMain ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 2D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DArrowStyleGeometrySimple ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryAirAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryAirCorridor ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryBridge ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryFeint ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create2DLineStyleGeometryMainAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DArrowStyleGeometryHalfLinearDown ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DArrowStyleGeometryLinear ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DArrowStyleGeometryMain ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DArrowStyleGeometrySimple ( const DtCoordinateSystem &  cs,
const DtVector start,
const DtVector end,
double  arrowSize,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database start - start point of line for arrow direction end - end point of line for arrow direction. Where arrow will be placed arrowSize - The size of the body of the arrow. Pixels space for 2D or meter space for 3D lines result3DPositions - Resultant 3D locations of new arrow resultOffsetPositions - Resultant 2D offsets to 3D positions offsetFromPoint - The offset to apply to start and end points

Will return true if arrow is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryAirAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryAirCorridor ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryBridge ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryFeint ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::create3DLineStyleGeometryMainAxis ( const DtCoordinateSystem &  cs,
const std::vector< DtVector > &  linePoints,
double  size,
std::vector< DtVector > &  result3DPositions,
std::vector< DtVector > &  resultOffsetPositions,
std::vector< int > &  segmentsToErase,
const DtVector offsetFromPoint = DtVector::zero() 
)

Supplied parameters.

CoordinateSystem - Coordinate system of database linePoints - Points which define the simple line before modification size - The size of the body of the line result3DPositions - Resultant 3D locations of new line resultOffsetPositions - Resultant 2D offsets to 3D positions segmentsToErase - In the resultant line, the segment indices to make completely transparent offsetFromPoint - The offset to apply to each point in the linePoints array

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::createVertexAndLabelDataBlock ( const DtLinearModelData &  createData)

Supplied parameters.

segmentInterfaces - line segments of the overlay labels - label interfaces if any attached to the overlay model controlPoints - positions passed in to generate the vertices from, should be three for a block orientation - orientation of the model CoordinateSystem - Coordinate system of database

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::createVertexAndLabelDataDisrupt ( const DtLinearModelData &  createData)

Supplied parameters.

segmentInterfaces - line segments of the overlay labels - label interfaces if any attached to the overlay model controlPoints - positions passed in to generate the vertices from, should be three for a Disrupt orientation - orientation of the model CoordinateSystem - Coordinate system of database

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::createVertexAndLabelDataFix ( const DtLinearModelData &  createData)

Supplied parameters.

segmentInterfaces - line segments of the overlay labels - label interfaces if any attached to the overlay model controlPoints - positions passed in to generate the vertices from, should be three for a Fix orientation - orientation of the model CoordinateSystem - Coordinate system of database

Will return true if line is created

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::createVertexAndLabelDataTurn ( const DtLinearModelData &  createData)

Supplied parameters.

segmentInterfaces - line segments of the overlay labels - label interfaces if any attached to the overlay model controlPoints - positions passed in to generate the vertices from, should be three for a Turn orientation - orientation of the model CoordinateSystem - Coordinate system of database

Will return true if line is created

DT_DLL_VRVCORE double makVrv::vrvTacticalGraphicUtilities::angleTo ( const makVrv::DtCoordinateSystem ,
const DtVector origin,
const DtVector to 
)

Returns the angle (topographic) between the two local points. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric.

DT_DLL_VRVCORE double makVrv::vrvTacticalGraphicUtilities::elevationTo ( const makVrv::DtCoordinateSystem ,
const DtVector origin,
const DtVector to 
)

Returns the elevation (topographic) between the two local points. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric.

DT_DLL_VRVCORE double makVrv::vrvTacticalGraphicUtilities::distance ( const makVrv::DtCoordinateSystem ,
const DtVector from,
const DtVector to 
)

Returns the distance from the two points. Coordinates are in local database coordinates The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.

Referenced by DtSurfaceMovementPSR::setStartTurnDistance2().

DT_DLL_VRVCORE double makVrv::vrvTacticalGraphicUtilities::length ( const makVrv::DtCoordinateSystem ,
const std::vector< DtVector > &  vertices 
)

Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.

Referenced by QXmlAttributes::count(), makVrfVrlinkExtToolkit::DtExtendedAttributeDecoder< StateRepType >::decodeExtendedAttribute(), makVrv::DtVector2< T >::getNormalizedCopy(), normalize2D(), makVrv::DtOsgFixedScaleParameters::setDimensions(), and utf8len().

DT_DLL_VRVCORE DtVector makVrv::vrvTacticalGraphicUtilities::midpoint ( const makVrv::DtCoordinateSystem ,
const DtVector first,
const DtVector second 
)

Returns the midpoint between two points. Coordinates are in local database coordinates The coordinate system is used to convert between the local database coordinates and geocentric.

DT_DLL_VRVCORE DtVector makVrv::vrvTacticalGraphicUtilities::midpoint ( const makVrv::DtCoordinateSystem ,
const std::vector< DtVector > &  vertices 
)

Returns the midpoint of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric.

DT_DLL_VRVCORE unsigned short makVrv::vrvTacticalGraphicUtilities::mapPenStyleToStipplePattern ( PenStyle  penStyle)

Maps line style to stipple pattern.

1 - No Pen 2 - Solid Line 3 - Dashed Line 4 - Dotted Line 5 - Dash-Dot Line 6 - Dash-Dot-Dot Line

DT_DLL_VRVCORE PenStyle makVrv::vrvTacticalGraphicUtilities::mapStipplePatternToPenStyle ( unsigned  short)

Maps line style to line style.

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::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.

DT_DLL_VRVCORE DtTaitBryan makVrv::vrvTacticalGraphicUtilities::level ( const DtCoordinateSystem &  cs,
const DtVector localOrigin,
double  topoHeading 
)
DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::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% Fill 4 - 63% Fill 5 - 50% Fill 6 - 37% Fill 7 - 12% Fill 8 - 6% Fill 9 - Horizontal Lines 10 - Vertical Lines 11 - Crossing Lines 12 - Diagonal Lines 13 - Reverse Diagonal Lines 14 - Diagonal Crossing Lines 15 - Texture. Filled by texture specified in model definition Maps a fill style to a fill 32 bit fill pattern. If the alpha flag is filled in and the return value is an empty array the fill pattern only effects the alpha and does not have a fill style. Returns true if style is valid.

DT_DLL_VRVCORE std::vector<unsigned int> makVrv::vrvTacticalGraphicUtilities::patternToVector ( bool pattern[32])

Takes a 32x32 bool array and turns into 32 integers.

DT_DLL_VRVCORE std::vector<unsigned int> makVrv::vrvTacticalGraphicUtilities::patternToVector ( char pattern[32])

Takes a 32x32 character array and turns into 32 integers.

DT_DLL_VRVCORE unsigned char makVrv::vrvTacticalGraphicUtilities::reverseBitsWithinByte ( unsigned char  b)

Helper Function to reverse the most/least significant bits - used by patternToVector(char* pattern[32]).

DT_DLL_VRVCORE bool makVrv::vrvTacticalGraphicUtilities::DtInsideTriangulate ( const std::vector< DtVector > &  contour,
std::vector< int > &  results 
)

Triangulates the given points and returns the indicies that form the triangles. The triangles will be constrained to the inside of the polygon being triangulated. Note that if this polygon has crossing lines it will not be triangulated. This is also only a 2D triangulation routine. The Z value is ignored, however it can be passed in.

DT_DLL_VRVCORE DtDcm makVrv::vrvTacticalGraphicUtilities::combineOrientationsToDcm ( const DtTaitBryan &  globalOri,
const DtTaitBryan &  localOri 
)

Adds two orientations together into a DtDcm and converts the DtDcm from zDownToZup.

DT_DLL_VRVCORE void makVrv::vrvTacticalGraphicUtilities::packPosition ( const DtVector point,
const DtDcm &  pointOriDcm,
const DtVector offsetPoint,
const DtDcm &  offsetOriDcm,
float  packedCoords[4] 
)

Rotates the point by its dcm, rotates the offset by its dcm, combines both results and packs the result into packedCoords.

DT_DLL_VRVCORE void makVrv::vrvTacticalGraphicUtilities::packPosition ( const DtVector point,
const DtDcm &  oriDcm,
float  packedCoords[4] 
)

Rotates a point by a dcm and packs the coordinates into packedCoords.


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)