casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
casa::PlotMSPlotParameters::Group Class Reference

Static //. More...

#include <PlotMSPlotParameters.h>

Inheritance diagram for casa::PlotMSPlotParameters::Group:
casa::PMS_PP_Axes casa::PMS_PP_Cache casa::PMS_PP_Canvas casa::PMS_PP_Display casa::PMS_PP_Iteration casa::PMS_PP_MSData

List of all members.

Public Member Functions

 Group (PlotFactoryPtr factory)
 Constructor which takes a plot factory.
 Group (const Group &copy)
 Copy constructor.
virtual ~Group ()
 Destructor.
virtual Groupclone () const =0
 Abstract Methods //.
virtual const Stringname () const =0
 Returns the name of this group of subparameters.
virtual Record toRecord () const =0
 Returns a Record representing this group of subparameters.
virtual void fromRecord (const Record &record)=0
 Sets the values for this group of subparameters using the given Record.
virtual bool requiresRedrawOnChange () const =0
 Returns true if the plot needs to be redrawn when subpamarameters in this group have changed, false otherwise.
virtual Groupoperator= (const Group &other)
 Implemented Methods //.
virtual bool operator== (const Group &other) const
 Equality operators.
virtual bool operator!= (const Group &other) const

Static Public Member Functions

static void notifyWatchers (void *obj, bool wasCanceled)
 Post-thread method for notifying watchers that this group has changed.

Protected Member Functions

void updated ()
 Should be called by the child class whenever any of the subparameter values have been updated.
void updated (bool requiresRedraw)
PlotMSPlotParametersparent ()
 Returns the parent parameters, or NULL for none.
const PlotMSPlotParametersparent () const
PlotFactoryPtr factory ()
 Returns the factory.
const PlotFactoryPtr factory () const

Private Member Functions

void notifyWatchers_ (bool wasCanceled)

Private Attributes

PlotMSPlotParametersitsParent_
 
         

PlotFactoryPtr itsFactory_
 Factory.

Friends

class PlotMSPlotParameters

Detailed Description

Static //.

Abstract superclass representing a "group" of subparameters of a PlotMSPlotParameters object.

Definition at line 53 of file PlotMSPlotParameters.h.


Constructor & Destructor Documentation

Constructor which takes a plot factory.

Copy constructor.

Does NOT copy parameter values using operator=().

Destructor.


Member Function Documentation

virtual Group* casa::PlotMSPlotParameters::Group::clone ( ) const [pure virtual]

Abstract Methods //.

Returns a clone (deep copy) of this group of subparameters.

Implemented in casa::PMS_PP_Iteration, casa::PMS_PP_Display, casa::PMS_PP_Canvas, casa::PMS_PP_Axes, casa::PMS_PP_Cache, and casa::PMS_PP_MSData.

Returns the factory.

Definition at line 118 of file PlotMSPlotParameters.h.

References itsFactory_.

const PlotFactoryPtr casa::PlotMSPlotParameters::Group::factory ( ) const [inline, protected]

Definition at line 119 of file PlotMSPlotParameters.h.

References itsFactory_.

virtual void casa::PlotMSPlotParameters::Group::fromRecord ( const Record record) [pure virtual]

Sets the values for this group of subparameters using the given Record.

Implemented in casa::PMS_PP_Iteration, casa::PMS_PP_Display, casa::PMS_PP_Canvas, casa::PMS_PP_Axes, casa::PMS_PP_Cache, and casa::PMS_PP_MSData.

virtual const String& casa::PlotMSPlotParameters::Group::name ( ) const [pure virtual]

Returns the name of this group of subparameters.

Will be used as an update flag.

Implemented in casa::PMS_PP_Iteration, casa::PMS_PP_Display, casa::PMS_PP_Canvas, casa::PMS_PP_Axes, casa::PMS_PP_Cache, and casa::PMS_PP_MSData.

static void casa::PlotMSPlotParameters::Group::notifyWatchers ( void *  obj,
bool  wasCanceled 
) [inline, static]

Post-thread method for notifying watchers that this group has changed.

Definition at line 134 of file PlotMSPlotParameters.h.

References notifyWatchers_().

void casa::PlotMSPlotParameters::Group::notifyWatchers_ ( bool  wasCanceled) [private]

Referenced by notifyWatchers().

virtual bool casa::PlotMSPlotParameters::Group::operator!= ( const Group other) const [inline, virtual]

Definition at line 99 of file PlotMSPlotParameters.h.

References operator==().

virtual Group& casa::PlotMSPlotParameters::Group::operator= ( const Group other) [virtual]

Implemented Methods //.

Copy operator. Should probably be overridden by children to be more efficient. Only copies if the two groups have the same name.

virtual bool casa::PlotMSPlotParameters::Group::operator== ( const Group other) const [virtual]

Equality operators.

Should probably be overridden by children to be more efficient.

Referenced by operator!=().

