CFx SDK Documentation
2022 SP0
|
#include <DbDetailViewStyle.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 object.
Corresponding C++ library: TD_Db <group OdDb_Classes>
Definition at line 37 of file DbDetailViewStyle.h.
Defines the identifier placement inside the detail view symbol.
Enumerator | |
---|---|
kOutsideBoundary | |
kOutsideBoundaryWithLeader | |
kOnBoundary | |
kOnBoundaryWithLeader |
Definition at line 45 of file DbDetailViewStyle.h.
Defines the edge type of the detail view symbol boundary.
Enumerator | |
---|---|
kSmooth | |
kSmoothWithBorder | |
kSmoothWithConnectionLine | |
kJagged |
Definition at line 55 of file DbDetailViewStyle.h.
OdDbDetailViewStyle::OdDbDetailViewStyle | ( | ) |
Default constructor. Creates an OdDbDetailViewStyle instance.
OdDbDetailViewStyle::~OdDbDetailViewStyle | ( | ) |
OdCmColor OdDbDetailViewStyle::arrowSymbolColor | ( | ) | const |
Returns the arrow symbol's color.
OdDbObjectId OdDbDetailViewStyle::arrowSymbolId | ( | ) | const |
Returns the arrow symbol's object ID.
double OdDbDetailViewStyle::arrowSymbolSize | ( | ) | const |
Returns the arrow symbol's size.
OdCmColor OdDbDetailViewStyle::borderLineColor | ( | ) | const |
Returns the border line's color.
OdDbObjectId OdDbDetailViewStyle::borderLineTypeId | ( | ) | const |
Returns the object ID of the border line's linetype.
OdDb::LineWeight OdDbDetailViewStyle::borderLineWeight | ( | ) | const |
Returns the border line's lineweight.
OdCmColor OdDbDetailViewStyle::boundaryLineColor | ( | ) | const |
Returns the boundary line's color.
OdDbObjectId OdDbDetailViewStyle::boundaryLineTypeId | ( | ) | const |
Returns the object ID of the boundary line's linetype.
OdDb::LineWeight OdDbDetailViewStyle::boundaryLineWeight | ( | ) | const |
Returns the boundary line's lineweight.
OdCmColor OdDbDetailViewStyle::connectionLineColor | ( | ) | const |
Returns the connection line's color.
OdDbObjectId OdDbDetailViewStyle::connectionLineTypeId | ( | ) | const |
Returns the object ID of the connection line's linetype.
OdDb::LineWeight OdDbDetailViewStyle::connectionLineWeight | ( | ) | const |
Returns the connection 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.
Returns the view label's pattern.
pField If the pattern uses fields, they are copied 'pField'.
OdCmColor OdDbDetailViewStyle::identifierColor | ( | ) | const |
Returns the identifier's color.
double OdDbDetailViewStyle::identifierHeight | ( | ) | const |
Returns the identifier's text height.
double OdDbDetailViewStyle::identifierOffset | ( | ) | const |
Returns the identifier's offset between its arrow line and extension line.
OdDbDetailViewStyle::IdentifierPlacement OdDbDetailViewStyle::identifierPlacement | ( | ) | const |
Returns the placement for the label and identifier.
OdDbObjectId OdDbDetailViewStyle::identifierStyleId | ( | ) | const |
Returns the object ID of the identifier's text style.
OdDbDetailViewStyle::ModelEdge OdDbDetailViewStyle::modelEdge | ( | ) | const |
Returns label and model edge.
OdDbDetailViewStyle::ODDB_DECLARE_MEMBERS | ( | OdDbDetailViewStyle | ) |
|
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.
Sets the arrow symbol's color.
OdResult OdDbDetailViewStyle::setArrowSymbolId | ( | const OdDbObjectId & | arrowSymbolId | ) |
Sets the arrow symbol's block.
OdResult OdDbDetailViewStyle::setArrowSymbolSize | ( | double | size | ) |
Sets the arrow symbol's size.
Sets the border line's color.
OdResult OdDbDetailViewStyle::setBorderLineTypeId | ( | const OdDbObjectId & | objId | ) |
Sets the border line's linetype.
OdResult OdDbDetailViewStyle::setBorderLineWeight | ( | OdDb::LineWeight | lineweight | ) |
Sets the border line's lineweight.
Sets the boundary line's color.
OdResult OdDbDetailViewStyle::setBoundaryLineTypeId | ( | const OdDbObjectId & | objId | ) |
Sets the boundary line's linetype.
OdResult OdDbDetailViewStyle::setBoundaryLineWeight | ( | OdDb::LineWeight | lineweight | ) |
Sets the boundary line's lineweight.
Sets the connection line's color.
OdResult OdDbDetailViewStyle::setConnectionLineTypeId | ( | const OdDbObjectId & | objId | ) |
Sets the connection line's linetype.
OdResult OdDbDetailViewStyle::setConnectionLineWeight | ( | OdDb::LineWeight | lineweight | ) |
Sets the connection line's lineweight.
Sets the identifier's color.
color | [in] Color for the identifier. |
OdResult OdDbDetailViewStyle::setIdentifierHeight | ( | double | height | ) |
Sets the identifier's text height.
height | [in] Text height. |
OdResult OdDbDetailViewStyle::setIdentifierOffset | ( | double | offset | ) |
Sets the identifier's offset between its arrow line and extension line.
OdResult OdDbDetailViewStyle::setIdentifierPlacement | ( | OdDbDetailViewStyle::IdentifierPlacement | placement | ) |
Sets the placement for the label and identifier.
placement | [in] Bit coded value that defines the placements of label and identifier. |
OdResult OdDbDetailViewStyle::setIdentifierStyleId | ( | const OdDbObjectId & | objId | ) |
Sets the identifier's text style.
objId | [in] Object ID of the text style. \returnsOdDb::eOk if successful. |
OdResult OdDbDetailViewStyle::setModelEdge | ( | OdDbDetailViewStyle::ModelEdge | placement | ) |
Sets the placement of labels and identifiers.
OdResult OdDbDetailViewStyle::setShowArrows | ( | bool | bValue | ) |
OdResult OdDbDetailViewStyle::setShowViewLabel | ( | bool | bValue | ) |
OdResult OdDbDetailViewStyle::setViewLabelAlignment | ( | OdDbModelDocViewStyle::TextAlignment | alignment | ) |
Sets the view label's text alignment.
OdResult OdDbDetailViewStyle::setViewLabelAttachment | ( | OdDbModelDocViewStyle::AttachmentPoint | attachment | ) |
Sets the view label's attachment.
OdResult OdDbDetailViewStyle::setViewLabelOffset | ( | double | offset | ) |
Sets the view label's offset.
OdResult OdDbDetailViewStyle::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 OdDbDetailViewStyle::setViewLabelTextHeight | ( | double | height | ) |
OdResult OdDbDetailViewStyle::setViewLabelTextStyleId | ( | const OdDbObjectId & | objId | ) |
Sets the view label's text style.
bool OdDbDetailViewStyle::showArrows | ( | ) | const |
Returns whether arrowheads display.
bool OdDbDetailViewStyle::showViewLabel | ( | ) | const |
Returns whether view label.
OdDbModelDocViewStyle::TextAlignment OdDbDetailViewStyle::viewLabelAlignment | ( | ) | const |
Returns the view label's text alignment.
OdDbModelDocViewStyle::AttachmentPoint OdDbDetailViewStyle::viewLabelAttachment | ( | ) | const |
Returns the view label's attachment.
double OdDbDetailViewStyle::viewLabelOffset | ( | ) | const |
Returns the view label's offset.
OdString OdDbDetailViewStyle::viewLabelPattern | ( | ) | const |
Returns the view label's pattern.
OdCmColor OdDbDetailViewStyle::viewLabelTextColor | ( | ) | const |
Returns the view label's color.
double OdDbDetailViewStyle::viewLabelTextHeight | ( | ) | const |
Returns the view label's text height.
OdDbObjectId OdDbDetailViewStyle::viewLabelTextStyleId | ( | ) | const |
Returns the object ID of the view label's text style.