CFx SDK Documentation
2023 SP0
|
#include <DbFcf.h>
This class represents feature control frames in an OdDbDatabase instance.
<group OdDb_Classes>
enum OdDbFcf::whichLine |
OdDbFcf::OdDbFcf | ( | ) |
|
virtual |
Determines the behavior for custom objects when saving to .dwg or .dxf file.
ver | [in] Drawing version to save as. |
replaceId | [out] Object ID of the object replacing this object. |
exchangeXData | [out] Set to true if and only if this function did not add XData to the replacement object. |
Returns an OdDbObjectPtr for a non- database -resident (NDBRO) replacement object, setting replaceId to OdDbObjectId::kNull. Returns NULL, setting replaceId for a database -resident (DBRO) replacement object.
Custom objects can decompose themselves into other objects, adding additional XData as required. Teigha transfers XData from this object to the replacement object if and only if exchangeXData is true.
The default implementation returns NULL and sets replaceId to OdDbObjectId::kNull. This function can be overridden in custom classes.
The method is not intended to be called by client code. For processing owned objects use convertForSave() method.
Reimplemented from OdDbObject.
OdCmColor OdDbFcf::dimclrd | ( | ) | const |
Returns the DIMCLRD value of this object.
OdCmColor OdDbFcf::dimclrt | ( | ) | const |
Returns the DIMCLRT value of this object.
|
virtual |
Returns the dimension style (OdDbDimStyleTableRecord) used by this feature control frame (DXF 3).
double OdDbFcf::dimgap | ( | ) | const |
Returns the DIMGAP value of this object.
A negative value for DIMGAP draws a reference box round the dimension text.
Text is placed inside a dimension line only if there will be two line segments each as long as abs(DIMGAP).
double OdDbFcf::dimscale | ( | ) | const |
Returns the DIMSCALE value of this object.
DIMSCALE serves as an overall "volume control" for dimensions and leaders.
Description 0,0 A "reasonable" value is computed for model space viewports.
0.0 If set to the inverse of the plot scale, plotted dimensions will be at the sizes specified by the other dimension variables.
OdDbObjectId OdDbFcf::dimtxsty | ( | ) | const |
Returns the DIMTXSTY value of this object.
double OdDbFcf::dimtxt | ( | ) | const |
Returns the DIMTXT value of this object.
|
virtual |
Returns the WCS X-axis direction vector of this feature control frame (DXF 11).
|
virtual |
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 OdDbEntity.
|
virtual |
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 OdDbEntity.
|
virtual |
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 OdDbEntity.
|
virtual |
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 OdDbEntity.
|
virtual |
Appends the consecutive distinct corner points of this feature control frame to the specified array.
ptArray | [in/out] Receives corner points. |
|
virtual |
Returns the WCS bounding points of this feature control frame.
boundingPoints | [out] Receives the bounding points. |
Corner boundingPoints[0] Top left boundingPoints[1] Top right boundingPoints[2] Bottom right boundingPoints[3] Bottom left
void OdDbFcf::getDimstyleData | ( | OdDbDimStyleTableRecord * | pRecord | ) | const |
Copies the dimension style settings, including overrides, of this entity into the specified dimension style table record.
pRecord | [out] Receives the effective dimension style data. |
|
virtual |
Returns the insertion point of this feature control frame (WCS equivalent of DXF 10).
|
virtual |
Notification function called whenever an object is opened OdDb::kForWrite, a function has been called that could modify the contents of this object, and this object is now being closed.
pObject | [in] Pointer to the object that is being closed after being modified. |
Reimplemented from OdDbObject.
|
virtual |
Returns the WCS normal to the plane of this feature control frame (DXF 210).
OdDbFcf::ODDB_DECLARE_MEMBERS | ( | OdDbFcf | ) |
Sets the DIMCLRD override for this object.
val | [in] New value for DIMCLRD. |
Sets the DIMCLRT override for this object.
val | [in] New value for DIMCLRT. |
|
virtual |
Sets the dimension style (OdDbDimStyleTableRecord) to used by this feature control frame (DXF 3).
dimStyleId | [in] Object ID of the dimension style. |
void OdDbFcf::setDimgap | ( | double | val | ) |
Sets the DIMGAP override for this object.
val | [in] New value for DIMGAP. |
A negative value for DIMGAP draws a reference box round the dimension text.
Text is placed inside a dimension line only if there will be two line segments each as long as abs(DIMGAP).
void OdDbFcf::setDimscale | ( | double | val | ) |
Sets the DIMSCALE override for this object.
val | [in] New value for DIMSCALE. |
DIMSCALE serves as an overall "volume control" for dimensions and leaders.
Description 0.0 A "reasonable" value is computed for model space viewports.
0.0 If set to the inverse of the plot scale, plotted dimensions will be at the sizes specified by the other dimension variables.
void OdDbFcf::setDimstyleData | ( | const OdDbDimStyleTableRecord * | pDimstyle | ) |
Copies the dimension style settings, including overrides, from the specified dimension style table record to this entity.
pDimstyle | [in] Pointer to non- database -resident dimension style record. |
void OdDbFcf::setDimstyleData | ( | OdDbObjectId | dimstyleID | ) |
Copies the dimension style settings, including overrides, from the specified dimension style table record to this entity.
dimstyleID | [in] Database-resident dimension style record. |
void OdDbFcf::setDimtxsty | ( | OdDbObjectId | val | ) |
Sets the DIMTXSTY override for this object.
val | [in] New value for DIMTXSTY. |
void OdDbFcf::setDimtxt | ( | double | val | ) |
Sets the DIMTXT override for this object.
val | [in] New value for DIMTXT. |
|
virtual |
Sets the insertion point of this feature control frame (WCS equivalent of DXF 10).
insPoint | [in] Insertion point. |
|
virtual |
Sets the orientation vectors of this feature control frame (DXF 210 and 11).
normal | [in] WCS normal to plane of feature control frame. |
direction | [in] WCS X-axis direction vector of feature control frame. |
Sets the text string of this feature control frame (DXF 1).
fcfText | [in] Text of this feature control frame. |
Meaning
newline {\Fgdt;a} angularity {\Fgdt;b} perpendicularity {\Fgdt;c} flatness {\Fgdt;d} profile of a surface {\Fgdt;e} circularity {\Fgdt;f} parallelism {\Fgdt;g} cylindricity {\Fgdt;h} circular runout {\Fgdt;i} symmetry {\Fgdt;j} positional (+) {\Fgdt;k} profile of a line {\Fgdt;l} least material condition {\Fgdt;m} maximum material condition {\Fgdt;n} diameter {\Fgdt;p} positional(P) {\Fgdt;r} concentricity {\Fgdt;s} regardless of feature size {\Fgdt;t} total runout {\Fgdt;u} straightness %v vertical side of frame box
|
virtual |
Called as the first operation as this object is being closed, for database -resident objects only.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subClose().
3) If other actions are required before close, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
This function is an override for OdDbEntity::subSetDatabaseDefaults() to set the dimension style of this entity to the current style for the specified database.
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
Returns the text string of this feature control frame (DXF 1).
lineNo | [in] Index of the line desired. |
Meaning
newline {\Fgdt;a} angularity {\Fgdt;b} perpendicularity {\Fgdt;c} flatness {\Fgdt;d} profile of a surface {\Fgdt;e} circularity {\Fgdt;f} parallelism {\Fgdt;g} cylindricity {\Fgdt;h} circular runout {\Fgdt;i} symmetry {\Fgdt;j} positional (+) {\Fgdt;k} profile of a line {\Fgdt;l} least material condition {\Fgdt;m} maximum material condition {\Fgdt;n} diameter {\Fgdt;p} positional (P) {\Fgdt;r} concentricity {\Fgdt;s} regardless of feature size {\Fgdt;t} total runout {\Fgdt;u} straightness %v vertical side of frame box