14 #include "msdevstudio/MSconfig.h"
23 using namespace hippodraw;
48 unsigned int i )
const
50 bool shouldBeAccepted =
true;
53 double value = ntuple -> valueAt ( i,
m_column );
60 return shouldBeAccepted;
const Range & getRange() const
Returns a reference to the range for each dimension.
bool isEnabled() const
Returns the state of the cut's enable status.
hippodraw::TupleCut class interface
Range m_range
The Range object used by the cut.
bool m_enabled
The enable flag.
Expresses a range of values.
unsigned int m_column
The column index used by the cut.
Base class for DataSource.
bool m_invert
The inversion flag.
bool includes(double value) const
Returns true if the argument value is inside the range.
void setInversion(bool state)
Sets the inversion state to state.
void setRange(const Range &range)
Sets the range of the cut.
void setLabel(const std::string &label)
Sets the label for the cut.
const std::string & getLabel() const
Returns the label for the cut.
column
The column indices for 2 dimension data point tuple.
bool getInversion() const
Returns the state of the inversion for the axis.
bool acceptRow(const DataSource *source, unsigned int i) const
Returns true if the cut value at the index i is within the range.
void setColumn(unsigned int col)
Sets the column in the DataSource to be used.
unsigned int getColumn() const
Returns the column index used in the DataSource.
hippodraw::DataSource class interface.
TupleCut()
The default constructor.
void toggleInverted()
Toggles the sense of the inversion flag.
void setEnabled(bool yes=true)
Sets the cut to be enabled, i.e.
std::string m_label
The label for the cut.