Typedefs | |
typedef StatusInt(* | MlineStyleTraverseFunctionP )(bool *pMayContinue, MlineStyleConstP mlineStyle, WCharCP pName, CallbackArgP pUserData) |
Callback function specified to mdlMlineStyle_traverse. More... | |
Functions | |
StatusInt | mdlMlineStyle_add (MlineStyleP mlineStyle, DgnModelRefP modelRef) |
Creates a new multi-line style in the file. More... | |
StatusInt | mdlMlineStyle_replace (MlineStyleP mlineStyle, WCharCP pStyleName, DgnModelRefP modelRef) |
Replaces a current multi-line style definition in the file. More... | |
StatusInt | mdlMlineStyle_delete (WCharCP pStyleName, DgnModelRefP modelRef) |
Deletes a multi-line from the model by name. More... | |
MlineStyleP | mdlMlineStyleP_getActive () |
Gets a pointer to the active style. More... | |
void | mdlMlineStyleP_free (MlineStyleP *ppMlineStyle) |
Frees the resources for a multi-line style. More... | |
MlineStyleP | mdlMlineStyleP_create () |
Allocate resources for a multi-line style. More... | |
StatusInt | mdlMlineStyle_traverse (MlineStyleTraverseFunctionP pCallbackFunc, CallbackArgP pCallbackData, DgnModelRefP sourceModelRef, UInt32 options) |
Traverse all multi-line styles in the selected files. More... | |
StatusInt | mdlMlineStyleP_getByName (MlineStyleP mlineStyle, WCharCP pStyleName, DgnModelRefP preferredModelRef, UInt32 options) |
Get a multi-line style by name. More... | |
StatusInt | mdlMlineStyleP_copy (MlineStyleP destStyle, MlineStyleConstP sourceStyle) |
Copy all style data from one style to another. More... | |
DgnPlatform::ElementId | mdlMlineStyleP_getStyleId (MlineStyleConstP mlineStyle) |
Get the style Id for the multi-line style. More... | |
bool | mdlMlineStyleP_isUsed (MlineStyleP mlineStyle, DgnModelRefP modelRef, UInt32 obsolete) |
Determine if a style is used. More... | |
DgnModelRefP | mdlMlineStyleP_getModelRef (MlineStyleConstP mlineStyle) |
Get the model ref for the multi-line style. More... | |
StatusInt | mdlMlineStyleP_changeToModel (MlineStyleP mlineStyle, DgnModelRefP destModelRef) |
Changes the multi-line style to be in the context of a different model. More... | |
MlineStyleP | mdlMlineStyleAsynch_getNew (MlineStyleAsynchP asynchData) |
Get the new multi-line style from the asynch message. More... | |
MlineStyleP | mdlMlineStyleAsynch_getOld (MlineStyleAsynchP asynchData) |
Get the old multi-line style from the asynch message. More... | |
DgnModelRefP | mdlMlineStyleAsynch_getModelRef (MlineStyleAsynchP asynchData) |
Get the model ref from the asynch message. More... | |
StatusInt | mdlMlineStyleP_setActive (MlineStyleP mlineStyle) |
Set the currently active multi-line style based on the style provided. More... | |
StatusInt | mdlMlineStyleP_getName (MlineStyleConstP mlineStyle, WCharP pName, int bufferSize) |
Get the name of the current active line style. More... | |
StatusInt | mdlMlineStyleP_setName (MlineStyleP mlineStyle, WCharCP pName) |
Set the name of the current active line style. More... | |
double | mdlMlineStyleP_getOrgAngle (MlineStyleConstP mlineStyle) |
Get the origin angle of the currently active multi-line style. More... | |
void | mdlMlineStyleP_setOrgAngle (MlineStyleP mlineStyle, double value) |
Set the origin or start angle of the currently active multi-line style. More... | |
double | mdlMlineStyleP_getEndAngle (MlineStyleConstP mlineStyle) |
Get the end angle of the currently active multi-line style. More... | |
void | mdlMlineStyleP_setEndAngle (MlineStyleP mlineStyle, double value) |
Set the end angle of the currently active multi-line style. More... | |
UInt32 | mdlMlineStyleP_getFillColor (MlineStyleConstP mlineStyle) |
Get fill color of the currently active multi-line style. More... | |
void | mdlMlineStyleP_setFillColor (MlineStyleP mlineStyle, UInt32 value) |
Set the fill color of the currently active multi-line style. More... | |
bool | mdlMlineStyleP_isFilled (MlineStyleConstP mlineStyle) |
Get the fill status of the currently active multi-line style. More... | |
void | mdlMlineStyleP_setFilled (MlineStyleP mlineStyle, bool value) |
Set fill status of the currently active multi-line style. More... | |
int | mdlMlineStyleP_getNumProfiles (MlineStyleConstP mlineStyle) |
Get the number of lines or profiles in the currently active multi-line style. More... | |
void | mdlMlineStyleP_getOrgCap (MlineStyleConstP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Get a copy of the origin cap symbology and line style information for a multi-line style. More... | |
void | mdlMlineStyleP_setOrgCap (MlineStyleP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Modify the origin cap symbology and line style information for a multi-line style. More... | |
void | mdlMlineStyleP_getEndCap (MlineStyleConstP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Get a copy of the end cap symbology and line style information for a multi-line style. More... | |
void | mdlMlineStyleP_setEndCap (MlineStyleP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Modify the end cap symbology and line style information for a multi-line style. More... | |
void | mdlMlineStyleP_getMidCap (MlineStyleConstP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Get a copy of the mid cap (joint) symbology and line style information for a multi-line style. More... | |
void | mdlMlineStyleP_setMidCap (MlineStyleP mlineStyle, DgnPlatform::MlineSymbology *capSymbology, DgnPlatform::LineStyleInfo *lineStyle) |
Modify the mid cap (joint) symbology and line style information for a multi-line style. More... | |
StatusInt | mdlMlineStyleP_getProfile (MlineStyleConstP mlineStyle, DgnPlatform::MlineProfile *pProfile, DgnPlatform::LineStyleInfo *pLineStyleInfo, int profileNum) |
Get a copy of a specific profile from a multi-line style. More... | |
StatusInt | mdlMlineStyleP_replaceProfile (MlineStyleP mlineStyle, DgnPlatform::MlineProfile *newProfile, DgnPlatform::LineStyleInfo *newLineStyleInfo, int location) |
Overwrite an existing profile. More... | |
StatusInt | mdlMlineStyleP_insertProfile (MlineStyleP mlineStyle, DgnPlatform::MlineProfile *newProfile, DgnPlatform::LineStyleInfo *newLineStyleInfo, int profileNumber) |
Insert a profile at the specified index. More... | |
void | mdlMlineStyleP_removeProfile (MlineStyleP mlineStyle, int lineNo) |
Delete a profile line. More... | |
void | mdlMlineStyleP_clearProfiles (MlineStyleP mlineStyle) |
Empty the profile list by setting the number of lines to 0. More... | |
int | mdlMlineStyleP_getLineStyleModifiers (MlineStyleConstP mlineStyle, int styleNum) |
Gets the line style modifiers for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setLineStyleModifiers (MlineStyleP mlineStyle, int styleNum, int value) |
Sets the line style modifiers for the multi-line style at the given index. More... | |
double | mdlMlineStyleP_getLineStyleScale (MlineStyleConstP mlineStyle, int styleNum) |
Gets the line style scale for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setLineStyleScale (MlineStyleP mlineStyle, int styleNum, double value) |
Sets the line style scale for the multi-line style at the given index. More... | |
double | mdlMlineStyleP_getLineStyleShift (MlineStyleConstP mlineStyle, int styleNum) |
Gets the line style shift for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setLineStyleShift (MlineStyleP mlineStyle, int styleNum, int value) |
Sets the line style shift for the multi-line style at the given index. More... | |
double | mdlMlineStyleP_getLineStyleStartWidth (MlineStyleConstP mlineStyle, int styleNum) |
Gets the line style start width for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setLineStyleStartWidth (MlineStyleP mlineStyle, int styleNum, int value) |
Set the line style start width for the multi-line style at the given index. More... | |
double | mdlMlineStyleP_getLineStyleEndWidth (MlineStyleConstP mlineStyle, int styleNum) |
Get the line style end width for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setLineStyleEndWidth (MlineStyleP mlineStyle, int styleNum, int value) |
Set the line style end width for the multi-line style at the given index. More... | |
double | mdlMlineStyleP_getProfileDist (MlineStyleConstP mlineStyle, int profileNum) |
Get the line style profile distance for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setProfileDist (MlineStyleP mlineStyle, int profileNum, double dist) |
Set the line style profile distance for the multi-line style at the given index. More... | |
int | mdlMlineStyleP_getProfileSymb (MlineStyleConstP mlineStyle, int profileNum, int item) |
Get one of the flags from the line style profile symbology for the multi-line style at the given index. More... | |
StatusInt | mdlMlineStyleP_setProfileSymb (MlineStyleP mlineStyle, int profileNum, int item, int value) |
Sets a flag in the line style profile symbology for the multi-line style at the given index. More... | |
bool | mdlMlineStyle_getCompatible () |
Get the compatible flag for multi-lines. More... | |
void | mdlMlineStyle_setCompatible (bool value) |
Set the compatible flag for multi-lines. More... | |
bool | mdlMlineStyle_getScaleOffset () |
Get the current scale offset status. More... | |
void | mdlMlineStyle_setScaleOffset (bool value) |
Set the current scale offset status. More... | |
DgnPlatform::MlineOffsetMode | mdlMlineStyle_getOffsetMode () |
Get the offset mode for placing the multi-line. More... | |
void | mdlMlineStyle_setOffsetMode (DgnPlatform::MlineOffsetMode value) |
Set the offset mode for multi-line placement. More... | |
bool | mdlMlineStyle_getMirrorOffset () |
Get mirror offset status. More... | |
void | mdlMlineStyle_setMirrorOffset (bool value) |
Set mirror offset status. More... | |
StatusInt | mdlMlineStyle_getNameListModel (ListModel *pListModel, DgnModelRefP sourceModelRef, UInt32 options) |
Fills a list model of multi-line styles. More... | |
typedef StatusInt(* MlineStyleTraverseFunctionP)(bool *pMayContinue, MlineStyleConstP mlineStyle, WCharCP pName, CallbackArgP pUserData) |
Callback function specified to mdlMlineStyle_traverse.
[out] | pMayContinue | Set to false to stop traversal. |
[in] | mlineStyle | Current multi-line style in traversal. |
[in] | pName | Name of mlineStyle for convenience. |
[in] | pUserData | user data specified to mdlMlineStyle_traverse. |
StatusInt mdlMlineStyle_add | ( | MlineStyleP | mlineStyle, |
DgnModelRefP | modelRef | ||
) |
Creates a new multi-line style in the file.
[in] | mlineStyle | The style to add. |
[in] | modelRef | The model to which the style should be added. |
StatusInt mdlMlineStyle_delete | ( | WCharCP | pStyleName, |
DgnModelRefP | modelRef | ||
) |
Deletes a multi-line from the model by name.
[in] | pStyleName | The name of the style to delete. |
[in] | modelRef | The model containing the style. |
bool mdlMlineStyle_getCompatible | ( | ) |
Get the compatible flag for multi-lines.
"Compatible" means that the multi-line will be IGDS compatible (once it is saved as V7) because component elements will be created rather than a multi-line element.
bool mdlMlineStyle_getMirrorOffset | ( | ) |
Get mirror offset status.
The mirror offset flag determines if the offsets of the multi-line should be mirrored when the element is mirrored.
StatusInt mdlMlineStyle_getNameListModel | ( | ListModel * | pListModel, |
DgnModelRefP | sourceModelRef, | ||
UInt32 | options | ||
) |
Fills a list model of multi-line styles.
The values of the cells are the style's names. You should use mdlListModel_create to create a list model. The first column will be filled by this function. Any additional columns will be ignored.
[in,out] | pListModel | A list model that has already been created. |
[in] | sourceModelRef | Specifies a model ref from the file to get a style list from; can be NULL. |
[in] | options | Used to specify additional options for the traversal. Built up by bitwise ORing the constants described below. Pass zero to get names for the preferred file only. |
MLSTYLE_NAMELIST_StyleNone
- Add style (None) at the top of the list MLSTYLE_NAMELIST_StylesOnly
- Do not add style (None) at the top of the list MLSTYLE_NAMELIST_ActiveModel
- Get styles from the active model. MLSTYLE_NAMELIST_DgnLibs
- Get all styles from attached DGNLIBs. MLSTYLE_NAMELIST_BoldIfLocal
- Make all styles in the current file Bold. MLSTYLE_NAMELIST_UseSortFunc
- Add the default sort function, which is lexicographic but keeps style (None) at the top of the list. MLSTYLE_TRAVERSE_DEFAULT
- Traverse master file and dgnlibs, bold local, and add the sort function. Style (None) is controlled by capability. DgnPlatform::MlineOffsetMode mdlMlineStyle_getOffsetMode | ( | ) |
Get the offset mode for placing the multi-line.
The offset mode determines the relationship of the multi-line offsets to the work line. See mdlMlineStyle_setOffsetMode for more description.
bool mdlMlineStyle_getScaleOffset | ( | ) |
Get the current scale offset status.
This switch determines if scaling the multi-line will make it wider. If true, then the offsets will scale, making the multi-line wider as well as longer. If false, the base line will change size, but the applied multi-line will remain the same size.
StatusInt mdlMlineStyle_replace | ( | MlineStyleP | mlineStyle, |
WCharCP | pStyleName, | ||
DgnModelRefP | modelRef | ||
) |
Replaces a current multi-line style definition in the file.
[in] | mlineStyle | The style to use as a replacement. |
[in] | pStyleName | The name of the style to replace; this is necessary if renaming a style. Pass NULL to use the name from the style. |
[in] | modelRef | The model containing the style. |
void mdlMlineStyle_setCompatible | ( | bool | value | ) |
Set the compatible flag for multi-lines.
"Compatible" means that the multi-line will be IGDS compatible (once it is saved in V7) because component elements will be created rather than a multi-line element.
[in] | value | The new compatible value, true or false |
void mdlMlineStyle_setMirrorOffset | ( | bool | value | ) |
Set mirror offset status.
The mirror offset flag determines if the offsets of the multi-line should be mirrored when the element is mirrored.
[in] | value | The new mirror offset flag value, true or false. |
void mdlMlineStyle_setOffsetMode | ( | DgnPlatform::MlineOffsetMode | value | ) |
Set the offset mode for multi-line placement.
The offset mode determines the location of the multi-line relative to the work line. The default value, 0, will place the multi-line at offset 0. A value of 1 will place the multi-line so that the work line is in the center of the multi-line, regardless of the offsets. 2 will place the multi-line so that the work line is at the maximum offset, and 3 will place the multi-line so that it is at the minimum offset.
[in] | value | The new offset mode value, 0-3. |
void mdlMlineStyle_setScaleOffset | ( | bool | value | ) |
Set the current scale offset status.
This switch determines if scaling the multi-line will make it wider. If true, then the offsets will scale, making the multi-line wider as well as longer. If false, the base line will change size, but the applied multi-line will remain the same size.
[in] | value | The new scale offset value, true or false |
StatusInt mdlMlineStyle_traverse | ( | MlineStyleTraverseFunctionP | pCallbackFunc, |
CallbackArgP | pCallbackData, | ||
DgnModelRefP | sourceModelRef, | ||
UInt32 | options | ||
) |
Traverse all multi-line styles in the selected files.
[in] | pCallbackFunc | User specified callback function that will be called for each multi-line style found during the traversal. | ||||||
[in] | pCallbackData | User data passed to pCallbackFunc. | ||||||
[in] | sourceModelRef | The preferred file for traversal. If specified, the styles in this file with be traversed first. It can be NULL. | ||||||
[in] | options | Used to specify additional files for the traversal. Built up by bitwise ORing the constants described below. Pass zero to traverse the preferred file only.
|
DgnModelRefP mdlMlineStyleAsynch_getModelRef | ( | MlineStyleAsynchP | asynchData | ) |
Get the model ref from the asynch message.
[in] | asynchData | The data pointer passed to the asynch function. |
MlineStyleP mdlMlineStyleAsynch_getNew | ( | MlineStyleAsynchP | asynchData | ) |
Get the new multi-line style from the asynch message.
Several of the multi-line changing asynch calls involve 2 model refs, such as MLINESTYLE_PreChange and MLINESTYLE_UndoModify. In this case, the new style is the one after the change. For add messages, this is the style about to be added. For delete messages, this function will return NULL.
[in] | asynchData | The data pointer passed to the asynch function. |
MlineStyleP mdlMlineStyleAsynch_getOld | ( | MlineStyleAsynchP | asynchData | ) |
Get the old multi-line style from the asynch message.
Several of the multi-line changing asynch calls involve 2 model refs, such as MLINESTYLE_PreChange and MLINESTYLE_UndoModify. In this case, the old style is the one before the change. For delete messages, this is the style about to be deleted. For add messages, this function will return NULL.
[in] | asynchData | The data pointer passed to the asynch function. |
StatusInt mdlMlineStyleP_changeToModel | ( | MlineStyleP | mlineStyle, |
DgnModelRefP | destModelRef | ||
) |
Changes the multi-line style to be in the context of a different model.
This is the equivalent of doing an mdlElmdscr_copy on the element, so any needed levels, styles, etc. will be copied into the destination model. Also the units conversion will occur for True Scale.
[in] | mlineStyle | The multi-line style to convert |
[in] | destModelRef | The destination model. |
void mdlMlineStyleP_clearProfiles | ( | MlineStyleP | mlineStyle | ) |
Empty the profile list by setting the number of lines to 0.
It also clears all profile memory.
[in] | mlineStyle | The style to work on. |
StatusInt mdlMlineStyleP_copy | ( | MlineStyleP | destStyle, |
MlineStyleConstP | sourceStyle | ||
) |
Copy all style data from one style to another.
[in,out] | destStyle | The style to which the data should be copied. It should be created with a call to mdlMlineStyleP_create. |
[in] | sourceStyle | The style from which data should be copied. |
MlineStyleP mdlMlineStyleP_create | ( | ) |
Allocate resources for a multi-line style.
void mdlMlineStyleP_free | ( | MlineStyleP * | ppMlineStyle | ) |
Frees the resources for a multi-line style.
Nulls the pointer.
[in] | ppMlineStyle | A pointer to a multi-line style. If the style is NULL, then nothing is done and the function returns. |
MlineStyleP mdlMlineStyleP_getActive | ( | ) |
Gets a pointer to the active style.
This should not be freed.
StatusInt mdlMlineStyleP_getByName | ( | MlineStyleP | mlineStyle, |
WCharCP | pStyleName, | ||
DgnModelRefP | preferredModelRef, | ||
UInt32 | options | ||
) |
Get a multi-line style by name.
[out] | mlineStyle | The style to which the data should be copied. It should be created with a call to mdlMlineStyleP_create. All data will be overwritten. | ||||||
[in] | pStyleName | The name of the style to get. | ||||||
[in] | preferredModelRef | The modelRef to look in for the style. This can be NULL. | ||||||
[in] | options | Flag that controls where to search for the style. The flag can contain any of the following values bitwise OR'd together.
|
double mdlMlineStyleP_getEndAngle | ( | MlineStyleConstP | mlineStyle | ) |
Get the end angle of the currently active multi-line style.
[in] | mlineStyle | The style to get the information from. |
void mdlMlineStyleP_getEndCap | ( | MlineStyleConstP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Get a copy of the end cap symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to get the information from. |
[in] | capSymbology | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in line style information. |
[in] | lineStyle | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in symbology information. |
UInt32 mdlMlineStyleP_getFillColor | ( | MlineStyleConstP | mlineStyle | ) |
Get fill color of the currently active multi-line style.
[in] | mlineStyle | The style to get the information from. |
double mdlMlineStyleP_getLineStyleEndWidth | ( | MlineStyleConstP | mlineStyle, |
int | styleNum | ||
) |
Get the line style end width for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to get the end width for. |
int mdlMlineStyleP_getLineStyleModifiers | ( | MlineStyleConstP | mlineStyle, |
int | styleNum | ||
) |
Gets the line style modifiers for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to get the modifiers for. |
double mdlMlineStyleP_getLineStyleScale | ( | MlineStyleConstP | mlineStyle, |
int | styleNum | ||
) |
Gets the line style scale for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to get the scale for. |
double mdlMlineStyleP_getLineStyleShift | ( | MlineStyleConstP | mlineStyle, |
int | styleNum | ||
) |
Gets the line style shift for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to get the shift for. |
double mdlMlineStyleP_getLineStyleStartWidth | ( | MlineStyleConstP | mlineStyle, |
int | styleNum | ||
) |
Gets the line style start width for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to get the start width for. |
void mdlMlineStyleP_getMidCap | ( | MlineStyleConstP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Get a copy of the mid cap (joint) symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to get the information from. |
[in] | capSymbology | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in line style information. |
[in] | lineStyle | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in symbology information. |
DgnModelRefP mdlMlineStyleP_getModelRef | ( | MlineStyleConstP | mlineStyle | ) |
Get the model ref for the multi-line style.
[in] | mlineStyle | The style to get the model ref from. |
StatusInt mdlMlineStyleP_getName | ( | MlineStyleConstP | mlineStyle, |
WCharP | pName, | ||
int | bufferSize | ||
) |
Get the name of the current active line style.
[in] | mlineStyle | The style to get the name from. |
[out] | pName | A buffer to copy the style name into. |
[in] | bufferSize | The number of wide characters in the pName buffer. |
int mdlMlineStyleP_getNumProfiles | ( | MlineStyleConstP | mlineStyle | ) |
Get the number of lines or profiles in the currently active multi-line style.
[in] | mlineStyle | The multi-line style. |
double mdlMlineStyleP_getOrgAngle | ( | MlineStyleConstP | mlineStyle | ) |
Get the origin angle of the currently active multi-line style.
[in] | mlineStyle | The style to get the information from. |
void mdlMlineStyleP_getOrgCap | ( | MlineStyleConstP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Get a copy of the origin cap symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to get the information from. |
[in] | capSymbology | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in line style information. |
[in] | lineStyle | A pointer to a structure into which the symbology will be copied. It can be NULL if only interested in symbology information. |
StatusInt mdlMlineStyleP_getProfile | ( | MlineStyleConstP | mlineStyle, |
DgnPlatform::MlineProfile * | pProfile, | ||
DgnPlatform::LineStyleInfo * | pLineStyleInfo, | ||
int | profileNum | ||
) |
Get a copy of a specific profile from a multi-line style.
[in] | mlineStyle | The style to work on. |
[in] | pProfile | Pointer to buffer to hold a copy of the profile. This can be NULL if not interested in the profile information. |
[in] | pLineStyleInfo | Custom line style information to insert; can be NULL if not interested in line style information. |
[in] | profileNum | Index of profile desired. |
double mdlMlineStyleP_getProfileDist | ( | MlineStyleConstP | mlineStyle, |
int | profileNum | ||
) |
Get the line style profile distance for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | profileNum | The index of the multi-line profile to get the profile distance for. |
int mdlMlineStyleP_getProfileSymb | ( | MlineStyleConstP | mlineStyle, |
int | profileNum, | ||
int | item | ||
) |
Get one of the flags from the line style profile symbology for the multi-line style at the given index.
This function was added for MicroStation Basic where accessing the data by structure is not possible. The possible items are:
Item | Description |
---|---|
MLINESTYLE_USECLASS | true if the class in CONCLASS should be used. |
MLINESTYLE_CONCLASS | true for construction class; false for primary class. |
MLINESTYLE_CAPLINE | true if cap lines are turned on for origin/end/joint (only applies to cap symbology). |
MLINESTYLE_CAPOUTARC | true if cap outer arcs are turned on for origin/end (only applies to cap symbology). |
MLINESTYLE_CAPINARC | true if cap inner arcs are turned on for origin/end (only applies to cap symbology). |
MLINESTYLE_USECOLOR | true if the color in MLINESTYLE_COLOR should be used. false means to use value from multi-line element. |
MLINESTYLE_COLOR | Color for this profile. Return should be cast to UInt32. |
MLINESTYLE_USEWEIGHT | true if the weight in MLINESTYLE_WEIGHT should be used. false means to use value from multi-line element. |
MLINESTYLE_WEIGHT | Weight for this profile. Return should be cast to UInt32. |
MLINESTYLE_USESTYLE | true if the line style in MLINESTYLE_STYLE should be used. false means to use value from multi-line element. |
MLINESTYLE_STYLE | Linestyle for this profile. Return should be cast to long. |
MLINESTYLE_CUSTOMSTYLE | true if there is additional custom line style data. |
MLINESTYLE_LEVEL | Level for this profile. Return should be cast to UInt32. 0 means to use level from enclosing multi-line element. |
[in] | mlineStyle | The style to work on. |
[in] | profileNum | the index of the multi-line profile to get the profile symbology for. |
[in] | item | DgnPlatform::Symbology item of interest (see list). |
DgnPlatform::ElementId mdlMlineStyleP_getStyleId | ( | MlineStyleConstP | mlineStyle | ) |
Get the style Id for the multi-line style.
The Id is what is stored on the multi-line element.
[in] | mlineStyle | The style to get the Id from. |
StatusInt mdlMlineStyleP_insertProfile | ( | MlineStyleP | mlineStyle, |
DgnPlatform::MlineProfile * | newProfile, | ||
DgnPlatform::LineStyleInfo * | newLineStyleInfo, | ||
int | profileNumber | ||
) |
Insert a profile at the specified index.
All following lines will be moved up one index.
[in] | mlineStyle | The style to work on. |
[in] | newProfile | Profile to insert. |
[in] | newLineStyleInfo | Custom line style information to insert; can be NULL if there is no custom style information for this profile. |
[in] | profileNumber | Index in array to add the line; a value of -1 means to append the profile to the end. |
bool mdlMlineStyleP_isFilled | ( | MlineStyleConstP | mlineStyle | ) |
Get the fill status of the currently active multi-line style.
[in] | mlineStyle | The style to get the information from. |
bool mdlMlineStyleP_isUsed | ( | MlineStyleP | mlineStyle, |
DgnModelRefP | modelRef, | ||
UInt32 | obsolete | ||
) |
Determine if a style is used.
[in] | mlineStyle | The style to test. |
[in] | modelRef | A model ref in the file to search. |
[in] | obsolete | This is no longer used. The entire file is always checked. |
void mdlMlineStyleP_removeProfile | ( | MlineStyleP | mlineStyle, |
int | lineNo | ||
) |
Delete a profile line.
All following lines will be moved down one index.
[in] | mlineStyle | The style to work on. |
[in] | lineNo | Index in array of line to delete. |
StatusInt mdlMlineStyleP_replaceProfile | ( | MlineStyleP | mlineStyle, |
DgnPlatform::MlineProfile * | newProfile, | ||
DgnPlatform::LineStyleInfo * | newLineStyleInfo, | ||
int | location | ||
) |
Overwrite an existing profile.
[in] | mlineStyle | The style to work on. |
[in] | newProfile | Profile to use as replacement; can be Null to replace line style information only. |
[in] | newLineStyleInfo | Custom line style information to insert; can be NULL to replace profile only. |
[in] | location | Index of the profile to replace. |
StatusInt mdlMlineStyleP_setActive | ( | MlineStyleP | mlineStyle | ) |
Set the currently active multi-line style based on the style provided.
[in] | mlineStyle | A multi-line style. |
void mdlMlineStyleP_setEndAngle | ( | MlineStyleP | mlineStyle, |
double | value | ||
) |
Set the end angle of the currently active multi-line style.
[in] | mlineStyle | The style to set the value in. |
[in] | value | The new value for the end angle, in radians. |
void mdlMlineStyleP_setEndCap | ( | MlineStyleP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Modify the end cap symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to set the information in. |
[in] | capSymbology | The symbology to set for the end cap; can be NULL to leave the current cap symbology. |
[in] | lineStyle | Custom line style information to set for the end cap; can be NULL to leave the current cap line style information. |
void mdlMlineStyleP_setFillColor | ( | MlineStyleP | mlineStyle, |
UInt32 | value | ||
) |
Set the fill color of the currently active multi-line style.
[in] | mlineStyle | The style to set the value in. |
[in] | value | The new fill color. |
void mdlMlineStyleP_setFilled | ( | MlineStyleP | mlineStyle, |
bool | value | ||
) |
Set fill status of the currently active multi-line style.
[in] | mlineStyle | The style to set the value in. |
[in] | value | The new fill value, true or false. |
StatusInt mdlMlineStyleP_setLineStyleEndWidth | ( | MlineStyleP | mlineStyle, |
int | styleNum, | ||
int | value | ||
) |
Set the line style end width for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to set the end width for. |
[in] | value | The multi-line style end width value to set. |
StatusInt mdlMlineStyleP_setLineStyleModifiers | ( | MlineStyleP | mlineStyle, |
int | styleNum, | ||
int | value | ||
) |
Sets the line style modifiers for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to set the modifiers for. |
[in] | value | An integer containing the modifier flags to set |
StatusInt mdlMlineStyleP_setLineStyleScale | ( | MlineStyleP | mlineStyle, |
int | styleNum, | ||
double | value | ||
) |
Sets the line style scale for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to set the scale for. |
[in] | value | The multi-line style scale value to set. |
StatusInt mdlMlineStyleP_setLineStyleShift | ( | MlineStyleP | mlineStyle, |
int | styleNum, | ||
int | value | ||
) |
Sets the line style shift for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to set the shift for. |
[in] | value | The multi-line style shift value to set. |
StatusInt mdlMlineStyleP_setLineStyleStartWidth | ( | MlineStyleP | mlineStyle, |
int | styleNum, | ||
int | value | ||
) |
Set the line style start width for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | styleNum | The index of the multi-line profile number to set the start width for. |
[in] | value | The multi-line style start width value to set. |
void mdlMlineStyleP_setMidCap | ( | MlineStyleP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Modify the mid cap (joint) symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to set the information in. |
[in] | capSymbology | The symbology to set for the mid cap; can be NULL to leave the current cap symbology. |
[in] | lineStyle | Custom line style information to set for the mid cap; can be NULL to leave the current cap line style information. |
StatusInt mdlMlineStyleP_setName | ( | MlineStyleP | mlineStyle, |
WCharCP | pName | ||
) |
Set the name of the current active line style.
[in] | mlineStyle | The style to set the value in. |
[in] | pName | The new name for the style. |
void mdlMlineStyleP_setOrgAngle | ( | MlineStyleP | mlineStyle, |
double | value | ||
) |
Set the origin or start angle of the currently active multi-line style.
[in] | mlineStyle | The style to set the value in. |
[in] | value | The new value for the origin angle, in degrees measured from the work line. PI/2 is a perpendicular cap. |
void mdlMlineStyleP_setOrgCap | ( | MlineStyleP | mlineStyle, |
DgnPlatform::MlineSymbology * | capSymbology, | ||
DgnPlatform::LineStyleInfo * | lineStyle | ||
) |
Modify the origin cap symbology and line style information for a multi-line style.
[in] | mlineStyle | The style to set the information in. |
[in] | capSymbology | The symbology to set for the origin cap; can be NULL to leave the current cap symbology. |
[in] | lineStyle | Custom line style information to set for the origin cap; can be NULL to leave the current cap line style information. |
StatusInt mdlMlineStyleP_setProfileDist | ( | MlineStyleP | mlineStyle, |
int | profileNum, | ||
double | dist | ||
) |
Set the line style profile distance for the multi-line style at the given index.
[in] | mlineStyle | The style to work on. |
[in] | profileNum | The index of the multi-line profile to set the profile distance for. |
[in] | dist | The multi-line style profile distance value to set. |
StatusInt mdlMlineStyleP_setProfileSymb | ( | MlineStyleP | mlineStyle, |
int | profileNum, | ||
int | item, | ||
int | value | ||
) |
Sets a flag in the line style profile symbology for the multi-line style at the given index.
See mdlMlineStyleP_getProfileSymb for a description of the possible item values.
[in] | mlineStyle | The style to work on. |
[in] | profileNum | The index of the multi-line profile to set the profile symbology for. |
[in] | item | One of the "#defines" for the symbology item (see mdlMlineStyleP_getProfileSymb) |
[in] | value | The value of the item to set. |