Commits
Pam Harris authored and Ville Suoranta committed cd38d84c275 Merge
230 230 | // ABSTRACT METHODS // |
231 231 | |
232 232 | // Returns the total number of bins that the data is in. |
233 233 | virtual unsigned int numBins() const = 0; |
234 234 | |
235 235 | // Returns the bin index number for the given index. MUST be between 0 and |
236 236 | // numBins(). |
237 237 | virtual unsigned int binAt(unsigned int i) const = 0; |
238 238 | virtual unsigned int connectBinAt(unsigned int i) const { |
239 239 | return binAt(i); }; |
240 - | |
241 - | |
240 + | |
241 + | // Return map of colorized values to color, and whether all plots use the same color list |
242 + | virtual std::map<std::string, std::string> getColorizeMap(bool& shared_colormap) const = 0; |
243 + | |
242 244 | // IMPLEMENTED METHODS // |
243 245 | |
244 246 | // Returns true if the data is binned, false otherwise. |
245 247 | virtual bool isBinned() const { return numBins() > 1; } |
246 248 | }; |
247 249 | INHERITANCE_POINTER(PlotBinnedData, PlotBinnedDataPtr, PlotPointData, |
248 250 | PlotDataPtr, PlotData, PlotDataPtr) |
249 251 | |
250 252 | |
251 253 | // casacore::Data for raster plots, which can be thought of as three-dimensional. Used |