CFx SDK Documentation
2022 SP0
|
#include <DbSectionViewStyle.h>
Protected Member Functions | |
virtual OdResult | dwgInFields (OdDbDwgFiler *pFiler) |
virtual void | dwgOutFields (OdDbDwgFiler *pFiler) const |
virtual OdResult | dxfInFields (OdDbDxfFiler *pFiler) |
virtual void | dxfOutFields (OdDbDxfFiler *pFiler) const |
Protected Member Functions inherited from OdDbModelDocViewStyle | |
OdDbModelDocViewStyle () | |
Protected Member Functions inherited from OdDbObject | |
OdDbObject () | |
virtual OdResult | subGetClassID (void *pClsid) const |
virtual OdDbObjectPtr | subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
virtual OdDbObjectPtr | subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
Protected Member Functions inherited from OdGiDrawable | |
OdGiDrawable () | |
virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
virtual OdUInt32 | subRegenSupportFlags () const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Types inherited from OdDbModelDocViewStyle | |
enum | { kCanRename = 1 } |
Protected Attributes inherited from OdDbObject | |
OdDbObjectImpl * | m_pImpl |
This class represents detail view style objects.
Corresponding C++ library: TD_Db <group OdDb_Classes>
Definition at line 38 of file DbSectionViewStyle.h.
Defines section view symbol arrowhead direction.
Enumerator | |
---|---|
kTowardsCuttingPlane | |
kAwayFromCuttingPlane |
Definition at line 57 of file DbSectionViewStyle.h.
Defines identifier position types.
Enumerator | |
---|---|
kEndCuttingPlane | |
kAboveDirectionArrowLine | |
kAboveDirectionArrowSymbol | |
kStartDirectionArrow | |
kEndDirectionArrow |
Definition at line 46 of file DbSectionViewStyle.h.
OdDbSectionViewStyle::OdDbSectionViewStyle | ( | ) |
Default constructor. Creates an OdDbSectionViewStyle instance.
OdDbSectionViewStyle::~OdDbSectionViewStyle | ( | ) |
OdDbObjectId OdDbSectionViewStyle::arrowEndSymbolId | ( | ) | const |
Returns the object ID of the arrow end symbol.
OdDbSectionViewStyle::ArrowDirection OdDbSectionViewStyle::arrowPosition | ( | ) | const |
Returns arrow position type for this OdDbSectionViewStyle object as an OdDbSectionViewStyle::ArrowDirection value.
OdDbObjectId OdDbSectionViewStyle::arrowStartSymbolId | ( | ) | const |
Returns the object ID of the arrow start symbol.
OdCmColor OdDbSectionViewStyle::arrowSymbolColor | ( | ) | const |
Returns the arrow symbol's color.
double OdDbSectionViewStyle::arrowSymbolExtensionLength | ( | ) | const |
Returns the arrow symbol's extension length.
double OdDbSectionViewStyle::arrowSymbolSize | ( | ) | const |
Returns the arrow symbol's size.
OdCmColor OdDbSectionViewStyle::bendLineColor | ( | ) | const |
Returns the bend line's color.
double OdDbSectionViewStyle::bendLineLength | ( | ) | const |
Returns the bend line's length.
OdDbObjectId OdDbSectionViewStyle::bendLineTypeId | ( | ) | const |
Returns the object ID of the bend line's linetype.
OdDb::LineWeight OdDbSectionViewStyle::bendLineWeight | ( | ) | const |
Returns the bend line's lineweight.
|
protectedvirtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbModelDocViewStyle.
|
protectedvirtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbModelDocViewStyle.
|
protectedvirtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbModelDocViewStyle.
|
protectedvirtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbModelDocViewStyle.
double OdDbSectionViewStyle::endLineLength | ( | ) | const |
Returns the end line's length.
double OdDbSectionViewStyle::endLineOvershoot | ( | ) | const |
Returns the end line's overshoot value.
Returns the view label's pattern.
pField (Optional) If the pattern uses fields, they are copied 'pField'.
const OdGeDoubleArray& OdDbSectionViewStyle::hatchAngles | ( | ) | const |
Returns the hatch's angle array as a pointer to an OdGeDoubleArray object.
OdCmColor OdDbSectionViewStyle::hatchBackgroundColor | ( | ) | const |
Returns the hatch's background color.
OdCmColor OdDbSectionViewStyle::hatchColor | ( | ) | const |
Returns the hatch's color.
OdString OdDbSectionViewStyle::hatchPattern | ( | ) | const |
Returns the hatch pattern.
double OdDbSectionViewStyle::hatchScale | ( | ) | const |
Returns the hatch's scale.
OdCmTransparency OdDbSectionViewStyle::hatchTransparency | ( | ) | const |
Returns the hatch's transparency as an OdCmTransparency object.
OdCmColor OdDbSectionViewStyle::identifierColor | ( | ) | const |
Returns the identifier's color.
OdString OdDbSectionViewStyle::identifierExcludeCharacters | ( | ) | const |
Returns the excluded characters that are specified for the identifier.
double OdDbSectionViewStyle::identifierHeight | ( | ) | const |
Returns the identifier's height.
OdDbObjectId OdDbSectionViewStyle::identifierStyleId | ( | ) | const |
Returns the object ID of the style assigned to the identifier.
bool OdDbSectionViewStyle::isContinuousLabeling | ( | ) | const |
Returns whether continuous labeling is enabled.
OdDbSectionViewStyle::ODDB_DECLARE_MEMBERS | ( | OdDbSectionViewStyle | ) |
OdCmColor OdDbSectionViewStyle::planeLineColor | ( | ) | const |
Returns the plane line's color.
OdDbObjectId OdDbSectionViewStyle::planeLineTypeId | ( | ) | const |
Returns the object ID of the plane line's linetype.
OdDb::LineWeight OdDbSectionViewStyle::planeLineWeight | ( | ) | const |
Returns the plane line's lineweight.
|
virtual |
Includes this view style object in a OdDbDatabase object.
pDb | [in] Pointer of the database to receive the OdDbModelDocViewStyle object. |
styleName | [in] Name of the view style. |
Implements OdDbModelDocViewStyle.
OdResult OdDbSectionViewStyle::setArrowEndSymbolId | ( | const OdDbObjectId & | arrowSymbolId | ) |
Sets the arrow end symbol to use a specified block.
OdResult OdDbSectionViewStyle::setArrowPosition | ( | OdDbSectionViewStyle::ArrowDirection | type | ) |
Sets section view symbol arrowhead direction for this OdDbSectionViewStyle object.
type | [in] Arrowhead direction. |
OdResult OdDbSectionViewStyle::setArrowStartSymbolId | ( | const OdDbObjectId & | arrowSymbolId | ) |
Sets the arrow start symbol to use a specified block.
Sets the arrow symbol's color.
OdResult OdDbSectionViewStyle::setArrowSymbolExtensionLength | ( | double | length | ) |
Sets the arrow symbol's extension length.
OdResult OdDbSectionViewStyle::setArrowSymbolSize | ( | double | size | ) |
Sets the arrow symbol's size.
Sets the bend line's color.
OdResult OdDbSectionViewStyle::setBendLineLength | ( | double | length | ) |
Sets the bend line's length.
OdResult OdDbSectionViewStyle::setBendLineTypeId | ( | const OdDbObjectId & | objId | ) |
Sets the bend line's linetype.
OdResult OdDbSectionViewStyle::setBendLineWeight | ( | OdDb::LineWeight | lineweight | ) |
Sets the bend line's lineweight.
OdResult OdDbSectionViewStyle::setContinuousLabeling | ( | bool | bValue | ) |
Sets whether continuous labeling is enabled or disabled.
bValue | [in] True if continuous labeling is to be enabled, false otherwise. |
OdResult OdDbSectionViewStyle::setEndLineLength | ( | double | length | ) |
Sets the end line's length.
OdResult OdDbSectionViewStyle::setEndLineOvershoot | ( | double | length | ) |
Sets the end line's overshoot value.
length | [in] Line's overshoot length. |
OdResult OdDbSectionViewStyle::setHatchAngles | ( | const OdGeDoubleArray & | angleArray | ) |
Sets the hatch's angle array.
angleArray | [in] Array of doubles to set hatch's angles used by section views. |
Sets the hatch's background color.
OdResult OdDbSectionViewStyle::setHatchScale | ( | double | scale | ) |
Sets the hatch's scale.
OdResult OdDbSectionViewStyle::setHatchTransparency | ( | const OdCmTransparency & | transparency | ) |
Sets the hatch's transparency.
transparency | [in] Transparency object to set hatch's transparency. |
Sets the identifier's color.
Sets the characters to exclude for the identifier.
str Characters to exclude, each separated by a comma.
OdResult OdDbSectionViewStyle::setIdentifierHeight | ( | double | height | ) |
Sets the identifier's height.
OdResult OdDbSectionViewStyle::setIdentifierStyleId | ( | const OdDbObjectId & | objId | ) |
Sets the identifier's text style.
ObjectId The ID of the text style for the identifier.
\returns OdDb::eOk if successful.
Sets the plane line's color.
OdResult OdDbSectionViewStyle::setPlaneLineTypeId | ( | const OdDbObjectId & | objId | ) |
Sets the plane line's linetype according to the linetype's object ID.
OdResult OdDbSectionViewStyle::setPlaneLineWeight | ( | OdDb::LineWeight | lineweight | ) |
Sets the plane line's lineweight.
OdResult OdDbSectionViewStyle::setShowAllBendIndentifiers | ( | bool | bValue | ) |
Sets whether identifiers at all bends are shown or not.
bValue | [in] True if identifiers at all bends are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setShowAllPlaneLines | ( | bool | bValue | ) |
Sets whether plane lines are shown or not.
bValue | [in] True if plane lines are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setShowArrowheads | ( | bool | bValue | ) |
Sets whether arrowheads are shown or not.
bValue | [in] True if arrowheads are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setShowEndAndBendLines | ( | bool | bValue | ) |
Sets whether end lines and bend lines are shown or not.
bValue | [in] True if end lines and bend lines are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setShowHatching | ( | bool | bValue | ) |
Sets whether hatches are shown or not.
bValue | [in] True if hatches are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setShowViewLabel | ( | bool | bValue | ) |
Sets whether view labels are shown or not.
bValue | [in] True if view labels are to be shown, false otherwise. |
OdResult OdDbSectionViewStyle::setViewIdentifierOffset | ( | double | offset | ) |
Sets view identifier offset.
offset | [in] View identifier offset. |
OdResult OdDbSectionViewStyle::setViewIdentifierPosition | ( | OdDbSectionViewStyle::IdentifierPosition | type | ) |
Sets view identifier position type.
type | [in] Identifier position type. |
OdResult OdDbSectionViewStyle::setViewLabelAlignment | ( | OdDbModelDocViewStyle::TextAlignment | alignment | ) |
Sets the view label's text alignment.
OdResult OdDbSectionViewStyle::setViewLabelAttachment | ( | OdDbModelDocViewStyle::AttachmentPoint | attachment | ) |
Sets the view label's attachment point.
OdResult OdDbSectionViewStyle::setViewLabelOffset | ( | double | offset | ) |
Sets the view label's offset.
OdResult OdDbSectionViewStyle::setViewLabelPattern | ( | const OdString & | pattern, |
const OdDbField * | pField = NULL |
||
) |
Sets the view label's pattern.
pattern Pattern to assign to the view label. pField (Optional) Specify a field to assign the pattern from the field (instead of the pattern itself).
Sets the view label's color.
OdResult OdDbSectionViewStyle::setViewLabelTextHeight | ( | double | height | ) |
Sets the view label's text height.
OdResult OdDbSectionViewStyle::setViewLabelTextStyleId | ( | const OdDbObjectId & | objId | ) |
Sets the view label's text style.
bool OdDbSectionViewStyle::showAllBendIndentifiers | ( | ) | const |
Returns whether identifiers at all bends of the cutting plane lines display.
bool OdDbSectionViewStyle::showAllPlaneLines | ( | ) | const |
Returns whether plane lines display.
bool OdDbSectionViewStyle::showArrowheads | ( | ) | const |
Returns whether arrowheads display.
bool OdDbSectionViewStyle::showEndAndBendLines | ( | ) | const |
Returns whether end lines and bend lines display.
bool OdDbSectionViewStyle::showHatching | ( | ) | const |
Returns whether hatches display.
bool OdDbSectionViewStyle::showViewLabel | ( | ) | const |
Returns whether view labels display.
double OdDbSectionViewStyle::viewIdentifierOffset | ( | ) | const |
Returns view identifier offset as a double value.
OdDbSectionViewStyle::IdentifierPosition OdDbSectionViewStyle::viewIdentifierPosition | ( | ) | const |
**
Returns view identifier position as an OdDbSectionViewStyle::IdentifierPosition value.
OdDbModelDocViewStyle::TextAlignment OdDbSectionViewStyle::viewLabelAlignment | ( | ) | const |
Returns the view label's text alignment.
OdDbModelDocViewStyle::AttachmentPoint OdDbSectionViewStyle::viewLabelAttachment | ( | ) | const |
Returns the view label's attachment point.
double OdDbSectionViewStyle::viewLabelOffset | ( | ) | const |
Returns the view label's offset.
OdString OdDbSectionViewStyle::viewLabelPattern | ( | ) | const |
Returns the view label's pattern.
OdCmColor OdDbSectionViewStyle::viewLabelTextColor | ( | ) | const |
Returns the view label's color.
double OdDbSectionViewStyle::viewLabelTextHeight | ( | ) | const |
Returns the view label's text height.
OdDbObjectId OdDbSectionViewStyle::viewLabelTextStyleId | ( | ) | const |
Returns the object ID of the view label's text style.