![]() |
VR-Forces Developer's Guide
|
Typedefs | |
| using | DtVerticesVector = std::vector< DtVector > |
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]) |
| using makVrv::vrvTacticalGraphicUtilities::DtVerticesVector = typedef std::vector<DtVector> |
|
strong |
Default line Styles.
|
strong |
|
strong |
|
strong |
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 | |
| 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 | ||
| ) |
Returns a level orientation with the topographic heading.
Referenced by makVrv::DtDebugLog::levelWillPrint(), makVrv::DtDebugLog::out(), DtRwSensorContactInfo::setCombatIdentificationLevel(), and DtRwScriptReactiveTaskEntry::setPriority().
| 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.