Stellarium 0.15.2
List of all members | Public Types | Public Member Functions | Protected Attributes
QCPScatterStyle Class Reference

Public Types

enum  ScatterShape {
  ssNone, ssDot, ssCross, ssPlus,
  ssCircle, ssDisc, ssSquare, ssDiamond,
  ssStar, ssTriangle, ssTriangleInverted, ssCrossSquare,
  ssPlusSquare, ssCrossCircle, ssPlusCircle, ssPeace,
  ssPixmap, ssCustom
}
 

Public Member Functions

 QCPScatterStyle (ScatterShape shape, double size=6)
 
 QCPScatterStyle (ScatterShape shape, const QColor &color, double size)
 
 QCPScatterStyle (ScatterShape shape, const QColor &color, const QColor &fill, double size)
 
 QCPScatterStyle (ScatterShape shape, const QPen &pen, const QBrush &brush, double size)
 
 QCPScatterStyle (const QPixmap &pixmap)
 
 QCPScatterStyle (const QPainterPath &customPath, const QPen &pen, const QBrush &brush=Qt::NoBrush, double size=6)
 
double size () const
 
ScatterShape shape () const
 
QPen pen () const
 
QBrush brush () const
 
QPixmap pixmap () const
 
QPainterPath customPath () const
 
void setSize (double size)
 
void setShape (ScatterShape shape)
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
void setPixmap (const QPixmap &pixmap)
 
void setCustomPath (const QPainterPath &customPath)
 
bool isNone () const
 
bool isPenDefined () const
 
void applyTo (QCPPainter *painter, const QPen &defaultPen) const
 
void drawShape (QCPPainter *painter, QPointF pos) const
 
void drawShape (QCPPainter *painter, double x, double y) const
 

Protected Attributes

double mSize
 
ScatterShape mShape
 
QPen mPen
 
QBrush mBrush
 
QPixmap mPixmap
 
QPainterPath mCustomPath
 
bool mPenDefined
 

Detailed Description

Definition at line 234 of file qcustomplot.h.

Member Enumeration Documentation

Defines the shape used for scatter points.

On plottables/items that draw scatters, the sizes of these visualizations (with exception of ssDot and ssPixmap) can be controlled with the setSize function. Scatters are drawn with the pen and brush specified with setPen and setBrush.

Enumerator
ssNone 

no scatter symbols are drawn (e.g. in QCPGraph, data only represented with lines)

ssDot 

{ssDot.png} a single pixel (use ssDisc or ssCircle if you want a round shape with a certain radius)

ssCross 

{ssCross.png} a cross

ssPlus 

{ssPlus.png} a plus

ssCircle 

{ssCircle.png} a circle

ssDisc 

{ssDisc.png} a circle which is filled with the pen's color (not the brush as with ssCircle)

ssSquare 

{ssSquare.png} a square

ssDiamond 

{ssDiamond.png} a diamond

ssStar 

{ssStar.png} a star with eight arms, i.e. a combination of cross and plus

ssTriangle 

{ssTriangle.png} an equilateral triangle, standing on baseline

ssTriangleInverted 

{ssTriangleInverted.png} an equilateral triangle, standing on corner

ssCrossSquare 

{ssCrossSquare.png} a square with a cross inside

ssPlusSquare 

{ssPlusSquare.png} a square with a plus inside

ssCrossCircle 

{ssCrossCircle.png} a circle with a cross inside

ssPlusCircle 

{ssPlusCircle.png} a circle with a plus inside

ssPeace 

{ssPeace.png} a circle, with one vertical and two downward diagonal lines

ssPixmap 

a custom pixmap specified by setPixmap, centered on the data point coordinates

ssCustom 

custom painter operations are performed per scatter (As QPainterPath, see setCustomPath)

Definition at line 246 of file qcustomplot.h.


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