casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
casa::ScrollingRasterDD Class Reference

#include <ScrollingRasterDD.h>

Inheritance diagram for casa::ScrollingRasterDD:
casa::PrincipalAxesDD casa::DisplayData casa::DisplayOptions casa::DisplayEH casa::DlTarget

List of all members.

Public Member Functions

 ScrollingRasterDD (const uInt nDim, const IPosition, const Vector< String >, const Vector< String >, uInt sAxis=2, uInt scanNo=100)
virtual ~ScrollingRasterDD ()
virtual void updateLattice (const Record &)
virtual void updateLattice (Array< Float > &, CoordinateSystem &)
virtual String className ()
 Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface.
virtual Bool setOptions (Record &rec, Record &recOut)
 apply options stored in val to the DisplayData; return value True means a refresh is needed...
virtual Record getOptions ()
 retrieve the current and default options and parameter types.
virtual void setDefaultOptions ()
 install the default options for this DisplayData
virtual Bool setLabellerOptions (Record &, Record &)
 distribute options to all the axis labellers - empty here, we use WorldAxesDD
virtual Record getLabellerOptions ()
 retrieve options from the axis labellers - empty here, we use WorldAxesDD
virtual Bool sizeControl (WorldCanvasHolder &wcHolder, AttributeBuffer &holderBuf)
 sizeControlFunction, called by the WorldCanvasHolder to setup the WorldCanvas linear coordinate system
virtual WCResampleHandlerresampleHandler ()

Protected Member Functions

virtual void updateLatticeConcat (Array< Float > *=NULL, CoordinateSystem *=NULL)
virtual void initLattice (const Record &)
virtual void initLattice (const Float, const Float, const uInt)
virtual void recreateEmptyLattices (uInt changedScanNumber=0)
virtual const IPosition dataShape () const
virtual const uInt dataDim () const
virtual const Unit dataUnit () const
virtual void setupElements ()
 functions need by above
virtual void getMinAndMax ()
virtual void updateLatticeStatistics ()
virtual Bool labelAxes (const WCRefreshEvent &ev)
 virtual void refresh(Bool);
virtual MaskedLattice< Float > * maskedLattice ()
virtual Display::DisplayDataType classType ()
 Return the DisplayData type; used by the WorldCanvasHolder to determine the order of drawing.
String dataType () const
 Pure virtual function from DisplayData...
virtual String showValue (const Vector< Double > &world)
 Format a string containing value information at the given world coordinate.
virtual const Float dataValue (IPosition pos)
virtual const Bool maskValue (const IPosition &pos)
virtual Vector< StringworldAxisNames () const
 Miscellaneous information supply routines.
virtual Vector< StringworldAxisUnits () const
 ScrollingRasterDD (uInt mAxis=2, uInt scanNo=100)
 (Required) default constructor.
 ScrollingRasterDD (const ScrollingRasterDD &other)
 (Required) copy constructor.
void operator= (const ScrollingRasterDD &other)
 (Required) copy assignment.
virtual void setSpectralPreference (CoordinateSystem &, const String &, const String &)
 Set Spectral preference -> not used here.
void setHeaderMin (Float x)
void setHeaderMax (Float x)
Float headerMin ()
Float headerMax ()
void setScanNumber (uInt x)
uInt scanNumber ()
Bool headerReceived ()
void setHeaderReceived (Bool x)
IPosition latticesShape ()
uInt shiftAxis ()
void setNeedResize (const Bool x)
Bool needResize ()
IPosition fixedPos ()
void setLatticeShape (const IPosition x)
 void setPlaneNumber(const uInt x) { itsPlaneNumber = x; } uInt planeNumber() { return itsPlaneNumber; }
IPosition latticeShape ()

Private Member Functions

void initSRDD (const Vector< String > aAxisNames, const Vector< String > aAxisUnits, uInt mAxis)
 Worker function for c'tors.

Private Attributes

uInt nDim
LatticeConcat< Float > * itsLatticeConcatPtr
 ImageInterface<Float> *itsImagePtr; Array<Float> *itsBaseArrayPtr;.
LatticeStatistics< Float > * itsLatticeStatisticsPtr
 MaskedLattice<Float> *itsMaskedLatticePtr;.
SubLattice< Float > * itsFilledDisplayedLatticePtr
IPosition itsFixedPos
 Int itsM2Axis;.
Int itsFilledCount
MaskedLattice< Float > ** itsLattices
Bool itsNeedResize
uInt itsShiftAxis
Bool itsHeaderReceived
Float itsHeaderMin
Float itsHeaderMax
uInt itsScanNumber
IPosition itsLatticeShape
String itsResample
 IPosition itsScanShape; uInt itsPlaneNumber;.
WCResampleHandleritsResampleHandler
 pointer to resampler

Friends

class ScrollingRasterDM

Detailed Description

Definition at line 53 of file ScrollingRasterDD.h.


Constructor & Destructor Documentation

