28 #ifndef TRIALDISPLAY_CACHINGDISPLAYDATA_H
29 #define TRIALDISPLAY_CACHINGDISPLAYDATA_H
38 class WorldCanvasHolder;
39 class AttributeBuffer;
40 class CachingDisplayMethod;
virtual void setColormap(Colormap *cmap, casacore::Float weight)
Purges cache, to avoid reusing images with the wrong colormap, then calls base class version...
virtual void notifyUnregister(WorldCanvasHolder &wcHolder, casacore::Bool ignoreRefresh=false)
ignoreRefresh tells the DD not to refresh just to clean up DMs
Assistance class for auto-caching of DisplayData objects.
virtual casacore::Record getOptions(bool scrub=false) const
Retrieve the current and default options and parameter types.
Class which stores WorldCanvas refresh event information.
virtual void setDefaultOptions()
Install the default options for this DisplayData.
Buffer for storing Attributes.
virtual void notifyRegister(WorldCanvasHolder *wcHolder)
virtual void refreshEH(const WCRefreshEvent &ev)
Refresh event handler which is called indirectly by the WorldCanvas, via the WorldCanvasHolder.
virtual ~CachingDisplayData()
Destructor.
void trimCache()
Clear out cache entries beyond end of list.
virtual CachingDisplayMethod * newDisplayMethod(WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)=0
Create a new (Caching)DisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers ar...
Base class for auto-caching DisplayData objects.
casacore::Int itsOptionsMaximumCacheSize
void operator=(const CachingDisplayData &other)
(Required) copy assignment.
casacore::Bool restorePCColormap_
The default is false.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
std::list< void * > itsElementList
casacore::List containing the CachingDisplayMethods for this CachingDisplayData.
casacore::Int itsDefaultMaximumCacheSize
Default and actual maximum length of element list.
Describes a method of generating a table of colors.
A holder to interface between DisplayDatas and a WorldCanvas.
Implementation of drawing in world coordinates on top of a PixelCanvas.
CachingDisplayData()
Constructor.
void installDefaultOptions()
Install the default options for this DisplayData.
virtual casacore::Bool setOptions(casacore::Record &rec, casacore::Record &recOut)
Apply options stored in rec to the DisplayData.
Base class for display objects.
virtual AttributeBuffer optionsAsAttributes()
Return the current options of this DisplayData as an AttributeBuffer.
virtual void purgeCache()
Empty cache completely.
virtual void setCaching(const casacore::Bool caching)
Return any additional Attributes to consider when searching the cache.
casacore::Bool itsCachingState
Caching state.