Functions | |
double | mdlCnv_uorsToMasterUnits (double uors) |
Converts distance from units of resolution to master units of the active model. More... | |
double | mdlCnv_masterUnitsToUors (double masterUnits) |
Converts distance from master units of the active model to units of resolution. More... | |
double | mdlCnv_uorsToSubUnits (double uors) |
Converts distance from units of resolution to sub units of the active model. More... | |
double | mdlCnv_subUnitsToUors (double subUnits) |
Converts distance from sub units of the active model to units of resolution. More... | |
void | mdlCnv_DPointToIPoint (Point3d *iPointP, DPoint3dCP dPointP) |
PointConversions (mdlCnv_DPointToIPoint, mdlCnv_DPointTOIPointArray, mdlCnv_IPointToDPoint, mdlCnv_IPointToDPointArray) More... | |
void | mdlCnv_DPointToIPointArray (Point3d *iPointsP, DPoint3dCP rPointsP, int numPoints) |
Converts an array of double point Bentley::DPoint3d's to integer point Bentley::Point3d's. More... | |
void | mdlCnv_IPointToDPoint (DPoint3dP dPointP, Point3dCP iPointP) |
Converts an integer point Point3d to a double point DPoint3d. More... | |
void | mdlCnv_IPointToDPointArray (DPoint3dP rPointsP, const Point3d *iPointsP, int numPoints) |
Converts an array of integer point Bentley::DPoint3d's to double point Bentley::Point3d's. More... | |
StatusInt | mdlCnv_fRange3dToScanRange (ScanRangeP scanRangeP, FRange3dCP rangeP) |
Converts a ~tFRange3d to a ~tScanRange. More... | |
void | mdlCnv_doubleToNativeFloat (float *outFloatP, const double *inDoubleP) |
Converts a double precision value to its C float representation. More... | |
void | mdlCnv_nativeFloatToDouble (double *outDoubleP, const float *inFloatP) |
Converts a value in the the C float format to its double precision equivalent. More... | |
long | mdlCnv_roundDoubleToLong (double inDouble) |
Converts a double precision value to a 32-bit signed integer. More... | |
unsigned long | mdlCnv_roundDoubleToULong (double inDouble) |
Converts a double precision value to a 32-bit unsigned integer. More... | |
Int64 | mdlCnv_roundDoubleToInt64 (double inDouble) |
Converts a double precision value to a 64-bit signed integer. More... | |
UInt64 | mdlCnv_roundDoubleToUInt64 (double inDouble) |
Converts a double precision value to a 64-bit unsigned integer. More... | |
bool | mdlCnv_toRational (double input, int *numeratorP, int *denominatorP) |
Converts a double value to a rational fraction, if feasible. More... | |
StatusInt | mdlCnv_masterToUOR (double *uorsP, double masterUnits, DgnModelRefP modelRef) |
Converts distance from master units of a given modelRef to units of resolution. More... | |
StatusInt | mdlCnv_UORToMaster (double *masterUnitsP, double UORs, DgnModelRefP modelRef) |
Converts distance from units of resolution of a given modelRef to master units. More... | |
int | mdlCnv_convertUnicodeToMultibyte (const WChar *unicodeCharsP, int iUnicodeLength, char *multibyteCharsP, int iMultibyteLength) |
Converts a unicode character string to a multibyte character string. More... | |
int | mdlCnv_convertMultibyteToUnicode (const char *multibyteCharsP, int iMultibyteLength, WChar *unicodeCharsP, int iUnicodeLength) |
Converts a multibyte character string to a unicode character string. More... | |
StatusInt | mdlCnv_millisToString (WStringP timeStrP, WStringP dateStrP, double milliseconds) |
Converts the time, in milliseconds since 12:00 am January 1, 1970, to a time string and a date string. More... | |
Int64 | mdlCnv_millisToNTFileTime (double milliseconds) |
Converts the time, in milliseconds since 12:00 am January 1, 1970, to an Int64 usable for an NT file time. More... | |
StatusInt | mdlCnv_validateDoubleAndClampToRange (double *testValueP, double hiLimit, double loLimit, double hiReplace, double loReplace) |
Validates that the memory address specified contains a valid double within a specified range. More... | |
MSTNTOOLS_EXPORT void | mdlCnv_fromAsciiToR50 (size_t length, CharCP input, void *output) |
Convert ascii string to a radix 50 string. More... | |
MSTNTOOLS_EXPORT void | mdlCnv_fromR50ToAscii (size_t length, const void *input, CharP output) |
Convert radix 50 string to an ascii string. More... | |
MSTNTOOLS_EXPORT void | mdlCnv_fromWideToR50 (size_t length, WCharCP inputP, void *output) |
Convert wide char string to radix 50 string. More... | |
MSTNTOOLS_EXPORT void | mdlCnv_fromR50ToWide (size_t length, const void *inputP, WCharP output) |
Convert radix 50 string to an ascii string. More... | |
int mdlCnv_convertMultibyteToUnicode | ( | const char * | multibyteCharsP, |
int | iMultibyteLength, | ||
WChar * | unicodeCharsP, | ||
int | iUnicodeLength | ||
) |
Converts a multibyte character string to a unicode character string.
[in] | multibyteCharsP | the multibyte string to be converted. |
[in] | iMultibyteLength | the number of bytes in the multibyte string to be converted. If the string is NULL terminated, pass -1 for this length. |
[out] | unicodeCharsP | buffer to hold the output unicode string. |
[in] | iUnicodeLength | the size, in WChar's, of unicodeCharsP. |
int mdlCnv_convertUnicodeToMultibyte | ( | const WChar * | unicodeCharsP, |
int | iUnicodeLength, | ||
char * | multibyteCharsP, | ||
int | iMultibyteLength | ||
) |
Converts a unicode character string to a multibyte character string.
[in] | unicodeCharsP | the unicode string to be converted. |
[in] | iUnicodeLength | the number of characters in the unicode string to be converted. If the string is NULL terminated, pass -1 for this length. |
[out] | multibyteCharsP | buffer to hold the output multibyte string. |
[in] | iMultibyteLength | the size, in bytes, of multibyteCharsP. |
void mdlCnv_doubleToNativeFloat | ( | float * | outFloatP, |
const double * | inDoubleP | ||
) |
Converts a double precision value to its C float representation.
MDL does not support the float C data type. Thus, MDL programs that read or write external files that contain binary float types might need this function.
[out] | outFloatP | the float value of *inDoubleP. |
[in] | inDoubleP | the double to convert. |
void mdlCnv_DPointToIPoint | ( | Point3d * | iPointP, |
DPoint3dCP | dPointP | ||
) |
PointConversions (mdlCnv_DPointToIPoint, mdlCnv_DPointTOIPointArray, mdlCnv_IPointToDPoint, mdlCnv_IPointToDPointArray)
Converts a double point Bentley::DPoint3d to an integer point Bentley::Point3d
[out] | iPointP | the integer point. |
[in] | dPointP | the double point. |
PointConversions
void mdlCnv_DPointToIPointArray | ( | Point3d * | iPointsP, |
DPoint3dCP | rPointsP, | ||
int | numPoints | ||
) |
Converts an array of double point Bentley::DPoint3d's to integer point Bentley::Point3d's.
[out] | iPointsP | array of integer points, sized at least numPoints. |
[in] | rPointsP | array of double points, sized numPoints. |
[in] | numPoints | number of points to convert |
PointConversions
StatusInt mdlCnv_fRange3dToScanRange | ( | ScanRangeP | scanRangeP, |
FRange3dCP | rangeP | ||
) |
Converts a ~tFRange3d to a ~tScanRange.
[out] | scanRangeP | the scan range representation of the input vecRangeP |
[in] | rangeP | the FRange3d to convert |
MSTNTOOLS_EXPORT void mdlCnv_fromAsciiToR50 | ( | size_t | length, |
CharCP | input, | ||
void * | output | ||
) |
Convert ascii string to a radix 50 string.
length | IN length of input string to be converted |
input | IN ascii string to be converted |
output | OUT buffer to contain radix 50 string |
MSTNTOOLS_EXPORT void mdlCnv_fromR50ToAscii | ( | size_t | length, |
const void * | input, | ||
CharP | output | ||
) |
Convert radix 50 string to an ascii string.
length | IN length of output string (excluding terminator). Should be multiple of 3 |
input | IN radix 50 string to be converted |
output | OUT buffer to contain ascii string |
MSTNTOOLS_EXPORT void mdlCnv_fromR50ToWide | ( | size_t | length, |
const void * | inputP, | ||
WCharP | output | ||
) |
Convert radix 50 string to an ascii string.
length | IN maximum length of output string (excluding terminator). Should be multiple of 3 |
inputP | IN radix 50 string to be converted |
output | OUT buffer to contain wide char string |
MSTNTOOLS_EXPORT void mdlCnv_fromWideToR50 | ( | size_t | length, |
WCharCP | inputP, | ||
void * | output | ||
) |
Convert wide char string to radix 50 string.
length | IN length of input string to be converted |
inputP | IN wide char string to be converted |
output | OUT buffer to contain radix 50 string |
void mdlCnv_IPointToDPoint | ( | DPoint3dP | dPointP, |
Point3dCP | iPointP | ||
) |
Converts an integer point Point3d to a double point DPoint3d.
dPointP | OUT the double point. |
iPointP | IN the integer point. "" |
void mdlCnv_IPointToDPointArray | ( | DPoint3dP | rPointsP, |
const Point3d * | iPointsP, | ||
int | numPoints | ||
) |
Converts an array of integer point Bentley::DPoint3d's to double point Bentley::Point3d's.
[out] | rPointsP | array of double points, sized at least numPoints. |
[in] | iPointsP | array of integer points, sized numPoints. |
[in] | numPoints | number of points to convert |
PointConversions
StatusInt mdlCnv_masterToUOR | ( | double * | uorsP, |
double | masterUnits, | ||
DgnModelRefP | modelRef | ||
) |
Converts distance from master units of a given modelRef to units of resolution.
[out] | uorsP | the distance in units of resolution of modelRef |
[in] | masterUnits | the distance in master units of modelRef |
[in] | modelRef | the modelRef that the distance applies to. |
double mdlCnv_masterUnitsToUors | ( | double | masterUnits | ) |
Converts distance from master units of the active model to units of resolution.
[in] | masterUnits | the distance to convert to units of resolution. |
Int64 mdlCnv_millisToNTFileTime | ( | double | milliseconds | ) |
Converts the time, in milliseconds since 12:00 am January 1, 1970, to an Int64 usable for an NT file time.
[in] | milliseconds | the milliseconds value to convert. |
StatusInt mdlCnv_millisToString | ( | WStringP | timeStrP, |
WStringP | dateStrP, | ||
double | milliseconds | ||
) |
Converts the time, in milliseconds since 12:00 am January 1, 1970, to a time string and a date string.
[out] | timeStrP | buffer that holds the time string. |
[out] | dateStrP | buffer that holds the date string. |
[in] | milliseconds | the milliseconds value to convert. |
void mdlCnv_nativeFloatToDouble | ( | double * | outDoubleP, |
const float * | inFloatP | ||
) |
Converts a value in the the C float format to its double precision equivalent.
MDL does not support the float C data type. Thus, MDL programs that read or write external files that contain binary float types might need this function.
[out] | outDoubleP | the double value of *inDoubleP. |
[in] | inFloatP | the float to convert. |
Int64 mdlCnv_roundDoubleToInt64 | ( | double | inDouble | ) |
Converts a double precision value to a 64-bit signed integer.
[in] | inDouble | the double to convert. |
long mdlCnv_roundDoubleToLong | ( | double | inDouble | ) |
Converts a double precision value to a 32-bit signed integer.
inDouble | IN the double to convert. |
UInt64 mdlCnv_roundDoubleToUInt64 | ( | double | inDouble | ) |
Converts a double precision value to a 64-bit unsigned integer.
[in] | inDouble | the double to convert. |
unsigned long mdlCnv_roundDoubleToULong | ( | double | inDouble | ) |
Converts a double precision value to a 32-bit unsigned integer.
inDouble | IN the double to convert. |
double mdlCnv_subUnitsToUors | ( | double | subUnits | ) |
Converts distance from sub units of the active model to units of resolution.
[in] | subUnits | the distance to convert to units of resolution. |
bool mdlCnv_toRational | ( | double | input, |
int * | numeratorP, | ||
int * | denominatorP | ||
) |
Converts a double value to a rational fraction, if feasible.
[in] | input | the double to convert. |
[out] | numeratorP | numerator of the rational fraction |
[out] | denominatorP | denominator of the rational fraction |
double mdlCnv_uorsToMasterUnits | ( | double | uors | ) |
Converts distance from units of resolution to master units of the active model.
[in] | uors | the distance to convert to master units |
double mdlCnv_uorsToSubUnits | ( | double | uors | ) |
Converts distance from units of resolution to sub units of the active model.
[in] | uors | the distance to convert to sub units. |
StatusInt mdlCnv_UORToMaster | ( | double * | masterUnitsP, |
double | UORs, | ||
DgnModelRefP | modelRef | ||
) |
Converts distance from units of resolution of a given modelRef to master units.
[out] | masterUnitsP | the distance in master units of modelRef |
[in] | UORs | the distance in units of resolution of modelRef |
[in] | modelRef | the modelRef that the distance applies to. |
StatusInt mdlCnv_validateDoubleAndClampToRange | ( | double * | testValueP, |
double | hiLimit, | ||
double | loLimit, | ||
double | hiReplace, | ||
double | loReplace | ||
) |
Validates that the memory address specified contains a valid double within a specified range.
testValueP | IN OUT pointer to a double to be validated. |
hiLimit | IN the highest value that test value is allowed to have. |
loLimit | IN the lowest value that the test value is allowed to have. |
hiReplace | IN the value that *testValueP is set to if the original value exceeds hiLimit. |
loReplace | IN the value that *testValueP is set to if the original value is less than loLimit. |