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