casa
$Rev:20696$
|
Subclass of PlotMSPlotParameters::Group to handle axes parameters. More...
#include <PlotMSPlotParameterGroups.h>
Public Member Functions | |
PMS_PP_Axes (PlotFactoryPtr factory) | |
PMS_PP_Axes (const PMS_PP_Axes ©) | |
~PMS_PP_Axes () | |
Group * | clone () const |
Abstract Methods //. | |
const String & | name () const |
Returns the name of this group of subparameters. | |
Record | toRecord () const |
Returns a Record representing this group of subparameters. | |
void | fromRecord (const Record &record) |
Sets the values for this group of subparameters using the given Record. | |
bool | requiresRedrawOnChange () const |
Returns true if the plot needs to be redrawn when subpamarameters in this group have changed, false otherwise. | |
Group & | operator= (const Group &other) |
bool | operator== (const Group &other) const |
unsigned int | numXAxes () const |
Gets how many axes there are. | |
unsigned int | numYAxes () const |
void | setAxes (const PlotAxis &xAxis, const PlotAxis &yAxis, unsigned int index=0) |
Sets single versions of the parameters for the given index. | |
void | setXRange (const bool &set, const prange_t &range, unsigned int index=0) |
void | setYRange (const bool &set, const prange_t &range, unsigned int index=0) |
void | setRanges (const bool &xSet, const bool &ySet, const prange_t &xRange, const prange_t &yRange, unsigned int index=0) |
const vector< PlotAxis > & | xAxes () const |
void | setXAxes (const vector< PlotAxis > &value) |
PlotAxis | xAxis (unsigned int index=0) const |
void | setXAxis (const PlotAxis &value, unsigned int index=0) |
const vector< PlotAxis > & | yAxes () const |
void | setYAxes (const vector< PlotAxis > &value) |
PlotAxis | yAxis (unsigned int index=0) const |
void | setYAxis (const PlotAxis &value, unsigned int index=0) |
const vector< bool > & | xRangesSet () const |
void | setXRanges (const vector< bool > &value) |
bool | xRangeSet (unsigned int index=0) const |
void | setXRange (const bool &value, unsigned int index=0) |
const vector< bool > & | yRangesSet () const |
void | setYRanges (const vector< bool > &value) |
bool | yRangeSet (unsigned int index=0) const |
void | setYRange (const bool &value, unsigned int index=0) |
const vector< prange_t > & | xRanges () const |
void | setXRanges (const vector< prange_t > &value) |
const prange_t & | xRange (unsigned int index=0) const |
void | setXRange (const prange_t &value, unsigned int index=0) |
const vector< prange_t > & | yRanges () const |
void | setYRanges (const vector< prange_t > &value) |
const prange_t & | yRange (unsigned int index=0) const |
void | setYRange (const prange_t &value, unsigned int index=0) |
Private Member Functions | |
void | setDefaults () |
Private Attributes | |
vector< PlotAxis > | itsXAxes_ |
vector< PlotAxis > | itsYAxes_ |
vector< bool > | itsXRangesSet_ |
vector< bool > | itsYRangesSet_ |
vector< prange_t > | itsXRanges_ |
vector< prange_t > | itsYRanges_ |
Static Private Attributes | |
static const String | REC_XAXES |
static const String | REC_YAXES |
static const String | REC_XRANGESSET |
static const String | REC_YRANGESSET |
static const String | REC_XRANGES |
static const String | REC_YRANGES |
Subclass of PlotMSPlotParameters::Group to handle axes parameters.
Currently includes: canvas attach axes axes ranges, if any Parameters are vector-based, on a per-plot basis.
Definition at line 419 of file PlotMSPlotParameterGroups.h.
casa::PMS_PP_Axes::PMS_PP_Axes | ( | PlotFactoryPtr | factory | ) |
Referenced by clone().
casa::PMS_PP_Axes::PMS_PP_Axes | ( | const PMS_PP_Axes & | copy | ) |
Group* casa::PMS_PP_Axes::clone | ( | ) | const [inline, virtual] |
Abstract Methods //.
Returns a clone (deep copy) of this group of subparameters.
Implements casa::PlotMSPlotParameters::Group.
Definition at line 432 of file PlotMSPlotParameterGroups.h.
References PMS_PP_Axes().
void casa::PMS_PP_Axes::fromRecord | ( | const Record & | record | ) | [virtual] |
Sets the values for this group of subparameters using the given Record.
Implements casa::PlotMSPlotParameters::Group.
const String& casa::PMS_PP_Axes::name | ( | ) | const [inline, virtual] |
Returns the name of this group of subparameters.
Will be used as an update flag.
Implements casa::PlotMSPlotParameters::Group.
Definition at line 437 of file PlotMSPlotParameterGroups.h.
References casa::PMS_PP::UPDATE_AXES_NAME.
unsigned int casa::PMS_PP_Axes::numXAxes | ( | ) | const |
Gets how many axes there are.
unsigned int casa::PMS_PP_Axes::numYAxes | ( | ) | const |
bool casa::PMS_PP_Axes::operator== | ( | const Group & | other | ) | const |
bool casa::PMS_PP_Axes::requiresRedrawOnChange | ( | ) | const [inline, virtual] |
Returns true if the plot needs to be redrawn when subpamarameters in this group have changed, false otherwise.
Implements casa::PlotMSPlotParameters::Group.
Definition at line 449 of file PlotMSPlotParameterGroups.h.
void casa::PMS_PP_Axes::setAxes | ( | const PlotAxis & | xAxis, |
const PlotAxis & | yAxis, | ||
unsigned int | index = 0 |
||
) |
Sets single versions of the parameters for the given index.
void casa::PMS_PP_Axes::setDefaults | ( | ) | [private] |
void casa::PMS_PP_Axes::setRanges | ( | const bool & | xSet, |
const bool & | ySet, | ||
const prange_t & | xRange, | ||
const prange_t & | yRange, | ||
unsigned int | index = 0 |
||
) |
Referenced by setXRange(), and setYRange().
void casa::PMS_PP_Axes::setXAxes | ( | const vector< PlotAxis > & | value | ) | [inline] |
Definition at line 488 of file PlotMSPlotParameterGroups.h.
References itsXAxes_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setXAxis | ( | const PlotAxis & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 501 of file PlotMSPlotParameterGroups.h.
References itsXAxes_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setXRange | ( | const bool & | set, |
const prange_t & | range, | ||
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 471 of file PlotMSPlotParameterGroups.h.
References setRanges(), yRange(), and yRangeSet().
void casa::PMS_PP_Axes::setXRange | ( | const bool & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 553 of file PlotMSPlotParameterGroups.h.
References itsXRangesSet_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setXRange | ( | const prange_t & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 604 of file PlotMSPlotParameterGroups.h.
References itsXRanges_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setXRanges | ( | const vector< bool > & | value | ) | [inline] |
Definition at line 540 of file PlotMSPlotParameterGroups.h.
References itsXRangesSet_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setXRanges | ( | const vector< prange_t > & | value | ) | [inline] |
Definition at line 593 of file PlotMSPlotParameterGroups.h.
References itsXRanges_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYAxes | ( | const vector< PlotAxis > & | value | ) | [inline] |
Definition at line 514 of file PlotMSPlotParameterGroups.h.
References itsYAxes_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYAxis | ( | const PlotAxis & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 527 of file PlotMSPlotParameterGroups.h.
References itsYAxes_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYRange | ( | const bool & | set, |
const prange_t & | range, | ||
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 475 of file PlotMSPlotParameterGroups.h.
References setRanges(), xRange(), and xRangeSet().
void casa::PMS_PP_Axes::setYRange | ( | const bool & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 579 of file PlotMSPlotParameterGroups.h.
References itsYRangesSet_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYRange | ( | const prange_t & | value, |
unsigned int | index = 0 |
||
) | [inline] |
Definition at line 626 of file PlotMSPlotParameterGroups.h.
References itsYRanges_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYRanges | ( | const vector< bool > & | value | ) | [inline] |
Definition at line 566 of file PlotMSPlotParameterGroups.h.
References itsYRangesSet_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
void casa::PMS_PP_Axes::setYRanges | ( | const vector< prange_t > & | value | ) | [inline] |
Definition at line 615 of file PlotMSPlotParameterGroups.h.
References itsYRanges_, casa::PlotMSPlotParameters::Group::updated(), and casa::value().
Record casa::PMS_PP_Axes::toRecord | ( | ) | const [virtual] |
Returns a Record representing this group of subparameters.
Implements casa::PlotMSPlotParameters::Group.
const vector< PlotAxis >& casa::PMS_PP_Axes::xAxes | ( | ) | const [inline] |
PlotAxis casa::PMS_PP_Axes::xAxis | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 496 of file PlotMSPlotParameterGroups.h.
References itsXAxes_.
const prange_t& casa::PMS_PP_Axes::xRange | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 601 of file PlotMSPlotParameterGroups.h.
References itsXRanges_.
Referenced by setYRange().
const vector< prange_t >& casa::PMS_PP_Axes::xRanges | ( | ) | const [inline] |
Definition at line 590 of file PlotMSPlotParameterGroups.h.
References itsXRanges_.
bool casa::PMS_PP_Axes::xRangeSet | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 548 of file PlotMSPlotParameterGroups.h.
References itsXRangesSet_.
Referenced by setYRange().
const vector<bool>& casa::PMS_PP_Axes::xRangesSet | ( | ) | const [inline] |
Definition at line 537 of file PlotMSPlotParameterGroups.h.
References itsXRangesSet_.
const vector<PlotAxis>& casa::PMS_PP_Axes::yAxes | ( | ) | const [inline] |
Definition at line 511 of file PlotMSPlotParameterGroups.h.
References itsYAxes_.
PlotAxis casa::PMS_PP_Axes::yAxis | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 522 of file PlotMSPlotParameterGroups.h.
References itsYAxes_.
const prange_t& casa::PMS_PP_Axes::yRange | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 623 of file PlotMSPlotParameterGroups.h.
References itsYRanges_.
Referenced by setXRange().
const vector< prange_t >& casa::PMS_PP_Axes::yRanges | ( | ) | const [inline] |
Definition at line 612 of file PlotMSPlotParameterGroups.h.
References itsYRanges_.
bool casa::PMS_PP_Axes::yRangeSet | ( | unsigned int | index = 0 | ) | const [inline] |
Definition at line 574 of file PlotMSPlotParameterGroups.h.
References itsYRangesSet_.
Referenced by setXRange().
const vector< bool >& casa::PMS_PP_Axes::yRangesSet | ( | ) | const [inline] |
Definition at line 563 of file PlotMSPlotParameterGroups.h.
References itsYRangesSet_.
vector<PlotAxis> casa::PMS_PP_Axes::itsXAxes_ [private] |
Definition at line 635 of file PlotMSPlotParameterGroups.h.
Referenced by setXAxes(), setXAxis(), xAxes(), and xAxis().
vector<prange_t> casa::PMS_PP_Axes::itsXRanges_ [private] |
Definition at line 639 of file PlotMSPlotParameterGroups.h.
Referenced by setXRange(), setXRanges(), xRange(), and xRanges().
vector<bool> casa::PMS_PP_Axes::itsXRangesSet_ [private] |
Definition at line 637 of file PlotMSPlotParameterGroups.h.
Referenced by setXRange(), setXRanges(), xRangeSet(), and xRangesSet().
vector<PlotAxis> casa::PMS_PP_Axes::itsYAxes_ [private] |
Definition at line 636 of file PlotMSPlotParameterGroups.h.
Referenced by setYAxes(), setYAxis(), yAxes(), and yAxis().
vector<prange_t> casa::PMS_PP_Axes::itsYRanges_ [private] |
Definition at line 640 of file PlotMSPlotParameterGroups.h.
Referenced by setYRange(), setYRanges(), yRange(), and yRanges().
vector<bool> casa::PMS_PP_Axes::itsYRangesSet_ [private] |
Definition at line 638 of file PlotMSPlotParameterGroups.h.
Referenced by setYRange(), setYRanges(), yRangeSet(), and yRangesSet().
const String casa::PMS_PP_Axes::REC_XAXES [static, private] |
Definition at line 643 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Axes::REC_XRANGES [static, private] |
Definition at line 647 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Axes::REC_XRANGESSET [static, private] |
Definition at line 645 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Axes::REC_YAXES [static, private] |
Definition at line 644 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Axes::REC_YRANGES [static, private] |
Definition at line 648 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Axes::REC_YRANGESSET [static, private] |
Definition at line 646 of file PlotMSPlotParameterGroups.h.