VTK
dox/GUISupport/Qt/Chart/vtkQtPointMarker.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtPointMarker.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00020 
00023 
00024 #ifndef _vtkQtPointMarker_h
00025 #define _vtkQtPointMarker_h
00026 
00027 
00028 #include "vtkQtChartExport.h"
00029 #include <QSizeF>
00030 #include <QRectF>
00031 
00032 class QPainter;
00033 
00034 
00038 class VTKQTCHART_EXPORT vtkQtPointMarker
00039 {
00040 public:
00041   enum MarkerStyle
00042     {
00043     NoMarker = 0, 
00044     Cross,        
00045     Plus,         
00046     Square,       
00047     Circle,       
00048     Diamond,      
00049 
00051     UserStyle = 32
00052     };
00053 
00054 public:
00055   vtkQtPointMarker(const QSizeF &size, MarkerStyle style=Circle);
00056   virtual ~vtkQtPointMarker();
00057 
00058   virtual void paint(QPainter *painter);
00059 
00060   QSizeF getSize() const;
00061   void setSize(const QSizeF &size);
00062 
00063   MarkerStyle getStyle() const {return this->Style;}
00064   void setStyle(MarkerStyle style);
00065 
00066 protected:
00067   QRectF Rect;
00068 
00069 private:
00070   MarkerStyle Style;
00071 };
00072 
00073 #endif