VTK
vtkQtPointMarker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtPointMarker.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtPointMarker_h
25 #define _vtkQtPointMarker_h
26 
27 
28 #include "vtkQtChartExport.h"
29 #include <QSizeF>
30 #include <QRectF>
31 
32 class QPainter;
33 
34 
38 class VTKQTCHART_EXPORT vtkQtPointMarker
39 {
40 public:
42  {
43  NoMarker = 0,
45  Plus,
49 
51  UserStyle = 32
52  };
53 
54 public:
55  vtkQtPointMarker(const QSizeF &size, MarkerStyle style=Circle);
56  virtual ~vtkQtPointMarker();
57 
58  virtual void paint(QPainter *painter);
59 
60  QSizeF getSize() const;
61  void setSize(const QSizeF &size);
62 
63  MarkerStyle getStyle() const {return this->Style;}
64  void setStyle(MarkerStyle style);
65 
66 protected:
67  QRectF Rect;
68 
69 private:
70  MarkerStyle Style;
71 };
72 
73 #endif