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 Attributes
casa::LCPixelSet Class Reference

Class to define a rectangular mask as a region. More...

#include <LCPixelSet.h>

Inheritance diagram for casa::LCPixelSet:
casa::LCRegionFixed casa::LCRegionSingle casa::LCRegion casa::Lattice< Bool > casa::LatticeBase

List of all members.

Public Member Functions

 LCPixelSet ()
 LCPixelSet (const Array< Bool > &mask, const LCBox &region)
 Construct from the box defining the position of the mask.
 LCPixelSet (const LCPixelSet &other)
 Copy constructor (copy semantics).
virtual ~LCPixelSet ()
LCPixelSetoperator= (const LCPixelSet &other)
 Assignment (copy semantics).
virtual Bool operator== (const LCRegion &other) const
 Comparison.
virtual LCRegioncloneRegion () const
 Make a copy of the derived object.
virtual String type () const
 Get the region type.
virtual TableRecord toRecord (const String &tableName) const
 Convert the (derived) object to a record.

Static Public Member Functions

static String className ()
 Get the class name (to store in the record).
static LCPixelSetfromRecord (const TableRecord &, const String &tablename)
 Convert correct object from a record.

Protected Member Functions

virtual LCRegiondoTranslate (const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
 Construct another LCPixelSet (for e.g.

Private Attributes

LCBox itsBox

Detailed Description

Class to define a rectangular mask as a region.

Intended use:

Public interface

Prerequisite

Synopsis

The LCPixelSet class is a specialization of class LCRegion . It makes it possible to define a rectangular region of interest.

Example

Definition at line 65 of file LCPixelSet.h.


Constructor & Destructor Documentation

casa::LCPixelSet::LCPixelSet ( const Array< Bool > &  mask,
const LCBox region 
)

Construct from the box defining the position of the mask.

The shape of the region and mask must be the same.

Copy constructor (copy semantics).

virtual casa::LCPixelSet::~LCPixelSet ( ) [virtual]

Member Function Documentation

static String casa::LCPixelSet::className ( ) [static]

Get the class name (to store in the record).

virtual LCRegion* casa::LCPixelSet::cloneRegion ( ) const [virtual]

Make a copy of the derived object.

Implements casa::LCRegion.

virtual LCRegion* casa::LCPixelSet::doTranslate ( const Vector< Float > &  translateVector,
const IPosition newLatticeShape 
) const [protected, virtual]

Construct another LCPixelSet (for e.g.

another lattice) by moving this one. It recalculates the bounding mask. A positive translation value indicates "to right".

Implements casa::LCRegion.

static LCPixelSet* casa::LCPixelSet::fromRecord ( const TableRecord ,
const String tablename 
) [static]

Convert correct object from a record.

Reimplemented from casa::LCRegion.

LCPixelSet& casa::LCPixelSet::operator= ( const LCPixelSet other)

Assignment (copy semantics).

virtual Bool casa::LCPixelSet::operator== ( const LCRegion other) const [virtual]

Comparison.

Reimplemented from casa::LCRegionFixed.

virtual TableRecord casa::LCPixelSet::toRecord ( const String tableName) const [virtual]

Convert the (derived) object to a record.

Implements casa::LCRegion.

virtual String casa::LCPixelSet::type ( ) const [virtual]

Get the region type.

Returns className().

Implements casa::LCRegion.


Member Data Documentation

Definition at line 109 of file LCPixelSet.h.


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