PlotMSParameters.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef PLOTMSPARAMETERS_H_
00027 #define PLOTMSPARAMETERS_H_
00028
00029 #include <plotms/PlotMS/PlotMSConstants.h>
00030 #include <plotms/PlotMS/PlotMSWatchedParameters.h>
00031
00032 namespace casa {
00033
00034
00035
00036
00037
00038
00039
00040
00041 class PlotMSParameters : public PlotMSWatchedParameters {
00042 public:
00043
00044
00045
00046
00047 static const int UPDATE_LOG;
00048 static const int UPDATE_PLOTMS_OPTIONS;
00049
00050
00051
00052
00053
00054 static int chooserHistoryLimit();
00055 static void setChooserListoryLimit(int histLimit);
00056
00057
00058
00059
00060
00061
00062 PlotMSParameters(const String& logFilename = PMS::DEFAULT_LOG_FILENAME,
00063 int logEvents = PMS::DEFAULT_LOG_EVENTS,
00064 LogMessage::Priority logPriority = PMS::DEFAULT_LOG_PRIORITY,
00065 bool clearSelections = PMS::DEFAULT_CLEAR_SELECTIONS,
00066 int cachedImageWidth = PMS::DEFAULT_CACHED_IMAGE_WIDTH,
00067 int cachedImageHeight = PMS::DEFAULT_CACHED_IMAGE_HEIGHT,
00068 int rowCount = PMS::DEFAULT_GRID_ROWS,
00069 int colCount = PMS::DEFAULT_GRID_COLS);
00070
00071
00072 PlotMSParameters(const PlotMSParameters& copy);
00073
00074
00075 ~PlotMSParameters();
00076
00077
00078
00079
00080 String logFilename() const;
00081 void setLogFilename(const String& filename);
00082
00083
00084
00085 int logEvents() const;
00086
00087
00088 LogMessage::Priority logPriority() const;
00089
00090
00091 void setLogFilter(int logEvents, LogMessage::Priority priority);
00092
00093
00094
00095
00096 bool clearSelectionsOnAxesChange() const;
00097 void setClearSelectionsOnAxesChange(bool flag);
00098
00099
00100
00101
00102
00103 std::pair<int, int> cachedImageSize() const;
00104 void setCachedImageSize(int width, int height);
00105
00106
00107
00108 void setCachedImageSizeToResolution();
00109
00110
00111
00112
00113 bool setGridSize( int rows, int cols );
00114 int getRowCount() const;
00115 int getColCount() const;
00116 void setRowCount( int rowCount );
00117 void setColCount( int colCount );
00118
00119
00120
00121 PlotMSParameters& operator=(const PlotMSParameters& copy);
00122
00123
00124
00125
00126 bool equals(const PlotMSWatchedParameters& other, int updateFlags) const;
00127
00128 private:
00129
00130 String itsLogFilename_;
00131
00132
00133 int itsLogEvents_;
00134
00135
00136 LogMessage::Priority itsLogPriority_;
00137
00138
00139 bool itsClearSelectionsOnAxesChange_;
00140
00141
00142 int itsCachedImageWidth_, itsCachedImageHeight_;
00143
00144 int rowCount;
00145 int colCount;
00146
00147
00148 };
00149
00150
00151 class DummyClass {
00152 private:
00153 static const int dummyDraw;
00154 static const int dummyData;
00155 static const int dummyCache;
00156 static const int dummyAxes;
00157 static const int dummyCanvas;
00158 static const int dummyDisplay;
00159 static const int dummyIter;
00160 };
00161
00162 }
00163
00164 #endif