casa::ImageMaskHandler< T > Class Template Reference

#include <ImageMaskHandler.h>

List of all members.

Public Member Functions

 ImageMaskHandler (SPIIT)
 Perform various image mask operations.
 ~ImageMaskHandler ()
void set (const String &name)
 set default mask.
String defaultMask () const
 return the default mask name
void deleteMasks (const std::set< String > &masks)
 delete specified masks
void rename (const String &oldName, const String &newName)
 rename a mask
Vector< String > get () const
 get all mask names
void copy (const String &currentName, const String &newName)
 copy mask
void calcmask (const String &mask, Record &regions, const String &name, Bool asdefault=True)
template<class U >
void copy (const MaskedLattice< U > &mask)
 copy the mask from the specified lattice to the image's (default) mask.

Private Member Functions

void _calcmask (const LatticeExprNode &node, const String &name, const Bool makedefault)

Static Private Member Functions

static void _makeRegionBlock (PtrBlock< const ImageRegion * > &regions, const Record &Regions)
 Make a block of regions from a Record.

Private Attributes

const SPIIT _image

Detailed Description

template<class T>
class casa::ImageMaskHandler< T >

Definition at line 19 of file ImageMaskHandler.h.


Constructor & Destructor Documentation

template<class T >
casa::ImageMaskHandler< T >::ImageMaskHandler ( SPIIT   ) 

Perform various image mask operations.

Etymology

Synopsis

template<class T >
casa::ImageMaskHandler< T >::~ImageMaskHandler (  ) 

Member Function Documentation

template<class T >
void casa::ImageMaskHandler< T >::_calcmask ( const LatticeExprNode &  node,
const String &  name,
const Bool  makedefault 
) [private]
template<class T >
static void casa::ImageMaskHandler< T >::_makeRegionBlock ( PtrBlock< const ImageRegion * > &  regions,
const Record &  Regions 
) [static, private]

Make a block of regions from a Record.

template<class T >
void casa::ImageMaskHandler< T >::calcmask ( const String &  mask,
Record &  regions,
const String &  name,
Bool  asdefault = True 
)
template<class T >
template<class U >
void casa::ImageMaskHandler< T >::copy ( const MaskedLattice< U > &  mask  )  [inline]

copy the mask from the specified lattice to the image's (default) mask.

The mask and the image must have the same shape.

template<class T >
void casa::ImageMaskHandler< T >::copy ( const String &  currentName,
const String &  newName 
)

copy mask

template<class T >
String casa::ImageMaskHandler< T >::defaultMask (  )  const

return the default mask name

template<class T >
void casa::ImageMaskHandler< T >::deleteMasks ( const std::set< String > &  masks  ) 

delete specified masks

template<class T >
Vector<String> casa::ImageMaskHandler< T >::get (  )  const

get all mask names

template<class T >
void casa::ImageMaskHandler< T >::rename ( const String &  oldName,
const String &  newName 
)

rename a mask

template<class T >
void casa::ImageMaskHandler< T >::set ( const String &  name  ) 

set default mask.

Empty string means unset default mask.


Member Data Documentation

template<class T >
const SPIIT casa::ImageMaskHandler< T >::_image [private]

Definition at line 70 of file ImageMaskHandler.h.


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