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

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

casa::LELRegion Class Reference
[Lattices_module_internal_classes]

Class to hold a region as a LEL node. More...

#include <LELRegion.h>

Inheritance diagram for casa::LELRegion:
casa::LELInterface< Bool >

List of all members.

Public Member Functions

 LELRegion (const LattRegionHolder &region)
 Constructor.
 LELRegion (LattRegionHolder *region)
 Constructor.
 ~LELRegion ()
 Destructor.
const LattRegionHolderregion () const
 Get a pointer to the region object.
virtual void eval (LELArray< Bool > &, const Slicer &) const
 Getting region data cannot be done (throws an exception).
virtual LELScalar< BoolgetScalar () const
 Getting region data cannot be done (throws an exception).
virtual Bool prepareScalarExpr ()
 Do further preparations (e.g.
virtual String className () const
 Get class name.

Static Public Member Functions

static LELRegionmakeUnion (const LELInterface< Bool > &left, const LELInterface< Bool > &right)
 Form a compound from the regions.
static LELRegionmakeIntersection (const LELInterface< Bool > &left, const LELInterface< Bool > &right)
static LELRegionmakeDifference (const LELInterface< Bool > &left, const LELInterface< Bool > &right)
static LELRegionmakeComplement (const LELInterface< Bool > &expr)

Static Private Member Functions

static const LattRegionHolderregion (const LELInterface< Bool > &expr)
 Get the LattRegionHolder after checking that the expression is a region.
static void checkTypes (const LattRegionHolder &left, const LattRegionHolder &right)
 Check if both regions have the same type (pixel or world) and if no LCSlicer type of region is used.

Private Attributes

LattRegionHolderregion_p
 Member variables.

Detailed Description

Class to hold a region as a LEL node.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

This derived LEL letter class handles regions.

Synopsis

This LEL letter class is derived from LELInterface. It is used to construct LEL objects from regions. The internal region is an ImageRegion object, thus the region can be of any type. With operator [] a region is applied to an image (expression). At that stage possible world coordinates are converted to lattice coordinates.

The attributes of a LELRegion object define an empty shape, because in general the shape of a region is only known after it is applied to an image.

A description of the implementation details of the LEL classes can be found in Note 216

Motivation

We needed to be able to handle regions in a LEL expression.

Definition at line 88 of file LELRegion.h.


Constructor & Destructor Documentation

casa::LELRegion::LELRegion ( const LattRegionHolder region  ) 

Constructor.

casa::LELRegion::LELRegion ( LattRegionHolder region  ) 

Constructor.

It takes over the pointer.

casa::LELRegion::~LELRegion (  ) 

Destructor.


Member Function Documentation

static void casa::LELRegion::checkTypes ( const LattRegionHolder left,
const LattRegionHolder right 
) [static, private]

Check if both regions have the same type (pixel or world) and if no LCSlicer type of region is used.

virtual String casa::LELRegion::className (  )  const [virtual]

Get class name.

Implements casa::LELInterface< Bool >.

virtual void casa::LELRegion::eval ( LELArray< Bool > &  ,
const Slicer  
) const [virtual]

Getting region data cannot be done (throws an exception).

Implements casa::LELInterface< Bool >.

virtual LELScalar<Bool> casa::LELRegion::getScalar (  )  const [virtual]

Getting region data cannot be done (throws an exception).

Implements casa::LELInterface< Bool >.

static LELRegion* casa::LELRegion::makeComplement ( const LELInterface< Bool > &  expr  )  [static]
static LELRegion* casa::LELRegion::makeDifference ( const LELInterface< Bool > &  left,
const LELInterface< Bool > &  right 
) [static]
static LELRegion* casa::LELRegion::makeIntersection ( const LELInterface< Bool > &  left,
const LELInterface< Bool > &  right 
) [static]
static LELRegion* casa::LELRegion::makeUnion ( const LELInterface< Bool > &  left,
const LELInterface< Bool > &  right 
) [static]

Form a compound from the regions.

virtual Bool casa::LELRegion::prepareScalarExpr (  )  [virtual]

Do further preparations (e.g.

optimization) on the expression.

Implements casa::LELInterface< Bool >.

static const LattRegionHolder& casa::LELRegion::region ( const LELInterface< Bool > &  expr  )  [static, private]

Get the LattRegionHolder after checking that the expression is a region.

const LattRegionHolder& casa::LELRegion::region (  )  const [inline]

Get a pointer to the region object.

Definition at line 101 of file LELRegion.h.

References region_p.


Member Data Documentation

Member variables.

Definition at line 137 of file LELRegion.h.

Referenced by region().


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