Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1LCRegionMulti.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 22:13:50 2011
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п
casacore: casa::LCRegionMulti Class Reference
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes

casa::LCRegionMulti Class Reference
[Lattices_module]

Make the intersection of 2 or more regions. More...

#include <LCRegionMulti.h>

Inheritance diagram for casa::LCRegionMulti:
casa::LCRegion casa::Lattice< Bool > casa::LatticeBase casa::LCComplement casa::LCConcatenation casa::LCDifference casa::LCExtension casa::LCIntersection casa::LCStretch casa::LCUnion

List of all members.

Public Member Functions

 LCRegionMulti ()
 LCRegionMulti (const LCRegion &region1, const LCRegion &region2)
 Construct from 2 regions.
 LCRegionMulti (Bool takeOver, const LCRegion *region1, const LCRegion *region2=0, const LCRegion *region3=0, const LCRegion *region4=0, const LCRegion *region5=0, const LCRegion *region6=0, const LCRegion *region7=0, const LCRegion *region8=0, const LCRegion *region9=0, const LCRegion *region10=0)
 Construct from multiple regions.
 LCRegionMulti (Bool takeOver, const PtrBlock< const LCRegion * > &regions)
 Construct from multiple regions given as a Block.
 LCRegionMulti (const LCRegionMulti &other)
 Copy constructor (copy semantics).
virtual ~LCRegionMulti ()
LCRegionMultioperator= (const LCRegionMulti &other)
 Assignment (copy semantics).
virtual Bool operator== (const LCRegion &other) const
 Comparison.
virtual Bool hasMask () const
 Does the region have a mask?

Protected Member Functions

TableRecord makeRecord (const String &tableName) const
 Store the contributing regions in a record.
void multiTranslate (PtrBlock< const LCRegion * > &, const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
 Translate all regions.
void fillHasMask ()
 Determine if all regions have mask (used by LCIntersection).
Bool findAreas (IPosition &bufStart, IPosition &bufEnd, IPosition &regStart, IPosition &regEnd, const Slicer &section, uInt regNr) const
 Find which area of the section and region are needed.
const PtrBlock< const LCRegion * > & regions () const
 Get the contributing regions.
 LCRegionMulti (const LCRegion *region, const IPosition &latticeShape)
 Construct from lattice shape and region pointer, which is taken over.
virtual Bool doGetSlice (Array< Bool > &buffer, const Slicer &section)
 Do the actual getting of an array of values.
virtual void multiGetSlice (Array< Bool > &buffer, const Slicer &section)=0
 Get the values from the class derived from Multi.
virtual IPosition doNiceCursorShape (uInt maxPixels) const
 Get the best cursor shape.

Static Protected Member Functions

static void unmakeRecord (PtrBlock< const LCRegion * > &, const TableRecord &, const String &tableName)
 Retrieve the contributing objects from the record.

Private Member Functions

void init (Bool takeOver)
 Check if the regions are correct.

Private Attributes

Int itsHasMask
PtrBlock< const LCRegion * > itsRegions

Detailed Description

Make the intersection of 2 or more regions.

Intended use:

Public interface

Prerequisite

Synopsis

The LCRegionMulti class is a specialization of class LCRegion . It makes it possible to extend a LCRegion along straight lines to other dimensions. E.g. a circle in the xy-plane can be extended to a cylinder in the xyz-space. includes the intersection border. It can only be used for a lattice of any dimensionality as long as the dimensionality of the (hyper-)intersection matches the dimensionality of the lattice.

The center of the intersection must be inside the lattice

Example

To Do

Definition at line 75 of file LCRegionMulti.h.


Constructor & Destructor Documentation

casa::LCRegionMulti::LCRegionMulti (  ) 
casa::LCRegionMulti::LCRegionMulti ( const LCRegion region1,
const LCRegion region2 
)

Construct from 2 regions.

casa::LCRegionMulti::LCRegionMulti ( Bool  takeOver,
const LCRegion region1,
const LCRegion region2 = 0,
const LCRegion region3 = 0,
const LCRegion region4 = 0,
const LCRegion region5 = 0,
const LCRegion region6 = 0,
const LCRegion region7 = 0,
const LCRegion region8 = 0,
const LCRegion region9 = 0,
const LCRegion region10 = 0 
)

Construct from multiple regions.

casa::LCRegionMulti::LCRegionMulti ( 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.

casa::LCRegionMulti::LCRegionMulti ( const LCRegionMulti other  ) 

Copy constructor (copy semantics).

virtual casa::LCRegionMulti::~LCRegionMulti (  )  [virtual]
casa::LCRegionMulti::LCRegionMulti ( const LCRegion region,
const IPosition latticeShape 
) [protected]

Construct from lattice shape and region pointer, which is taken over.

Primarily meant for LCExtension.


Member Function Documentation

virtual Bool casa::LCRegionMulti::doGetSlice ( Array< Bool > &  buffer,
const Slicer section 
) [protected, virtual]

Do the actual getting of an array of values.

Implements casa::Lattice< Bool >.

virtual IPosition casa::LCRegionMulti::doNiceCursorShape ( uInt  max