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.

Definition at line 1117 of file ecv2DLabel.cpp.

Constructor & Destructor Documentation

◆ Tab()

Tab::Tab ( int  _maxBlockPerRow = 2)
inline

Default constructor.

Definition at line 1119 of file ecv2DLabel.cpp.

Member Function Documentation

◆ add2x3Block()

int Tab::add2x3Block ( )
inline

Adds a 2x3 block (must be filled!)

Definition at line 1131 of file ecv2DLabel.cpp.

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!

Definition at line 1128 of file ecv2DLabel.cpp.

References maxBlockPerRow.

Referenced by cc2DLabel::drawMeOnly2D().

◆ updateColumnsWidthTable()

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

Updates columns width table.

Returns
the total width

Definition at line 1150 of file ecv2DLabel.cpp.

References colContent, colCount, and colWidth.

Referenced by cc2DLabel::drawMeOnly2D().

Member Data Documentation

◆ blockCount

int Tab::blockCount

Number of 2x3 blocks.

Definition at line 1172 of file ecv2DLabel.cpp.

Referenced by add2x3Block().

◆ colContent

std::vector<QStringList> Tab::colContent

Columns content.

Definition at line 1180 of file ecv2DLabel.cpp.

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

◆ colCount

int Tab::colCount

Number of columns.

Definition at line 1176 of file ecv2DLabel.cpp.

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

◆ colWidth

std::vector<int> Tab::colWidth

Columns width.

Definition at line 1178 of file ecv2DLabel.cpp.

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

◆ maxBlockPerRow

int Tab::maxBlockPerRow

Maximum number of blocks per row.

Definition at line 1170 of file ecv2DLabel.cpp.

Referenced by add2x3Block(), and setMaxBlockPerRow().

◆ rowCount

int Tab::rowCount

Number of rows.

Definition at line 1174 of file ecv2DLabel.cpp.

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


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