Subclass of PlotMSPlotParameters::Group to handle cache parameters. More...
#include <PlotMSPlotParameterGroups.h>
Public Member Functions | |
PMS_PP_Cache (PlotFactoryPtr factory) | |
PMS_PP_Cache (const PMS_PP_Cache ©) | |
~PMS_PP_Cache () | |
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. | |
PMS_PP_Cache & | operator= (const PMS_PP_Cache &other) |
Implemented Methods //. | |
PMS_PP_Cache & | operator= (const Group &other) |
bool | operator== (const Group &other) const |
unsigned int | numXAxes () const |
Gets how many axes and data columns there are. | |
unsigned int | numYAxes () const |
void | setXAxis (const PMS::Axis &axis, const PMS::DataColumn &data, unsigned int index=0) |
Setting the data and data columns for the x- and y-axes. | |
void | setYAxis (const PMS::Axis &axis, const PMS::DataColumn &data, unsigned int index=0) |
void | setAxes (const PMS::Axis &xAxis, const PMS::Axis &yAxis, const PMS::DataColumn &xData, const PMS::DataColumn &yData, unsigned int index=0) |
const vector< PMS::Axis > & | xAxes () const |
void | setXAxes (const vector< PMS::Axis > &value) |
PMS::Axis | xAxis (unsigned int index=0) const |
void | setXAxis (const PMS::Axis &value, unsigned int index=0) |
const vector< PMS::Axis > & | yAxes () const |
void | setYAxes (const vector< PMS::Axis > &value) |
PMS::Axis | yAxis (unsigned int index=0) const |
void | setYAxis (const PMS::Axis &value, unsigned int index=0) |
const vector< PMS::DataColumn > & | xDataColumns () const |
void | setXDataColumns (const vector< PMS::DataColumn > &value) |
PMS::DataColumn | xDataColumn (unsigned int index=0) const |
void | setXDataColumn (const PMS::DataColumn &value, unsigned int index=0) |
const vector< PMS::DataColumn > & | yDataColumns () const |
void | setYDataColumns (const vector< PMS::DataColumn > &value) |
PMS::DataColumn | yDataColumn (unsigned int index=0) const |
void | setYDataColumn (const PMS::DataColumn &value, unsigned int index=0) |
void | resize (int count) |
Private Member Functions | |
PMS_PP_Cache & | assign (const PMS_PP_Cache *o) |
Does the work for the operator=()s. | |
void | setDefaults () |
Private Attributes | |
vector< PMS::Axis > | itsXAxes_ |
vector< PMS::Axis > | itsYAxes_ |
vector< PMS::DataColumn > | itsXData_ |
vector< PMS::DataColumn > | itsYData_ |
Static Private Attributes | |
static const String | REC_XAXES |
static const String | REC_YAXES |
static const String | REC_XDATACOLS |
static const String | REC_YDATACOLS |
Subclass of PlotMSPlotParameters::Group to handle cache parameters.
Currently includes: x and y axes x and y data columns Parameters are vector-based, on a per-plot basis.
Definition at line 248 of file PlotMSPlotParameterGroups.h.
casa::PMS_PP_Cache::PMS_PP_Cache | ( | PlotFactoryPtr | factory | ) |
Referenced by clone().
casa::PMS_PP_Cache::PMS_PP_Cache | ( | const PMS_PP_Cache & | copy | ) |
casa::PMS_PP_Cache::~PMS_PP_Cache | ( | ) |
PMS_PP_Cache& casa::PMS_PP_Cache::assign | ( | const PMS_PP_Cache * | o | ) | [private] |
Does the work for the operator=()s.
Group* casa::PMS_PP_Cache::clone | ( | ) | const [inline, virtual] |
Abstract Methods //.
Returns a clone (deep copy) of this group of subparameters.
Implements casa::PlotMSPlotParameters::Group.
Definition at line 260 of file PlotMSPlotParameterGroups.h.
References PMS_PP_Cache().
void casa::PMS_PP_Cache::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_Cache::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 265 of file PlotMSPlotParameterGroups.h.
References String, and casa::PMS_PP::UPDATE_CACHE_NAME.
unsigned int casa::PMS_PP_Cache::numXAxes | ( | ) | const |
Gets how many axes and data columns there are.
unsigned int casa::PMS_PP_Cache::numYAxes | ( | ) | const |
PMS_PP_Cache& casa::PMS_PP_Cache::operator= | ( | const Group & | other | ) |
PMS_PP_Cache& casa::PMS_PP_Cache::operator= | ( | const PMS_PP_Cache & | other | ) | [virtual] |
Implemented Methods //.
Copy operator. Should probably be overridden by children to be more efficient. Only copies if the two groups have the same name.
Reimplemented from casa::PlotMSPlotParameters::Group.
bool casa::PMS_PP_Cache::operator== | ( | const Group & | other | ) | const |
bool casa::PMS_PP_Cache::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 277 of file PlotMSPlotParameterGroups.h.
void casa::PMS_PP_Cache::resize | ( | int | count | ) |
void casa::PMS_PP_Cache::setAxes | ( | const PMS::Axis & | xAxis, | |
const PMS::Axis & | yAxis, | |||
const PMS::DataColumn & | xData, | |||
const PMS::DataColumn & | yData, | |||
unsigned int | index = 0 | |||
) |
void casa::PMS_PP_Cache::setDefaults | ( | ) | [private] |
void casa::PMS_PP_Cache::setXAxes | ( | const vector< PMS::Axis > & | value | ) | [inline] |
Definition at line 313 of file PlotMSPlotParameterGroups.h.
References itsXAxes_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setXAxis | ( | const PMS::Axis & | value, | |
unsigned int | index = 0 | |||
) | [inline] |
Definition at line 324 of file PlotMSPlotParameterGroups.h.
References itsXAxes_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setXAxis | ( | const PMS::Axis & | axis, | |
const PMS::DataColumn & | data, | |||
unsigned int | index = 0 | |||
) |
Setting the data and data columns for the x- and y-axes.
void casa::PMS_PP_Cache::setXDataColumn | ( | const PMS::DataColumn & | value, | |
unsigned int | index = 0 | |||
) | [inline] |
Definition at line 374 of file PlotMSPlotParameterGroups.h.
References itsXData_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setXDataColumns | ( | const vector< PMS::DataColumn > & | value | ) | [inline] |
Definition at line 362 of file PlotMSPlotParameterGroups.h.
References itsXData_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setYAxes | ( | const vector< PMS::Axis > & | value | ) | [inline] |
Definition at line 337 of file PlotMSPlotParameterGroups.h.
References itsYAxes_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setYAxis | ( | const PMS::Axis & | value, | |
unsigned int | index = 0 | |||
) | [inline] |
Definition at line 348 of file PlotMSPlotParameterGroups.h.
References itsYAxes_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setYAxis | ( | const PMS::Axis & | axis, | |
const PMS::DataColumn & | data, | |||
unsigned int | index = 0 | |||
) |
void casa::PMS_PP_Cache::setYDataColumn | ( | const PMS::DataColumn & | value, | |
unsigned int | index = 0 | |||
) | [inline] |
Definition at line 400 of file PlotMSPlotParameterGroups.h.
References itsYData_, and casa::PlotMSPlotParameters::Group::updated().
void casa::PMS_PP_Cache::setYDataColumns | ( | const vector< PMS::DataColumn > & | value | ) | [inline] |
Definition at line 388 of file PlotMSPlotParameterGroups.h.
References itsYData_, and casa::PlotMSPlotParameters::Group::updated().
Record casa::PMS_PP_Cache::toRecord | ( | ) | const [virtual] |
Returns a Record representing this group of subparameters.
Implements casa::PlotMSPlotParameters::Group.
const vector<PMS::Axis>& casa::PMS_PP_Cache::xAxes | ( | ) | const [inline] |
Definition at line 310 of file PlotMSPlotParameterGroups.h.
References itsXAxes_.
PMS::Axis casa::PMS_PP_Cache::xAxis | ( | unsigned int | index = 0 |
) | const [inline] |
Definition at line 319 of file PlotMSPlotParameterGroups.h.
References itsXAxes_.
PMS::DataColumn casa::PMS_PP_Cache::xDataColumn | ( | unsigned int | index = 0 |
) | const [inline] |
Definition at line 368 of file PlotMSPlotParameterGroups.h.
References itsXData_.
const vector<PMS::DataColumn>& casa::PMS_PP_Cache::xDataColumns | ( | ) | const [inline] |
Definition at line 359 of file PlotMSPlotParameterGroups.h.
References itsXData_.
const vector<PMS::Axis>& casa::PMS_PP_Cache::yAxes | ( | ) | const [inline] |
Definition at line 334 of file PlotMSPlotParameterGroups.h.
References itsYAxes_.
PMS::Axis casa::PMS_PP_Cache::yAxis | ( | unsigned int | index = 0 |
) | const [inline] |
Definition at line 343 of file PlotMSPlotParameterGroups.h.
References itsYAxes_.
PMS::DataColumn casa::PMS_PP_Cache::yDataColumn | ( | unsigned int | index = 0 |
) | const [inline] |
Definition at line 394 of file PlotMSPlotParameterGroups.h.
References itsYData_.
const vector< PMS::DataColumn >& casa::PMS_PP_Cache::yDataColumns | ( | ) | const [inline] |
Definition at line 385 of file PlotMSPlotParameterGroups.h.
References itsYData_.
vector<PMS::Axis> casa::PMS_PP_Cache::itsXAxes_ [private] |
Definition at line 417 of file PlotMSPlotParameterGroups.h.
Referenced by setXAxes(), setXAxis(), xAxes(), and xAxis().
vector<PMS::DataColumn> casa::PMS_PP_Cache::itsXData_ [private] |
Definition at line 419 of file PlotMSPlotParameterGroups.h.
Referenced by setXDataColumn(), setXDataColumns(), xDataColumn(), and xDataColumns().
vector<PMS::Axis> casa::PMS_PP_Cache::itsYAxes_ [private] |
Definition at line 418 of file PlotMSPlotParameterGroups.h.
Referenced by setYAxes(), setYAxis(), yAxes(), and yAxis().
vector<PMS::DataColumn> casa::PMS_PP_Cache::itsYData_ [private] |
Definition at line 420 of file PlotMSPlotParameterGroups.h.
Referenced by setYDataColumn(), setYDataColumns(), yDataColumn(), and yDataColumns().
const String casa::PMS_PP_Cache::REC_XAXES [static, private] |
Definition at line 423 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Cache::REC_XDATACOLS [static, private] |
Definition at line 425 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Cache::REC_YAXES [static, private] |
Definition at line 424 of file PlotMSPlotParameterGroups.h.
const String casa::PMS_PP_Cache::REC_YDATACOLS [static, private] |
Definition at line 426 of file PlotMSPlotParameterGroups.h.