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... | |
Interface implemented by DTM engines.
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.
[out] | endPt | Projected point. |
[out] | slope | Slope on the point. Can be null. |
[out] | aspect | Aspect on the point. Can be null. |
[out] | triangle | Triangle around the point. Can be null. |
[out] | drapeType | Type of draping. Can be null. (should be declared as an DTMEnum !!!). |
[in] | point | The point to drape. |
[in] | directionOfVector | Direction of vector. |
[in] | slopeOfVector | Slope of vector. |
BENTLEYDTM_EXPORT DTMStatusInt DrapeLinear | ( | DTMDrapedLinePtr & | ret, |
const DPoint3d | pts[], | ||
int | numPoints | ||
) |
Drapes a linear feature on to the DTM.
[out] | ret | The DTMDrapedLine result. |
[in] | pts | The points of the linear feature. |
[in] | numPoints | The number of points. |
BENTLEYDTM_EXPORT DTMStatusInt DrapePoint | ( | double * | elevation, |
double * | slope, | ||
double * | aspect, | ||
DPoint3d | triangle[3], | ||
int & | drapedType, | ||
DPoint3dCR | point | ||
) |
Drapes a point onto the DTM.
[out] | elevation | Elevation of the point. Can be null. |
[out] | slope | Slope on the point. Can be null. |
[out] | aspect | Aspect on the point. Can be null. |
[out] | triangle | Triangle around the point. Can be null. |
[out] | drapeType | Type of draping. Can be null. (should be declared as an DTMEnum !!!). |
[in] | point | The point to drape. |
BENTLEYDTM_EXPORT bool IntersectRay | ( | DPoint3dR | pointOnDTM, |
DVec3dCR | direction, | ||
DPoint3dCR | testPoint | ||
) |
Projects point on the DTM along a given direction.
[out] | pointOnDTM | Projected point. |
[in] | direction | The vector giving the direction of projection |
[in] | testPoint | The point to project. |
BENTLEYDTM_EXPORT bool IntersectRay | ( | bvector< DTMRayIntersection > & | hitsOnDTM, |
DVec3dCR | direction, | ||
DPoint3dCR | testPoint | ||
) |
Projects point on the DTM along a given direction.
[out] | hitsOnDTM | Projected elements (points/normals/...) ordered from closest to fardest. |
[in] | direction | The vector giving the direction of projection |
[in] | testPoint | The point to project. |
BENTLEYDTM_EXPORT bool ProjectPoint | ( | DPoint3dR | pointOnDTM, |
DMatrix4dCR | w2vMap, | ||
DPoint3dCR | testPoint | ||
) |
Projects point on the DTM.
[out] | pointOnDTM | Projected point. |
[in] | w2vMap | The world to view map |
[in] | testPoint | The point to project. |