Functions | |
int | mdlACS_createElmdscr (MSElementDescrH eDPP, WCharCP nameP, WCharCP descriptionP, const Dpoint3d *originP, RotMatrixCP rotMatrixP, short type) |
Creates an ACS element descriptor. More... | |
int | mdlACS_extractElmdscr (Dpoint3d *originP, RotMatrixP rotMatrixP, short *typeP, WChar *nameP, WChar *descriptionP, MSElementDescrCP eDP) |
Extracts the auxiliary coordinate system from the saved ACS element in eDP. More... | |
int | mdlACS_attachNamed (WCharCP unparsed, bool useRot, bool useOrg) |
Attaches the named auxiliary coordinate system (ACS) to the active model. More... | |
int | mdlACS_deleteNamed (WCharCP acsName) |
Deletes the named coordinate system specified. More... | |
bool | mdlACS_isDefined () |
Determines whether an ACS has been defined for the active model. More... | |
int | mdlACS_getCurrent (Dpoint3d *originP, RotMatrixP rotMatrixP, DgnPlatform::ACSType *typeP, WChar *nameP, WChar *descriptionP) |
Returns the current ACS's origin, rotation matrix, and type. More... | |
StatusInt | mdlACS_saveNamed (WChar const *name, WChar const *description) |
Saves the current coordinate system with the specified name and description. More... | |
int | mdlACS_setCurrent (Dpoint3d *originP, RotMatrixP rotMatrixP, DgnPlatform::ACSType const *type) |
Defines the ACS of the active model. More... | |
int | mdlACS_locate (MSElementDescrH edPP, UInt32 *filePosP, WCharCP inName, DgnModelRefP modelRef) |
Searches for an ACS using its assigned name. More... | |
int | mdlACS_getNameOfElmdscr (WChar *acsNameP, MSElementDescrCP edP) |
Gets the name from the specified ACS element descriptor. More... | |
int | mdlACS_getDescriptionOfElmdscr (WChar *acsDescriptionP, MSElementDescrCP edP) |
Gets the description from the specified ACS element. More... | |
int | mdlACS_setNameOfElmdscr (MSElementDescrH edPP, WChar const *name) |
Sets the name on the specified ACS element. More... | |
int | mdlACS_setDescriptionOfElmdscr (MSElementDescrH edPP, WChar const *description) |
Sets the description on the specified ACS element. More... | |
int | mdlACS_traverseElements (DgnModelRefP modelRef, ACSTraverseFunctionP userFunc, CallbackArgP userDataP) |
Traverses over the elements in a model searching for ACS elements. More... | |
int | mdlACS_getCanonicalName (WChar *canonicalP, WChar const *nameP) |
Canonizes the specified ACS name string. More... | |
int | mdlACS_getCanonicalDescription (WChar *canonicalP, WChar const *descrP) |
Canonize the specified ACS description string. More... | |
int | mdlACS_getTypeOfElmdscr (short *acsTypeP, MSElementDescrCP edP) |
Get the ACS type of the ACS element descriptor. More... | |
int | mdlACS_setTypeOfElmdscr (MSElementDescrP edP, short const *acsTypeP) |
Sets the ACS type of the ACS element descriptor. More... | |
int | mdlACS_createElmdscrFromParams (MSElementDescrH edPP, short type, Dpoint3d const *originP, RotMatrixCP rotationP, WChar const *nameP, WChar const *descriptionP) |
Creates an ACS element descriptor from the given parameters. More... | |
int mdlACS_attachNamed | ( | WCharCP | unparsed, |
bool | useRot, | ||
bool | useOrg | ||
) |
Attaches the named auxiliary coordinate system (ACS)
to the active model.
[in] | unparsed | the name of the coordinate system to attach |
[in] | useRot | true means apply the rotation stored in the named ACS, and false means ignore it |
[in] | useOrg | true means apply the origin stored in the named ACS, and false means ignore it |
int mdlACS_createElmdscr | ( | MSElementDescrH | eDPP, |
WCharCP | nameP, | ||
WCharCP | descriptionP, | ||
const Dpoint3d * | originP, | ||
RotMatrixCP | rotMatrixP, | ||
short | type | ||
) |
Creates an ACS element descriptor.
[out] | eDPP | ACS element descriptor, which you must free when done. |
[in] | nameP | ACS Name. |
[in] | descriptionP | ACS Description. |
[in] | originP | ACS origin. If NULL, uses (0.0, 0.0, 0.0). |
[in] | rotMatrixP | ACS RotMatrix. If NULL, uses identity matrix. |
[in] | type | one of the valid ACS type constants. Possible values are:
|
int mdlACS_createElmdscrFromParams | ( | MSElementDescrH | edPP, |
short | type, | ||
Dpoint3d const * | originP, | ||
RotMatrixCP | rotationP, | ||
WChar const * | nameP, | ||
WChar const * | descriptionP | ||
) |
Creates
an ACS element descriptor from the given parameters.
[out] | edPP | is the newly created ACS element descriptor, which you must free when done. |
[in] | type | is one of the valid ACS type constants. Possible values are:
|
[in] | originP | origin of the ACS. |
[in] | rotationP | rotation of the ACS. |
[in] | nameP | name of the ACS. |
[in] | descriptionP | the description of the ACS. |
int mdlACS_deleteNamed | ( | WCharCP | acsName | ) |
Deletes the named coordinate
system specified.
[in] | acsName | name of the coordinate system |
int mdlACS_extractElmdscr | ( | Dpoint3d * | originP, |
RotMatrixP | rotMatrixP, | ||
short * | typeP, | ||
WChar * | nameP, | ||
WChar * | descriptionP, | ||
MSElementDescrCP | eDP | ||
) |
Extracts the auxiliary coordinate system from the saved ACS element in eDP.
[out] | originP | ACS origin |
[out] | rotMatrixP | ACS RotMatrix |
[out] | typeP | ACS Type |
[out] | nameP | ACS Name |
[out] | descriptionP | ACS Description |
[in] | eDP | ACS element descriptor |
int mdlACS_getCanonicalDescription | ( | WChar * | canonicalP, |
WChar const * | descrP | ||
) |
Canonize the
specified ACS description string.
The result is the name string stripped of leading and trailing whitespace characters, whose length and content has been validated.
[out] | canonicalP | points to a string buffer where the canonized description is placed. This buffer should be MAX_ACS_DESCR_LENGTH MSWChars long. |
[in] | descrP | ACS description to be canonized. |
int mdlACS_getCanonicalName | ( | WChar * | canonicalP, |
WChar const * | nameP | ||
) |
Canonizes the
specified ACS name string.
The result is the name string stripped of leading and trailing whitespace characters, whose length and content has been validated.
[out] | canonicalP | is a pointer to a string buffer where the canonized name is placed. This buffer should be MAX_ACS_NAME_LENGTH MSWChars long. |
[in] | nameP | ACS name to be canonized. |
int mdlACS_getCurrent | ( | Dpoint3d * | originP, |
RotMatrixP | rotMatrixP, | ||
DgnPlatform::ACSType * | typeP, | ||
WChar * | nameP, | ||
WChar * | descriptionP | ||
) |
Returns the current ACS's origin,
rotation matrix, and type.
[out] | originP | current ACS origin |
[out] | rotMatrixP | current ACS orientation |
[out] | typeP | current ACS type |
[out] | nameP | points to a buffer where the name is copied. This buffer should be MAX_ACS_NAME_LENGTH MSWChars long. |
[out] | descriptionP | points to a buffer where the description is copied. This buffer should be MAX_ACS_DESCR_LENGTH MSWChars long |
int mdlACS_getDescriptionOfElmdscr | ( | WChar * | acsDescriptionP, |
MSElementDescrCP | edP | ||
) |
Gets
the description from the specified ACS element.
[out] | acsDescriptionP | points to a buffer where the description is copied. This buffer should be MAX_ACS_DESCR_LENGTH MSWChars long |
[in] | edP | points to the ACS element to get the description from. |
int mdlACS_getNameOfElmdscr | ( | WChar * | acsNameP, |
MSElementDescrCP | edP | ||
) |
Gets the name
from the specified ACS element descriptor.
[out] | acsNameP | points to a buffer where the name is copied. This buffer should be MAX_ACS_NAME_LENGTH MSWChars long. |
[in] | edP | points to the ACS element to get the name from. |
int mdlACS_getTypeOfElmdscr | ( | short * | acsTypeP, |
MSElementDescrCP | edP | ||
) |
Get the ACS type of the ACS element descriptor.
[out] | acsTypeP | points to a variable which will contain one of the following values upon a return of SUCCESS.
|
[in] | edP | points to the ACS element. |
bool mdlACS_isDefined | ( | ) |
Determines whether an ACS has been defined for the active model.
int mdlACS_locate | ( | MSElementDescrH | edPP, |
UInt32 * | filePosP, | ||
WCharCP | inName, | ||
DgnModelRefP | modelRef | ||
) |
Searches for an ACS
using its assigned name.
[out] | edPP | Copy of ACS element descriptor. You must free it when done. |
[out] | filePosP | file position of the located ACS element. |
[in] | inName | name of the ACS element to find. |
[in] | modelRef | model to search for the ACS element. |
StatusInt mdlACS_saveNamed | ( | WChar const * | name, |
WChar const * | description | ||
) |
Saves the current coordinate
system with the specified name and description.
The name must consist of one to MAX_ACS_NAME_LENGTH MSWChars, and the description can contain up to MAX_ACS_DESCR_LENGTH MSWChars. The user or an MDL application can recall saved coordinate systems with the mdlACS_attachNamed function.
[in] | name | name of the ACS |
[in] | description | description of the ACS |
int mdlACS_setCurrent | ( | Dpoint3d * | originP, |
RotMatrixP | rotMatrixP, | ||
DgnPlatform::ACSType const * | type | ||
) |
Defines the ACS of the active model.
[in] | originP | new ACS origin or pass NULL to leave unchanged |
[in] | rotMatrixP | new ACS orientation or pass NULL to leave unchanged |
[in] | type | new ACS type or pass NULL to leave unchanged |
int mdlACS_setDescriptionOfElmdscr | ( | MSElementDescrH | edPP, |
WChar const * | description | ||
) |
Sets the description on the specified ACS element.
[out] | edPP | points to ACS element descriptor pointer. |
[in] | description | points to a buffer where the description is stored. |
int mdlACS_setNameOfElmdscr | ( | MSElementDescrH | edPP, |
WChar const * | name | ||
) |
Sets the name on the specified ACS element.
[out] | edPP | points to ACS element descriptor pointer. |
[in] | name | points to a buffer where the name is stored. |
int mdlACS_setTypeOfElmdscr | ( | MSElementDescrP | edP, |
short const * | acsTypeP | ||
) |
Sets the ACS type
of the ACS element descriptor.
[out] | edP | ACS element descriptor which is being accessed |
[in] | acsTypeP | type to set in the ACS, and should be one of:
|
int mdlACS_traverseElements | ( | DgnModelRefP | modelRef, |
ACSTraverseFunctionP | userFunc, | ||
CallbackArgP | userDataP | ||
) |
Traverses over
the elements in a model searching for ACS elements.
A user function can be specified, and is called with an element descriptor for each ACS element found in the specified model.
[in] | modelRef | which model to search. |
[in] | userFunc | pointer to the user function to invoke for each ACS element found. |
[in] | userDataP | user data to pass in to callback, or is set to NULL. |