CFx SDK Documentation
2022 SP0
|
#include <DbTable.h>
This class represents table entities in an OdDbDatabase instance.
<group OdDb_Classes>
Enumerator representing the table style overrides for an OdDbTable object.
Enumerator | |
---|---|
kTitleSuppressed | Title suppressed table style override for OdDbTable object. |
kHeaderSuppressed | Header suppressed table style override for OdDbTable object. |
kFlowDirection | Flow direction table style override for OdDbTable object. |
kHorzCellMargin | Horizontal cell margin table style override for OdDbTable object. |
kVertCellMargin | Vertical cell margin table style override for OdDbTable object. |
kTitleRowColor | Title row color table style override for OdDbTable object. |
kHeaderRowColor | Header row color table style override for OdDbTable object. |
kDataRowColor | Data row color table style override for OdDbTable object. |
kTitleRowFillNone | Title row no fill table style override for OdDbTable object. |
kHeaderRowFillNone | Header row no fill table style override for OdDbTable object. |
kDataRowFillNone | Data row no fill table style override for OdDbTable object. |
kTitleRowFillColor | Title row fill color table style override for OdDbTable object. |
kHeaderRowFillColor | Header row fill color table style override for OdDbTable object. |
kDataRowFillColor | Data row fill color table style override for OdDbTable object. |
kTitleRowAlignment | Title row alignment table style override for OdDbTable object. |
kHeaderRowAlignment | Header row alignment table style override for OdDbTable object. |
kDataRowAlignment | Data row alignment table style override for OdDbTable object. |
kTitleRowTextStyle | Title row text style table style override for OdDbTable object. |
kHeaderRowTextStyle | Header row text style table style override for OdDbTable object. |
kDataRowTextStyle | Data row text style table style override for OdDbTable object. |
kTitleRowTextHeight | Title row text height table style override for OdDbTable object. |
kHeaderRowTextHeight | Header row text height table style override for OdDbTable object. |
kDataRowTextHeight | Data row text height table style override for OdDbTable object. |
kTitleRowDataType | Title row data type table style override for OdDbTable object. |
kHeaderRowDataType | Header row data type table style override for OdDbTable object. |
kDataRowDataType | Data row data type table style override for OdDbTable object. |
kTitleHorzTopColor | Title row horizontal top gridline color table style override for OdDbTable object. |
kTitleHorzInsideColor | Title row horizontal inside gridline color table style override for OdDbTable object. |
kTitleHorzBottomColor | Title row horizontal bottom gridline color table style override for OdDbTable object. |
kTitleVertLeftColor | Title row vertical left gridline color table style override for OdDbTable object. |
kTitleVertInsideColor | Title row vertical inside gridline color table style override for OdDbTable object. |
kTitleVertRightColor | Title row vertical right gridline color table style override for OdDbTable object. |
kHeaderHorzTopColor | Header row horizontal top gridline color table style override for OdDbTable object. |
kHeaderHorzInsideColor | Header row horizontal inside gridline color table style override for OdDbTable object. |
kHeaderHorzBottomColor | Header row horizontal bottom gridline color table style override for OdDbTable object. |
kHeaderVertLeftColor | Header row vertical left gridline color table style override for OdDbTable object. |
kHeaderVertInsideColor | Header row vertical inside gridline color table style override for OdDbTable object. |
kHeaderVertRightColor | Header row vertical right gridline color table style override for OdDbTable object. |
kDataHorzTopColor | Data row horizontal top gridline color table style override for OdDbTable object. |
kDataHorzInsideColor | Data row horizontal inside gridline color table style override for OdDbTable object. |
kDataHorzBottomColor | Data row horizontal bottom gridline color table style override for OdDbTable object. |
kDataVertLeftColor | Data row vertical left gridline color table style override for OdDbTable object. |
kDataVertInsideColor | Data row vertical inside gridline color table style override for OdDbTable object. |
kDataVertRightColor | Data row vertical right gridline color table style override for OdDbTable object. |
kTitleHorzTopLineWeight | Title row horizontal top gridline lineweight table style override for OdDbTable object. |
kTitleHorzInsideLineWeight | Title row horizontal inside gridline lineweight table style override for OdDbTable object. |
kTitleHorzBottomLineWeight | Title row horizontal bottom gridline lineweight table style override for OdDbTable object. |
kTitleVertLeftLineWeight | Title row vertical left gridline lineweight table style override for OdDbTable object. |
kTitleVertInsideLineWeight | Title row vertical inside gridline lineweight table style override for OdDbTable object. |
kTitleVertRightLineWeight | Title row vertical right gridline lineweight table style override for OdDbTable object. |
kHeaderHorzTopLineWeight | Header row horizontal top gridline lineweight table style override for OdDbTable object. |
kHeaderHorzInsideLineWeight | Header row horizontal inside gridline lineweight table style override for OdDbTable object. |
kHeaderHorzBottomLineWeight | Header row horizontal bottom gridline lineweight table style override for OdDbTable object. |
kHeaderVertLeftLineWeight | Header row vertical left gridline lineweight table style override for OdDbTable object. |
kHeaderVertInsideLineWeight | Header row vertical inside gridline lineweight table style override for OdDbTable object. |
kHeaderVertRightLineWeight | Header row vertical right gridline lineweight table style override for OdDbTable object. |
kDataHorzTopLineWeight | Data row horizontal top gridline lineweight table style override for OdDbTable object. |
kDataHorzInsideLineWeight | Data row horizontal inside gridline lineweight table style override for OdDbTable object. |
kDataHorzBottomLineWeight | Data row horizontal bottom gridline lineweight table style override for OdDbTable object. |
kDataVertLeftLineWeight | Data row vertical left gridline lineweight table style override for OdDbTable object. |
kDataVertInsideLineWeight | Data row vertical inside gridline lineweight table style override for OdDbTable object. |
kDataVertRightLineWeight | Data row vertical right gridline lineweight table style override for OdDbTable object. |
kTitleHorzTopVisibility | Title row horizontal top gridline visibility table style override for OdDbTable object. |
kTitleHorzInsideVisibility | Title row horizontal inside gridline visibility table style override for OdDbTable object. |
kTitleHorzBottomVisibility | Title row horizontal bottom gridline visibility table style override for OdDbTable object. |
kTitleVertLeftVisibility | Title row vertical left gridline visibility table style override for OdDbTable object. |
kTitleVertInsideVisibility | Title row vertical inside gridline visibility table style override for OdDbTable object. |
kTitleVertRightVisibility | Title row vertical right gridline visibility table style override for OdDbTable object. |
kHeaderHorzTopVisibility | Header row horizontal top gridline visibility table style override for OdDbTable object. |
kHeaderHorzInsideVisibility | Header row horizontal inside gridline visibility table style override for OdDbTable object. |
kHeaderHorzBottomVisibility | Header row horizontal bottom gridline visibility table style override for OdDbTable object. |
kHeaderVertLeftVisibility | Header row vertical left gridline visibility table style override for OdDbTable object. |
kHeaderVertInsideVisibility | Header row vertical inside gridline visibility table style override for OdDbTable object. |
kHeaderVertRightVisibility | Header row vertical right gridline visibility table style override for OdDbTable object. |
kDataHorzTopVisibility | Data row horizontal top gridline visibility table style override for OdDbTable object. |
kDataHorzInsideVisibility | Data row horizontal inside gridline visibility table style override for OdDbTable object. |
kDataHorzBottomVisibility | Data row horizontal bottom gridline visibility table style override for OdDbTable object.. |
kDataVertLeftVisibility | Data row vertical left gridline visibility table style override for OdDbTable object.. |
kDataVertInsideVisibility | Data row vertical inside gridline visibility table style override for OdDbTable object.. |
kDataVertRightVisibility | Data row vertical right gridline visibility table style override for OdDbTable object.. |
kCellAlignment | Alignment table style override for table cell. |
kCellBackgroundFillNone | Background no fill table style override for table cell. |
kCellBackgroundColor | Background color table style override for table cell. |
kCellContentColor | Content color table style override for table cell. |
kCellTextStyle | Text style table style override for table cell. |
kCellTextHeight | Text height table style override for table cell. |
kCellTopGridColor | Top edge grid color table style override for table cell. |
kCellRightGridColor | Right edge grid color table style override for table cell. |
kCellBottomGridColor | Bottom edge grid color table style override for table cell. |
kCellLeftGridColor | Left edge grid color table style override for table cell. |
kCellTopGridLineWeight | Top edge grid lineweight table style override for table cell. |
kCellRightGridLineWeight | Right edge grid lineweight table style override for table cell. |
kCellBottomGridLineWeight | Bottom edge grid lineweight table style override for table cell. |
kCellLeftGridLineWeight | Left edge grid lineweight table style override for table cell. |
kCellTopVisibility | Top edge grid visibility table style override for table cell. |
kCellRightVisibility | Right edge grid visibility table style override for table cell. |
kCellBottomVisibility | Bottom edge grid visibility table style override for table cell. |
kCellLeftVisibility | Left edge grid visibility table style override for table cell. |
OdDbTable::OdDbTable | ( | ) |
|
virtual |
Returns the cell alignment for the specified row type in this table entity (DXF 170).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
alignment() returns one of the following:
Value
OdDb::kTopLeft 1
OdDb::kTopCenter 2 OdDb::kTopRight 3 OdDb::kMiddleLeft 4 OdDb::kMiddleCenter 5 OdDb::kMiddleRight 6 OdDb::kBottomLeft 7 OdDb::kBottomCenter 8 OdDb::kBottomRight 9
|
virtual |
Returns the cell alignment for the specified cell in this table entity (DXF 170).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
alignment() returns one of the following:
Value OdDb::kTopLeft 1 OdDb::kTopCenter 2 OdDb::kTopRight 3 OdDb::kMiddleLeft 4 OdDb::kMiddleCenter 5 OdDb::kMiddleRight 6 OdDb::kBottomLeft 7 OdDb::kBottomCenter 8 OdDb::kBottomRight 9
|
virtual |
Appends this OdDbTable object to the specified owner object.
idPair | [in] ID pair to append. |
pOwnerObject | [in] Pointer to the owner object. |
ownerIdMap | [in/out] Owner's ID map. |
Reimplemented from OdDbEntity.
OdGePoint3d OdDbTable::attachmentPoint | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | content | ||
) | const |
Returns the attachment point of the cell as an object of the OdGePoint3d class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
content | [in] Content index. |
|
virtual |
Returns the attachment point of the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Returns the background color for the specified row type in this table entity (DXF 63).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns the background color for the specified cell in this table entity (DXF 63).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Returns the rotation angle of the block reference in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Returns the scale factor of the block reference in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
OdDbObjectId OdDbTable::blockTableRecordId | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent | ||
) | const |
Returns the id of the block table record of the cell as an object of the OdDbObjectId class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
|
virtual |
Returns the Object ID of the block table record in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
OdDb::TableBreakFlowDirection OdDbTable::breakFlowDirection | ( | void | ) | const |
Returns table break flow direction of this table entity as an OdDb::TableBreakFlowDirection object.
double OdDbTable::breakHeight | ( | OdUInt32 | index | ) | const |
Returns the table break height of the specified table entity as an OdUInt32 value.
index | [in] Sub-table index. |
OdGeVector3d OdDbTable::breakOffset | ( | OdUInt32 | index | ) | const |
Returns table break offset of the specified table entity as an OdUInt32 value.
index | [in] Sub-table index. |
OdDb::TableBreakOption OdDbTable::breakOption | ( | void | ) | const |
Returns the table break option of this table entity as an OdDb::TableBreakOption object.
Value Description OdDb::kTableBreakNone 0 No table break. OdDb::kTableBreakEnableBreaking 0x01 Enable table breaking. OdDb::kTableBreakRepeatTopLabels 0x02 Repeat top labels in all tables.
OdDb::kTableBreakRepeatBottomLabels 0x04 Repeat bottom labels in all tables. OdDb::kTableBreakAllowManualPositions 0x08 Allow manual position for each sub-table. OdDb::kTableBreakAllowManualHeights 0x10 Allow manual height for each sub-table.
double OdDbTable::breakSpacing | ( | void | ) | const |
Returns the break spacing for this table entity.
Checks if rows or columns can be deleted from the specified index. Returns true if rows or columns can be deleted.
nCount | [in] Number of rows or columns. |
bRow | [in] Flag that indicates what to check: "true"" for rows or "false" for columns. |
bool OdDbTable::canInsert | ( | OdInt32 | nIndex, |
bool | bRow | ||
) | const |
Checks if new rows or columns can be inserted into the specified index. Returns true if rows or columns can be inserted.
nIndex | [in] Index. |
bRow | [in] Flag that indicates what to check: "true" for rows or "false" for columns. |
OdDb::CellState OdDbTable::cellState | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns cell state.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Value kCellStateNone 0x00 kCellStateContentLocked 0x01 kCellStateContentReadOnly 0x02 kCellStateLinked 0x04 kCellStateContentModifiedAfterUpdate 0x08 kCellStateFormatLocked 0x10 kCellStateFormatReadOnly 0x20 kCellStateFormatModifiedAfterUpdate 0x40 kAllCellStates (kCellStateContentLocked | kCellStateContentReadOnly | kCellStateLinked | kCellStateContentModifiedAfterUpdate | kCellStateFormatLocked | kCellStateFormatReadOnly | kCellStateFormatModifiedAfterUpdate)
Returns the cell style as an OdString value. Use a valid row index and pass column index -1 to get style for row. Use a valid column index and pass row index -1 to get style for column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
_TITLE
_HEADER _DATA
|
virtual |
Returns the cell style overrides for the specified cell in this table entity.
row | [in] Row index of the |
column | [in] Column index of the cell. |
overrides | [out] Receives the overrides. |
|
virtual |
Returns the cell type of the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Value Description OdDb::kTextCell 1 Text cell type OdDb::kBlockCell 2 Block cell type
Clears the cell overrides for the specified cell in this table entity.
row | [in] Row index of the |
column | [in] Column index of the cell. |
|
virtual |
Clears the sub-selection set of cells from this table.
|
virtual |
Clears the table style overrides for this table entity and/or its cells.
option | [in] Option. |
Description 0 Clears all overrides.
1 Clears all table overrides.
2 Clears all cell overrides.
|
virtual |
Returns the width of the specified column in this table entity (DXF 142).
column | [in] Column index. |
|
virtual |
Returns the content color for the specified row type in this table entity (DXF 64).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns the color of the cell content as an object of the OdCmColor class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
Returns the content color for the specified cell in this table entity (DXF 64).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
OdDb::CellContentLayout OdDbTable::contentLayout | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns content layout of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Value kCellContentLayoutFlow 0x1 kCellContentLayoutStackedHorizontal 0x2 kCellContentLayoutStackedVertical 0x4
OdDb::CellContentType OdDbTable::contentType | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns content type of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Value kCellContentTypeUnknown 0x0 kCellContentTypeValue 0x1 kCellContentTypeField 0x2 kCellContentTypeBlock 0x4
OdDb::CellContentType OdDbTable::contentType | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nIndex | ||
) | const |
Returns content type of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nIndex | [in] Index of content. |
Value kCellContentTypeUnknown 0x0 kCellContentTypeValue 0x1 kCellContentTypeField 0x2 kCellContentTypeBlock 0x4
void OdDbTable::copyFrom | ( | const OdDbLinkedTableData * | pSrc, |
OdDb::TableCopyOption | nOption | ||
) |
Copies the content and format from the source table.
pSrc | [in] Source table. |
nOption | [in] Copy option. |
void OdDbTable::copyFrom | ( | const OdDbLinkedTableData * | pSrc, |
OdDb::TableCopyOption | nOption, | ||
const OdCellRange & | srcRange, | ||
const OdCellRange & | targetRange, | ||
OdCellRange * | pNewTargetRangeOut | ||
) |
Copies the content and format from the source table.
pSrc | [in] Source table. |
nOption | [in] Copy option. |
srcRange | [in] Source cell range. |
targetRange | [in] Target cell range. |
pNewTargetRangeOut | [out] Target cell range. |
void OdDbTable::copyFrom | ( | const OdDbTable * | pSrc, |
OdDb::TableCopyOption | nOption, | ||
const OdCellRange & | srcRange, | ||
const OdCellRange & | targetRange, | ||
OdCellRange * | pNewTargetRangeOut | ||
) |
Copies the content and format from the source table.
pSrc | [in] Source table. |
nOption | [in] Copy option. |
srcRange | [in] Source cell range. |
targetRange | [in] Target cell range. |
pNewTargetRangeOut | [out] Target cell range. |
|
virtual |
Copies the content from the source object.
pSource | [in] Source object. |
Reimplemented from OdDbBlockReference.
Creates additional content for the cell. Returns index of the created content.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nIndex | [in] Index at which the content will be created. |
void OdDbTable::createTemplate | ( | OdDbTableTemplate * | target, |
OdDb::TableCopyOption | nCopyOption | ||
) |
Returns data format of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns data format of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
Deletes the content of the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Deletes the specified number of columns from this table entity.
column | [in] Index of first column to delete. |
numColumns | [in] Number of columns to delete. |
void OdDbTable::deleteContent | ( | const OdCellRange & | range | ) |
Deletes content from the cells.
range | [in] Range of the cells. |
Deletes content from the cells.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Deletes content from the cells.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
nIndex | [in] Index of content. |
Deletes the specified number of rows from this table entity.
row | [in] Index of first row to delete. |
numRows | [in] Number of rows to delete. |
|
virtual |
Returns the unit X-axis for this table entity in WCS coordinates (DXF 11, 21, 31).
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
Reimplemented from OdDbBlockReference.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
Reimplemented from OdDbBlockReference.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
Reimplemented from OdDbBlockReference.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
Reimplemented from OdDbBlockReference.
void OdDbTable::enableBreak | ( | bool | bEnable | ) |
Enables or disables table breaking.
bEnable | [in] Value for enabling or disabling the table breaking. |
Sets the merge-all flag to enabled for the cell, row, or column.
row | [in] Row index. |
col | [in] Column index. |
bEnable | [in] merge-all flag. |
OdDbObjectId OdDbTable::fieldId | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent | ||
) | const |
Returns the field id of the cell as an object of the OdDbObjectId class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
|
virtual |
Returns the Object ID of the OdDbField in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Returns the direction that this table entity flows from its first row to its last (DXF 70).
Value Description OdDb::kTtoB 0 Top to Bottom OdDb::kBtoT 1 Bottom to Top
|
virtual |
|
virtual |
Updates this table entity according to its current table style.
OdString OdDbTable::getBlockAttributeValue | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdDbObjectId & | attdefId | ||
) | const |
Returns the attribute value of the block cell using the specified object id key as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
attdefId | [in] Object id. |
|
virtual |
Gets the attribute value for the specified Object ID OdDb::key for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
attdefId | [in] Object ID of the OdDbAttributeDefinition. |
attValue | [out] Receives the attribute value. |
|
virtual |
Returns the cell extents for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
isOuterCell | [in] If and only if true, ignores margins. |
pts | [out] Receives the cell extents information. |
If isOuterCell is false, this function returns the extents of cell reduced by the horizontal and vertical cell margins.
Method generates the eInvalidInput exception when the row argument is more than number of rows or the column argument is more than number of columns.
Returns the column name as an OdString value.
nIndex | [in] Column index. |
Returns the custom data value of the cell, column, or row as an OdInt32 value. Use a valid row index and pass column index -1 to get row data. Use a valid column index and pass row index -1 to get column data.
row | [in] Row index. |
col | [in] Column index. |
Returns the custom data value of the cell, column, or row as an OdInt32 value. Use a valid row index and pass column index -1 to get row data. Use a valid column index and pass row index -1 to get column data.
row | [in] Row index. |
col | [in] Column index. |
sKey | [in] Key to use for the custom data. |
OdInt32 OdDbTable::getDataLink | ( | const OdCellRange & | pRange, |
OdDbObjectIdArray & | dataLinkIds | ||
) | const |
Returns the number of data links (OdDbDataLink) for the specified cell range.
pRange | [in] Cell range. |
dataLinkIds | [out] Array of data link IDs. |
OdDbObjectId OdDbTable::getDataLink | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns the data link (OdDbDataLink) for the specified row and column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
OdDbDataLinkPtr OdDbTable::getDataLink | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::OpenMode | mode | ||
) | const |
Opens and returns the data link (OdDbDataLink) for the specified row and column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
mode | [in] Open mode. |
Value kNotOpen -1 kForRead 0 kForWrite 1 kForNotify 2
OdCellRange OdDbTable::getDataLinkRange | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns the data link cell range that includes the specified row and column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
void OdDbTable::getDataType | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdValue::DataType & | nDataType, | ||
OdValue::UnitType & | nUnitType | ||
) | const |
Gets the data type of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
nDataType | [out] Reference to data type. |
nUnitType | [out] Reference to unit type. |
Value kUnknown 0x00 kLong 0x01 kDouble 0x02 kString 0x04 kDate 0x08 kPoint 0x10 k3dPoint 0x20 kObjectId 0x40 kBuffer 0x80 kResbuf 0x100 kGeneral 0x200 kColor 0x400
Unit type should take one of following values:
Value kUnitless 0x00 kDistance 0x01 kAngle 0x02 kArea 0x04 kVolume 0x08 kCurrency 0x10 kPercentage 0x20
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
void OdDbTable::getDataType | ( | OdUInt32 | row, |
OdUInt32 | col, | ||
OdValue::DataType & | nDataType, | ||
OdValue::UnitType & | nUnitType | ||
) | const |
Returns the data type and unit type of the specified cell.
row | [in] Row index. Should be more than or equal to 0 and less than the number of rows. |
col | [in] Column index. Should be more than or equal to 0 and less than the number of columns. |
nDataType | [out] Data type. |
nUnitType | [out] Unit type. |
|
virtual |
Returns the data type and unit type of the specified row type.
nDataType | [out] Data type. |
nUnitType | [out] Unit type. |
type | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns the formula of the cell as an object of the OdString class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
void OdDbTable::getGridProperty | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType, | ||
OdGridProperty & | gridProp | ||
) | const |
Returns the grid line property of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid property. Use a valid column index and pass row index -1 to get column grid property.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
gridProp | [out] Grid line property. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
OdCellRange OdDbTable::getMergeRange | ( | OdInt32 | row, |
OdInt32 | col | ||
) | const |
Returns merge range of the cell as an object of the OdCellRange class. Returns invalid merge range if the cell is not part of the merge range.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
OdDb::GridProperty OdDbTable::getOverride | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the override in the grid line of the cell, row, or column. Use a valid row index and pass column index -1 to get row property overrides. Use a valid column index and pass row index -1 to get column property overrides.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kGridPropInvalid 0x00 kGridPropLineStyle 0x01 kGridPropLineWeight 0x02 kGridPropLinetype 0x04 kGridPropColor 0x08 kGridPropVisibility 0x10 kGridPropDoubleLineSpacing 0x20 kGridPropAll (kGridPropLineStyle | kGridPropLineWeight | kGridPropLinetype | kGridPropColor | kGridPropVisibility | kGridPropDoubleLineSpacing)
Grid linetype should take one of the following values:
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
OdDb::CellProperty OdDbTable::getOverride | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent | ||
) | const |
Returns the override of the cell, row, or column. Use a valid row index and pass column index -1 to get row property overrides. Use a valid column index and pass row index -1 to get column property overrides.
row | [in] Row index. |
col | [in] Column index. |
nContent | [in] Content index. |
Value kCellPropInvalid 0x00000 kCellPropDataType 0x00001 kCellPropDataFormat 0x00002 kCellPropRotation 0x00004 kCellPropScale 0x00008 kCellPropAlignment 0x00010 kCellPropContentColor 0x00020 kCellPropTextStyle 0x00040 kCellPropTextHeight 0x00080 kCellPropAutoScale 0x00100 kCellPropBackgroundColor 0x00200 kCellPropMarginLeft 0x00400 kCellPropMarginTop 0x00800 kCellPropMarginRight 0x01000 kCellPropMarginBottom 0x02000 kCellPropContentLayout 0x04000 kCellPropMergeAll 0x08000 kCellPropFlowDirBtoT 0x10000 kCellPropMarginHorzSpacing 0x20000 kCellPropMarginVertSpacing 0x40000 kCellPropDataTypeAndFormat (kCellPropDataType | kCellPropDataFormat) kCellPropContent (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropContentColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropAutoScale) kCellPropBitProperties (kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT) kCellPropAll (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropAlignment | kCellPropContentColor | kCellPropBackgroundColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropMarginLeft | kCellPropMarginTop | kCellPropMarginRight | kCellPropMarginBottom | kCellPropMarginHorzSpacing | kCellPropMarginVertSpacing | kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT | kCellPropContentLayout)
|
virtual |
Returns the row and column indexes of the cells in the sub-selection set.
rowMin | [out] Lower bound of row index. |
rowMax | [out] Upper bound of row index. |
colMin | [out] Lower bound of column index. |
colMax | [out] Upper bound of column index. |
OdCellRange OdDbTable::getSubSelection | ( | void | ) | const |
Returns the range of cells in the sub-selection set.
Returns the tooltip of the cell as an OdString value.
row | [in] Row index. |
col | [in] Column index. |
|
virtual |
Returns the grid color for the specified gridline type and row type in this table entity (DXF 63,64,65,66,68,69).
gridlineType | [in] Gridline type. |
rowType | [in] Row type. |
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
rowType must be one of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
OdCmColor OdDbTable::gridColor | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid color of the cell, row, or column as an object of the OdCmColor class. Use a valid row index and pass column index -1 to get row grid line color. Use a valid column index and pass row index -1 to get column grid line color.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
|
virtual |
Returns the grid color for the specified cell and edge in this table entity (DXF 63,64,65,66,68,69).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeType | [in] Edge type. |
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
double OdDbTable::gridDoubleLineSpacing | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid double line spacing of the cell, row, or column as a double value. Use a valid row index and pass column index -1 to get row grid double line spacing. Use a valid column index and pass row index -1 to get column grid double line spacing.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
OdDb::GridLineStyle OdDbTable::gridLineStyle | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid line style of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid line style. Use a valid column index and pass row index -1 to get column grid line style.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid line style should take one of the following values:
Value kGridLineStyleSingle 1 kGridLineStyleDouble 2
OdDbObjectId OdDbTable::gridLinetype | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid linetype of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid linetype. Use a valid column index and pass row index -1 to get column grid linetype.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetypes. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
|
virtual |
Returns the grid lineweight for the specified gridline type and row type in this table entity (DXF 274-279).
gridlineType | [in] Gridline type. |
rowType | [in] Row type. |
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kVertLeft 8 Left-most table's grid line. OdDb::kVertInside 0x10 All vertical grid lines, excluding the left-most and right-most lines. OdDb::kVertRight 0x20 Right-most table's grid line.
rowType must be one of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
OdDb::LineWeight OdDbTable::gridLineWeight | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid lineweight of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid lineweight. Use a valid column index and pass row index -1 to get column grid lineweight.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid lineweight should take one of the following values:
Value kLnWt000 0 kLnWt005 5 kLnWt009 9 kLnWt013 13 kLnWt015 15 kLnWt018 18 kLnWt020 20 kLnWt025 25 kLnWt030 30 kLnWt035 35 kLnWt040 40 kLnWt050 50 kLnWt053 53 kLnWt060 60 kLnWt070 70 kLnWt080 80 kLnWt090 90 kLnWt100 100 kLnWt106 106 kLnWt120 120 kLnWt140 140 kLnWt158 158 kLnWt200 200 kLnWt211 211 kLnWtByLayer -1 kLnWtByBlock -2 kLnWtByLwDefault -3
|
virtual |
Returns the grid lineweight for the specified cell and edge in this table entity (DXF 274-279).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeType | [in] Edge type. |
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
|
virtual |
Returns the grid visibility for the specified gridline type and row type in this table entity (DXF 284-289).
gridlineType | [in] Gridline type. |
rowType | [in] Row type. |
Value OdDb::kInvisible 1 OdDb::kVisible 0
gridlineType must be one of the following:
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kVertLeft 8 Left-most table's grid line. OdDb::kVertInside 0x10 All vertical grid lines, excluding the left-most and right-most lines. OdDb::kVertRight 0x20 Right-most table's grid line.
rowType must be one of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
OdDb::Visibility OdDbTable::gridVisibility | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType | ||
) | const |
Returns the grid visibility of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid visibility . Use a valid column index and pass row index -1 to get column grid visibility .
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid visibility should take one of the following values:
Value kInvisible 1 kVisible 0
|
virtual |
Returns the grid visibility for the specified cell and edge in this table entity (DXF 284-289).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeType | [in] Edge type. |
Value OdDb::kInvisible 1 OdDb::kVisible 0
edgeType must be one of the following:
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
Checks if the cell has a formula.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
|
virtual |
Returns true if the table has a sub-selection set of cells, or returns false in the other case.
|
virtual |
Returns the overall height of this table entity.
|
virtual |
Performs a hit test for the specified point and viewing direction in this table entity. Returns the row index and the column index of the cell, hit by the ray in the output arguments. Returns true if a table set is hit or returns false in the other case.
wpt | [in] Input 3D picking point in WCS. |
wviewVec | [in] 3D vector in WCF that specifies the view direction for the hit test. |
wxaper | [in] Width of aperture box centered at the hit point. |
wyaper | [in] Height of aperture box centered at the hit point. |
resultRowIndex | [out] Row index. |
resultColumnIndex | [out] Column index. |
|
virtual |
Performs a hit test for the specified point and viewing direction in this table entity. Returns the row index and the column index of the cell, hit by the ray in the output arguments. Returns true if a table set is hit or returns false in the other case.
wpt | [in] Input 3D picking point in WCS. |
wviewVec | [in] 3D vector in WCS that specifies the view direction for the hit test. |
wxaper | [in] Width of aperture box centered at the hit point. |
wyaper | [in] Height of aperture box centered at the hit point. |
resultRowIndex | [out] Row index. |
resultColumnIndex | [out] Column index. |
contentIndex | [out] Context index. |
nItem | [out] Hit flags, which indicate the table item at the specified point. |
|
virtual |
Returns the horizontal cell margin for this table entity (DXF 40).
|
virtual |
Inserts the specified number of columns into this table entity at the specified column index.
column | [in] Column index. |
width | [in] Width of the inserted columns. |
numColumns | [in] Number of columns to insert. |
Inserts columns at the specified index.
col | [in] Index. |
nInheritFrom | [in] Column number in the table that the format will be inherited from. |
nNumCols | [in] Number of inserted columns. |
Inserts the specified number of rows into this table entity at the specified row index.
row | [in] Row index. |
height | [in] Height of the inserted rows. |
numRows | [in] Number of rows to insert. |
Inserts rows at the specified index.
nIndex | [in] Index. |
nInheritFrom | [in] Row number in the table that the format will be inherited from. |
nNumRows | [in] Number of inserted rows. |
Checks whether data in the cell is auto-scaled or not. Returns the auto-scaled flag as a boolean value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
Returns true if and only if the block in the specified cell in this table entity is automatically scaled and positioned to fit into the cell.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Returns true if and only if the background color for the specified row type is disabled for this table entity (DXF 283).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns true if and only if the background color for the specified cell is disabled for this table entity (DXF 283).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
bool OdDbTable::isBreakEnabled | ( | void | ) | const |
Returns true if the table break is enabled, or false otherwise.
Returns "editing content flag" cell property. Returns true if cell content can be edited or false if it can not.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns "empty flag" cell property. Returns true if cell is empty, or false if it is not.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns "editing format flag" cell property. Returns true if cell format can be edited or false if it can not.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
|
virtual |
Returns true if and only if the header row is suppressed for this table entity (DXF 281).
Checks if the cell is linked to a data source.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Checks whether the merge-all flag is enabled for the cell, row, or column. Returns true if the merge-all flag is enabled or false if it is not.
row | [in] Row index. |
col | [in] Column index. |
|
virtual |
Returns true if and only if the specified cell has been merged, and returns the range of the merged cells in this table entity.
row | [in] Row index. |
column | [in] Column index. |
minRow | [out] Receives the minimum row index of the merged cells. |
maxRow | [out] Receives the maximum row index of the merged cells. |
minColumn | [out] Receives the minimum column index of the merged cells. |
maxColumn | [out] Receives the maximum column index of the merged cells. |
bool OdDbTable::isRegenerateTableSuppressed | ( | ) | const |
Returns true if regeneration of the table block is disabled. Otherwise, returns false.
|
virtual |
Returns true if and only if the title row is suppressed for this table entity (DXF 280).
double OdDbTable::margin | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::CellMargin | nMargin | ||
) | const |
Returns the margin of the cell, row, or column as a double value. Use a valid row index and pass column index -1 to get margin for row. Use a valid column index and pass row index -1 to get margin for column.
row | [in] Row index. |
col | [in] Column index. |
nMargin | [in] Margin type. |
Value kCellMarginTop 0x01 kCellMarginLeft 0x02 kCellMarginBottom 0x04 kCellMarginRight 0x08 kCellMarginHorzSpacing 0x10 kCellMarginVertSpacing 0x20
|
virtual |
Merges a rectangular region of cells in this table entity.
minRow | [in] Minimum row index of the merged cells. |
maxRow | [in] Maximum row index of the merged cells. |
minColumn | [in] Minimum column index of the merged cells. |
maxColumn | [in] Maximum column index of the merged cells. |
Returns cell property "merged flag". The first cell has a value equal false. Next cells have a value equal to true.
row | [in] Row index. |
column | [in] Column index. |
Returns cell property "merged height". The first cell may have a value > 1. Next cells have a value equal 1.
row | [in] Row index. |
column | [in] Column index. |
Returns cell property "merged width". The first cell may have a value > 1. Next cells have a value equal 1.
row | [in] Row index. |
column | [in] Column index. |
|
virtual |
Returns the minimum column width for the specified column in this table entity.
column | [in] Column index. |
|
virtual |
Returns the minimum row height for the specified row in this table entity.
row | [in] Row index. |
|
virtual |
Returns the minimum overall height for this table entity.
|
virtual |
Returns the minimum overall width for this table entity.
|
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.
Moves content in the cell from one position to another.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nFromIndex | [in] Index of content to move. |
nToIndex | [in] Target index of the content where it should be moved to. |
|
virtual |
Returns the number of columns in this table entity (DXF 92).
Returns the number of contents in the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
|
virtual |
Returns the number of rows in this table entity (DXF 91).
OdDbTable::ODDB_DECLARE_MEMBERS | ( | OdDbTable | ) |
Updates the block table record referenced by this table entity.
forceUpdate | [in] Force an update of the block table record. |
If forceUpdate is false, the block table record is updated if and only if this table entity has been changed since the block table record was last updated.
If forceUpdate is true, the block table will be unconditionally updated.
Removes all overrides in the cell, row, or column. Use a valid row index and pass column index -1 to remove row property overrides. Use a valid column index and pass row index -1 to remove column property overrides.
row | [in] Row index. |
col | [in] Column index. |
Removes the data link at the specified cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
|
virtual |
Returns an array of sub-entities of the current sub-selection cells in the output argument paths.
pPaths | [out] Pointer to an OdDbFullSubentPathArray. |
If pPaths is empty, there are no sub-selection cells.
Resets the value in a specified cell.
row | [in] Row index. |
col | [in] Column index. |
double OdDbTable::rotation | ( | ) | const |
Returns table rotation in radians as a double value.
Returns the content rotation angle in radians as a double value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
|
virtual |
Returns the height of the specified row in this table entity (DXF 141).
row | [in] Row index. |
|
virtual |
Returns the type of the specified row in this table entity.
row | [in] Row index. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns the scale value of the cell as a double value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
|
virtual |
Selects a cell in this table by the specified point, viewing direction, and orientation. Returns the row index and the column index of the selected cell that encloses the input point.
wpt | [in] Input 3D picking point in WCS. |
wvwVec | [in] 3D vector in WCS that specifies the view direction for the hit test. |
wvwxVec | [in] 3D vector in WCS that specifies the view orientation for the hit test. |
wxaper | [in] Width of aperture box centered at the hit point. |
wyaper | [in] Height of aperture box centered at the hit point. |
allowOutside | [in] Indicates whether a pick point outside the table will select a cell. |
bInPickFirst | [in] If true, the entity is already in the pickfirst set; if false, the pickfirst logic should attempt to sub-select the entity directly. |
resultRowIndex | [out] Row index. |
resultColumnIndex | [out] Column index. |
pPaths | [out] Pointer to an OdDbFullSubentPathArray. |
If pPaths is not null, the cell subentities will be returned in pPaths.
|
virtual |
|
virtual |
Selects a set of cells in this table by the specified window box, viewing direction, and orientation. Returns the set of cells in the output arguments rowMin, rowMax, colMin, colMax.
wpt1 | [in] 3D picking point in WCS that specifies the first corner point of the window box selection. |
wpt2 | [in] 3D picking point in WCS that specifies the second corner point of the window box selection. |
wvwVec | [in] 3D vector in WCS that specifies the view direction for the selection. |
wvwxVec | [in] 3D vector in WCS that specifies the view orientation for the hit test. |
wxaper | [in] Width of aperture box centered at the hit point. |
wyaper | [in] Height of aperture box centered at the hit point. |
seltype | [in] Selection type. |
bIncludeCurrentSelection | [in] Indicates whether the selected cells will include currently selected cells and newly selected cells or only newly selected cells. |
bInPickFirst | [in] If true, the entity is already in the pickfirst set; if false, the pickfirst logic should attempt to sub-select the entity directly. |
rowMin | [out] Lower bound of row index. |
rowMax | [out] Upper bound of row index. |
colMin | [out] Lower bound of column index. |
colMax | [out] Upper bound of column index. |
pPaths | [out] Pointer to an OdDbFullSubentPathArray. |
If pPaths is not null, the cell sub-entities will be returned in pPaths.
|
virtual |
Sets the cell alignment for the specified row types in this table entity (DXF 170).
alignment | [in] Alignment. |
rowTypes | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
alignment must be one of the following:
Value OdDb::kTopLeft 1 OdDb::kTopCenter 2 OdDb::kTopRight 3 OdDb::kMiddleLeft 4 OdDb::kMiddleCenter 5 OdDb::kMiddleRight 6 OdDb::kBottomLeft 7 OdDb::kBottomCenter 8 OdDb::kBottomRight 9
Method generates the eInvalidInput exception when the alignment is out of the available range 1 to 9, when the row argument is more than the number of rows, or when the column argument is more than the number of columns.
|
virtual |
Sets the cell alignment for the specified cell in this table entity (DXF 170).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
alignment | [in] Alignment. |
Alignment must be one of the following:
Value OdDb::kTopLeft 1 OdDb::kTopCenter 2 OdDb::kTopRight 3 OdDb::kMiddleLeft 4 OdDb::kMiddleCenter 5 OdDb::kMiddleRight 6 OdDb::kBottomLeft 7 OdDb::kBottomCenter 8 OdDb::kBottomRight 9
Method generates the eInvalidInput exception when the alignment is out of the available range 1 to 9, when the row argument is more than the number of rows, or when the column argument is more than the number of columns.
Sets the auto-scaled flag to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
autoFit | [in] Auto-scaled flag. |
Determines if the block in the specified cell in this table entity is to be automatically scaled and positioned to fit into the cell.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
autoScale | [in] True to autoscale the block to the cell. |
|
virtual |
Sets the background color for the specified row types in this table entity (DXF 63).
color | [in] Background color. |
rowTypes | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
|
virtual |
Sets the background color for the specified cell in this table entity (DXF 63).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
color | [in] Background color. |
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
|
virtual |
Controls the background color setting for the specified row types in this table entity (DXF 283).
disable | [in] Disables the background color if true, enables if false. |
rowTypes | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
|
virtual |
Controls the background color setting for the specified cell in this table entity (DXF 283).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
disable | [in] Disables the background color if true, enables if false. |
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
void OdDbTable::setBlockAttributeValue | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdDbObjectId & | attdefId, | ||
const OdString & | atrValue | ||
) |
Sets the attribute value of the block cell using the specified object id key as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
attdefId | [in] Object id. |
atrValue | [in] Attribute value. |
|
virtual |
Sets the attribute value for the specified Object ID OdDb::key for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
attdefId | [in] Object ID of the OdDbAttributeDefinition. |
attValue | [out] Sets the attribute value. |
|
virtual |
Sets the rotation angle of the block reference in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
blockRotation | [in] Rotation angle. |
Sets the scale factor of the block reference in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
blockScale | [in] Uniform scale factor. |
Method generates the eInvalidInput exception when the row argument is more than the number of rows,
the column argument is more than the number of columns, or the cell type is not OdDb::kBlockCell.
void OdDbTable::setBlockTableRecordId | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdDbObjectId & | blkId, | ||
bool | autoFit | ||
) |
Sets the id of the block table record of the cell as an object of the OdDbObjectId class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
blkId | [in] Id of block table record. |
autoFit | [in] Flag that indicates whether the block should be auto fit. |
|
virtual |
Sets the Object ID of the block table record in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
blockId | [in] Object ID of the block. |
autoScale | [in] If true, autoscales the block to the cell. |
void OdDbTable::setBreakFlowDirection | ( | OdDb::TableBreakFlowDirection | flowDir | ) |
Sets table break flow direction of this table entity.
flowDir | [in] Table break flow direction. |
Sets the table break height of the specified table entity.
index | [in] Sub-table index. |
height | [in] Sub-table break height. |
void OdDbTable::setBreakOffset | ( | OdUInt32 | index, |
const OdGeVector3d & | vec | ||
) |
Sets the table break offset of the specified table entity.
index | [in] Sun-table index. |
vec | [in] Vector for table break offset. |
void OdDbTable::setBreakOption | ( | OdDb::TableBreakOption | option | ) |
Sets the table break option of this table entity.
option | [in] Table break option. |
Value Description OdDb::kTableBreakNone 0 No table break. OdDb::kTableBreakEnableBreaking 0x01 Enable table breaking. OdDb::kTableBreakRepeatTopLabels 0x02 Repeat top labels in all tables.
OdDb::kTableBreakRepeatBottomLabels 0x04 Repeat bottom labels in all tables. OdDb::kTableBreakAllowManualPositions 0x08 Allow manual position for each sub-table. OdDb::kTableBreakAllowManualHeights 0x10 Allow manual height for each sub-table.
void OdDbTable::setBreakSpacing | ( | double | spacing | ) |
Sets the break spacing for this table entity.
spacing | [in] Spacing value. |
void OdDbTable::setCellState | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::CellState | nLock | ||
) |
Sets the cell state.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nLock | [in] Cell state. |
Value kCellStateNone 0x00 kCellStateContentLocked 0x01 kCellStateContentReadOnly 0x02 kCellStateLinked 0x04 kCellStateContentModifiedAfterUpdate 0x08 kCellStateFormatLocked 0x10 kCellStateFormatReadOnly 0x20 kCellStateFormatModifiedAfterUpdate 0x40 kAllCellStates (kCellStateContentLocked | kCellStateContentReadOnly | kCellStateLinked | kCellStateContentModifiedAfterUpdate | kCellStateFormatLocked | kCellStateFormatReadOnly | kCellStateFormatModifiedAfterUpdate)
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
Sets the cell style. Use a valid row index and pass column index -1 to set style for row. Use a valid column index and pass row index -1 to set style for column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
sCellStyle | [in] Cell style. |
_TITLE
_HEADER _DATA
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
|
virtual |
Sets the cell type for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
cellType | [in] Cell type. |
Value Description OdDb::kTextCell 1 Text cell type OdDb::kBlockCell 2 Block cell type
Method generates the eInvalidInput exception when the text cell type number is out of the range 1 to 2, the row argument is more than the number of rows, or the column argument is more than the number of columns.
Sets the column name.
nIndex | [in] Column index. |
sName | [in] Column name. |
|
virtual |
Sets the width of all columns in this table entity (DXF 142).
width | [in] Column width. |
Sets the width of the specified column in this table entity (DXF 142).
column | [in] Column index. |
width | [in] Column width. |
|
virtual |
Sets the content color for the specified row types in this table entity (DXF 64).
color | [in] Content color. |
nRowType | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
void OdDbTable::setContentColor | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdCmColor & | color | ||
) |
Sets the color of the cell content.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
color | [in] Color content. |
|
virtual |
Sets the content color for the specified cell in this table entity (DXF 64).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
color | [in] Content color. |
Method generates the eInvalidInput exception when the row type mask is more than 7, the row argument is more than the number of rows, or the column argument is more than the number of columns.
void OdDbTable::setContentLayout | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::CellContentLayout | nLayout | ||
) |
Sets content layout to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nLayout | [in] Content layout. |
Value kCellContentLayoutFlow 0x1 kCellContentLayoutStackedHorizontal 0x2 kCellContentLayoutStackedVertical 0x4
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size. Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
void OdDbTable::setCustomData | ( | OdInt32 | row, |
OdInt32 | col, | ||
const OdString & | sKey, | ||
const OdValue * | pData | ||
) |
Sets the custom data value of the cell, column, or row. Use a valid row index and pass column index -1 to get row data Use a valid column index and pass row index -1 to get column data
row | [in] Row index. |
col | [in] Column index. |
sKey | [in] Key to use for the custom data. |
pData | [in] Custom data value. |
Sets the custom data value of the cell, column, or row. Use a valid row index and pass column index -1 to set row data. Use a valid column index and pass row index -1 to set column data.
row | [in] Row index. |
col | [in] Column index. |
nData | [in] Custom data value. |
Sets the data format of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
sFormat | [in] Data format. |
void OdDbTable::setDataFormat | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdString & | sFormat | ||
) |
Sets data format of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
sFormat | [in] Data format. |
nContent | [in] Number of content. |
void OdDbTable::setDataLink | ( | const OdCellRange & | range, |
const OdDbObjectId & | idDataLink, | ||
bool | bUpdate | ||
) |
Sets the data link (OdDbDataLink) for the specified cell range.
range | [in] Cell range. |
idDataLink | [in] Array of data link IDs. |
bUpdate | [in] Flag that indicates whether or not the data link should be updated after setting it. |
void OdDbTable::setDataLink | ( | OdInt32 | row, |
OdInt32 | col, | ||
const OdDbObjectId & | idDataLink, | ||
bool | bUpdate | ||
) |
Sets the data link (OdDbDataLink) for the specified row and column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
idDataLink | [in] Array of data link IDs. |
bUpdate | [in] Flag that indicates whether or not the data link should be updated after setting it. |
void OdDbTable::setDataType | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdValue::DataType | nDataType, | ||
OdValue::UnitType | nUnitType | ||
) |
Sets the data type to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nDataType | [in] Data type. |
nUnitType | [in] Unit type. |
Value kUnknown 0x00 kLong 0x01 kDouble 0x02 kString 0x04 kDate 0x08 kPoint 0x10 k3dPoint 0x20 kObjectId 0x40 kBuffer 0x80 kResbuf 0x100 kGeneral 0x200 kColor 0x400
Unit type should take one of following values:
Value kUnitless 0x00, kDistance 0x01, kAngle 0x02, kArea 0x04, kVolume 0x08, kCurrency 0x10, kPercentage 0x20
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size. Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
void OdDbTable::setDataType | ( | OdUInt32 | row, |
OdUInt32 | col, | ||
OdValue::DataType | nDataType, | ||
OdValue::UnitType | nUnitType | ||
) |
Sets the data type and unit type of the specified cell.
row | [in] Row index. Should be more than or equal to 0 and less than the number of rows. |
col | [in] Column index. Should be more than or equal to 0 and less than the number of columns. |
nDataType | [in] Data type. |
nUnitType | [in] Unit type. |
|
virtual |
Sets the data type and unit type for all row types.
nDataType | [in] Data type. |
nUnitType | [in] Unit type. |
|
virtual |
Sets the data type and unit type for the specified row types.
nDataType | [in] Data type. |
nUnitType | [in] Unit type. |
nRowTypes | [in] Row types. |
|
virtual |
Sets the X-axis for this table entity in WCS coordinates (DXF 11, 21, 31).
horizVector | [in] Horizontal vector. |
void OdDbTable::setFieldId | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdDbObjectId & | fieldId, | ||
OdDb::CellOption | nFlag | ||
) |
Sets a field id to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
fieldId | [in] Field id. |
nFlag | [in] Cell option. |
|
virtual |
Sets the Object ID for OdDbField in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
fieldId | [in] Object ID of the AdDbField. |
|
virtual |
Sets the direction that this table entity flows from its first row to its last. (DXF 70).
flowDirection | [in] Flow direction. |
Value Description OdDb::kTtoB 0 Top to Bottom OdDb::kBtoT 1 Bottom to Top
Method generates the eInvalidInput exception when the flow direction is not equal to 0 or 1.
void OdDbTable::setFormula | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdString & | pszFormula | ||
) |
Sets the formula of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
pszFormula | [in] Formula. |
|
virtual |
Sets the grid color for the specified gridline types and row type in this table entity (DXF 63,64,65,66,68,69).
color | [in] Grid color. |
gridlineTypes | [in] Gridline types. |
rowTypes | [in] Row types. |
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
rowTypes must be a combination of one or more of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
void OdDbTable::setGridColor | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridlineTypes, | ||
const OdCmColor & | color | ||
) |
Sets the grid color of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid line color. Use a valid column index and pass row index -1 to get column grid line color.
row | [in] Row index. |
col | [in] Column index. |
nGridlineTypes | [in] Grid linetypes. |
color | [in] Grid color. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
|
virtual |
Sets the grid color for the specified cell and edges in this table entity (DXF 63,64,65,66,68,69).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeTypes | [in] Edge types. |
color | [in] Grid color. |
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
void OdDbTable::setGridDoubleLineSpacing | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
double | fSpacing | ||
) |
Sets the grid double line spacing of the cell, row, or column. Use a valid row index and pass column index -1 to set row grid double line spacing. Use a valid column index and pass row index -1 to set column grid double line spacing.
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [in] Grid linetypes. |
fSpacing | [in] Grid double line spacing. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
void OdDbTable::setGridLineStyle | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
OdDb::GridLineStyle | nLineStyle | ||
) |
Sets the grid line style to the cell, row, or column. Use a valid row index and pass column index -1 to set row grid line style. Use a valid column index and pass row index -1 to set column grid line style.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
nLineStyle | [in] Grid line style. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid line style should take one of the following values:
Value kGridLineStyleSingle 1 kGridLineStyleDouble 2
void OdDbTable::setGridLinetype | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
const OdDbObjectId & | idLinetype | ||
) |
Sets the grid linetype of the cell, row, or column. Use a valid row index and pass column index -1 to set row grid linetype. Use a valid column index and pass row index -1 to set column grid linetype.
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [in] Grid linetypes. |
idLinetype | [in] Grid linetype to set. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
|
virtual |
Sets the grid lineweight for the specified gridline types and row types in this table entity (DXF 274-279).
lineWeight | [in] Lineweight. |
gridlineTypes | [in] Gridline types. |
rowTypes | [in] Row types. |
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kVertLeft 8 Left-most table's grid line. OdDb::kVertInside 0x10 All vertical grid lines, excluding the left-most and right-most lines. OdDb::kVertRight 0x20 Right-most table's grid line.
rowTypes must be a combination of one or more of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
void OdDbTable::setGridLineWeight | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
OdDb::LineWeight | nLineWeight | ||
) |
Sets the grid lineweight of the cell, row, or column. Use a valid row index and pass column index -1 to set row grid lineweight. Use a valid column index and pass row index -1 to set column grid lineweight.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
nLineWeight | [in] Grid lineweight. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid lineweight should take one of the following values:
Value kLnWt000 0 kLnWt005 5 kLnWt009 9 kLnWt013 13 kLnWt015 15 kLnWt018 18 kLnWt020 20 kLnWt025 25 kLnWt030 30 kLnWt035 35 kLnWt040 40 kLnWt050 50 kLnWt053 53 kLnWt060 60 kLnWt070 70 kLnWt080 80 kLnWt090 90 kLnWt100 100 kLnWt106 106 kLnWt120 120 kLnWt140 140 kLnWt158 158 kLnWt200 200 kLnWt211 211 kLnWtByLayer -1 kLnWtByBlock -2 kLnWtByLwDefault -3
|
virtual |
Sets the grid lineweight for the specified cell and edges in this table entity (DXF 274-279).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeTypes | [in] Edge types. |
lineWeight | [in] Lineweight. |
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
void OdDbTable::setGridProperty | ( | const OdCellRange & | rangeIn, |
OdDb::GridLineType | nGridLineTypes, | ||
const OdGridProperty & | gridProp | ||
) |
Sets the grid line property of the cell, row, or column.
rangeIn | [in] Cell range, row range or column range. |
nGridLineTypes | [in] Grid linetypes. |
gridProp | [in] Grid line property. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
void OdDbTable::setGridProperty | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
const OdGridProperty & | gridProp | ||
) |
Sets the grid line property of the cell, row, or column. Use a valid row index and pass column index -1 to get row grid property. Use a valid column index and pass row index -1 to get column grid property.
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [in] Grid linetypes. |
gridProp | [in] Grid line property. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
|
virtual |
Sets the grid visibility for the specified gridline types and row types in this table entity (DXF 284-289).
gridVisibility | [in] Grid visibility. |
gridlineTypes | [in] Gridline types. |
rowTypes | [in] Row types. |
Value OdDb::kInvisible 1 OdDb::kVisible 0
gridlineTypes must be a combination of one or more of the following:
Value Description OdDb::kHorzTop 1 Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kHorzInside 2 All horizontal grid lines, excluding the bottom and top lines. OdDb::kHorzBottom 4 Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up). OdDb::kVertLeft 8 Left-most table's grid line. OdDb::kVertInside 0x10 All vertical grid lines, excluding the left-most and right-most lines. OdDb::kVertRight 0x20 Right-most table's grid line.
rowTypes must be a combination of one or more of the following:
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
void OdDbTable::setGridVisibility | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineTypes, | ||
OdDb::Visibility | nVisibility | ||
) |
Sets the grid visibility of the cell, row, or column. Use a valid row index and pass column index -1 to set row grid visibility . Use a valid column index and pass row index -1 to set column grid visibility .
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [in] Grid linetypes. |
nVisibility | [in] Grid line visibility. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
Grid visibility should take one of the following values:
Value kInvisible 1 kVisible 0
|
virtual |
Sets the grid visibility for the specified cell and edges in this table entity (DXF 284-289).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
edgeTypes | [in] Edge types. |
gridVisibility | [in] Grid visibility. |
Value OdDb::kInvisible 1 OdDb::kVisible 0
edgeTypes must be a combination of one or more of the following:
Value Description OdDb::kTopMask 1 Top-edge index of the table cell. OdDb::kRightMask 2 Right-edge index of the table cell. OdDb::kBottomMask 4 Bottom-edge index of the table cell. OdDb::kLeftMask 8 Left-edge index of the table cell.
Method generates the eInvalidInput exception when the row argument is more than the number of rows or the column argument is more than the number of columns.
|
virtual |
Sets the overall height of this table entity.
height | [in] Overall height. |
Method generates the eInvalidInput exception when the height is negative.
|
virtual |
Sets the horizontal cell margin for this table entity (DXF 40).
cellMargin | [in] Cell margin. |
Method generates the eInvalidInput exception when the cell margin is negative or zero.
void OdDbTable::setMargin | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::CellMargin | nMargins, | ||
double | fMargin | ||
) |
Sets the margin to the cell, row, or column. Use a valid row index and pass column index -1 to set margin for row. Use a valid column index and pass row index -1 to set margin for column.
row | [in] Row index. |
col | [in] Column index. |
nMargins | [in] Margin type. |
fMargin | [in] Margin. |
Value kCellMarginTop 0x01 kCellMarginLeft 0x02 kCellMarginBottom 0x04 kCellMarginRight 0x08 kCellMarginHorzSpacing 0x10 kCellMarginVertSpacing 0x20
Sets the number of columns for this table entity (DXF 92).
numColumns | [in] Number of columns. |
Method generates the eInvalidInput exception when the number of columns is less than one.
Sets the number of rows for this table entity (DXF 91).
numRows | [in] Number of rows. |
Method generates the eInvalidInput exception when the number of rows is less than one.
void OdDbTable::setOverride | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::GridLineType | nGridLineType, | ||
OdDb::GridProperty | nOverride | ||
) |
Sets the override in the cell, row, column, content, or grid line in the cell, row, or column. Use a valid row index and pass column index -1 to set row property overrides. Use a valid column index and pass row index -1 to set column property overrides.
row | [in] Row index. |
col | [in] Column index. |
nGridLineType | [in] Grid linetype. |
nOverride | [in] Override. |
Value kInvalidGridLine 0x00 kHorzTop 0x01 kHorzInside 0x02 kHorzBottom 0x04 kVertLeft 0x08 kVertInside 0x10 kVertRight 0x20 kHorzGridLineTypes kHorzTop|kHorzBottom|kHorzInside kVertGridLineTypes kVertLeft|kVertRight|kVertInside kOuterGridLineTypes kHorzTop|kHorzBottom|kVertLeft|kVertRight kInnerGridLineTypes kHorzInside|kVertInside kAllGridLineTypes kOuterGridLineTypes|kInnerGridLineTypes
void OdDbTable::setOverride | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdDb::CellProperty | nOverride | ||
) |
Sets the override in the cell, row, column, content, or grid line in the cell, row, or column. Use a valid row index and pass column index -1 to set row property overrides. Use a valid column index and pass row index -1 to set column property overrides.
row | [in] Row index. |
col | [in] Column index. |
nContent | [in] Content index. |
nOverride | [in] Override. |
Value kCellPropInvalid 0x00000 kCellPropDataType 0x00001 kCellPropDataFormat 0x00002 kCellPropRotation 0x00004 kCellPropScale 0x00008 kCellPropAlignment 0x00010 kCellPropContentColor 0x00020 kCellPropTextStyle 0x00040 kCellPropTextHeight 0x00080 kCellPropAutoScale 0x00100 kCellPropBackgroundColor 0x00200 kCellPropMarginLeft 0x00400 kCellPropMarginTop 0x00800 kCellPropMarginRight 0x01000 kCellPropMarginBottom 0x02000 kCellPropContentLayout 0x04000 kCellPropMergeAll 0x08000 kCellPropFlowDirBtoT 0x10000 kCellPropMarginHorzSpacing 0x20000 kCellPropMarginVertSpacing 0x40000 kCellPropDataTypeAndFormat (kCellPropDataType | kCellPropDataFormat) kCellPropContent (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropContentColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropAutoScale) kCellPropBitProperties (kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT) kCellPropAll (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropAlignment | kCellPropContentColor | kCellPropBackgroundColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropMarginLeft | kCellPropMarginTop | kCellPropMarginRight | kCellPropMarginBottom | kCellPropMarginHorzSpacing | kCellPropMarginVertSpacing | kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT | kCellPropContentLayout)
|
virtual |
Sets table rotation in radians as a double value.
fAngle | [in] Rotation angle. |
Reimplemented from OdDbBlockReference.
Sets the content rotation angle in radians.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
fAngle | [in] Rotation angle. |
|
virtual |
Sets the height of all rows in this table entity (DXF 141).
height | [in] Row height. |
Sets the height of the specified row in this table entity (DXF 141).
row | [in] Row index. |
height | [in] Row height. |
Sets scale value to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
scale | [in] Scale value. |
Sets the size for this table entity.
rows | [in] Number of rows. |
cols | [in] Number of columns. |
|
virtual |
Sets the cell range to the sub-selection set.
range | [in] Cell range. |
|
virtual |
Sets the row and column indexes of the cells in the sub-selection set.
rowMin | [in] Lower bound of row index. |
rowMax | [in] Upper bound of row index. |
colMin | [in] Lower bound of column index. |
colMax | [in] Upper bound of column index. |
|
virtual |
Sets the Object ID of the OdDbTableStyle for use by this table entity (DXF 342).
tableStyleId | [in] Object ID of the table style. |
|
virtual |
Sets the text height for the specified row types or cell in this table entity (DXF 140).
height | [in] Text height. |
rowTypes | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row type mask is more than 7 or the text height is negative.
Returns the text height of the cell as a double value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
height | [in] Text height. |
Sets the text height for the specified cell in this table entity (DXF 140).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
height | [in] Text height. |
Method generates the eInvalidInput exception when the row argument is more than the number of rows, the column argument is more than the number of columns, or the cell type is not OdDb::kTextCell.
|
virtual |
Sets the text rotation angle of the text in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
textRotation | [in] Text rotation angle. |
Value Description OdDb::kDegrees000 0 0° OdDb::kDegrees090 1 90° CCW OdDb::kDegrees180 2 180° OdDb::kDegrees270 3 90° CW
Sets a text string to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
text | [in] Text string. |
|
virtual |
Sets the text string for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
textString | [in] Text string. |
|
virtual |
Sets the Object ID of the text style for the specified row types in this table entity (DXF 7).
textStyleId | [in] Text style Object ID. |
rowTypes | [in] Row types. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Method generates the eInvalidInput exception when the row type mask is more than 7 or the object ID is invalid or kNull.
void OdDbTable::setTextStyle | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdDbObjectId & | id | ||
) |
Sets the text style to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
id | [in] Text style id. |
|
virtual |
Sets the Object ID of the text style for the specified cell in this table entity (DXF 7).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
textStyleId | [in] Text style Object ID. |
Sets the tooltip of the cell.
row | [in] Row index. |
col | [in] Column index. |
sToolTip | [in] Tooltip. |
Sets a value to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
val | [in] Value. |
void OdDbTable::setValue | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdValue & | val, | ||
OdValue::ParseOption | nOption | ||
) |
Sets a value to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
val | [in] Value. |
nOption | [in] Parse option of value. |
Value kParseOptionNone 0x00 kSetDefaultFormat 0x01 kPreserveMtextFormat 0x02 kConvertTextToValue 0x04 kChangeDataType 0x08 kParseTextForFieldCode 0x10
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size. Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
void OdDbTable::setValue | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdString | sText, | ||
OdValue::ParseOption | nOption | ||
) |
Sets a value to the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
sText | [in] Text of the value. |
nOption | [in] Parse option of value. |
Value kParseOptionNone 0x00 kSetDefaultFormat 0x01 kPreserveMtextFormat 0x02 kConvertTextToValue 0x04 kChangeDataType 0x08 kParseTextForFieldCode 0x10
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
Sets the value of the first content of a cell.
row | [in] Row index. Should be more than or equal to 0 and less than the number of rows. |
col | [in] Column index. Should be more than or equal to 0 and less than the number of columns. |
val | [in] Content value. |
void OdDbTable::setValue | ( | OdUInt32 | row, |
OdUInt32 | col, | ||
OdString & | pszText, | ||
OdValue::ParseOption | nOption | ||
) |
Sets the value of the first content of a cell.
row | [in] Row index. Should be more than or equal to 0 and less than the number of rows. |
col | [in] Column index. Should be more than or equal to 0 and less than the number of columns. |
pszText | [in] Text for converting to set value. |
nOption | [out] Parse option. |
|
virtual |
Sets the vertical cell margin for this table entity (DXF 41).
cellMargin | [in] Cell margin. |
Method generates the eInvalidInput exception when the vertical cell margin is negative or zero.
|
virtual |
Sets the overall width for this table entity.
width | [in] Overall width. |
Method generates the eInvalidInput exception when the width is negative.
|
virtual |
Called as the first operation as this object is being closed, for database-resident objects only.
Reimplemented from OdDbBlockReference.
|
virtual |
Explodes this entity into a set of simpler entities.
entitySet | [in] Receives an array of pointers to the new entities. |
Reimplemented from OdDbBlockReference.
Overridables
Reimplemented from OdDbBlockReference.
|
virtual |
This is subGetGeomExtents, a member of class OdDbBlockReference.
extents | [out] An output extents. |
Reimplemented from OdDbBlockReference.
|
virtual |
This is subGetTransformedCopy, a member of class OdDbBlockReference.
xfm | [in] Input matrix for transforming the copy of the entity. |
pCopy | [out] Pointer to the transformed copy of the entity. |
Reimplemented from OdDbBlockReference.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Applies the specified 3D transformation matrix to this entity.
xfm | [in] 3D transformation matrix. |
Reimplemented from OdDbBlockReference.
|
virtual |
Returns true if the entity has no view-dependent graphics. In another case returns false.
pWd | [in] Pointer to the OdGiWorldDraw object. |
Reimplemented from OdDbBlockReference.
|
virtual |
Controls the suppression of the header row for this table entity (DXF 280).
suppress | [in] Controls suppression. |
void OdDbTable::suppressRegenerateTable | ( | bool | bSuppress | ) |
This method allows the user to disable the regeneration of the table block during property changes.
bSuppress | [in] Input boolean value to suppress or enable the regeneration of a table object. |
|
virtual |
Controls the suppression of the title row (DXF 280).
suppress | [in] Controls suppression. |
|
virtual |
Returns the Object ID of the OdDbTableStyle used by this table entity (DXF 342).
|
virtual |
Returns the table style overrides for this table entity.
overrides | [out] Receives an array of table style overrides for this table entity. |
|
virtual |
Returns the text height for the specified row type in this table entity (DXF 140).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
Returns the text height of the cell as a double value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
Returns the text height for the specified cell in this table entity (DXF 140).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Returns the text rotation angle for the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
Value Description OdDb::kDegrees000 0 0° OdDb::kDegrees090 1 90° CCW OdDb::kDegrees180 2 180° OdDb::kDegrees270 3 90° CW
Returns text string of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
OdString OdDbTable::textString | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdValue::FormatOption | nOption | ||
) | const |
Returns the text string of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
nOption | [in] Format option of value. |
Value kFormatOptionNone 0x00 kForEditing 0x01 kForExpression 0x02 kUseMaximumPrecision 0x04 kIgnoreMtextFormat 0x08
OdString OdDbTable::textString | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdValue::FormatOption | nOption | ||
) | const |
Returns the text string of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nOption | [in] Format option of value. |
Value kFormatOptionNone 0x00 kForEditing 0x01 kForExpression 0x02 kUseMaximumPrecision 0x04 kIgnoreMtextFormat 0x08
Returns the text string in the specified cell in this table entity.
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Returns the Object ID of the text style for the specified row type in this table entity (DXF 7).
rowType | [in] Row type. |
Value Description OdDb::kTitleRow 1 The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up). OdDb::kHeaderRow 2 The first row, which is placed after or before the title row. OdDb::kDataRow 4 The row, which is neither title row nor header row.
OdDbObjectId OdDbTable::textStyle | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent | ||
) | const |
Returns the text style of the cell as an object of the OdDbObjectId class.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
|
virtual |
Returns the Object ID of the text style for the specified cell in this table entity (DXF 7).
row | [in] Row index of the cell. |
column | [in] Column index of the cell. |
|
virtual |
Unmerges a rectangular region of cells in this table entity.
minRow | [in] Minimum row index of the merged cells. |
maxRow | [in] Maximum row index of the merged cells. |
minColumn | [in] Minimum column index of the merged cells. |
maxColumn | [in] Maximum column index of the merged cells. |
void OdDbTable::updateDataLink | ( | OdDb::UpdateDirection | nDir, |
OdDb::UpdateOption | nOption | ||
) |
Updates the data link in the table.
nDir | [in] Direction of update |
nOption | [out] Update option. |
Value kUpdateDirectionSourceToData 0x1 kUpdateDirectionDataToSource 0x2
Update option should take one of the following values:
Value kUpdateOptionNone 0 kUpdateOptionSkipFormat 0x20000 kUpdateOptionUpdateRowHeight 0x40000 kUpdateOptionUpdateColumnWidth 0x80000 kUpdateOptionAllowSourceUpdate 0x100000 kUpdateOptionForceFullSourceUpdate 0x200000 kUpdateOptionOverwriteContentModifiedAfterUpdate 0x400000 kUpdateOptionOverwriteFormatModifiedAfterUpdate 0x800000 kUpdateOptionForPreview 0x1000000 kUpdateOptionIncludeXrefs 0x2000000 kUpdateOptionSkipFormatAfterFirstUpdate 0x4000000
void OdDbTable::updateDataLink | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdDb::UpdateDirection | nDir, | ||
OdDb::UpdateOption | nOption | ||
) |
Updates the data link of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nDir | [in] Direction of update. |
nOption | [in] Update option. |
Value kUpdateDirectionSourceToData 0x1 kUpdateDirectionDataToSource 0x2
Update option should take one of the following values:
Value kUpdateOptionNone 0 kUpdateOptionSkipFormat 0x20000 kUpdateOptionUpdateRowHeight 0x40000 kUpdateOptionUpdateColumnWidth 0x80000 kUpdateOptionAllowSourceUpdate 0x100000 kUpdateOptionForceFullSourceUpdate 0x200000 kUpdateOptionOverwriteContentModifiedAfterUpdate 0x400000 kUpdateOptionOverwriteFormatModifiedAfterUpdate 0x800000 kUpdateOptionForPreview 0x1000000 kUpdateOptionIncludeXrefs 0x2000000 kUpdateOptionSkipFormatAfterFirstUpdate 0x4000000
Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
Returns the value of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
OdValue OdDbTable::value | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
OdValue::FormatOption | nOption | ||
) | const |
Returns the value of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
nOption | [in] Format option of value. |
Value kFormatOptionNone 0x00 kForEditing 0x01 kForExpression 0x02 kUseMaximumPrecision 0x04 kIgnoreMtextFormat 0x08
Returns the content value at the specified content index.
row | [in] Row index. Should be more than or equal to 0 and less than the number of rows. |
col | [in] Column index. Should be more than or equal to 0 and less than the number of columns. |
|
virtual |
Returns the vertical cell margin for this table entity (DXF 41).
|
virtual |
Returns the overall width of this table entity.