ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Tab Struct Reference

Data table. More...

Public Member Functions

 Tab (int _maxBlockPerRow=2)
 Default constructor. More...
 
void setMaxBlockPerRow (int maxBlock)
 Sets the maximum number of blocks per row. More...
 
int add2x3Block ()
 Adds a 2x3 block (must be filled!) More...
 
int updateColumnsWidthTable (const QFontMetrics &fm)
 Updates columns width table. More...
 

Public Attributes

int maxBlockPerRow
 Maximum number of blocks per row. More...
 
int blockCount
 Number of 2x3 blocks. More...
 
int rowCount
 Number of rows. More...
 
int colCount
 Number of columns. More...
 
std::vector< int > colWidth
 Columns width. More...
 
std::vector< QStringList > colContent
 Columns content. More...
 

Detailed Description

Data table.

Constructor & Destructor Documentation

◆ Tab()

Tab::Tab ( int  _maxBlockPerRow = 2)
inline

Default constructor.

Member Function Documentation

◆ add2x3Block()

int Tab::add2x3Block ( )
inline

Adds a 2x3 block (must be filled!)

References blockCount, colContent, colCount, colWidth, maxBlockPerRow, and rowCount.

Referenced by cc2DLabel::drawMeOnly2D().

◆ setMaxBlockPerRow()

void Tab::setMaxBlockPerRow ( int  maxBlock)
inline

Sets the maximum number of blocks per row.

Warning
Must be called before adding data!

References maxBlockPerRow.

Referenced by cc2DLabel::drawMeOnly2D().

◆ updateColumnsWidthTable()

int Tab::updateColumnsWidthTable ( const QFontMetrics &  fm)
inline

Updates columns width table.

Returns
the total width

References colContent, colCount, and colWidth.

Referenced by cc2DLabel::drawMeOnly2D().

Member Data Documentation

◆ blockCount

int Tab::blockCount

Number of 2x3 blocks.

Referenced by add2x3Block().

◆ colContent

std::vector<QStringList> Tab::colContent

Columns content.

Referenced by add2x3Block(), cc2DLabel::drawMeOnly2D(), and updateColumnsWidthTable().

◆ colCount

int Tab::colCount

Number of columns.

Referenced by add2x3Block(), cc2DLabel::drawMeOnly2D(), and updateColumnsWidthTable().

◆ colWidth

std::vector<int> Tab::colWidth

◆ maxBlockPerRow

int Tab::maxBlockPerRow

Maximum number of blocks per row.

Referenced by add2x3Block(), and setMaxBlockPerRow().

◆ rowCount

int Tab::rowCount

Number of rows.

Referenced by add2x3Block(), and cc2DLabel::drawMeOnly2D().


The documentation for this struct was generated from the following file: