Macros | |
#define | LEVEL_ITERATE_TYPE_ROOT_LEVELS 2 |
#define | LEVEL_ITERATE_TYPE_CHILD_LEVELS 3 |
#define | LEVEL_COUNT_TYPE_ROOT 4 |
Functions | |
MSElementCP | mdlLevel_getLinkageHolder (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn) |
StatusInt | mdlLevel_setLinkageHolder (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, MSElementP pLinkageHolderElementIn) |
MSElementCP | mdlLevelTable_getLinkageHolder (DgnModelRefP modelRefIn) |
StatusInt | mdlLevelTable_setLinkageHolder (DgnModelRefP modelRefIn, MSElementP pLinkageHolderElementIn) |
void | mdlDependency_setTrackingDisabled (bool bSuppress) |
Disable or enable change-tracking. More... | |
int | mdlDependency_getTrackingDisabled (void) |
Query if change-tracking has been disabled. More... | |
void | mdlDependency_setErrorLevel (int l) |
Determine how a post-processing failure is treated: More... | |
int | mdlDependency_getErrorLevel (void) |
Determine how a post-processing failure is treated. More... | |
void | mdlDependency_setEager (bool bEager) |
Specify if MDL should invoke post-processing callbacks during the execution of commands or if post-processing should be deferred until a command ends. More... | |
bool | mdlDependency_getEager () |
Query if post-processing is triggered eagerly. More... | |
void | mdlDependency_setAppendChanges (bool bAppendChanges) |
Specify if changes caused during post-processing should be appended to the current undo group. More... | |
bool | mdlDependency_getAppendChanges () |
Query if changes caused during post-processing will be added to the current undo group. More... | |
RASTERLIB_EXPORT StatusInt | mdlRaster_eventGroupEnd (int eventMode) |
End a ground of operation started by mdlRaster_eventGroupStart. More... | |
RASTERLIB_EXPORT StatusInt | mdlRaster_eventGroupStart (int eventMode, int commandName) |
Start a group of operation. More... | |
StatusInt | mdlText_strokeToElementDescr (MSElementDescrH outEdPP, MSElementDescrP pTextOrNodeElmDscr, RotMatrixP viewRMatrixP, DgnModelRefP modelRef) |
Drops a text (or text node) element to geometry. More... | |
StatusInt | mdlText_nodeFromTextExt (DgnPlatform::Text_node_2d *nodeTemplate, DgnPlatform::Text_2d *textTemplate, int *pNodeNumber) |
Creates a text node template element from a text element. More... | |
StatusInt | mdlText_extractW (WCharP string, DPoint3dP origin, DPoint3dP userOrigin, RotMatrixP rotMatrix, DgnPlatform::TextSizeParam *textSize, DgnPlatform::TextParamWide *textParam, TextEDParamP edParam, MSElementDescrP ed) |
Gets formatting and text data from the provided text element. More... | |
StatusInt | mdlText_create (MSElementP out, MSElementCP in, WCharCP string, DPoint3dCP userOrigin, RotMatrixCP trans, DgnPlatform::TextSizeParam const *textSize, DgnPlatform::TextParamWide const *textParam, TextEDParamCP edParam, DgnModelRefP modelRef) |
Creates a text element from constituent data. More... | |
int | mdlTextNode_create (MSElementP pElementOut, MSElementP pTemplateElement, DPoint3dP dOrigin, RotMatrixP rotMatrix, double *lineSpacing, DgnPlatform::MSTextSize *size, DgnPlatform::TextParam *txtParams) |
Creates a blank text node element. More... | |
StatusInt | mdlTextNode_extract (DPoint3dP userOrigin, RotMatrixP rotMatrix, DgnPlatform::MSTextSize *tileSize, double *lineSpacing, DgnPlatform::TextParam *txtParams, int *nodeNumber, MSElementCP in, MSElementDescrCP edP) |
Gets formatting from the provided text node. More... | |
StatusInt | mdlTextNode_extractShape (Dpoint3d rPoints[5], DPoint3dP rOrigin, MSElementDescrP edP, int addsnaptol, int view) |
Computes fitted box points around a text node. More... | |
int | mdlText_addStringsToNodeDscr (MSElementDescrP in, WCharCP buffer) |
Appends the given string to a text node. More... | |
void | mdlText_changeElementFont (MSElementP u, TextStyleInfoP newTfs) |
Sets the font number on a text element, node, or tag. More... | |
int | mdlText_expandTabs (WStringR outstring, WCharCP instring, int tabInterval) |
Replaces tab characters with space characters, attempting to preserve alignment by inserting the appropriate number of spaces. More... | |
void | mdlText_extractFontStyle (MSElementCP u, DgnPlatform::TextStyleInfo *tfs) |
Gets formatting information from the provided text element. More... | |
int | mdlText_extractShape (Dpoint3d rPoints[5], DPoint3dP rOrigin, MSElementCP in, int addSnaptol, int view) |
Computes fitted box points around a text element. More... | |
int | mdlText_getFontInfo (DgnPlatform::TextFontInfo *tfiP, UInt32 fontNum) |
Determines if a font by that number already exists. More... | |
int | mdlText_nodeFromText (DgnPlatform::Text_node_2d *nodeTemplate, DgnPlatform::Text_2d *textTemplate) |
Creates a text node template from a text element. More... | |
int | mdlText_textFromNode (MSElementP pElementOut, MSElementCP elementIn) |
Creates a text element template from a text node. More... | |
int | mdlText_extract (WStringP wString, DPoint3dP origin, DPoint3dP userOrigin, RotMatrixP rotMatrix, DgnPlatform::TextSizeParam *textSize, DgnPlatform::TextParamWide *textParam, TextEDParamP edParam, MSElementCP in) |
Gets formatting information and text content from the provided text element. More... | |
int | mdlText_extractString (WStringR wString, MSElementCP el) |
Gets text content from the provided text element. More... | |
int | mdlTextNode_createWide (MSElementP out, MSElementP in, DPoint3dP userOrigin, RotMatrixP rotMatrix, DgnPlatform::TextSizeParam *size, DgnPlatform::TextParamWide *txtParams) |
Creates a blank text node element. More... | |
StatusInt | mdlTextNode_createWithStrings (MSElementDescrH nodeDescrPP, MSElementCP nodeTemplate, bvector< WString > const &, DPoint3dCP userOrigin, RotMatrixCP rotMatrix, DgnPlatform::TextSizeParam const *sizeParam, DgnPlatform::TextParamWide const *txtParams, TextEDParamCP textEDParam) |
Creates a text node with the provided strings, inserting a paragraph break between each one. More... | |
int | mdlTextNode_extractWide (DPoint3dP userOrigin, RotMatrixP rotMatrix, DgnPlatform::TextSizeParam *txtSizeParam, DgnPlatform::TextParamWide *txtParams, MSElementCP in, MSElementDescrCP edP) |
Gets formatting from the provided text node. More... | |
int | mdlText_extractStringsFromDscr (WStringR buffer, MSElementDescrP in) |
Gets the concatenation of all strings in a text node. More... | |
int | mdlText_compressString (WStringR outBuffer, WCharCP inBuffer, int conversionType) |
Scans the input string for fractions and/or character escape sequences (determined by conversionType), turning them into single characters as allowed by the active font. More... | |
int | mdlText_expandString (WStringR outBuffer, WCharCP inBuffer, int conversionType) |
Scans the input string for single-character fractions and/or escape sequences (determined by conversionType), turning them into font-agnostic representations that can be round-tripped with a "compress" function. More... | |
int | mdlText_getElementDescr (MSElementDescrH outEdPP, DgnPlatform::Text_2d *pTextElm, RotMatrixP viewRMatrixP) |
Drops a text (or text node) element to geometry. More... | |
int | mdlText_getElementDescrWithModelRef (MSElementDescrH outEdPP, DgnPlatform::Text_2d *pTextElm, RotMatrixP viewRMatrixP, DgnModelRefP modelRef) |
Drops a text (or text node) element to geometry. More... | |
void | mdlText_setTextParamWideCodePage (DgnPlatform::TextParamWide *textParamWide, LangCodePage codePage) |
Sets the code page (and associated flag) on a TextParamWide structure. More... | |
int | mdlTextNode_createEx (MSElementDescrH nodeDescrPP, MSElementP nodeTemplate, MSElementDescrP textEdp, DPoint3dP dOrigin, RotMatrixP rotMatrix, DgnPlatform::TextSizeParam *sizeParam, DgnPlatform::TextParamWide *txtParams) |
Creates a text node element, and appends the contents of the chain of text elements provided. More... | |
StatusInt | elementRef_addDependency (ElementRefP baseElem, ElementRefP dependentElm, bool allowCircular, bool allowCrossCache) |
*//* Bentley Systems More... | |
StatusInt | elementRef_removeDependency (ElementRefP baseElem, ElementRefP dependentElm) |
*//* Bentley Systems More... | |
void | elementRef_removeAllDependencies (ElementRefP fromElem) |
remove all dependencies from an element More... | |
bool | dgnModel_setReadOnly (DgnModelP dgnModel, bool readOnly) |
set cache read only status More... | |
StatusInt | dgnModel_getModelHeader (DgnModelP dgnModel, MSElementP header) |
get the model header Element More... | |
#define LEVEL_COUNT_TYPE_ROOT 4 |
#define LEVEL_ITERATE_TYPE_CHILD_LEVELS 3 |
#define LEVEL_ITERATE_TYPE_ROOT_LEVELS 2 |
StatusInt dgnModel_getModelHeader | ( | DgnModelP | dgnModel, |
MSElementP | header | ||
) |
get the model header Element
bool dgnModel_setReadOnly | ( | DgnModelP | dgnModel, |
bool | readOnly | ||
) |
set cache read only status
StatusInt elementRef_addDependency | ( | ElementRefP | baseElem, |
ElementRefP | dependentElm, | ||
bool | allowCircular, | ||
bool | allowCrossCache | ||
) |
*//* Bentley Systems
void elementRef_removeAllDependencies | ( | ElementRefP | fromElem | ) |
remove all dependencies from an element
StatusInt elementRef_removeDependency | ( | ElementRefP | baseElem, |
ElementRefP | dependentElm | ||
) |
*//* Bentley Systems
bool mdlDependency_getAppendChanges | ( | ) |
Query if changes caused during post-processing will be added to the current undo group.
bool mdlDependency_getEager | ( | ) |
Query if post-processing is triggered eagerly.
int mdlDependency_getErrorLevel | ( | void | ) |
Determine how a post-processing failure is treated.
Call mdlDependency_setErrorLevel to set the error level.
Call mdlDependency_processAffected to trigger post-processing.
int mdlDependency_getTrackingDisabled | ( | void | ) |
Query if change-tracking has been disabled.
void mdlDependency_setAppendChanges | ( | bool | bAppendChanges | ) |
Specify if changes caused during post-processing should be appended to the current undo group.
If append mode is turned on, changes caused by post-processing callbacks will appear to be part of the current command or the command that is just finishing. Therefore, undo will rollback post-processsing changes along with the immediately preceeding command.
If append mode is turned off, changes caused by callbacks are added to a new undo group, distinct from the previous command. This allows post-processing changes to be undone separately from command-specific changes.
See mdlDependency_processAffected for more details on post-processing.
[in] | bAppendChanges | true: append; false: separate |
void mdlDependency_setEager | ( | bool | bEager | ) |
Specify if MDL should invoke post-processing callbacks during the execution of commands or if post-processing should be deferred until a command ends.
By default, post-processing occurs whenever an undo mark is set. This happens at least whenever a command ends, i.e., when mdlState_startPrimitive is called.
[in] | bEager | true: eager; false: when undo mark is set |
void mdlDependency_setErrorLevel | ( | int | l | ) |
Determine how a post-processing failure is treated:
Errorlevel 2 is the default.
Call mdlDependency_setProcessingDisabled to turn off post-processing completely.
See mdlDependency_processAffected for details on post-processing.
[in] | l | 0:ignore, 1:warning, 2:error |
void mdlDependency_setTrackingDisabled | ( | bool | bSuppress | ) |
Disable or enable change-tracking.
[in] | bSuppress | if true, disable; else enable |
MSElementCP mdlLevel_getLinkageHolder | ( | DgnModelRefP | modelRefIn, |
DgnPlatform::LevelId | levelIdIn | ||
) |
StatusInt mdlLevel_setLinkageHolder | ( | DgnModelRefP | modelRefIn, |
DgnPlatform::LevelId | levelIdIn, | ||
MSElementP | pLinkageHolderElementIn | ||
) |
MSElementCP mdlLevelTable_getLinkageHolder | ( | DgnModelRefP | modelRefIn | ) |
StatusInt mdlLevelTable_setLinkageHolder | ( | DgnModelRefP | modelRefIn, |
MSElementP | pLinkageHolderElementIn | ||
) |
int mdlText_addStringsToNodeDscr | ( | MSElementDescrP | in, |
WCharCP | buffer | ||
) |
Appends the given string to a text node.
void mdlText_changeElementFont | ( | MSElementP | u, |
TextStyleInfoP | newTfs | ||
) |
Sets the font number on a text element, node, or tag.
int mdlText_compressString | ( | WStringR | outBuffer, |
WCharCP | inBuffer, | ||
int | conversionType | ||
) |
Scans the input string for fractions and/or character escape sequences (determined by conversionType), turning them into single characters as allowed by the active font.
StatusInt mdlText_create | ( | MSElementP | out, |
MSElementCP | in, | ||
WCharCP | string, | ||
DPoint3dCP | userOrigin, | ||
RotMatrixCP | trans, | ||
DgnPlatform::TextSizeParam const * | textSize, | ||
DgnPlatform::TextParamWide const * | textParam, | ||
TextEDParamCP | edParam, | ||
DgnModelRefP | modelRef | ||
) |
Creates a text element from constituent data.
int mdlText_expandString | ( | WStringR | outBuffer, |
WCharCP | inBuffer, | ||
int | conversionType | ||
) |
Scans the input string for single-character fractions and/or escape sequences (determined by conversionType), turning them into font-agnostic representations that can be round-tripped with a "compress" function.
int mdlText_expandTabs | ( | WStringR | outstring, |
WCharCP | instring, | ||
int | tabInterval | ||
) |
Replaces tab characters with space characters, attempting to preserve alignment by inserting the appropriate number of spaces.
This is only meaningful for fixed-width fonts.
int mdlText_extract | ( | WStringP | wString, |
DPoint3dP | origin, | ||
DPoint3dP | userOrigin, | ||
RotMatrixP | rotMatrix, | ||
DgnPlatform::TextSizeParam * | textSize, | ||
DgnPlatform::TextParamWide * | textParam, | ||
TextEDParamP | edParam, | ||
MSElementCP | in | ||
) |
Gets formatting information and text content from the provided text element.
void mdlText_extractFontStyle | ( | MSElementCP | u, |
DgnPlatform::TextStyleInfo * | tfs | ||
) |
Gets formatting information from the provided text element.
int mdlText_extractShape | ( | Dpoint3d | rPoints[5], |
DPoint3dP | rOrigin, | ||
MSElementCP | in, | ||
int | addSnaptol, | ||
int | view | ||
) |
Computes fitted box points around a text element.
int mdlText_extractString | ( | WStringR | wString, |
MSElementCP | el | ||
) |
Gets text content from the provided text element.
int mdlText_extractStringsFromDscr | ( | WStringR | buffer, |
MSElementDescrP | in | ||
) |
Gets the concatenation of all strings in a text node.
StatusInt mdlText_extractW | ( | WCharP | string, |
DPoint3dP | origin, | ||
DPoint3dP | userOrigin, | ||
RotMatrixP | rotMatrix, | ||
DgnPlatform::TextSizeParam * | textSize, | ||
DgnPlatform::TextParamWide * | textParam, | ||
TextEDParamP | edParam, | ||
MSElementDescrP | ed | ||
) |
Gets formatting and text data from the provided text element.
int mdlText_getElementDescr | ( | MSElementDescrH | outEdPP, |
DgnPlatform::Text_2d * | pTextElm, | ||
RotMatrixP | viewRMatrixP | ||
) |
Drops a text (or text node) element to geometry.
If the text was view independent, and an orientation is provided, the resulting geometry will be transformed to that orientation.
int mdlText_getElementDescrWithModelRef | ( | MSElementDescrH | outEdPP, |
DgnPlatform::Text_2d * | pTextElm, | ||
RotMatrixP | viewRMatrixP, | ||
DgnModelRefP | modelRef | ||
) |
Drops a text (or text node) element to geometry.
If the text was view independent, and an orientation is provided, the resulting geometry will be transformed to that orientation.
int mdlText_getFontInfo | ( | DgnPlatform::TextFontInfo * | tfiP, |
UInt32 | fontNum | ||
) |
Determines if a font by that number already exists.
RSC fonts will be found regardless of use in the file; SHX and TrueType fonts will only be found if they've already been used in the file.
int mdlText_nodeFromText | ( | DgnPlatform::Text_node_2d * | nodeTemplate, |
DgnPlatform::Text_2d * | textTemplate | ||
) |
Creates a text node template from a text element.
StatusInt mdlText_nodeFromTextExt | ( | DgnPlatform::Text_node_2d * | nodeTemplate, |
DgnPlatform::Text_2d * | textTemplate, | ||
int * | pNodeNumber | ||
) |
Creates a text node template element from a text element.
void mdlText_setTextParamWideCodePage | ( | DgnPlatform::TextParamWide * | textParamWide, |
LangCodePage | codePage | ||
) |
Sets the code page (and associated flag) on a TextParamWide structure.
StatusInt mdlText_strokeToElementDescr | ( | MSElementDescrH | outEdPP, |
MSElementDescrP | pTextOrNodeElmDscr, | ||
RotMatrixP | viewRMatrixP, | ||
DgnModelRefP | modelRef | ||
) |
Drops a text (or text node) element to geometry.
If the text was view independent, and an orientation is provided, the resulting geometry will be transformed to that orientation.
int mdlText_textFromNode | ( | MSElementP | pElementOut, |
MSElementCP | elementIn | ||
) |
Creates a text element template from a text node.
int mdlTextNode_create | ( | MSElementP | pElementOut, |
MSElementP | pTemplateElement, | ||
DPoint3dP | dOrigin, | ||
RotMatrixP | rotMatrix, | ||
double * | lineSpacing, | ||
DgnPlatform::MSTextSize * | size, | ||
DgnPlatform::TextParam * | txtParams | ||
) |
Creates a blank text node element.
int mdlTextNode_createEx | ( | MSElementDescrH | nodeDescrPP, |
MSElementP | nodeTemplate, | ||
MSElementDescrP | textEdp, | ||
DPoint3dP | dOrigin, | ||
RotMatrixP | rotMatrix, | ||
DgnPlatform::TextSizeParam * | sizeParam, | ||
DgnPlatform::TextParamWide * | txtParams | ||
) |
Creates a text node element, and appends the contents of the chain of text elements provided.
int mdlTextNode_createWide | ( | MSElementP | out, |
MSElementP | in, | ||
DPoint3dP | userOrigin, | ||
RotMatrixP | rotMatrix, | ||
DgnPlatform::TextSizeParam * | size, | ||
DgnPlatform::TextParamWide * | txtParams | ||
) |
Creates a blank text node element.
StatusInt mdlTextNode_createWithStrings | ( | MSElementDescrH | nodeDescrPP, |
MSElementCP | nodeTemplate, | ||
bvector< WString > const & | , | ||
DPoint3dCP | userOrigin, | ||
RotMatrixCP | rotMatrix, | ||
DgnPlatform::TextSizeParam const * | sizeParam, | ||
DgnPlatform::TextParamWide const * | txtParams, | ||
TextEDParamCP | textEDParam | ||
) |
Creates a text node with the provided strings, inserting a paragraph break between each one.
StatusInt mdlTextNode_extract | ( | DPoint3dP | userOrigin, |
RotMatrixP | rotMatrix, | ||
DgnPlatform::MSTextSize * | tileSize, | ||
double * | lineSpacing, | ||
DgnPlatform::TextParam * | txtParams, | ||
int * | nodeNumber, | ||
MSElementCP | in, | ||
MSElementDescrCP | edP | ||
) |
Gets formatting from the provided text node.
The formatting stored in the node may or may not actually be used to display the child text elements. The actual display of text is governed by the formatting stored on the individual child text elements.
StatusInt mdlTextNode_extractShape | ( | Dpoint3d | rPoints[5], |
DPoint3dP | rOrigin, | ||
MSElementDescrP | edP, | ||
int | addsnaptol, | ||
int | view | ||
) |
Computes fitted box points around a text node.
int mdlTextNode_extractWide | ( | DPoint3dP | userOrigin, |
RotMatrixP | rotMatrix, | ||
DgnPlatform::TextSizeParam * | txtSizeParam, | ||
DgnPlatform::TextParamWide * | txtParams, | ||
MSElementCP | in, | ||
MSElementDescrCP | edP | ||
) |
Gets formatting from the provided text node.
The formatting stored in the node may or may not actually be used to display the child text elements. The actual display of text is governed by the formatting stored on the individual child text elements.