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

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

casa::LCEllipsoid Class Reference
[Lattices_module]

Define an N-dimensional ellipsoidal region of interest. More...

#include <LCEllipsoid.h>

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

List of all members.

Public Member Functions

 LCEllipsoid ()
 LCEllipsoid (const IPosition &center, Float radius, const IPosition &latticeShape)
 Construct an N-dimensional sphere with the given center and radius (in pixels).
 LCEllipsoid (const Vector< Float > &center, Float radius, const IPosition &latticeShape)
 Construct an N-dimensional sphere with the given center and radius (in pixels).
 LCEllipsoid (const Vector< Double > &center, Double radius, const IPosition &latticeShape)
 LCEllipsoid (const Vector< Float > &center, const Vector< Float > &radii, const IPosition &latticeShape)
 Construct an N-dimensional ellipsoid with the given center and radii (in pixels).
 LCEllipsoid (const Vector< Double > &center, const Vector< Double > &radii, const IPosition &latticeShape)
 LCEllipsoid (const LCEllipsoid &other)
 Copy constructor (reference semantics).
virtual ~LCEllipsoid ()
LCEllipsoidoperator= (const LCEllipsoid &other)
 Assignment (copy semantics).
virtual Bool operator== (const LCRegion &other) const
 Comparison.
virtual LCRegioncloneRegion () const
 Make a copy of the derived object.
const Vector< Float > & center () const
 Get the center.
const Vector< Float > & radii () const
 Get the radii.
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 LCEllipsoidfromRecord (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 LCBox (for e.g.

Private Member Functions

void fillCenter (const IPosition &center)
 Fill the itsCenter vector from an IPosition.
void defineMask ()
 Define the mask to indicate which elements are inside the ellipsoid.

Static Private Member Functions

static Slicer makeBox (const Vector< Float > &center, const Vector< Float > &radii, const IPosition &latticeShape)
 Make the bounding box from center, radii, and shape.

Private Attributes

Vector< FloatitsCenter
Vector< FloatitsRadii

Detailed Description

Define an N-dimensional ellipsoidal region of interest.

Intended use:

Public interface

Prerequisite

Synopsis

The LCEllipsoid class is a specialization of class LCRegion . It makes it possible to define an N-dimensional ellipsoidal region of interest, which includes the border. A separate constructor exists to define the special case of an N-dimensional sphere.
The center and the radii of the ellipsoid do not need to be pixel aligned. The center of the ellipsoid must be inside the lattice. The current implementation only supports ellipsoids with axes parallel to the lattice axes.

It can only be used for a lattice of any dimensionality as long as the dimensionality of the (hyper-)ellipsoid matches the dimensionality of the lattice.

Example

To Do

Definition at line 78 of file LCEllipsoid.h.


Constructor & Destructor Documentation

casa::LCEllipsoid::LCEllipsoid (  ) 
casa::LCEllipsoid::LCEllipsoid ( const IPosition center,
Float  radius,
const IPosition latticeShape 
)

Construct an N-dimensional sphere with the given center and radius (in pixels).

The center is pixel-aligned.

casa::LCEllipsoid::LCEllipsoid ( const Vector< Float > &  center,
Float  radius,
const IPosition latticeShape 
)

Construct an N-dimensional sphere with the given center and radius (in pixels).

The center does not need to be pixel-aligned.

casa::LCEllipsoid::LCEllipsoid ( const Vector< Double > &  center,
Double  radius,
const IPosition latticeShape 
)
casa::LCEllipsoid::LCEllipsoid ( const Vector< Float > &  center,
const Vector< Float > &  radii,
const IPosition latticeShape 
)

Construct an N-dimensional ellipsoid with the given center and radii (in pixels).

The center does not need to be pixel-aligned. (the radii are half the length of the axes of the ellipsoid).

casa::LCEllipsoid::LCEllipsoid ( const Vector< Double > &  center,
const Vector< Double > &  radii,
const IPosition latticeShape 
)
casa::LCEllipsoid::LCEllipsoid ( const LCEllipsoid other  ) 

Copy constructor (reference semantics).

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

Member Function Documentation

const Vector< Float > & casa::LCEllipsoid::center (  )  const [inline]

Get the center.

Definition at line 165 of file LCEllipsoid.h.

References itsCenter.

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

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

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

Make a copy of the derived object.

Implements casa::LCRegion.

void casa::LCEllipsoid::defineMask (  )  [private]

Define the mask to indicate which elements are inside the ellipsoid.

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

Construct another LCBox (for e.g.

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

Implements casa::LCRegion.

void casa::LCEllipsoid::fillCenter ( const IPosition center  )  [private]

Fill the itsCenter vector from an IPosition.

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

Convert correct object from a record.

Reimplemented from casa::LCRegion.

static Slicer casa::LCEllipsoid::makeBox ( const Vector< Float > &  center,
const Vector< Float > &  radii,
const IPosition latticeShape 
) [static, private]

Make the bounding box from center, radii, and shape.

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

Assignment (copy semantics).

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

Comparison.

Reimplemented from casa::LCRegionFixed.

const Vector< Float > & casa::LCEllipsoid::radii (  )  const [inline]

Get the radii.

Definition at line 169 of file LCEllipsoid.h.

References itsRadii.

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

Convert the (derived) object to a record.

Implements casa::LCRegion.

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

Get the region type.

Returns className()

Implements casa::LCRegion.


Member Data Documentation

Definition at line 160 of file LCEllipsoid.h.

Referenced by center().

Definition at line 161 of file LCEllipsoid.h.

Referenced by radii().


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