Stellarium 0.15.2
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
QCPBarsGroup Class Reference
+ Inheritance diagram for QCPBarsGroup:
+ Collaboration diagram for QCPBarsGroup:

Public Types

enum  SpacingType { stAbsolute, stAxisRectRatio, stPlotCoords }
 

Public Member Functions

 QCPBarsGroup (QCustomPlot *parentPlot)
 
SpacingType spacingType () const
 
double spacing () const
 
void setSpacingType (SpacingType spacingType)
 
void setSpacing (double spacing)
 
QList< QCPBars * > bars () const
 
QCPBarsbars (int index) const
 
int size () const
 
bool isEmpty () const
 
void clear ()
 
bool contains (QCPBars *bars) const
 
void append (QCPBars *bars)
 
void insert (int i, QCPBars *bars)
 
void remove (QCPBars *bars)
 

Protected Member Functions

void registerBars (QCPBars *bars)
 
void unregisterBars (QCPBars *bars)
 
double keyPixelOffset (const QCPBars *bars, double keyCoord)
 
double getPixelSpacing (const QCPBars *bars, double keyCoord)
 

Protected Attributes

QCustomPlotmParentPlot
 
SpacingType mSpacingType
 
double mSpacing
 
QList< QCPBars * > mBars
 

Friends

class QCPBars
 

Detailed Description

Definition at line 2740 of file qcustomplot.h.

Member Enumeration Documentation

Defines the ways the spacing between bars in the group can be specified. Thus it defines what the number passed to setSpacing actually means.

See also
setSpacingType, setSpacing
Enumerator
stAbsolute 

Bar spacing is in absolute pixels.

stAxisRectRatio 

Bar spacing is given by a fraction of the axis rect size.

stPlotCoords 

Bar spacing is in key coordinates and thus scales with the key axis range.

Definition at line 2754 of file qcustomplot.h.


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