itom 1.3.0
D:/git-itom/sources/itom/Qitom/python/pythonPlotItem.h
00001 /* ********************************************************************
00002     itom software
00003     URL: http://www.uni-stuttgart.de/ito
00004     Copyright (C) 2013, Institut für Technische Optik (ITO),
00005     Universität Stuttgart, Germany
00006 
00007     This file is part of itom.
00008   
00009     itom is free software; you can redistribute it and/or modify it
00010     under the terms of the GNU Library General Public Licence as published by
00011     the Free Software Foundation; either version 2 of the Licence, or (at
00012     your option) any later version.
00013 
00014     itom is distributed in the hope that it will be useful, but
00015     WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
00017     General Public Licence for more details.
00018 
00019     You should have received a copy of the GNU Library General Public License
00020     along with itom. If not, see <http://www.gnu.org/licenses/>.
00021 *********************************************************************** */
00022 
00023 #ifndef PYTHONPLOTITEM_H
00024 #define PYTHONPLOTITEM_H
00025 
00026 #include "pythonCommon.h"
00027 #include "pythonUi.h"
00028 #include "pythonQtConversion.h"
00029 #include "pythonQtSignalMapper.h"
00030 #include "pythonItomMetaObject.h"
00031 
00032 #include <qstring.h>
00033 #include <qvariant.h>
00034 #include <qobject.h>
00035 #include <qhash.h>
00036 #include <qsharedpointer.h>
00037 #include <qpointer.h>
00038 
00039 namespace ito 
00040 {
00041 
00042 class PythonPlotItem
00043 {
00044 public:
00045 
00046     //#################################################################################################
00047     // Figure
00048     //################################################################################################# 
00049     
00050     //-------------------------------------------------------------------------------------------------
00051     // typedefs
00052     //------------------------------------------------------------------------------------------------- 
00053 
00054     typedef struct
00055     {
00056         PythonUi::PyUiItem uiItem;
00057     }
00058     PyPlotItem;
00059 
00060     //-------------------------------------------------------------------------------------------------
00061     // macros
00062     //------------------------------------------------------------------------------------------------- 
00063     #define PyPlotItem_Check(op) PyObject_TypeCheck(op, &ito::PythonPlotItem::PyPlotItemType)
00064 
00065     //-------------------------------------------------------------------------------------------------
00066     // constructor, deconstructor, alloc, dellaoc
00067     //------------------------------------------------------------------------------------------------- 
00068     static void PyPlotItem_dealloc(PyPlotItem *self);
00069     static PyObject *PyPlotItem_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
00070     static int PyPlotItem_init(PyPlotItem *self, PyObject *args, PyObject *kwds);
00071 
00072     //-------------------------------------------------------------------------------------------------
00073     // general members
00074     //------------------------------------------------------------------------------------------------- 
00075     static PyObject* PyPlotItem_repr(PyPlotItem *self);
00076 
00077     static PyObject* PyPlotItem_pickPoints(PyPlotItem *self, PyObject *args, PyObject *kwds);
00078     static PyObject* PyPlotItem_drawAndPickElement(PyPlotItem *self, PyObject *args, PyObject *kwds);
00079     //-------------------------------------------------------------------------------------------------
00080     // getter / setter
00081     //------------------------------------------------------------------------------------------------- 
00082 
00083     //-------------------------------------------------------------------------------------------------
00084     // static members
00085     //-------------------------------------------------------------------------------------------------
00086 
00087 
00088     //-------------------------------------------------------------------------------------------------
00089     // type structures
00090     //------------------------------------------------------------------------------------------------- 
00091     static PyGetSetDef  PyPlotItem_getseters[];
00092     static PyMemberDef  PyPlotItem_members[];
00093     static PyMethodDef  PyPlotItem_methods[];
00094     static PyTypeObject PyPlotItemType;
00095     static PyModuleDef  PyPlotItemModule;
00096     static void PyPlotItem_addTpDict(PyObject *tp_dict);
00097 
00098 private:
00099 
00100 };
00101 
00102 }; //end namespace ito
00103 
00104 
00105 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends