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

Поисковые слова: diurnal motion
casacore: casa::ExtendSpecifier Class Reference
Public Member Functions | Private Member Functions | Private Attributes

casa::ExtendSpecifier Class Reference
[Arrays_module_internal_classes]

Specification of new and stretched lattice axes. More...

#include <ExtendSpecifier.h>

List of all members.

Public Member Functions

 ExtendSpecifier ()
 Default constructor generates empty IPositions.
 ExtendSpecifier (const IPosition &oldShape, const IPosition &newShape, const IPosition &newAxes, const IPosition &stretchAxes)
 Tell if no or all degenerate axes have to be removed.
 ExtendSpecifier (const ExtendSpecifier &other)
 Copy constructor (copy semantics).
 ~ExtendSpecifier ()
ExtendSpecifieroperator= (const ExtendSpecifier &other)
 Assignment (copy semantics).
const IPositionnewShape () const
 Return the new shape.
const IPositionnewAxes () const
 Return the new axes.
const IPositionstretchAxes () const
 Return the axes to be stretched.
const IPositionoldShape () const
 Return the old shape.
const IPositionextendAxes () const
 Return the axes to be extended (i.e.
const IPositionoldOldAxes () const
 Return the old axes (i.e.
const IPositionoldNewAxes () const
 Return the old axes as in new shape.
Slicer convert (IPosition &shape, const Slicer &section) const
 Convert the slicer to the specification for the old shape.
IPosition convertNew (const IPosition &oldShape) const
 Convert a shape to the specification for the new shape.

Private Member Functions

void fill (Block< Bool > &flags, const IPosition &axes) const
 Fill the flags for the given axes.

Private Attributes

IPosition itsOldShape
IPosition itsNewShape
IPosition itsNewAxes
IPosition itsStretchAxes
IPosition itsExtendAxes
IPosition itsOldOldAxes
IPosition itsOldNewAxes

Detailed Description

Specification of new and stretched lattice axes.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd
Test programs:
tExtendSpecifier

Prerequisite

Synopsis

ExtendSpecifier is a class internally used by class ExtendLattice . It holds the information which axes are stretched and which axes are new. Note that a stretched axis has to have length 1 in the original shape.

The class only contains the functionality needed by ExtendLattice. which are (mainly) 2 conversion functions. One function converts a slicer from the extended lattice to the original lattice, so ExtendLattice can read the correct data. The other function converts a shape in the original lattice to the shape in the extended lattice.
Some data is precalculated for more efficient processing of the conversion of slicers and shapes.

Example

    IPosition oldShape(4,10,1,3,1);
    IPosition newShape(5,10,1,5,3,8);
    ExtendSpecifier spec (oldShape, newShape, IPosition(1,2), IPosition(1,4));

This example extends the old shape to the new shape.
The 3rd argument tells that axes 2 is new. The newShape tells that its length will be 5. Note that adding this axis means that axes 2 in the old shape will get axes 3 in the new shape.
The 4th argument tells that axes 4 (in the new shape!!) is stretched (to 8 according to newShape).

Definition at line 90 of file ExtendSpecifier.h.


Constructor & Destructor Documentation

casa::ExtendSpecifier::ExtendSpecifier (  ) 

Default constructor generates empty IPositions.

casa::ExtendSpecifier::ExtendSpecifier ( const IPosition oldShape,
const IPosition newShape,
const IPosition newAxes,
const IPosition stretchAxes 
)

Tell if no or all degenerate axes have to be removed.

casa::ExtendSpecifier::ExtendSpecifier ( const ExtendSpecifier other  ) 

Copy constructor (copy semantics).

casa::ExtendSpecifier::~ExtendSpecifier (  ) 

Member Function Documentation

Slicer casa::ExtendSpecifier::convert ( IPosition shape,
const Slicer section 
) const

Convert the slicer to the specification for the old shape.

It fills shape with the shape to reform the section length such that it contains the new axes.

IPosition casa::ExtendSpecifier::convertNew ( const IPosition oldShape  )  const

Convert a shape to the specification for the new shape.

const IPosition& casa::ExtendSpecifier::extendAxes (  )  const [inline]

Return the axes to be extended (i.e.

new and stretch axes).

Definition at line 128 of file ExtendSpecifier.h.

References itsExtendAxes.

void casa::ExtendSpecifier::fill ( Block< Bool > &  flags,
const IPosition axes 
) const [private]

Fill the flags for the given axes.

It throws an exception if the axis is invalid or multiply given.

const IPosition& casa::ExtendSpecifier::newAxes (  )  const [inline]

Return the new axes.

Definition at line 116 of file ExtendSpecifier.h.

References itsNewAxes.

const IPosition& casa::ExtendSpecifier::newShape (  )  const [inline]

Return the new shape.

Definition at line 112 of file ExtendSpecifier.h.

References itsNewShape.

const IPosition& casa::ExtendSpecifier::oldNewAxes (  )  const [inline]

Return the old axes as in new shape.

Definition at line 136 of file ExtendSpecifier.h.

References itsOldNewAxes.

const IPosition& casa::ExtendSpecifier::oldOldAxes (  )  const [inline]

Return the old axes (i.e.

axes new nor stretched) as in old shape.

Definition at line 132 of file ExtendSpecifier.h.

References itsOldOldAxes.

const IPosition& casa::ExtendSpecifier::oldShape (  )  const [inline]

Return the old shape.

Definition at line 124 of file ExtendSpecifier.h.

References itsOldShape.

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

Assignment (copy semantics).

This and that do not have to have the same length.

const IPosition& casa::ExtendSpecifier::stretchAxes (  )  const [inline]

Return the axes to be stretched.

Definition at line 120 of file ExtendSpecifier.h.

References itsStretchAxes.


Member Data Documentation

Definition at line 157 of file ExtendSpecifier.h.

Referenced by extendAxes().

Definition at line 155 of file ExtendSpecifier.h.

Referenced by newAxes().

Definition at line 154 of file ExtendSpecifier.h.

Referenced by newShape().

Definition at line 159 of file ExtendSpecifier.h.

Referenced by oldNewAxes().

Definition at line 158 of file ExtendSpecifier.h.

Referenced by oldOldAxes().

Definition at line 153 of file ExtendSpecifier.h.

Referenced by oldShape().

Definition at line 156 of file ExtendSpecifier.h.

Referenced by stretchAxes().


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