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