14 #include "msdevstudio/MSconfig.h" 22 #include <boost/python.hpp> 39 class_ <QtCut, bases<QtDisplay> >
41 "An object of this class applies a cut or filter on the data that is\n" 42 "used as input to its target displays.",
44 const std::vector < std::string > & >
45 (
"Cut ( DataSource, sequence ) -> Cut\n" 46 "Cut ( DataArray, sequence ) -> Cut\n" 47 "Cut ( DataSource, sequence, Display, value, value ) -> Cut\n" 48 "Cut ( DataArray, sequence, Display, value, value ) -> Cut\n" 50 "Creates a Cut bound to DataSource. For each form, the first\n" 51 "argument is the DataSource and the second argument is sequence of\n" 52 "strings specifying the binding. The latter two forms apply the\n" 53 "Cut to a Display with low and high values for the Cut range." ) )
55 .def ( init <
const DataSource &,
56 const std::vector < std::string > &,
60 const std::vector < std::string > & > () )
63 const std::vector < std::string > &,
69 boost::python::numeric::array,
71 #endif // HAVE_NUMARRAY 73 .def (
"addTarget", &QtCut::addTarget,
74 "addTarget ( Display ) -> None\n" 76 "Adds a Display to the list of targets." )
78 .def (
"addTargets", &QtCut::addTargets,
79 "addTargets ( sequence ) -> None\n" 81 "Adds Display objects in the sequence to the list targets" )
83 .def (
"setCutRange", &QtCut::setCutRange,
84 "setCutRange ( value, value, string ) -> None\n" 86 "Sets the range of the Cut. Arguments are low and high values,\n" 89 .def (
"cutRange", &QtCut::cutRange,
90 "cutRange () -> tuple\n" 92 "Returns a pair of values of the range of each Cut." )
94 .def (
"setEnabled", &QtCut::setEnabled,
95 "setEnabled ( Boolean ) -> None\n" 97 "Sets the cut to be enabled or not" )
99 .def (
"toggleInverted", &QtCut::toggleInverted,
100 "toggleInverted () -> None\n" 102 "Toggles the inversion status" )
104 .def (
"createNTuple", &QtCut::createNTuple,
105 return_value_policy < manage_new_object > (),
106 "createNTuple ( sequence, sequence, DataSource ) -> NTuple\n" 108 "Create a new NTuple using cut list and column list." )
110 .staticmethod(
"createNTuple")
112 .def (
"createTnt", &QtCut::createTnt,
113 "createTnt ( sequence, sequence, DataSource, string, string )" 116 "Create a new TNT file using cut list and column list." )
118 .staticmethod(
"createTnt")
120 .def (
"createFits", &QtCut::createFits,
121 "createFits ( sequence, sequence, DataSource, string, string )" 124 "Create a new FITS file using cut list and column list.\n" 125 "This method is deprecated, use the FitsController instead.")
127 .staticmethod(
"createFits")
Qt Displays wraps a derived class of PlotterBase.
void export_QtCut()
Exports the QtCut class to Python.
hippodraw::NTuple class interface.
Base class for DataSource.
hippodraw::PyDataSource class interface
This class is the public interface to a DataSource object that the user sees as the DataArray object ...
hippodraw::QtCut class interface