LTableGeometry is an abstract PowerPlant class that specifies the interface for the geometry helper objects. These functions provide behaviors to maintain the location, width, and height of each cell in a table.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
All the methods in this class are either pure virtual or empty. These methods form the basis for interacting with a table's geometry in PowerPlant. Most of the time you will not need to concern yourself with these methods. The PowerPlant table classes call these methods to get or set required data. In general, you should call the table methods, not the related geometry methods.
Source files:
Purpose:
The constructor creates an object.
Access :
Prototype:
LTableGeometry();
Purpose:
The destructor destroys the object.
Access :
Prototype:
virtual ~LTableGeometry();
Purpose:
Returns the index of a column that contains a point.
Access :
Prototype:
virtual TableIndexT GetColHitBy(
const SPoint32 &inImagePt )
const = 0;Parameters:
This method has the following parameters:
Return:
Returns the index for the table column containing the point.
Purpose:
Retrieve the column width for a specified column.
Access :
Prototype:
virtual UInt16 GetColWidth(
TableIndexT inCol ) const = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Provides bounds of cell in image coordinates.
Access :
Prototype:
virtual void GetImageCellBounds(
const STableCell &inCell,
SInt32 &outLeft,
SInt32 &outTop,
SInt32 &outRight,
SInt32 &outBottom ) const = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Access :
Prototype:
virtual UInt16 GetRowHeight(
TableIndexT inRow ) const = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Returns the index of a row that contains a point.
Access :
Prototype:
virtual TableIndexT GetRowHitBy(
const SPoint32 &inImagePt) const = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Determine the dimensions of the table.
Access :
Prototype:
virtual void GetTableDimensions(
UInt32 &outWidth,
UInt32 &outHeight ) const = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Insert columns after a specified column.
Access :
Prototype:
virtual void InsertCols(
UInt32 inHowMany,
TableIndexT inAfterCol);Parameters:
This method has the following parameters:
Return:
Purpose:
Insert rows after a given row.
Access :
Prototype:
virtual void InsertRows(
UInt32 inHowMany,
TableIndexT inAfterRow );Parameters:
This method has the following parameters:
Return:
Purpose:
Remove columns after a specified starting column.
Access :
Prototype:
virtual void RemoveCols(
UInt32 inHowMany,
TableIndexT inFromCol);Parameters:
This method has the following parameters:
Return:
Purpose:
Access :
Prototype:
virtual void RemoveRows(
UInt32 inHowMany,
TableIndexT inFromRow);Parameters:
This method has the following parameters:
Return:
Purpose:
Set the width of a range of columns.
Access :
Prototype:
virtual void SetColWidth(
UInt16 inWidth,
TableIndexT inFromCol,
TableIndexT inToCol) = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
Set the height on a range of rows.
Access :
Prototype:
virtual void SetRowHeight(
UInt16 inHeight,
TableIndexT inFromRow,
TableIndexT inToRow) = 0;Parameters:
This method has the following parameters:
Return:
Purpose:
The pointer to the table that owns this helper object.
Access :
Prototype: