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;
void setEnabled(bool yes=true)
Sets the cut to be enabled, i.e.
void setRange(const Range &range)
Sets the range of the cut.
column
The column indices for 2 dimension data point tuple.
bool isEnabled() const
Returns the state of the cut's enable status.
TupleCut()
The default constructor.
bool acceptRow(const DataSource *source, unsigned int i) const
Returns true if the cut value at the index i is within the range.
bool includes(double value) const
Returns true if the argument value is inside the range.
bool m_enabled
The enable flag.
std::string m_label
The label for the cut.
hippodraw::DataSource class interface.
bool m_invert
The inversion flag.
void toggleInverted()
Toggles the sense of the inversion flag.
unsigned int getColumn() const
Returns the column index used in the DataSource.
void setInversion(bool state)
Sets the inversion state to state.
Range m_range
The Range object used by the cut.
hippodraw::TupleCut class interface
const Range & getRange() const
Returns a reference to the range for each dimension.
Expresses a range of values.
void setLabel(const std::string &label)
Sets the label for the cut.
bool getInversion() const
Returns the state of the inversion for the axis.
unsigned int m_column
The column index used by the cut.
void setColumn(unsigned int col)
Sets the column in the DataSource to be used.
const std::string & getLabel() const
Returns the label for the cut.
Base class for DataSource.