casa::ScrollingRasterDD::ScrollingRasterDD ( const uInt  nDim,
const IPosition  ,
const Vector< String ,
const Vector< String ,
uInt  sAxis = 2,
uInt  scanNo = 100 
)
casa::ScrollingRasterDD::ScrollingRasterDD ( uInt  mAxis = 2,
uInt  scanNo = 100 
) [protected]

(Required) default constructor.

(Required) copy constructor.


Member Function Documentation

virtual String casa::ScrollingRasterDD::className ( ) [inline, virtual]

Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface.

Reimplemented from casa::PrincipalAxesDD.

Definition at line 64 of file ScrollingRasterDD.h.

References String.

virtual Display::DisplayDataType casa::ScrollingRasterDD::classType ( ) [inline, protected, virtual]

Return the DisplayData type; used by the WorldCanvasHolder to determine the order of drawing.

Implements casa::DisplayData.

Definition at line 108 of file ScrollingRasterDD.h.

References casa::Display::Raster.

virtual const uInt casa::ScrollingRasterDD::dataDim ( ) const [protected, virtual]

Implements casa::DisplayData.

virtual const IPosition casa::ScrollingRasterDD::dataShape ( ) const [protected, virtual]

Implements casa::DisplayData.

String casa::ScrollingRasterDD::dataType ( ) const [inline, protected, virtual]

Pure virtual function from DisplayData...

Implements casa::DisplayData.

Definition at line 111 of file ScrollingRasterDD.h.

virtual const Unit casa::ScrollingRasterDD::dataUnit ( ) const [protected, virtual]

Implements casa::DisplayData.

virtual const Float casa::ScrollingRasterDD::dataValue ( IPosition  pos) [protected, virtual]

Definition at line 148 of file ScrollingRasterDD.h.

References itsFixedPos.

virtual Record casa::ScrollingRasterDD::getLabellerOptions ( ) [inline, virtual]

retrieve options from the axis labellers - empty here, we use WorldAxesDD

Reimplemented from casa::PrincipalAxesDD.

Definition at line 77 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::getMinAndMax ( ) [protected, virtual]

Implements casa::PrincipalAxesDD.

retrieve the current and default options and parameter types.

Reimplemented from casa::PrincipalAxesDD.

Float casa::ScrollingRasterDD::headerMax ( ) [inline, protected]

Definition at line 136 of file ScrollingRasterDD.h.

References itsHeaderMax.

Float casa::ScrollingRasterDD::headerMin ( ) [inline, protected]

Definition at line 135 of file ScrollingRasterDD.h.

References itsHeaderMin.

Definition at line 139 of file ScrollingRasterDD.h.

References itsHeaderReceived.

virtual void casa::ScrollingRasterDD::initLattice ( const Record ) [protected, virtual]
virtual void casa::ScrollingRasterDD::initLattice ( const Float  ,
const Float  ,
const uInt   
) [protected, virtual]
void casa::ScrollingRasterDD::initSRDD ( const Vector< String aAxisNames,
const Vector< String aAxisUnits,
uInt  mAxis 
) [private]

Worker function for c'tors.

virtual Bool casa::ScrollingRasterDD::labelAxes ( const WCRefreshEvent ev) [protected, virtual]

virtual void refresh(Bool);

Reimplemented from casa::PrincipalAxesDD.

Definition at line 154 of file ScrollingRasterDD.h.

References itsLatticeShape.

Definition at line 142 of file ScrollingRasterDD.h.

References itsLattices, and casa::LatticeBase::shape().

virtual MaskedLattice<Float>* casa::ScrollingRasterDD::maskedLattice ( ) [inline, protected, virtual]

Definition at line 105 of file ScrollingRasterDD.h.

References itsLatticeConcatPtr.

virtual const Bool casa::ScrollingRasterDD::maskValue ( const IPosition pos) [protected, virtual]
Bool casa::ScrollingRasterDD::needResize ( ) [inline, protected]

Definition at line 146 of file ScrollingRasterDD.h.

References itsNeedResize.

void casa::ScrollingRasterDD::operator= ( const ScrollingRasterDD other) [protected]

(Required) copy assignment.

virtual void casa::ScrollingRasterDD::recreateEmptyLattices ( uInt  changedScanNumber = 0) [protected, virtual]

Definition at line 83 of file ScrollingRasterDD.h.

References itsResampleHandler.

uInt casa::ScrollingRasterDD::scanNumber ( ) [inline, protected]

Definition at line 138 of file ScrollingRasterDD.h.

References itsScanNumber.

virtual void casa::ScrollingRasterDD::setDefaultOptions ( ) [virtual]

install the default options for this DisplayData

Reimplemented from casa::PrincipalAxesDD.

void casa::ScrollingRasterDD::setHeaderMax ( Float  x) [inline, protected]

Definition at line 134 of file ScrollingRasterDD.h.

References itsHeaderMax.

void casa::ScrollingRasterDD::setHeaderMin ( Float  x) [inline, protected]

Definition at line 133 of file ScrollingRasterDD.h.

References itsHeaderMin.

void casa::ScrollingRasterDD::setHeaderReceived ( Bool  x) [inline, protected]

Definition at line 140 of file ScrollingRasterDD.h.

