casa::PlotMSPlotParameters Class Reference

Parameters for a PlotMSPlot. More...

#include <PlotMSPlotParameters.h>

Inheritance diagram for casa::PlotMSPlotParameters:
casa::PlotMSWatchedParameters

List of all members.

Classes

class  Group
 Static //. More...

Public Member Functions

 PlotMSPlotParameters (PlotFactoryPtr factory)
 Non-Static //.
 PlotMSPlotParameters (const PlotMSPlotParameters &copy)
 Copy constructor.
 ~PlotMSPlotParameters ()
 Destructor.
bool equals (const PlotMSWatchedParameters &other, int updateFlags) const
 Implements PlotMSWatchedParameters::equals().
const Groupgroup (const String &name) const
 Returns the subparameters group with the given name, or NULL for none.
Groupgroup (const String &name)
template<class T >
const T * typedGroup () const
 Returns the templated type of subparameters group, or NULL for none.
template<class T >
T * typedGroup ()
void setGroup (const Group &group)
 Sets (or adds) the given group of subparameters in this object, cloning it.
template<class T >
void setGroup ()
 Sets (or adds) the default constructor of the templated type of subparameters group.
PlotMSPlotParametersoperator= (const PlotMSPlotParameters &copy)
 Copy operator.

Protected Member Functions

void notifyWatchers (int updateFlags, PlotMSParametersWatcher *updater=NULL)
 Notifies any watchers that the parameters have been updated with the given flags.
void notifyWatchers (const String &updateName, PlotMSParametersWatcher *updater=NULL)

Protected Attributes

PlotFactoryPtr itsFactory_
 Factory.

Private Member Functions

void groupUpdated (Group *group, bool requiresRedraw)
 To be called when one of the groups is updated.

Private Attributes

vector< Group * > itsGroups_
 Subparameter groups.

Friends

class PlotMSPlotParameters::Group

Detailed Description

Parameters for a PlotMSPlot.

Parameters for different plot types are defined by subparameter groups, which are in the PlotMSPlotParameterGroups files.

Definition at line 43 of file PlotMSPlotParameters.h.


Constructor & Destructor Documentation

casa::PlotMSPlotParameters::PlotMSPlotParameters ( PlotFactoryPtr  factory  ) 

Non-Static //.

Constructor, which starts out with no subparameter groups.

casa::PlotMSPlotParameters::PlotMSPlotParameters ( const PlotMSPlotParameters copy  ) 

Copy constructor.

See operator=().

casa::PlotMSPlotParameters::~PlotMSPlotParameters (  ) 

Destructor.


Member Function Documentation

bool casa::PlotMSPlotParameters::equals ( const PlotMSWatchedParameters other,
int  updateFlags 
) const

Implements PlotMSWatchedParameters::equals().

Will return false if the other parameters are not of type PlotMSPlotParameters.

Group* casa::PlotMSPlotParameters::group ( const String &  name  ) 
const Group* casa::PlotMSPlotParameters::group ( const String &  name  )  const

Returns the subparameters group with the given name, or NULL for none.

void casa::PlotMSPlotParameters::groupUpdated ( Group group,
bool  requiresRedraw 
) [private]

To be called when one of the groups is updated.

void casa::PlotMSPlotParameters::notifyWatchers ( const String &  updateName,
PlotMSParametersWatcher updater = NULL 
) [inline, protected]
void casa::PlotMSPlotParameters::notifyWatchers ( int  updateFlags,
PlotMSParametersWatcher updater = NULL 
) [protected]

Notifies any watchers that the parameters have been updated with the given flags.

If an updater is given, it is NOT notified.

Referenced by notifyWatchers().

PlotMSPlotParameters& casa::PlotMSPlotParameters::operator= ( const PlotMSPlotParameters copy  ) 

Copy operator.

Copies subparameters groups.

template<class T >
void casa::PlotMSPlotParameters::setGroup (  )  [inline]

Sets (or adds) the default constructor of the templated type of subparameters group.

Definition at line 196 of file PlotMSPlotParameters.h.

References itsFactory_, and setGroup().

Referenced by setGroup().

void casa::PlotMSPlotParameters::setGroup ( const Group group  ) 

Sets (or adds) the given group of subparameters in this object, cloning it.

template<class T >
T* casa::PlotMSPlotParameters::typedGroup (  )  [inline]

Definition at line 180 of file PlotMSPlotParameters.h.

References itsGroups_.

template<class T >
const T* casa::PlotMSPlotParameters::typedGroup (  )  const [inline]

Returns the templated type of subparameters group, or NULL for none.

Definition at line 173 of file PlotMSPlotParameters.h.

References itsGroups_.


Friends And Related Function Documentation

friend class PlotMSPlotParameters::Group [friend]

Definition at line 144 of file PlotMSPlotParameters.h.


Member Data Documentation

Factory.

Definition at line 205 of file PlotMSPlotParameters.h.

Referenced by setGroup().

Subparameter groups.

Definition at line 219 of file PlotMSPlotParameters.h.

Referenced by typedGroup().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1