QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
QwtColumnRect Class Reference

Directed rectangle representing bounding rectangle and orientation of a column. More...

#include <qwt_column_symbol.h>

Public Types

enum  Direction { LeftToRight , RightToLeft , BottomToTop , TopToBottom }
 Direction of the column. More...
 

Public Member Functions

 QwtColumnRect ()
 Build a rectangle with invalid intervals directed BottomToTop.
 
QRectF toRect () const
 Return a normalized QRect built from the intervals.
 
Qt::Orientation orientation () const
 Return Orientation.
 

Public Attributes

QwtInterval hInterval
 Interval for the horizontal coordinates.
 
QwtInterval vInterval
 Interval for the vertical coordinates.
 
Direction direction
 Direction.
 

Detailed Description

Directed rectangle representing bounding rectangle and orientation of a column.

QwtColumnRect is a data structure that stores the horizontal and vertical intervals defining a column's extent, along with a direction that indicates how the column should be drawn. It is used by QwtColumnSymbol to determine the column's orientation and boundaries.

Member Enumeration Documentation

◆ Direction

Direction of the column.

Enumerator
LeftToRight 

From left to right.

RightToLeft 

From right to left.

BottomToTop 

From bottom to top.

TopToBottom 

From top to bottom.

Member Function Documentation

◆ toRect()

QRectF QwtColumnRect::toRect ( ) const

Return a normalized QRect built from the intervals.

Converts the horizontal and vertical intervals into a QRectF, handling exclude minimum/maximum flags appropriately.

Returns
Normalized rectangle

The documentation for this class was generated from the following files: