VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtPointMarker.h,v $ 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 Cross = 0, 00044 Plus, 00045 Square, 00046 Circle, 00047 Diamond, 00048 00050 UserStyle = 32 00051 }; 00052 00053 public: 00054 vtkQtPointMarker(const QSizeF &size, MarkerStyle style=Circle); 00055 virtual ~vtkQtPointMarker(); 00056 00057 virtual void paint(QPainter *painter); 00058 00059 QSizeF getSize() const; 00060 void setSize(const QSizeF &size); 00061 00062 MarkerStyle getStyle() const {return this->Style;} 00063 void setStyle(MarkerStyle style); 00064 00065 protected: 00066 QRectF Rect; 00067 00068 private: 00069 MarkerStyle Style; 00070 }; 00071 00072 #endif