Functions | |
TransDescrP | mdlTransient_addElement (TransDescrP tEdP, MSElementP elementP, int snappable, long viewMask, int displayMode, bool displayFirst, bool atHead, bool initialDisplay) |
Adds an element to an existing transient descriptor (tEdP), or create a new transient descriptor if tEdP is NULL. More... | |
TransDescrP | mdlTransient_addElemDescr (TransDescrP tedP, MSElementDescrCP edP, int snappable, long viewMask, int displayMode, bool displayFirst, bool atHead, bool initialDisplay) |
Adds an element descriptor to an existing transient descriptor (tEdP), or creates a new transient descriptor if tEdP is NULL. More... | |
TransDescrP | mdlTransient_addElemDescrExt (TransDescrP tedP, MSElementDescrCP edP, long viewMask, int displayMode, int priority, bool initialDisplay, UInt32 flags, int overrideColor, int overrideMenuColor, int overrideStyle, int overrideWeight, DgnModelRefP modelRef) |
Adds an element descriptor to an existing transient descriptor (tEdP), or creates a new transient descriptor if tEdP is NULL, allowing some additional parameters over mdlTransient_addElemDescr. More... | |
TransDescrP | mdlTransient_replaceElement (TransDescrP tEdP, MSElementP elementP, int snappable, long viewMask, int displayMode, bool displayFirst, bool atHead, bool initialDisplay) |
Deletes the transient descriptor indicated by tEdP, if non-NULL, and creates a new transient descriptor from the element indicated by elementP. More... | |
TransDescrP | mdlTransient_replaceElemDescr (TransDescrP tEdP, MSElementDescrCP edP, int snappable, long viewMask, int displayMode, bool displayFirst, bool atHead, bool initialDisplay) |
Deletes the transient descriptor indicated by tEdP, if non-NULL, and creates a new transient descriptor from the element descriptor indicated by edP. More... | |
MSElementDescrCP | mdlTransient_returnElemDescr (TransDescrP tEdP) |
Gets pointer to the element descriptor associated with a transient descriptor (tEdP). More... | |
void | mdlTransient_free (TransDescrP *freeTedPP, bool eraseDisplay) |
Frees the transient descriptor pointer freeTedPP. More... | |
bool | mdlTransient_isValid (TransDescrP tEdP) |
Test if transient element descriptor is still valid. More... | |
ElementRefP | mdlTransient_getLastElementRef (TransDescrP tEdP) |
Get the ElementRefP of the last element added to the transient descriptor. More... | |
UInt32 | mdlTransient_atOffset (TransDescrP *tEdPP, UInt32 *hdrFilePosP, UInt32 searchFilePos) |
Get the first transient element descriptor found after the specified offset distance from the given header file position. More... | |
void | mdlTransient_displaySingleInViews (TransDescrP tEdP, MSElementDescrP edP, int displayMode) |
Displays the contents of the transient element descriptor in the open view windows using the display settings of the specified element descriptor. More... | |
void | mdlTransient_normalDisplay (TransDescrP tEdP) |
Sets the specified transient element descriptor to display normally. More... | |
void | mdlTransient_eraseDisplay (TransDescrP tEdP, bool checkDrawMode) |
Sets the specified transient element descriptor to be erased. More... | |
void | mdlTransient_setViewFlags (TransDescrP tEdP, int viewMask, bool display) |
Modify the views that a transient element will display in. More... | |
TransDescrP | mdlTransientElemRef_getTDP (ElementRefP ref) |
Used to get the transient descriptor for the specified elementRef if it is from a transient element. More... | |
MSElementDescrP | mdlTransientElemRef_getEDP (ElementRefP ref) |
Used to get the element descriptor for the specified elementRef if it is from a transient element. More... | |
TransDescrP mdlTransient_addElemDescr | ( | TransDescrP | tedP, |
MSElementDescrCP | edP, | ||
int | snappable, | ||
long | viewMask, | ||
int | displayMode, | ||
bool | displayFirst, | ||
bool | atHead, | ||
bool | initialDisplay | ||
) |
Adds an element descriptor to an existing transient descriptor (tEdP), or creates a new transient descriptor if tEdP is NULL.
The transient descriptor format is not published or required, as transient descriptors are always referenced by (void) pointers.
[in] | tedP | TED to attach to or NULL for new one |
[in] | edP | element to add to TED |
[in] | snappable | If snappable is non-zero, the transient element will be snappable. |
[in] | viewMask | controls the views in which the transient element is displayed, the least significant bit controls the display in view 1, the next bit controls view 2 etc. A view mask of 0x00ff causes the element to be displayed in all views, a mask of 0x0008 causes display in view 4 only. |
[in] | displayMode | controls the element display mode. Valid display modes are defined in msdefs.h and include DRAW_MODE_Normal, HILITE, ERASE and XORDRAW. |
[in] | displayFirst | If displayFirst is non-zero, the elements in this transient descriptor are displayed before design file graphics, otherwise the elements are displayed after the design file graphics. |
[in] | atHead | If atHead is non-zero, the elements in this transient descriptor are displayed before those in other transient descriptors. Otherwise, all transient elements are displayed in the order they were created. |
[in] | initialDisplay | controls the initial display of the element. If initialDisplay is zero, the element is added to the transient descriptor but is not displayed. |
TransDescrP mdlTransient_addElemDescrExt | ( | TransDescrP | tedP, |
MSElementDescrCP | edP, | ||
long | viewMask, | ||
int | displayMode, | ||
int | priority, | ||
bool | initialDisplay, | ||
UInt32 | flags, | ||
int | overrideColor, | ||
int | overrideMenuColor, | ||
int | overrideStyle, | ||
int | overrideWeight, | ||
DgnModelRefP | modelRef | ||
) |
Adds an element descriptor to an existing transient descriptor (tEdP), or creates a new transient descriptor if tEdP is NULL, allowing some additional parameters over mdlTransient_addElemDescr.
The transient descriptor format is not published or required, as transient descriptors are always referenced by (void) pointers.
[in] | tedP | TED to attach to or NULL for new one |
[in] | edP | element to add to TED |
[in] | viewMask | controls the views in which the transient element is displayed, the least significant bit controls the display in view 1, the next bit controls view 2 etc. A view mask of 0x00ff causes the element to be displayed in all views, a mask of 0x0008 causes display in view 4 only. |
[in] | displayMode | controls the element display mode. Valid display modes are defined in msdefs.h and include DRAW_MODE_Normal, HILITE, ERASE and XORDRAW. |
[in] | priority | priority relative to other transients. Lower priorities are drawn first |
[in] | initialDisplay | controls the initial display of the element. If initialDisplay is zero, the element is added to the transient descriptor but is not displayed. |
[in] | flags | see TRANSIENT_FLAG defines in msdefs.f |
[in] | overrideColor | override color or -1 for none |
[in] | overrideMenuColor | override menu color or -1 for none |
[in] | overrideStyle | override style or -1 for none |
[in] | overrideWeight | override weight or -1 for none |
[in] | modelRef | the modelRef, normally MASTERFILE |
TransDescrP mdlTransient_addElement | ( | TransDescrP | tEdP, |
MSElementP | elementP, | ||
int | snappable, | ||
long | viewMask, | ||
int | displayMode, | ||
bool | displayFirst, | ||
bool | atHead, | ||
bool | initialDisplay | ||
) |
Adds an element to an existing transient
descriptor (tEdP), or create a new transient descriptor if tEdP is NULL.
The transient descriptor format is not published or required, as transient descriptors are always referenced by (void) pointers.
[in] | tEdP | TED to attach to or NULL for new one |
[in] | elementP | element to add to TED |
[in] | snappable | If snappable is non-zero, the transient element will be snappable. |
[in] | viewMask | controls the views in which the transient element is displayed. The least significant bit controls the display in view 1, the next bit controls view 2 etc. A view mask of 0x00ff causes the element to be displayed in all views, a mask of 0x0008 causes display in view 4 only. |
[in] | displayMode | controls the element display mode. Valid display modes are defined in msdefs.h and include DRAW_MODE_Normal, HILITE, ERASE and XORDRAW. |
[in] | displayFirst | If displayFirst is non-zero, the elements in this transient descriptor are displayed before design file graphics, otherwise the elements are displayed after the design file graphics. |
[in] | atHead | If atHead is non-zero, the elements in this transient descriptor are displayed before those in other transient descriptors. Otherwise, all transient elements are displayed in the order they were created. |
[in] | initialDisplay | controls the initial display of the element. If initialDisplay is zero, the element is added to the transient descriptor but is not displayed. |
Get the first transient element descriptor found after the specified offset distance from the given header file position.
[out] | tEdPP | the transient element descriptor |
[in] | hdrFilePosP | the header file position |
[in] | searchFilePos | the offset distance from the header file position to start searching for the first transient element descriptor, if one exists. |
void mdlTransient_displaySingleInViews | ( | TransDescrP | tEdP, |
MSElementDescrP | edP, | ||
int | displayMode | ||
) |
Displays the contents of the transient element descriptor in the open view windows using the display settings of the specified element descriptor.
[in] | tEdP | the transient element descriptor to display |
[in] | edP | the element to get the display settings from |
[in] | displayMode | the drawing mode to use when drawing the transient element |
void mdlTransient_eraseDisplay | ( | TransDescrP | tEdP, |
bool | checkDrawMode | ||
) |
Sets the specified transient element descriptor to be erased.
[in] | tEdP | the transient element descriptor to erase. |
[in] | checkDrawMode | indicates whether the draw mode will be checked before erasing. |
void mdlTransient_free | ( | TransDescrP * | freeTedPP, |
bool | eraseDisplay | ||
) |
Frees the transient descriptor pointer freeTedPP.
The pointer is then set to NULL. The transient descriptor must be returned by a previous call to mdlTransient_addElement or mdlTransient_addElemDescr.
[in,out] | freeTedPP | transient element to free |
[in] | eraseDisplay | true to erase display |
ElementRefP mdlTransient_getLastElementRef | ( | TransDescrP | tEdP | ) |
Get the ElementRefP of the last element added to the transient descriptor.
An element placement tool can call this to find out what transient it just created, so that it can avoid accusnapping to it.
[in] | tEdP | the transient element descriptor to get the last element from |
bool mdlTransient_isValid | ( | TransDescrP | tEdP | ) |
Test if transient element descriptor is still valid.
[in] | tEdP | the transient element descriptor to test |
void mdlTransient_normalDisplay | ( | TransDescrP | tEdP | ) |
Sets the specified transient element descriptor to display normally.
[in] | tEdP | the transient element descriptor to display in DRAW_MODE_Normal mode |
TransDescrP mdlTransient_replaceElemDescr | ( | TransDescrP | tEdP, |
MSElementDescrCP | edP, | ||
int | snappable, | ||
long | viewMask, | ||
int | displayMode, | ||
bool | displayFirst, | ||
bool | atHead, | ||
bool | initialDisplay | ||
) |
Deletes the transient descriptor indicated by tEdP, if non-NULL, and creates a new transient descriptor from the element descriptor indicated by edP.
The transient descriptor pointer tEdP must be returned by a previous call to mdlTransient_addElement or mdlTransient_addElemDescr.
[in] | tEdP | TED to attach to or NULL for new one |
[in] | edP | element to add to TED |
[in] | snappable | If snappable is non-zero, the transient element will be snappable. |
[in] | viewMask | controls the views in which the transient element is displayed, the least significant bit controls the display in view 1, the next bit controls view 2 etc. A view mask of 0x00ff causes the element to be displayed in all views, a mask of 0x0008 causes display in view 4 only. |
[in] | displayMode | controls the element display mode. Valid display modes are defined in msdefs.h and include DRAW_MODE_Normal, HILITE, ERASE and XORDRAW. |
[in] | displayFirst | If displayFirst is non-zero, the elements in this transient descriptor are displayed before design file graphics, otherwise the elements are displayed after the design file graphics. |
[in] | atHead | If atHead is non-zero, the elements in this transient descriptor are displayed before those in other transient descriptors. Otherwise, all transient elements are displayed in the order they were created. |
[in] | initialDisplay | controls the initial display of the element. If initialDisplay is zero, the element is added to the transient descriptor but is not displayed. |
TransDescrP mdlTransient_replaceElement | ( | TransDescrP | tEdP, |
MSElementP | elementP, | ||
int | snappable, | ||
long | viewMask, | ||
int | displayMode, | ||
bool | displayFirst, | ||
bool | atHead, | ||
bool | initialDisplay | ||
) |
Deletes the transient descriptor indicated by tEdP,
if non-NULL, and creates a new transient descriptor from the element indicated by elementP.
The transient descriptor pointer tEdP must be returned by a previous call to mdlTransient_addElement or mdlTransient_addElemDescr.
[in] | tEdP | TED to attach to or NULL for new one |
[in] | elementP | element to add to TED |
[in] | snappable | If snappable is non-zero, the transient element will be snappable. |
[in] | viewMask | controls the views in which the transient element is displayed, the least significant bit controls the display in view 1, the next bit controls view 2 etc. A view mask of 0x00ff causes the element to be displayed in all views, a mask of 0x0008 causes display in view 4 only. |
[in] | displayMode | controls the element display mode. Valid display modes are defined in msdefs.h and include DRAW_MODE_Normal, HILITE, ERASE and XORDRAW. |
[in] | displayFirst | If displayFirst is non-zero, the elements in this transient descriptor are displayed before design file graphics, otherwise the elements are displayed after the design file graphics. |
[in] | atHead | If atHead is non-zero, the elements in this transient descriptor are displayed before those in other transient descriptors. Otherwise, all transient elements are displayed in the order they were created. |
[in] | initialDisplay | controls the initial display of the element. If initialDisplay is zero, the element is added to the transient descriptor but is not displayed. |
MSElementDescrCP mdlTransient_returnElemDescr | ( | TransDescrP | tEdP | ) |
Gets pointer to the element descriptor associated with a transient descriptor (tEdP).
[in] | tEdP | TED |
void mdlTransient_setViewFlags | ( | TransDescrP | tEdP, |
int | viewMask, | ||
bool | display | ||
) |
Modify the views that a transient element will display in.
[in] | tEdP | the transient element descriptor to change the view display of. |
[in] | viewMask | views to apply to the transient element. |
[in] | display | whether to update the display of the transient element. |
MSElementDescrP mdlTransientElemRef_getEDP | ( | ElementRefP | ref | ) |
Used to get the element descriptor for the specified elementRef if it is from a transient element.
[in] | ref | the ElementRefP to get the transient descriptor for. |
TransDescrP mdlTransientElemRef_getTDP | ( | ElementRefP | ref | ) |
Used to get the transient descriptor for the specified elementRef if it is from a transient element.
[in] | ref | the ElementRefP to get the transient descriptor for. |