Returns the parent parameters, or NULL for none.

Definition at line 112 of file PlotMSPlotParameters.h.

References itsParent_.

Definition at line 113 of file PlotMSPlotParameters.h.

References itsParent_.

virtual bool casa::PlotMSPlotParameters::Group::requiresRedrawOnChange ( ) const [pure virtual]

Returns true if the plot needs to be redrawn when subpamarameters in this group have changed, false otherwise.

Implemented in casa::PMS_PP_Iteration, casa::PMS_PP_Display, casa::PMS_PP_Canvas, casa::PMS_PP_Axes, casa::PMS_PP_Cache, and casa::PMS_PP_MSData.

Referenced by updated().

virtual Record casa::PlotMSPlotParameters::Group::toRecord ( ) const [pure virtual]

Returns a Record representing this group of subparameters.

Implemented in casa::PMS_PP_Iteration, casa::PMS_PP_Display, casa::PMS_PP_Canvas, casa::PMS_PP_Axes, casa::PMS_PP_Cache, and casa::PMS_PP_MSData.

void casa::PlotMSPlotParameters::Group::updated ( ) [inline, protected]

Should be called by the child class whenever any of the subparameter values have been updated.

Definition at line 106 of file PlotMSPlotParameters.h.

References requiresRedrawOnChange(), and updated().

Referenced by casa::PMS_PP_MSData::setAveraging(), casa::PMS_PP_Display::setColorize(), casa::PMS_PP_MSData::setFilename(), casa::PMS_PP_Display::setFlaggedSymbol(), casa::PMS_PP_Display::setFlaggedSymbols(), casa::PMS_PP_Canvas::setGridMajorLine(), casa::PMS_PP_Canvas::setGridMajorLines(), casa::PMS_PP_Canvas::setGridMinorLine(), casa::PMS_PP_Canvas::setGridMinorLines(), casa::PMS_PP_Iteration::setIterationAxis(), casa::PMS_PP_Iteration::setIterParam(), casa::PMS_PP_Iteration::setNumColumns(), casa::PMS_PP_Iteration::setNumRows(), casa::PMS_PP_MSData::setSelection(), casa::PMS_PP_Canvas::setTitleFormat(), casa::PMS_PP_Display::setTitleFormat(), casa::PMS_PP_Canvas::setTitleFormats(), casa::PMS_PP_Display::setTitleFormats(), casa::PMS_PP_MSData::setTransformations(), casa::PMS_PP_Display::setUnflaggedSymbol(), casa::PMS_PP_Display::setUnflaggedSymbols(), casa::PMS_PP_Cache::setXAxes(), casa::PMS_PP_Axes::setXAxes(), casa::PMS_PP_Cache::setXAxis(), casa::PMS_PP_Axes::setXAxis(), casa::PMS_PP_Iteration::setXAxisScaleMode(), casa::PMS_PP_Cache::setXDataColumn(), casa::PMS_PP_Cache::setXDataColumns(), casa::PMS_PP_Canvas::setXLabelFormat(), casa::PMS_PP_Canvas::setXLabelFormats(), casa::PMS_PP_Axes::setXRange(), casa::PMS_PP_Axes::setXRanges(), casa::PMS_PP_Cache::setYAxes(), casa::PMS_PP_Axes::setYAxes(), casa::PMS_PP_Cache::setYAxis(), casa::PMS_PP_Axes::setYAxis(), casa::PMS_PP_Iteration::setYAxisScaleMode(), casa::PMS_PP_Cache::setYDataColumn(), casa::PMS_PP_Cache::setYDataColumns(), casa::PMS_PP_Canvas::setYLabelFormat(), casa::PMS_PP_Canvas::setYLabelFormats(), casa::PMS_PP_Axes::setYRange(), casa::PMS_PP_Axes::setYRanges(), casa::PMS_PP_Canvas::showGridMajor(), casa::PMS_PP_Canvas::showGridMajors(), casa::PMS_PP_Canvas::showGridMinor(), casa::PMS_PP_Canvas::showGridMinors(), casa::PMS_PP_Canvas::showLegend(), casa::PMS_PP_Canvas::showLegends(), casa::PMS_PP_Canvas::showXAxes(), casa::PMS_PP_Canvas::showXAxis(), casa::PMS_PP_Canvas::showYAxes(), casa::PMS_PP_Canvas::showYAxis(), and updated().

void casa::PlotMSPlotParameters::Group::updated ( bool  requiresRedraw) [protected]

Friends And Related Function Documentation

friend class PlotMSPlotParameters [friend]

Definition at line 56 of file PlotMSPlotParameters.h.


Member Data Documentation

Factory.

Definition at line 127 of file PlotMSPlotParameters.h.

Referenced by factory().

         

Parent of this group of subparameters.

Definition at line 124 of file PlotMSPlotParameters.h.

Referenced by parent().


The documentation for this class was generated from the following file: