Public Member Functions | List of all members
IDTMDraping Struct Reference

Interface implemented by DTM engines. More...

#include <IDTM.h>

Public Member Functions

BENTLEYDTM_EXPORT DTMStatusInt DrapePoint (double *elevation, double *slope, double *aspect, DPoint3d triangle[3], int &drapedType, DPoint3dCR point)
 Drapes a point onto the DTM. More...
 
BENTLEYDTM_EXPORT DTMStatusInt DrapeLinear (DTMDrapedLinePtr &ret, const DPoint3d pts[], int numPoints)
 Drapes a linear feature on to the DTM. More...
 
BENTLEYDTM_EXPORT bool ProjectPoint (DPoint3dR pointOnDTM, DMatrix4dCR w2vMap, DPoint3dCR testPoint)
 Projects point on the DTM. More...
 
BENTLEYDTM_EXPORT bool IntersectRay (DPoint3dR pointOnDTM, DVec3dCR direction, DPoint3dCR testPoint)
 Projects point on the DTM along a given direction. More...
 
BENTLEYDTM_EXPORT bool IntersectRay (bvector< DTMRayIntersection > &hitsOnDTM, DVec3dCR direction, DPoint3dCR testPoint)
 Projects point on the DTM along a given direction. More...
 
BENTLEYDTM_EXPORT bool DrapeAlongVector (DPoint3d *endPt, double *slope, double *aspect, DPoint3d triangle[3], int *drapedType, DPoint3dCR point, double directionOfVector, double slopeOfVector)
 Drapes a point onto the DTM along a vector. More...
 

Detailed Description

Interface implemented by DTM engines.

Member Function Documentation

BENTLEYDTM_EXPORT bool DrapeAlongVector ( DPoint3d *  endPt,
double *  slope,
double *  aspect,
DPoint3d  triangle[3],
int *  drapedType,
DPoint3dCR  point,
double  directionOfVector,
double  slopeOfVector 
)

Drapes a point onto the DTM along a vector.

Parameters
[out]endPtProjected point.
[out]slopeSlope on the point. Can be null.
[out]aspectAspect on the point. Can be null.
[out]triangleTriangle around the point. Can be null.
[out]drapeTypeType of draping. Can be null. (should be declared as an DTMEnum !!!).
[in]pointThe point to drape.
[in]directionOfVectorDirection of vector.
[in]slopeOfVectorSlope of vector.
Returns
true if there is an intersection with the mesh.
BENTLEYDTM_EXPORT DTMStatusInt DrapeLinear ( DTMDrapedLinePtr &  ret,
const DPoint3d  pts[],
int  numPoints 
)

Drapes a linear feature on to the DTM.

Parameters
[out]retThe DTMDrapedLine result.
[in]ptsThe points of the linear feature.
[in]numPointsThe number of points.
Returns
DTM status.
BENTLEYDTM_EXPORT DTMStatusInt DrapePoint ( double *  elevation,
double *  slope,
double *  aspect,
DPoint3d  triangle[3],
int &  drapedType,
DPoint3dCR  point 
)

Drapes a point onto the DTM.

Parameters
[out]elevationElevation of the point. Can be null.
[out]slopeSlope on the point. Can be null.
[out]aspectAspect on the point. Can be null.
[out]triangleTriangle around the point. Can be null.
[out]drapeTypeType of draping. Can be null. (should be declared as an DTMEnum !!!).
[in]pointThe point to drape.
Returns
DTM status.
BENTLEYDTM_EXPORT bool IntersectRay ( DPoint3dR  pointOnDTM,
DVec3dCR  direction,
DPoint3dCR  testPoint 
)

Projects point on the DTM along a given direction.

Parameters
[out]pointOnDTMProjected point.
[in]directionThe vector giving the direction of projection
[in]testPointThe point to project.
BENTLEYDTM_EXPORT bool IntersectRay ( bvector< DTMRayIntersection > &  hitsOnDTM,
DVec3dCR  direction,
DPoint3dCR  testPoint 
)

Projects point on the DTM along a given direction.

Parameters
[out]hitsOnDTMProjected elements (points/normals/...) ordered from closest to fardest.
[in]directionThe vector giving the direction of projection
[in]testPointThe point to project.
BENTLEYDTM_EXPORT bool ProjectPoint ( DPoint3dR  pointOnDTM,
DMatrix4dCR  w2vMap,
DPoint3dCR  testPoint 
)

Projects point on the DTM.

Parameters
[out]pointOnDTMProjected point.
[in]w2vMapThe world to view map
[in]testPointThe point to project.

The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.