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

Make the complement of a region. More...

#include <LCComplement.h>

Inheritance diagram for casa::LCComplement:
casa::LCRegionMulti casa::LCRegion casa::Lattice< Bool > casa::LatticeBase

List of all members.

Public Member Functions

 LCComplement ()
 LCComplement (const LCRegion &region1)
 Construct the complement of the given region.
 LCComplement (Bool takeOver, const PtrBlock< const LCRegion * > &regions)
 Construct from multiple regions given as a Block.
 LCComplement (const LCComplement &other)
 Copy constructor (copy semantics).
virtual ~LCComplement ()
LCComplementoperator= (const LCComplement &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 LCComplementfromRecord (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 LCRegion (for e.g.
virtual void multiGetSlice (Array< Bool > &buffer, const Slicer &section)
 Do the actual getting of the mask.

Private Member Functions

void defineBox ()
 Make the bounding box and determine the offsets.

Detailed Description

Make the complement of a region.

Intended use:

Public interface

Prerequisite

Synopsis

The LCComplement class is a specialization of class LCRegion . It makes it possible to take the complement of a region with respect to a given lattice shape.

The center of the complement must be inside the lattice

Example

To Do

Definition at line 68 of file LCComplement.h.


Constructor & Destructor Documentation

Construct the complement of the given region.

casa::LCComplement::LCComplement ( Bool  takeOver,
const PtrBlock< const LCRegion * > &  regions 
)

Construct from multiple regions given as a Block.

When takeOver is True, the destructor will delete the given regions. Otherwise a copy of the regions is made.

Copy constructor (copy semantics).

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

Member Function Documentation

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

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

Make a copy of the derived object.

Implements casa::LCRegion.

void casa::LCComplement::defineBox ( ) [private]

Make the bounding box and determine the offsets.

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

Construct another LCRegion (for e.g.

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

Implements casa::LCRegion.

static LCComplement* casa::LCComplement::fromRecord ( const TableRecord ,
const String tableName 
) [static]

Convert correct object from a record.

Reimplemented from casa::LCRegion.

virtual void casa::LCComplement::multiGetSlice ( Array< Bool > &  buffer,
const Slicer section 
) [protected, virtual]

Do the actual getting of the mask.

Implements casa::LCRegionMulti.

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

Assignment (copy semantics).

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

Comparison.

Reimplemented from casa::LCRegionMulti.

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

Convert the (derived) object to a record.

Implements casa::LCRegion.

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

Get the region type.

Returns className()

Implements casa::LCRegion.


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