References itsHeaderReceived.

virtual Bool casa::ScrollingRasterDD::setLabellerOptions ( Record ,
Record  
) [inline, virtual]

distribute options to all the axis labellers - empty here, we use WorldAxesDD

Reimplemented from casa::PrincipalAxesDD.

Definition at line 74 of file ScrollingRasterDD.h.

References casa::False.

void casa::ScrollingRasterDD::setLatticeShape ( const IPosition  x) [inline, protected]

void setPlaneNumber(const uInt x) { itsPlaneNumber = x; } uInt planeNumber() { return itsPlaneNumber; }

Definition at line 153 of file ScrollingRasterDD.h.

References itsLatticeShape.

void casa::ScrollingRasterDD::setNeedResize ( const Bool  x) [inline, protected]

Definition at line 145 of file ScrollingRasterDD.h.

References itsNeedResize.

virtual Bool casa::ScrollingRasterDD::setOptions ( Record rec,
Record recOut 
) [virtual]

apply options stored in val to the DisplayData; return value True means a refresh is needed...

Reimplemented from casa::PrincipalAxesDD.

void casa::ScrollingRasterDD::setScanNumber ( uInt  x) [inline, protected]

Definition at line 137 of file ScrollingRasterDD.h.

References itsScanNumber.

virtual void casa::ScrollingRasterDD::setSpectralPreference ( CoordinateSystem ,
const String ,
const String  
) [inline, protected, virtual]

Set Spectral preference -> not used here.

Definition at line 130 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::setupElements ( ) [protected, virtual]

functions need by above

Reimplemented from casa::PrincipalAxesDD.

uInt casa::ScrollingRasterDD::shiftAxis ( ) [inline, protected]

Definition at line 143 of file ScrollingRasterDD.h.

References itsShiftAxis.

virtual String casa::ScrollingRasterDD::showValue ( const Vector< Double > &  world) [protected, virtual]

Format a string containing value information at the given world coordinate.

Implements casa::DisplayData.

virtual Bool casa::ScrollingRasterDD::sizeControl ( WorldCanvasHolder wcHolder,
AttributeBuffer holderBuf 
) [virtual]

sizeControlFunction, called by the WorldCanvasHolder to setup the WorldCanvas linear coordinate system

Reimplemented from casa::PrincipalAxesDD.

virtual void casa::ScrollingRasterDD::updateLattice ( const Record ) [inline, virtual]

Definition at line 61 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::updateLattice ( Array< Float > &  ,
CoordinateSystem  
) [virtual]
virtual void casa::ScrollingRasterDD::updateLatticeConcat ( Array< Float > *  = NULL,
CoordinateSystem = NULL 
) [protected, virtual]
virtual void casa::ScrollingRasterDD::updateLatticeStatistics ( ) [protected, virtual]
virtual Vector<String> casa::ScrollingRasterDD::worldAxisNames ( ) const [protected, virtual]

Miscellaneous information supply routines.

Reimplemented from casa::PrincipalAxesDD.

virtual Vector<String> casa::ScrollingRasterDD::worldAxisUnits ( ) const [protected, virtual]

Reimplemented from casa::PrincipalAxesDD.


Friends And Related Function Documentation

friend class ScrollingRasterDM [friend]

Definition at line 86 of file ScrollingRasterDD.h.


Member Data Documentation

Definition at line 172 of file ScrollingRasterDD.h.

Definition at line 168 of file ScrollingRasterDD.h.

Int itsM2Axis;.

Definition at line 170 of file ScrollingRasterDD.h.

Referenced by fixedPos().

Definition at line 181 of file ScrollingRasterDD.h.

Referenced by headerMax(), and setHeaderMax().

Definition at line 180 of file ScrollingRasterDD.h.

Referenced by headerMin(), and setHeaderMin().

Definition at line 179 of file ScrollingRasterDD.h.

Referenced by headerReceived(), and setHeaderReceived().

ImageInterface<Float> *itsImagePtr; Array<Float> *itsBaseArrayPtr;.

Definition at line 165 of file ScrollingRasterDD.h.

Referenced by maskedLattice().

Definition at line 174 of file ScrollingRasterDD.h.

Referenced by latticesShape().

Definition at line 183 of file ScrollingRasterDD.h.

Referenced by latticeShape(), and setLatticeShape().

MaskedLattice<Float> *itsMaskedLatticePtr;.

Definition at line 167 of file ScrollingRasterDD.h.

Definition at line 176 of file ScrollingRasterDD.h.

Referenced by needResize(), and setNeedResize().

IPosition itsScanShape; uInt itsPlaneNumber;.

storage for the display parameters

Definition at line 188 of file ScrollingRasterDD.h.

pointer to resampler

Definition at line 191 of file ScrollingRasterDD.h.

Referenced by resampleHandler().

Definition at line 182 of file ScrollingRasterDD.h.

Referenced by scanNumber(), and setScanNumber().

Definition at line 177 of file ScrollingRasterDD.h.

Referenced by shiftAxis().

Definition at line 161 of file ScrollingRasterDD.h.


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