Functions | |
void | mdlUtil_beep (int count) |
Beeps the speaker. More... | |
void | mdlUtil_quickSort (void *pFirst, int numEntries, int elementSize, PFToolsSortCompare compareFunc) |
Implementation of the standard quick-sort algorithm. More... | |
void | mdlDisplaySet_addSelectionSet (bool clearExisting) |
Adds elements from the selection set to the display set. More... | |
void | mdlDisplaySet_removeSelectionSet () |
Removes elements from the selection set to the display set. More... | |
void | mdlDisplaySet_clear (bool showEverything) |
Removes all elements from the display set. More... | |
UInt32 | mdlSymbChangeAsynch_getOldColor (SymbChangeAsynchP asynchData) |
Get the color before a change from the active symbology asynch message. More... | |
UInt32 | mdlSymbChangeAsynch_getNewColor (SymbChangeAsynchP asynchData) |
Get the color after a change from the active symbology asynch message. More... | |
UInt32 | mdlSymbChangeAsynch_getOldWeight (SymbChangeAsynchP asynchData) |
Get the weight before a change from the active symbology asynch message. More... | |
UInt32 | mdlSymbChangeAsynch_getNewWeight (SymbChangeAsynchP asynchData) |
Get the weight after a change from the active symbology asynch message. More... | |
long | mdlSymbChangeAsynch_getOldLineStyle (SymbChangeAsynchP asynchData) |
Get the line style before a change from the active symbology asynch message. More... | |
long | mdlSymbChangeAsynch_getNewLineStyle (SymbChangeAsynchP asynchData) |
Get the line style after a change from the active symbology asynch message. More... | |
void | mdlVersion_getVersionNumbers (VersionNumber *versionNumber, int *development) |
Gets the version number for the MicroStation host. More... | |
void | mdlVersion_getPlatform (int *platformID, WString *platformName) |
Gets operatin system platform information for the MicroStation host. More... | |
MSTNTOOLS_EXPORT void | mdlAvlTree_free (AvlTree **avlTree, PFAvlNodeFree userFunc, void *userArg) |
Frees all memory allocated for an AVL tree. More... | |
MSTNTOOLS_EXPORT int | mdlAvlTree_traverse (AvlTree *avlTree, int option, PFAvlTraverse userFunc, void *userArg) |
Traverses the specified AVL tree in key-sorted order. More... | |
MSTNTOOLS_EXPORT void mdlAvlTree_free | ( | AvlTree ** | avlTree, |
PFAvlNodeFree | userFunc, | ||
void * | userArg | ||
) |
Frees all memory allocated for an AVL tree.
If a function is passed in "userFunc" it will be called once for each node with a pointer to the node data and userArg. This gives an opportunity to free any memory you may have allocated for your node data.
avlTree | IN the AVL tree to be freed |
userFunc | IN user call-back function |
userArg | IN argument passed to userFunc "" |
MSTNTOOLS_EXPORT int mdlAvlTree_traverse | ( | AvlTree * | avlTree, |
int | option, | ||
PFAvlTraverse | userFunc, | ||
void * | userArg | ||
) |
Traverses the specified AVL tree in key-sorted order.
The function "userFunc" is called once for each node in the tree. The first argument passed to userFunc is a pointer to the node data. The second argument passed to it is "userArg".
avlTree | IN the AVL tree to traverse |
option | IN traverse mode / options |
userFunc | IN user call-back function |
userArg | IN arguments to user function |
void mdlDisplaySet_addSelectionSet | ( | bool | clearExisting | ) |
Adds elements from the selection set to the display set.
[in] | clearExisting | if true, clears existing display set before creating new display set. |
void mdlDisplaySet_clear | ( | bool | showEverything | ) |
Removes all elements from the display set.
[in] | showEverything | If true, the effect is to negate the display set and show all elements. If false, the effect is to remove every element from the display set and show nothing. |
void mdlDisplaySet_removeSelectionSet | ( | ) |
Removes elements from the selection set to the display set.
UInt32 mdlSymbChangeAsynch_getNewColor | ( | SymbChangeAsynchP | asynchData | ) |
Get the color after a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
long mdlSymbChangeAsynch_getNewLineStyle | ( | SymbChangeAsynchP | asynchData | ) |
Get the line style after a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
UInt32 mdlSymbChangeAsynch_getNewWeight | ( | SymbChangeAsynchP | asynchData | ) |
Get the weight after a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
UInt32 mdlSymbChangeAsynch_getOldColor | ( | SymbChangeAsynchP | asynchData | ) |
Get the color before a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
long mdlSymbChangeAsynch_getOldLineStyle | ( | SymbChangeAsynchP | asynchData | ) |
Get the line style before a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
UInt32 mdlSymbChangeAsynch_getOldWeight | ( | SymbChangeAsynchP | asynchData | ) |
Get the weight before a change from the active symbology asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
void mdlUtil_beep | ( | int | count | ) |
Beeps the speaker.
[in] | count | the number times to beep. |
void mdlUtil_quickSort | ( | void * | pFirst, |
int | numEntries, | ||
int | elementSize, | ||
PFToolsSortCompare | compareFunc | ||
) |
Implementation of the standard quick-sort algorithm.
[in] | pFirst | the address of the beginning of the array |
[in] | numEntries | the number of entries in the array |
[in] | elementSize | the size of each entry in the array |
[in] | compareFunc | a function that mdlUtil_quickSort calls one or more times to compare two array elements and return a value specifying their relationship. compareFunc is called with pointers to the two array entries as its arguments. |
Return value | Meaning |
---|---|
-1 | entry1 less than entry2. |
0 | entry1 equal to entry2. |
1 | entry1 greater than entry2. |
void mdlVersion_getPlatform | ( | int * | platformID, |
WString * | platformName | ||
) |
Gets operatin system platform information for the MicroStation host.
[out] | platformID | integer identifying platform. For V8, this will always be PLATFORM_PC_WINNT as defined in basedefs.h |
[out] | platformName | pointer to a WString to fill with the platform name. For V8, the platform name is always "Windows X86". |
void mdlVersion_getVersionNumbers | ( | VersionNumber * | versionNumber, |
int * | development | ||
) |
Gets the version number for the MicroStation host.
[out] | versionNumber | the 4-digit version number represented as a VersionNumber structure. |
[out] | development | an internal build number useful only to the core MicroStation developers. Pass NULL. |