CFx SDK Documentation 2024 SP0
|
#include <DbTable.h>
This class represents table entities in an OdDbDatabase instance.
<group OdDb_Classes>
Enumeration representing the table style overrides for an OdDbTable object.
Enumerator | |
---|---|
kTitleSuppressed | Title suppressed table style override for an OdDbTable object |
kHeaderSuppressed | Header suppressed table style override for an OdDbTable object |
kFlowDirection | Flow direction table style override for an OdDbTable object |
kHorzCellMargin | Horizontal cell margin table style override for an OdDbTable object |
kVertCellMargin | Vertical cell margin table style override for an OdDbTable object |
kTitleRowColor | Title row color table style override for an OdDbTable object |
kHeaderRowColor | Header row color table style override for an OdDbTable object |
kDataRowColor | Data row color table style override for an OdDbTable object |
kTitleRowFillNone | Title row no fill table style override for an OdDbTable object |
kHeaderRowFillNone | Header row no fill table style override for an OdDbTable object |
kDataRowFillNone | Data row no fill table style override for an OdDbTable object |
kTitleRowFillColor | Title row fill color table style override for an OdDbTable object |
kHeaderRowFillColor | Header row fill color table style override for an OdDbTable object |
kDataRowFillColor | Data row fill color table style override for an OdDbTable object |
kTitleRowAlignment | Title row alignment table style override for an OdDbTable object |
kHeaderRowAlignment | Header row alignment table style override for an OdDbTable object |
kDataRowAlignment | Data row alignment table style override for an OdDbTable object |
kTitleRowTextStyle | Title row text style table style override for an OdDbTable object |
kHeaderRowTextStyle | Header row text style table style override for an OdDbTable object |
kDataRowTextStyle | Data row text style table style override for an OdDbTable object |
kTitleRowTextHeight | Title row text height table style override for an OdDbTable object |
kHeaderRowTextHeight | Header row text height table style override for an OdDbTable object |
kDataRowTextHeight | Data row text height table style override for an OdDbTable object |
kTitleRowDataType | Title row data type table style override for an OdDbTable object |
kHeaderRowDataType | Header row data type table style override for an OdDbTable object |
kDataRowDataType | Data row data type table style override for an OdDbTable object |
kTitleHorzTopColor | Title row horizontal top gridline color table style override for an OdDbTable object |
kTitleHorzInsideColor | Title row horizontal inside gridline color table style override for an OdDbTable object |
kTitleHorzBottomColor | Title row horizontal bottom gridline color table style override for an OdDbTable object |
kTitleVertLeftColor | Title row vertical left gridline color table style override for an OdDbTable object |
kTitleVertInsideColor | Title row vertical inside gridline color table style override for an OdDbTable object |
kTitleVertRightColor | Title row vertical right gridline color table style override for an OdDbTable object |
kHeaderHorzTopColor | Header row horizontal top gridline color table style override for an OdDbTable object |
kHeaderHorzInsideColor | Header row horizontal inside gridline color table style override for an OdDbTable object |
kHeaderHorzBottomColor | Header row horizontal bottom gridline color table style override for an OdDbTable object |
kHeaderVertLeftColor | Header row vertical left gridline color table style override for an OdDbTable object |
kHeaderVertInsideColor | Header row vertical inside gridline color table style override for an OdDbTable object |
kHeaderVertRightColor | Header row vertical right gridline color table style override for an OdDbTable object |
kDataHorzTopColor | Data row horizontal top gridline color table style override for an OdDbTable object |
kDataHorzInsideColor | Data row horizontal inside gridline color table style override for an OdDbTable object |
kDataHorzBottomColor | Data row horizontal bottom gridline color table style override for an OdDbTable object |
kDataVertLeftColor | Data row vertical left gridline color table style override for an OdDbTable object |
kDataVertInsideColor | Data row vertical inside gridline color table style override for an OdDbTable object |
kDataVertRightColor | Data row vertical right gridline color table style override for an OdDbTable object |
kTitleHorzTopLineWeight | Title row horizontal top gridline lineweight table style override for an OdDbTable object |
kTitleHorzInsideLineWeight | Title row horizontal inside gridline lineweight table style override for an OdDbTable object |
kTitleHorzBottomLineWeight | Title row horizontal bottom gridline lineweight table style override for an OdDbTable object |
kTitleVertLeftLineWeight | Title row vertical left gridline lineweight table style override for an OdDbTable object |
kTitleVertInsideLineWeight | Title row vertical inside gridline lineweight table style override for an OdDbTable object |
kTitleVertRightLineWeight | Title row vertical right gridline lineweight table style override for an OdDbTable object |
kHeaderHorzTopLineWeight | Header row horizontal top gridline lineweight table style override for an OdDbTable object |
kHeaderHorzInsideLineWeight | Header row horizontal inside gridline lineweight table style override for an OdDbTable object |
kHeaderHorzBottomLineWeight | Header row horizontal bottom gridline lineweight table style override for an OdDbTable object |
kHeaderVertLeftLineWeight | Header row vertical left gridline lineweight table style override for an OdDbTable object |
kHeaderVertInsideLineWeight | Header row vertical inside gridline lineweight table style override for an OdDbTable object |
kHeaderVertRightLineWeight | Header row vertical right gridline lineweight table style override for an OdDbTable object |
kDataHorzTopLineWeight | Data row horizontal top gridline lineweight table style override for an OdDbTable object |
kDataHorzInsideLineWeight | Data row horizontal inside gridline lineweight table style override for an OdDbTable object |
kDataHorzBottomLineWeight | Data row horizontal bottom gridline lineweight table style override for an OdDbTable object |
kDataVertLeftLineWeight | Data row vertical left gridline lineweight table style override for an OdDbTable object |
kDataVertInsideLineWeight | Data row vertical inside gridline lineweight table style override for an OdDbTable object |
kDataVertRightLineWeight | Data row vertical right gridline lineweight table style override for an OdDbTable object |
kTitleHorzTopVisibility | Title row horizontal top gridline visibility table style override for an OdDbTable object |
kTitleHorzInsideVisibility | Title row horizontal inside gridline visibility table style override for an OdDbTable object |
kTitleHorzBottomVisibility | Title row horizontal bottom gridline visibility table style override for an OdDbTable object |
kTitleVertLeftVisibility | Title row vertical left gridline visibility table style override for an OdDbTable object |
kTitleVertInsideVisibility | Title row vertical inside gridline visibility table style override for an OdDbTable object |
kTitleVertRightVisibility | Title row vertical right gridline visibility table style override for an OdDbTable object |
kHeaderHorzTopVisibility | Header row horizontal top gridline visibility table style override for an OdDbTable object |
kHeaderHorzInsideVisibility | Header row horizontal inside gridline visibility table style override for an OdDbTable object |
kHeaderHorzBottomVisibility | Header row horizontal bottom gridline visibility table style override for an OdDbTable object |
kHeaderVertLeftVisibility | Header row vertical left gridline visibility table style override for an OdDbTable object |
kHeaderVertInsideVisibility | Header row vertical inside gridline visibility table style override for an OdDbTable object |
kHeaderVertRightVisibility | Header row vertical right gridline visibility table style override for an OdDbTable object |
kDataHorzTopVisibility | Data row horizontal top gridline visibility table style override for an OdDbTable object |
kDataHorzInsideVisibility | Data row horizontal inside gridline visibility table style override for an OdDbTable object |
kDataHorzBottomVisibility | Data row horizontal bottom gridline visibility table style override for an OdDbTable object |
kDataVertLeftVisibility | Data row vertical left gridline visibility table style override for an OdDbTable object |
kDataVertInsideVisibility | Data row vertical inside gridline visibility table style override for an OdDbTable object |
kDataVertRightVisibility | Data row vertical right gridline visibility table style override for an OdDbTable object |
kCellAlignment | Alignment table style override for a table cell |
kCellBackgroundFillNone | Background no fill table style override for a table cell |
kCellBackgroundColor | Background color table style override for a table cell |
kCellContentColor | Content color table style override for a table cell |
kCellTextStyle | Text style table style override for a table cell |
kCellTextHeight | Text height table style override for a table cell |
kCellTopGridColor | Top edge grid color table style override for a table cell |
kCellRightGridColor | Right edge grid color table style override for a table cell |
kCellBottomGridColor | Bottom edge grid color table style override for a table cell |
kCellLeftGridColor | Left edge grid color table style override for a table cell |
kCellTopGridLineWeight | Top edge grid lineweight table style override for a table cell |
kCellRightGridLineWeight | Right edge grid lineweight table style override for a table cell |
kCellBottomGridLineWeight | Bottom edge grid lineweight table style override for a table cell |
kCellLeftGridLineWeight | Left edge grid lineweight table style override for a table cell |
kCellTopVisibility | Top edge grid visibility table style override for a table cell |
kCellRightVisibility | Right edge grid visibility table style override for a table cell |
kCellBottomVisibility | Bottom edge grid visibility table style override for a table cell |
kCellLeftVisibility | Left edge grid visibility table style override for a table cell |
kCellDataType | Cell data type override for a table cell |
OdDbTable::OdDbTable | ( | ) |
Default constructor. Creates an object of the OdDbTable class.
|
virtual |
DEPRECATED! 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 |
DEPRECATED! 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. |
DEPRECATED! This method is deprecated. Use rotation() instead. 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. |
DEPRECATED! This method is deprecated. Use scale() instead. 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.
nIndex | [in] Index. |
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 the 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 the column index '-1' to get the style for the row. Use a valid column index and pass the row index '-1' to get the style for the column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
|
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 |
DEPRECATED! 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 |
DEPRECATED! 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 the 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 the 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 the type of content at the specified index 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 linked table data object.
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 linked table data object.
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] New 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 the data format of the cell as an OdString value.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns the data format at the specified content index 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. |
DEPRECATED! This method is deprecated. Use deleteContent() instead. 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 cells. |
Deletes content from the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Deletes content at the cpecified index from the cell.
row | [in] Row index of the cell. |
col | [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 for the cell, row or column.
row | [in] Row index. |
col | [in] Column index. |
bEnable | [in] Merge-all flag value. |
OdDbObjectId OdDbTable::fieldId | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent | ||
) | const |
Returns the field ID at the specified content index 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 |
DEPRECATED! For internal use only.
|
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.
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 the column index '-1' to get the row data. Use a valid column index and pass the row index '-1' to get the 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 the column index '-1' to get the row data. Use a valid column index and pass the row index '-1' to get the 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 and gets the 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 the data type. |
nUnitType | [out] Reference to the 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 the following values:
Value kUnitless 0x00 kDistance 0x01 kAngle 0x02 kArea 0x04 kVolume 0x08 kCurrency 0x10 kPercentage 0x20
Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the 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 |
DEPRECATED! 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.
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 the column index '-1' to get the row grid property. Use a valid column index and pass the row index '-1' to get the 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
void OdDbTable::getIndicatorSize | ( | double & | dWidth, |
double & | dHeight | ||
) | const |
Gets the row and column indicator size.
dWidth | [out] width of the row indicator. |
dHeight | [out] height of the column indicator . |
OdDbTableIteratorPtr OdDbTable::getIterator | ( | const OdCellRange * | pRange, |
OdDb::TableIteratorOption | nOption | ||
) | const |
OdDbTableIteratorPtr OdDbTable::getIterator | ( | void | ) | const |
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 the column index '-1' to get the row property override. Use a valid column index and pass the row index '-1' to get the column property override.
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 content of a 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. |
subTable | [out] Number sub table in case breaking. |
OdCellRange OdDbTable::getSubSelection | ( | OdInt32 * | subTable = NULL | ) | const |
Returns the range of cells in the sub-selection set.
subTable | [out] Number sub table in case breaking. |
OdInt32 OdDbTable::getSubTablesInfo | ( | OdArray< OdDbSubTable > & | subTables | ) | const |
|
virtual |
DEPRECATED! 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 the column index '-1' to get the row grid line color. Use a valid column index and pass the row index '-1' to get the 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 the column index '-1' to get the row grid double line spacing. Use a valid column index and pass the row index '-1' to get the 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 linestyle of a cell, row or column. Use a valid row index and pass the column index '-1' to get the row grid line style. Use a valid column index and pass the row index '-1' to get the 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 the column index '-1' to get the row grid linetype. Use a valid column index and pass the row index '-1' to get the 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 |
DEPRECATED! 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 a cell, row or column. Use a valid row index and pass the column index '-1' to get the row grid lineweight. Use a valid column index and pass the row index '-1' to get the 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 |
DEPRECATED! 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 the column index '-1' to get the row grid visibility. Use a valid column index and pass the row index '-1' to get the 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 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. |
subTable | [out] Number sub table in case breaking. |
|
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. |
subTable | [out] Number sub table in case breaking. |
|
virtual |
DEPRECATED! This method is deprecated. Use margin() instead. 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 and inherits their format from the reference column.
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 and inherits their format from the reference row.
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.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
DEPRECATED! 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 |
DEPRECATED! 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 the "editing content flag" cell property.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns the "empty flag" cell property.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Returns the "editing format flag" cell property.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
|
virtual |
DEPRECATED! Returns true if and only if the header row is suppressed for this table entity (DXF 281).
Checks if a cell is linked to a data source.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
Checks whether the merge-all flag is enabled for the cell, row or column.
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 |
DEPRECATED! 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 the column index '-1' to get the margin for the row. Use a valid column index and pass the row index '-1' to get the margin for the 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 a 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 a cell, row or column. Use a valid row index and pass the column index '-1' to remove the row property overrides. Use a valid column index and pass the row index '-1' to remove the 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 the 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 |
DEPRECATED! 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 |
DEPRECATED! 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. |
DEPRECATED! 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 |
DEPRECATED! 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 |
DEPRECATED! 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.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
attdefId | [in] Attribute object ID. |
atrValue | [in] Attribute value as an OdString 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 |
DEPRECATED! This method is deprecated. Use setRotation() instead. 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. |
DEPRECATED! This method is deprecated. Use setScale() instead. 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 the 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 the column index '-1' to set the style for the row. Use a valid column index and pass the row index '-1' to set the style for the column.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
sCellStyle | [in] Cell style. |
|
virtual |
DEPRECATED! 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 |
DEPRECATED! 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 the 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 the input row number and column number are less than 0 or greater than the table size. Method generates the eIsWriteProtected exception 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 the column index '-1' to get the row data. Use a valid column index and pass the row index '-1' to get the 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 the column index '-1' to set the row data. Use a valid column index and pass the row index '-1' to set the 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 the data format at the specified content index of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Number of content. |
sFormat | [in] Data format. |
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. |
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] Data link object ID. |
bUpdate | [in] Flag that indicates whether or not the data link should be updated after setting. |
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. |
nContent | [in] Content index. |
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 the input row number and column number are less than 0 or greater than the table size. Method generates the eIsWriteProtected exception 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 |
DEPRECATED! Sets the data type and unit type for all row types.
nDataType | [in] Data type. |
nUnitType | [in] Unit type. |
|
virtual |
DEPRECATED! 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.
DEPRECATED! For internal use only.
DEPRECATED! For internal use only.
DEPRECATED! For internal use only.
void OdDbTable::setFormula | ( | OdInt32 | row, |
OdInt32 | col, | ||
OdInt32 | nContent, | ||
const OdString & | pszFormula | ||
) |
Sets the formula at the specified content index 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 |
DEPRECATED! 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 the column index '-1' to get the row grid line color. Use a valid column index and pass the row index '-1' to get the 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 the column index '-1' to set the row grid double line spacing. Use a valid column index and pass the row index '-1' to set the 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 a cell, row or column. Use a valid row index and pass the column index '-1' to set the row grid line style. Use a valid column index and pass the row index '-1' to set the column grid line style.
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [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 the column index '-1' to set the row grid linetype. Use a valid column index and pass the row index '-1' to set the 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 |
DEPRECATED! 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 a cell, row or column. Use a valid row index and pass the column index '-1' to set the row grid lineweight. Use a valid column index and pass the row index '-1' to set the column grid lineweight.
row | [in] Row index. |
col | [in] Column index. |
nGridLineTypes | [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 the column index '-1' to get the row grid property. Use a valid column index and pass the row index '-1' to get the 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 |
DEPRECATED! 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 the column index '-1' to set the row grid visibility. Use a valid column index and pass the row index '-1' to set the 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 |
DEPRECATED! This method is deprecated. Use setMargin() instead. 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 the column index '-1' to set the margin for the row. Use a valid column index and pass the row index '-1' to set the margin for the column.
row | [in] Row index. |
col | [in] Column index. |
nMargins | [in] Margin type. |
fMargin | [in] Margin value. |
Value kCellMarginTop 0x01 kCellMarginLeft 0x02 kCellMarginBottom 0x04 kCellMarginRight 0x08 kCellMarginHorzSpacing 0x10 kCellMarginVertSpacing 0x20
DEPRECATED! This method is deprecated. Use setSize() instead. 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.
DEPRECATED! This method is deprecated. Use setSize() instead. 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 grid linetype property override in a cell, row or column. Use a valid row index and pass the column index '-1' to set the row property overrides. Use a valid column index and pass the row index '-1' to set the 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 content property override in a cell, row or column. Use a valid row index and pass the column index '-1' to set the row property overrides. Use a valid column index and pass the row index '-1' to set the 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 the table rotation angle.
fAngle | [in] Rotation angle value in radians. |
Reimplemented from OdDbBlockReference.
Sets the content rotation angle.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
fAngle | [in] Rotation angle value in radians. |
|
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 the 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. |
subTable | [in] Number sub table in case breaking. |
|
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. |
subTable | [in] Number sub table in case breaking |
|
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 |
DEPRECATED! 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.
Sets the text height of the cell.
row | [in] Row index of the cell. |
col | [in] Column index of the cell. |
nContent | [in] Content index. |
height | [in] Text height value. |
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 |
DEPRECATED! This method is deprecated. Use setRotation() instead. 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 |
DEPRECATED! 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 object 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 of the cell. |
col | [in] Column index of the cell. |
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 the value. |
Value kParseOptionNone 0x00 kSetDefaultFormat 0x01 kPreserveMtextFormat 0x02 kConvertTextToValue 0x04 kChangeDataType 0x08 kParseTextForFieldCode 0x10
Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the table size. Method generates the eIsWriteProtected exception 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 the value. |
Value kParseOptionNone 0x00 kSetDefaultFormat 0x01 kPreserveMtextFormat 0x02 kConvertTextToValue 0x04 kChangeDataType 0x08 kParseTextForFieldCode 0x10
Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the 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 |
DEPRECATED! This method is deprecated. Use setMargin() instead. 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 |
Called as the first operation as this object is being erased or unerased.
erasing | [in] A copy of the erasing argument passed to erase(). |
Returns eOk if and only if erase() is to continue.
When overriding this function:
1) If the OdDbObject's state is incorrect, return something other than eOk.
2) If the parent class's subErase() returns anything other than eOk, immediately return it.
3) If other actions are required before erase, do them.
4) Return eOk.
If you must make changes to this object's state, either make them after step 2, or roll them back if step 2 returns other than eOk.
The default implementation of this function does nothing but return eOk. This function can be overridden in custom classes.
Reimplemented from OdDbEntity.
|
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 |
Returns the geometry extents.
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 |
Reimplemented from OdDbEntity.
|
virtual |
Applies the specified 3D transformation matrix to this entity.
xfm | [in] 3D transformation matrix. |
Reimplemented from OdDbBlockReference.
|
virtual |
Reimplemented from OdDbEntity.
|
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 |
DEPRECATED! 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 |
DEPRECATED! 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 |
DEPRECATED! Returns the table style overrides for this table entity.
overrides | [out] Receives an array of table style overrides for this table entity. |
|
virtual |
DEPRECATED! 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 |
DEPRECATED! This method is deprecated. Use rotation() instead. 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 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. |
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 the 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 the 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 |
DEPRECATED! 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 the input row number and column number are less than 0 or greater than the 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 at the cpecified content index 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 the 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 |
DEPRECATED! This method is deprecated. Use margin() instead. Returns the vertical cell margin for this table entity (DXF 41).
|
virtual |
Returns the overall width of this table entity.