class PlotSet Plot set or pool
| | PlotFilter Plot filter object.
| ||||||||||
| | iterator : public basic_iterator Plot pool iterator.
| ||||||||||
| | const_iterator : public basic_iterator Plot pool const_iterator.
|
| | padlist Plot pad list |
| | winlist Plot pad list |
| | NoFilter () Returns a reference to filter with passes everything |
| | PlotSet () Default constructor. |
| | ~PlotSet () Destructor. |
| | Merge (PlotSet& pl, const PlotFilter& filter = NoFilter()) Merge plot set method. |
| | RegisterWindow (VirtualPlotWindow* win) Register window method. |
| | UnregisterWindow (VirtualPlotWindow* win) Unregister window method. |
| | GetRegisteredWindows () Get window list method. |
| | RegisterPad (VirtualPlotPad* pad) Register pad method. |
| | UnregisterPad (VirtualPlotPad* pad) Unregister pad method. |
| | GetPlotMap () const Get plot list method. |
| | begin () Begin method. |
| | begin () const Begin method. |
| | end () Begin method. |
| | end () const Begin method. |
| | Get (const char* graphtype, const char* Achn, const char* Bchn = 0) const Get plot descriptor method. |
| | Add (PlotDescriptor* plotd) Add plot descriptor method. |
| | Add (BasicDataDescriptor* desc, const char* graphtype, const char* Achn, const char* Bchn = 0, const ParameterDescriptor* prmd = 0, const calibration::Descriptor* cald = 0) Add data descriptor method. |
| | Add (const AttDataDescriptor& data, const char* graphtype = 0, const char* Achn = 0, const char* Bchn = 0) Add user data method. |
| | Remove (const PlotDescriptor* plotd, bool deleteIt = true) Remove plot descriptor method. |
| | Clear (bool all = true) Clear plot descriptor method. |
| | Empty () const Is empty method. |
| | Update (const PlotDescriptor* plotd) const Update method. |
| | Update () const Update method. |
| | basic_iterator Plot pool basic iterator.
|
| | fPlotList List tree of plot descriptors |
| | fMainWindows List of registered main windows (all registered windows are automatically closed when the plot set is deleted |
| | fPads List of registered graphics pads (all registered pads are automatically updated when update is called |
Describes a pool(set) of plot descriptors. A pool also maintains a list of plot pads currently using data from the pool and a list of main windows currently displaying a plot from the pool. Typically, a user will create his/her own plot pool or use the global instance (defined in TLGPlot). User data object which were made 'plot aware' by inheriting from AttDataDescriptor can be added to the pool directly, as well as data descriptors with an associated graph type and channel name(s). Using a plot pool has the advantage that multiple plots can be provided to the user through a single pad. The user may choose to display any plot from the pool as he/she wishes.When the data of a user data object or data descriptor is changed, the user has to call the Update routines of either the changed objects or the one of the pool to display the new data.
When a plot pool is deleted all asscoiated plot windows are destroyed as well.
Unless the data descriptor carries a copy of the data the original data obejct (or arrays) must stay valid until either the plot set is deleted or the assciated plot decriptor removed from the pool.
Plot descriptors are stored by their graph type and channel names. Hence, the combination of graph type, A channel name and optionally B channel name must be unique.
User code typically only uses the Add, Remove and Update methods.
typedef std::list <VirtualPlotWindow*> winlist
class basic_iterator
explicit basic_iterator(const PlotListLink* g = 0)
bool operator== (const basic_iterator& iter) const
bool operator!= (const basic_iterator& iter) const
basic_iterator& operator++()
basic_iterator operator++(int)
PlotMap fPlotList
winlist fMainWindows
padlist fPads
class PlotFilter
PlotFilter()
virtual bool operator) (const PlotDescriptor& pd, std::string& g, std::string& a, std::string& b) const
g - graph typeto be used (by default the same as pd)
a - A channel name to be used (by default the same as pd)
b - B channel name to be used (by default the same as pd)
static const PlotFilter& NoFilter()
class iterator: public basic_iterator
explicit iterator(const PlotListLink* g = 0)
iterator& operator++()
iterator operator++(int)
PlotDescriptor& operator*()
PlotDescriptor* operator->()
class const_iterator: public basic_iterator
explicit const_iterator(const PlotListLink* g = 0)
const_iterator& operator++()
const_iterator operator++(int)
const PlotDescriptor& operator*() const
const PlotDescriptor* operator->() const
PlotSet()
virtual ~PlotSet()
virtual void Merge(PlotSet& pl, const PlotFilter& filter = NoFilter())
filter - Plot descriptor filter
virtual void RegisterWindow(VirtualPlotWindow* win)
virtual void UnregisterWindow(VirtualPlotWindow* win)
virtual const winlist* GetRegisteredWindows()
virtual void RegisterPad(VirtualPlotPad* pad)
virtual void UnregisterPad(VirtualPlotPad* pad)
const PlotMap& GetPlotMap() const
virtual iterator begin()
virtual const_iterator begin() const
virtual iterator end()
virtual const_iterator end() const
virtual const PlotDescriptor* Get(const char* graphtype, const char* Achn, const char* Bchn = 0) const
Achn - A channel
Bchn - B channel
virtual PlotDescriptor* Add(PlotDescriptor* plotd)
virtual PlotDescriptor* Add(BasicDataDescriptor* desc, const char* graphtype, const char* Achn, const char* Bchn = 0, const ParameterDescriptor* prmd = 0, const calibration::Descriptor* cald = 0)
graphtype - Graph type
Achn - A channel name
Bchn - B channel name (optional)
prmd - Set of parameters (optional)
cald - Set of calibration records (optional)
virtual PlotDescriptor* Add(const AttDataDescriptor& data, const char* graphtype = 0, const char* Achn = 0, const char* Bchn = 0)
graphtype - Graph type (optional)
Achn - A channel name (optional)
Bchn - B channel name (optional)
virtual void Remove(const PlotDescriptor* plotd, bool deleteIt = true)
deleteIt - automatically deletes the plot
descriptor if true (default)
virtual void Clear(bool all = true)
virtual bool Empty() const
virtual void Update(const PlotDescriptor* plotd) const
virtual void Update() const
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++