00001 //------------------------------------------------------------------------------ 00002 // This file is part of the OpenStructure project <www.openstructure.org> 00003 // 00004 // Copyright (C) 2008-2010 by the OpenStructure authors 00005 // 00006 // This library is free software; you can redistribute it and/or modify it under 00007 // the terms of the GNU Lesser General Public License as published by the Free 00008 // Software Foundation; either version 3.0 of the License, or (at your option) 00009 // any later version. 00010 // This library is distributed in the hope that it will be useful, but WITHOUT 00011 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00013 // details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this library; if not, write to the Free Software Foundation, Inc., 00017 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 //------------------------------------------------------------------------------ 00019 #ifndef PLOT_DATA_INFO_HH_ 00020 #define PLOT_DATA_INFO_HH_ 00021 00022 00023 /* 00024 Author: Andreas Schenk 00025 */ 00026 00027 #include <vector> 00028 #include <boost/python.hpp> 00029 00030 #include <ost/gui/module_config.hh> 00031 #include <ost/gui/plot_viewer/plot_data_info_fw.hh> 00032 00033 #include "plot_info_base.hh" 00034 00035 00036 namespace ost{namespace gui{ 00037 00038 class DLLEXPORT_OST_GUI PlotDataInfo : public PlotInfoBase 00039 { 00040 public: 00041 PlotDataInfo(PlotViewerPanel * viewer=0); 00042 PlotDataInfo(const PlotDataInfo&); 00043 virtual PlotDataInfo& SetSymbol(unsigned int val); 00044 virtual PlotDataInfo& SetSymbolSize(unsigned int val); 00045 virtual PlotDataInfo& SetErrorMode(unsigned int val); 00046 virtual PlotDataInfo& SetQuality(bool val); 00047 virtual PlotDataInfo& SetCallback(const boost::python::object & callback_); 00048 unsigned int shape; 00049 unsigned int symbolsize; 00050 unsigned int errormode; 00051 Real errorscalex; 00052 Real errorscaley; 00053 bool use_weights; 00054 boost::python::object callback; 00055 00056 }; 00057 00058 typedef std::vector<PlotDataInfoPtr> PlotDataInfoVector; 00059 }}//ns 00060 #endif /*PLOT_DATA_INFO_HH_*/
1.5.8