Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter. More...
#include <PlotMSParameters.h>
Public Member Functions | |
PlotMSParameters (const String &logFilename=PMS::DEFAULT_LOG_FILENAME, int logEvents=PMS::DEFAULT_LOG_EVENTS, LogMessage::Priority logPriority=PMS::DEFAULT_LOG_PRIORITY, bool clearSelections=PMS::DEFAULT_CLEAR_SELECTIONS, int cachedImageWidth=PMS::DEFAULT_CACHED_IMAGE_WIDTH, int cachedImageHeight=PMS::DEFAULT_CACHED_IMAGE_HEIGHT, int rowCount=PMS::DEFAULT_GRID_ROWS, int colCount=PMS::DEFAULT_GRID_COLS) | |
Non-Static //. | |
PlotMSParameters (const PlotMSParameters ©) | |
Copy constructor. | |
~PlotMSParameters () | |
Destructor. | |
String | logFilename () const |
Gets/Sets the log sink location/filename. | |
void | setLogFilename (const String &filename) |
int | logEvents () const |
Returns the current log events. | |
LogMessage::Priority | logPriority () const |
Returns the current log minimum priority. | |
void | setLogFilter (int logEvents, LogMessage::Priority priority) |
Sets the current log filter. | |
bool | clearSelectionsOnAxesChange () const |
Gets/Sets whether any selections are cleared when plot axes are changed or not. | |
void | setClearSelectionsOnAxesChange (bool flag) |
std::pair< int, int > | cachedImageSize () const |
Gets/Sets the cached image size. | |
void | setCachedImageSize (int width, int height) |
void | setCachedImageSizeToResolution () |
Sets the cached image size to the current screen resolution. | |
bool | setGridSize (int rows, int cols) |
int | getRowCount () const |
int | getColCount () const |
void | setRowCount (int rowCount) |
void | setColCount (int colCount) |
PlotMSParameters & | operator= (const PlotMSParameters ©) |
Copy operator. | |
bool | equals (const PlotMSWatchedParameters &other, int updateFlags) const |
Implements PlotMSWatchedParameters::equals(). | |
Static Public Member Functions | |
static int | chooserHistoryLimit () |
Gets/Sets the file chooser history limit. | |
static void | setChooserListoryLimit (int histLimit) |
Static Public Attributes | |
static const int | UPDATE_LOG |
Static //. | |
static const int | UPDATE_PLOTMS_OPTIONS |
Private Attributes | |
String | itsLogFilename_ |
Log filename. | |
int | itsLogEvents_ |
Log events flag. | |
LogMessage::Priority | itsLogPriority_ |
Log minimum priority. | |
bool | itsClearSelectionsOnAxesChange_ |
Clear selections on axes change flag. | |
int | itsCachedImageWidth_ |
Cached image sizes. | |
int | itsCachedImageHeight_ |
int | rowCount |
int | colCount |
Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter.
These parameters include: log file name log events flag log minimum priority filter whether to clear any selections when axes are changed or not width and height for the cached image
Definition at line 41 of file PlotMSParameters.h.
casa::PlotMSParameters::PlotMSParameters | ( | const String & | logFilename = PMS::DEFAULT_LOG_FILENAME , |
|
int | logEvents = PMS::DEFAULT_LOG_EVENTS , |
|||
LogMessage::Priority | logPriority = PMS::DEFAULT_LOG_PRIORITY , |
|||
bool | clearSelections = PMS::DEFAULT_CLEAR_SELECTIONS , |
|||
int | cachedImageWidth = PMS::DEFAULT_CACHED_IMAGE_WIDTH , |
|||
int | cachedImageHeight = PMS::DEFAULT_CACHED_IMAGE_HEIGHT , |
|||
int | rowCount = PMS::DEFAULT_GRID_ROWS , |
|||
int | colCount = PMS::DEFAULT_GRID_COLS | |||
) |
Non-Static //.
Constructor, with default values for parameters.
casa::PlotMSParameters::PlotMSParameters | ( | const PlotMSParameters & | copy | ) |
Copy constructor.
See operator=().
casa::PlotMSParameters::~PlotMSParameters | ( | ) |
Destructor.
std::pair<int, int> casa::PlotMSParameters::cachedImageSize | ( | ) | const |
Gets/Sets the cached image size.
static int casa::PlotMSParameters::chooserHistoryLimit | ( | ) | [static] |
Gets/Sets the file chooser history limit.
(See QtFileDialog.) Static parameter.
bool casa::PlotMSParameters::clearSelectionsOnAxesChange | ( | ) | const |
Gets/Sets whether any selections are cleared when plot axes are changed or not.
bool casa::PlotMSParameters::equals | ( | const PlotMSWatchedParameters & | other, | |
int | updateFlags | |||
) | const |
Implements PlotMSWatchedParameters::equals().
Will return false if the other parameters are not of type PlotMSParameters.
int casa::PlotMSParameters::getColCount | ( | ) | const |
int casa::PlotMSParameters::getRowCount | ( | ) | const |
int casa::PlotMSParameters::logEvents | ( | ) | const |
Returns the current log events.
String casa::PlotMSParameters::logFilename | ( | ) | const |
Gets/Sets the log sink location/filename.
LogMessage::Priority casa::PlotMSParameters::logPriority | ( | ) | const |
Returns the current log minimum priority.
PlotMSParameters& casa::PlotMSParameters::operator= | ( | const PlotMSParameters & | copy | ) |
Copy operator.
void casa::PlotMSParameters::setCachedImageSize | ( | int | width, | |
int | height | |||
) |
void casa::PlotMSParameters::setCachedImageSizeToResolution | ( | ) |
Sets the cached image size to the current screen resolution.
static void casa::PlotMSParameters::setChooserListoryLimit | ( | int | histLimit | ) | [static] |
void casa::PlotMSParameters::setClearSelectionsOnAxesChange | ( | bool | flag | ) |
void casa::PlotMSParameters::setColCount | ( | int | colCount | ) |
bool casa::PlotMSParameters::setGridSize | ( | int | rows, | |
int | cols | |||
) |
void casa::PlotMSParameters::setLogFilename | ( | const String & | filename | ) |
void casa::PlotMSParameters::setLogFilter | ( | int | logEvents, | |
LogMessage::Priority | priority | |||
) |
Sets the current log filter.
void casa::PlotMSParameters::setRowCount | ( | int | rowCount | ) |
int casa::PlotMSParameters::colCount [private] |
Definition at line 145 of file PlotMSParameters.h.
int casa::PlotMSParameters::itsCachedImageHeight_ [private] |
Definition at line 142 of file PlotMSParameters.h.
int casa::PlotMSParameters::itsCachedImageWidth_ [private] |
Cached image sizes.
Definition at line 142 of file PlotMSParameters.h.
bool casa::PlotMSParameters::itsClearSelectionsOnAxesChange_ [private] |
Clear selections on axes change flag.
Definition at line 139 of file PlotMSParameters.h.
int casa::PlotMSParameters::itsLogEvents_ [private] |
Log events flag.
Definition at line 133 of file PlotMSParameters.h.
String casa::PlotMSParameters::itsLogFilename_ [private] |
Log filename.
Definition at line 130 of file PlotMSParameters.h.
LogMessage::Priority casa::PlotMSParameters::itsLogPriority_ [private] |
Log minimum priority.
Definition at line 136 of file PlotMSParameters.h.
int casa::PlotMSParameters::rowCount [private] |
Definition at line 144 of file PlotMSParameters.h.
const int casa::PlotMSParameters::UPDATE_LOG [static] |
const int casa::PlotMSParameters::UPDATE_PLOTMS_OPTIONS [static] |
Definition at line 48 of file PlotMSParameters.h.