casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::ScrollingRasterDD Class Reference

#include <ScrollingRasterDD.h>

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

Public Member Functions

 ScrollingRasterDD (const casacore::uInt nDim, const casacore::IPosition, const casacore::Vector< casacore::String >, const casacore::Vector< casacore::String >, casacore::uInt sAxis=2, casacore::uInt scanNo=100)
 
virtual ~ScrollingRasterDD ()
 
virtual void updateLattice (const casacore::Record &)
 
virtual void updateLattice (casacore::Array< casacore::Float > &, DisplayCoordinateSystem &)
 
virtual casacore::String className () const
 Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface. More...
 
virtual casacore::Bool setOptions (casacore::Record &rec, casacore::Record &recOut)
 apply options stored in val to the DisplayData; return value true means a refresh is needed... More...
 
virtual casacore::Record getOptions (bool scrub=false) const
 retrieve the current and default options and parameter types. More...
 
virtual void setDefaultOptions ()
 install the default options for this DisplayData More...
 
virtual casacore::Bool setLabellerOptions (casacore::Record &, casacore::Record &)
 distribute options to all the axis labellers - empty here, we use WorldAxesDD More...
 
virtual casacore::Record getLabellerOptions (bool=false) const
 retrieve options from the axis labellers - empty here, we use WorldAxesDD More...
 
virtual casacore::Bool sizeControl (WorldCanvasHolder &wcHolder, AttributeBuffer &holderBuf)
 sizeControlFunction, called by the WorldCanvasHolder to setup the WorldCanvas linear coordinate system More...
 
virtual WCResampleHandlerresampleHandler ()
 
- Public Member Functions inherited from casa::PrincipalAxesDD
 PrincipalAxesDD (casacore::uInt xAxis, casacore::uInt yAxis, casacore::Int mAxis=-1, casacore::Bool axisLabels=true, viewer::StatusSink *sink=0)
 constructor More...
 
virtual ~PrincipalAxesDD ()
 destructor More...
 
virtual casacore::Bool linToWorld (casacore::Vector< casacore::Double > &world, const casacore::Vector< casacore::Double > &lin)
 casacore::Coordinate transformation handlers, called by WorldCanvasHolder More...
 
virtual casacore::Bool worldToLin (casacore::Vector< casacore::Double > &lin, const casacore::Vector< casacore::Double > &world)
 
virtual casacore::Bool linToFullWorld (casacore::Vector< casacore::Double > &fullWorld, const casacore::Vector< casacore::Double > &lin)
 
virtual casacore::String showPosition (const casacore::Vector< casacore::Double > &world, const casacore::Bool &displayAxesOnly=false)
 casacore::Format a string containing coordinate and data information at the given world coordinate More...
 
virtual casacore::String showPosition (const casacore::Vector< casacore::Double > &world, const casacore::Bool &showAbs, const casacore::Bool &displayAxesOnly)
 casacore::Format a string containing coordinate and data information at the given world coordinate. More...
 
virtual void setSubstituteTitleText (const casacore::String text)
 
virtual casacore::Bool conformsToCS (const WorldCanvas &wc)
 Is the DD is capable (in its current state) of drawing in the current DisplayCoordinateSystem of the WCH's WorldCanvas? More...
 
virtual casacore::Vector
< casacore::Double
worldAxisIncrements ()
 
virtual void worldAxisType (casacore::Coordinate::Type &type, casacore::Int &coordinate, casacore::Int &axisincoord, const casacore::uInt &worldaxisnum)
 
virtual casacore::String worldAxisCode (const casacore::uInt &worldaxisnum)
 
virtual casacore::uInt nelements (const WorldCanvasHolder &wcHolder) const
 Return the number of display elements (eg. More...
 
virtual casacore::uInt nelements () const
 and non-specific More...
 
virtual void setDataMin (casacore::Double datmin)
 Set and retrieve the minimum and maximum data values. More...
 
virtual void setDataMax (casacore::Double datmax)
 
virtual casacore::Double getDataMin () const
 
virtual casacore::Double getDataMax () const
 
virtual void positionEH (const WCPositionEvent &ev)
 Position event handler, called by the WorldCanvasHolder. More...
 
virtual void motionEH (const WCMotionEvent &ev)
 Motion event handler, called by the WorldCanvasHolder. More...
 
virtual void refreshEH (const WCRefreshEvent &ev)
 refresh handler, called by the WorldCanvasHolder More...
 
virtual casacore::Bool canLabelAxes () const
 
virtual void cleanup ()
 required function to tidy up our elements, primarily More...
 
virtual void setAxes (const casacore::uInt xAxis, const casacore::uInt yAxis, const casacore::uInt mAxis, const casacore::IPosition fixedPos, casacore::Bool reset=true)
 Sets which axes are on display and animator, and positions for animator and sliders. More...
 
virtual casacore::uInt nDim ()
 query the number of dimensions in the data More...
 
DisplayCoordinateSystem coordinateSystem () const
 retrieve the DisplayCoordinateSystem More...
 
DisplayCoordinateSystem originalCoordinateSystem () const
 retrieve the original DisplayCoordinateSystem More...
 
void setCoordinateSystem (const DisplayCoordinateSystem &coordsys)
 set the DisplayCoordinateSystem and the original DisplayCoordinateSystem More...
 
void restoreCoordinateSystem ()
 set the DisplayCoordinateSystem to be the same as the original DisplayCoordinateSystem More...
 
void installFakeCoordinateSystem ()
 set a Linear casacore::Coordinate in case of pixToWorld undefined for the blc/trc More...
 
void removeFakeCoordinateSystem ()
 
virtual casacore::String className ()
 Return the class name of this DisplayData; useful mostly for debugging purposes, and perhaps future use in the glish widget interface. More...
 
virtual casacore::IPosition fixedPosition () const
 Get the current fixed position. More...
 
virtual std::vector< int > displayAxes () const
 Get the current display axis numbers. More...
 
virtual casacore::String pixelTreatment () const
 Get the current setting of pixel treatment mode. More...
 
virtual casacore::Bool getFullCoord (casacore::Vector< casacore::Double > &fullWorld, casacore::Vector< casacore::Double > &fullPixel, const casacore::Vector< casacore::Double > &world)
 Convert a 2D worldCoordinate of the WorldCanvas to a full worldcoordinate and full pixel position. More...
 
virtual void notifyUnregister (WorldCanvasHolder &wcHolder, casacore::Bool ignoreRefresh=false)
 ignoreRefresh tells the DD not to refresh just to clean up DMs More...
 
casacore::Int xlatePixelAxes (casacore::Int idx) const
 allow external functions to translate axes... More...
 
casacore::Int xlateFixedPixelAxes (casacore::Int idx) const
 
const casacore::StringxaxisStr () const
 
const casacore::StringyaxisStr () const
 
const casacore::StringzaxisStr () const
 
const casacore::StringspectStr () const
 
casacore::Vector
< casacore::String
worldToPixelAxisNames (const DisplayCoordinateSystem &cSys) const
 Convert list of world axis names to pixel axis names. More...
 
const casacore::StringspectralunitStr () const
 
bool hasMovieDimension () const
 
std::string errorMessage () const
 
- Public Member Functions inherited from casa::DisplayData
 DisplayData ()
 (Required) default constructor. More...
 
virtual ~DisplayData ()
 required destructor More...
 
virtual void setDisplayState (DisplayState s)
 
virtual DisplayState getDisplayState () const
 
virtual bool isDisplayable () const
 
virtual void addRestrictions (AttributeBuffer &otherBuf)
 Add general restrictions or a restriction for item itemNum of this DisplayData. More...
 
virtual void addRestriction (Attribute &newRestriction, casacore::Bool permanent)
 
virtual void addElementRestrictions (const casacore::uInt itemNum, AttributeBuffer &other)
 
virtual void addElementRestriction (const casacore::uInt itemNum, Attribute &newRestriction, casacore::Bool permanent)
 
virtual void setRestrictions (AttributeBuffer &otherBuf)
 Set general restrictions or a restriction for item itemNum of this DisplayData. More...
 
virtual void setRestriction (Attribute &newRestriction)
 
virtual void setElementRestrictions (const casacore::uInt itemNum, AttributeBuffer &other)
 
virtual void setElementRestriction (const casacore::uInt itemNum, Attribute &newRestriction)
 
virtual void removeRestriction (const casacore::String &name)
 Remove a general restriction or a restriction from item itemNum More...
 
virtual void removeElementRestriction (const casacore::uInt itemNum, const casacore::String &name)
 
virtual void clearRestrictions ()
 Clear all general restrictions or all restrictions of item itemNum (except the ones that are permanent of course...) More...
 
virtual void clearElementRestrictions (const casacore::uInt itemNum)
 
virtual casacore::Bool existRestriction (const casacore::String &name)
 Check if a general restriction or a restriction for item itemNum with name name exists. More...
 
virtual casacore::Bool existElementRestriction (const casacore::uInt itemNum, const casacore::String &name)
 
virtual AttributeBufferrestrictionBuffer ()
 Get a handle to the buffer of general restrictions or of the buffer of restrictions for item itemNum More...
 
virtual AttributeBufferelementRestrictionBuffer (const casacore::uInt itemNum)
 
virtual casacore::Bool conformsTo (const WorldCanvas *wCanvas)
 Check whether the DD is is compatible with all WC[H] state, including its coordinate state, restrictions, and zIndex (if any). More...
 
virtual casacore::Bool conformsTo (const WorldCanvas &wc)
 
virtual casacore::Bool conformsToRstrs (const WorldCanvas &wc)
 Determine whether DD restrictions are in conformance with restrictions on the given WCH. More...
 
virtual casacore::Bool conformsToZIndex (const WorldCanvas &wc)
 Determine whether DD is compatible with the current canvas animation (zIndex) position. More...
 
virtual casacore::Int activeZIndex (const WorldCanvas *wc=0)
 Retrieve 'Active' zIndex. More...
 
virtual casacore::Bool getFirstZIndex (int &firstZIndex, casacore::Int axZrng=-1) const
 Set firstZIndex to minimum zIndex setting from all canvases where this DD is registered. More...
 
virtual void addPositionEventHandler (WCPositionEH *positionHandler)
 Add event handlers on the DisplayData. More...
 
virtual void addMotionEventHandler (WCMotionEH *motionHandler)
 
virtual void addRefreshEventHandler (WCRefreshEH *refreshHandler)
 
virtual void addDisplayEventHandler (DisplayEH *displayHandler)
 
virtual void removePositionEventHandler (WCPositionEH &positionHandler)
 Remove eventhandlers. More...
 
virtual void removeMotionEventHandler (WCMotionEH &motionHandler)
 
virtual void removeRefreshEventHandler (WCRefreshEH &refreshHandler)
 
virtual void removeDisplayEventHandler (DisplayEH &displayHandler)
 
virtual void setColormap (Colormap *cmap, casacore::Float weight)
 Set/remove/get a ColourMap (sorry, ColorMap) for this DisplayData setColormap() throw an casacore::AipsError is a null pointer is passed. More...
 
virtual void removeColormap ()
 
virtual Colormapcolormap () const
 
void setAttribute (Attribute &at)
 set an Attribute or Attributes More...
 
void setAttributes (AttributeBuffer &at)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::uInt &newValue)
 User interface to get value from the attribute buffer. More...
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Int &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Float &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Double &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Bool &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::String &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::uInt > &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::Int > &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::Float > &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::Double > &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::Bool > &newValue)
 
casacore::Bool getAttributeValue (const casacore::String &name, casacore::Vector< casacore::String > &newValue)
 
casacore::Bool existsAttribute (casacore::String &name)
 Check if a certain Attribute exists. More...
 
void removeAttribute (casacore::String &name)
 Remove an Attribute. More...
 
AttValue::ValueType attributeType (casacore::String &name)
 Get the type of the Attribute. More...
 
void setAttributeOnPrimaryWCHs (Attribute &at)
 Set an attribute on any WorldCanvas for which this DD is CS master. More...
 
virtual void notifyRegister (WorldCanvasHolder *wcHolder)
 
virtual void removeFromAllWCHs ()
 remove this DD everywhere–will stop any more refresh handling by the DD. More...
 
virtual void refresh (casacore::Bool clean=false)
 an explicit refresh: should be called if the DisplayData is changed such that drawing is required. More...
 
virtual casacore::String description () const
 
virtual ImageAnalysis * imageanalysis () const
 Get image analyis about images... More...
 
virtual std::shared_ptr
< casacore::ImageInterface
< casacore::Float > > 
imageinterface ()
 Returns a pointer that should not be deleted... More...
 
const WorldCanvasHolderfindHolder (const WorldCanvas *wCanvas) const
 Identify the WorldCanvasHolder for the given WorldCanvas. More...
 
WorldCanvasHolderfindHolder (const WorldCanvas *wCanvas)
 
virtual casacore::Block
< casacore::Int
allZIndices (casacore::Int axZrng=-1) const
 Return a sorted casacore::Block of all animation frame numbers currently set onto all WCHs where this DD is registered. More...
 
virtual casacore::Bool zIndexHint (casacore::Int &) const
 Will be called just before registering the [GTk]DD on a [GTk]PanelDisplay which has none registered on it yet. More...
 
virtual void handleEvent (DisplayEvent &ev)
 Overide DisplayEH::handleEvent. More...
 
virtual casacore::Bool isCSmaster (const WorldCanvasHolder *wch=0) const
 Is this DD the CS master of the passed WCH? Defaulting wch to 0 asks whether this DD is CS master of some WCH on which it is registered. More...
 
virtual casacore::Int uiBase () const
 DD 'Absolute Pixel Coordinates', e.g. More...
 
virtual void setUIBase (casacore::Int uibase)
 
virtual casacore::Bool getDelTmpData ()
 Get and set method for the flag. More...
 
virtual void setDelTmpData (casacore::Bool delTmpData)
 
virtual void setDisplayDataRed (DisplayData *)
 
virtual void setDisplayDataBlue (DisplayData *)
 
virtual void setDisplayDataGreen (DisplayData *)
 
- Public Member Functions inherited from casa::DisplayOptions
 DisplayOptions ()
 Constructor. More...
 
virtual ~DisplayOptions ()
 Destructor. More...
 
template<class T >
casacore::Bool readOptionRecord (casacore::Vector< T > &target, casacore::Bool &error, const casacore::Record &rec, const casacore::String &fieldname) const
 Find the field fieldname in casacore::Record rec, containing the requested type (casacore::Bool, casacore::String, casacore::Float, casacore::Int) in itself or its "value" sub-field, and return the value in target. More...
 
template<class T >
casacore::Bool readOptionRecord (T &target, casacore::Bool &error, const casacore::Record &rec, const casacore::String &fieldname) const
 
virtual casacore::Bool readOptionRecord (casacore::String &target, casacore::Bool &unsetTarget, casacore::Bool &error, const casacore::Record &rec, const casacore::String &fieldname) const
 Find the field fieldname in casacore::Record rec, containing the requested type (casacore::String) in itself or its "value" sub-field, and return the value in target. More...
 
casacore::Record unset () const
 Return a casacore::Record which is an "unset" casacore::Record, ie. More...
 
casacore::Bool isUnset (const casacore::Record &rec) const
 Return true or false indicating if the provided casacore::Record is equal to an "unset" Record. More...
 
- Public Member Functions inherited from casa::DisplayEH
virtual ~DisplayEH ()
 
- Public Member Functions inherited from casa::DlTarget
 DlTarget ()
 
 DlTarget (const DlTarget &)
 
virtual ~DlTarget ()
 
void reg (DlHandleBase *p)
 
void unreg (DlHandleBase *p)
 

Protected Member Functions

virtual void updateLatticeConcat (casacore::Array< casacore::Float > *=NULL, DisplayCoordinateSystem *=NULL)
 
virtual void initLattice (const casacore::Record &)
 
virtual void initLattice (const casacore::Float, const casacore::Float, const casacore::uInt)
 
virtual void recreateEmptyLattices (casacore::uInt changedScanNumber=0)
 
virtual const casacore::IPosition dataShape () const
 
virtual casacore::uInt dataDim () const
 
virtual const casacore::Unit dataUnit () const
 
virtual void setupElements ()
 functions need by above More...
 
virtual void getMinAndMax ()
 
virtual void updateLatticeStatistics ()
 
virtual casacore::Bool labelAxes (const WCRefreshEvent &ev)
 virtual void refresh(casacore::Bool); More...
 
virtual
casacore::MaskedLattice
< casacore::Float > * 
maskedLattice ()
 
virtual Display::DisplayDataType classType ()
 Return the DisplayData type; used by the WorldCanvasHolder to determine the order of drawing. More...
 
casacore::String dataType () const
 Pure virtual function from DisplayData... More...
 
virtual casacore::String showValue (const casacore::Vector< casacore::Double > &world)
 casacore::Format a string containing value information at the given world coordinate More...
 
virtual casacore::Float dataValue (casacore::IPosition pos)
 
virtual casacore::Bool maskValue (const casacore::IPosition &pos)
 
virtual casacore::Vector
< casacore::String
worldAxisNames () const
 Miscellaneous information supply routines. More...
 
virtual casacore::Vector
< casacore::String
worldAxisUnits () const
 
 ScrollingRasterDD (casacore::uInt mAxis=2, casacore::uInt scanNo=100)
 (Required) default constructor. More...
 
 ScrollingRasterDD (const ScrollingRasterDD &other)
 (Required) copy constructor. More...
 
void operator= (const ScrollingRasterDD &other)
 (Required) copy assignment. More...
 
virtual void setSpectralPreference (DisplayCoordinateSystem &, const casacore::String &, const casacore::String &)
 Set Spectral preference -> not used here. More...
 
void setHeaderMin (casacore::Float x)
 
void setHeaderMax (casacore::Float x)
 
casacore::Float headerMin ()
 
casacore::Float headerMax ()
 
void setScanNumber (casacore::uInt x)
 
casacore::uInt scanNumber ()
 
casacore::Bool headerReceived ()
 
void setHeaderReceived (casacore::Bool x)
 
casacore::IPosition latticesShape ()
 
casacore::uInt shiftAxis ()
 
void setNeedResize (const casacore::Bool x)
 
casacore::Bool needResize ()
 
casacore::IPosition fixedPos ()
 
void setLatticeShape (const casacore::IPosition x)
 void setPlaneNumber(const casacore::uInt x) { itsPlaneNumber = x; } casacore::uInt planeNumber() { return itsPlaneNumber; } More...
 
casacore::IPosition latticeShape ()
 
- Protected Member Functions inherited from casa::PrincipalAxesDD
virtual casacore::Bool setActiveZIndex_ (casacore::Int zindex)
 Set internal index (activeZIndex_) into the list of DMs (which cache individual drawings), according to passed animator index. More...
 
virtual void drawBeamEllipse_ (WorldCanvas *)
 Derived classes will implement if applicable (at present, LatticePADDs may draw if they have an image with beam data). More...
 
virtual void setNumImages (const casacore::uInt nimages)
 
void setup (casacore::IPosition fixedPos)
 do some setup work, part of construction and changing dataset More...
 
casacore::Bool indexInserted (casacore::Int index, casacore::Int length, casacore::Vector< casacore::Int > &testVec)
 Helper routine for setting up the transpose vectors for the coordinate system. More...
 
void normalToTransposed (casacore::Vector< casacore::Double > &coord, const casacore::Vector< casacore::Int > &transPos)
 helper to transpose coordinates More...
 
void transposedToNormal (casacore::Vector< casacore::Double > &coord, const casacore::Vector< casacore::Int > &transPos)
 
void setVelocityState (DisplayCoordinateSystem &cSys, const casacore::String &velTypeString, const casacore::String &unitString)
 Set velocity state. More...
 
void setSpectralFormatting (DisplayCoordinateSystem &cSys, const casacore::String &velTypeString, const casacore::String &unitString, const casacore::String &frequency_system="")
 Set Spectral formatting. More...
 
casacore::Bool findActiveImage (WorldCanvasHolder &wcHolder)
 Determine the active image (if any). More...
 
 PrincipalAxesDD ()
 (Required) default constructor. More...
 
 PrincipalAxesDD (const PrincipalAxesDD &other)
 (Required) copy constructor. More...
 
void operator= (const PrincipalAxesDD &other)
 (Required) copy assignment. More...
 
- Protected Member Functions inherited from casa::DisplayData
casacore::Bool conformed ()
 Returns result of last call to conformsTo(WCH&). More...
 
casacore::Bool isCsAndZIndexConformed ()
 Added so that when two images are loaded with no velocity alignment, they can still show their position coordinates without having to be rstrsConformed. More...
 
virtual void delTmpData (casacore::String &tmpData)
 Delete temporary data. More...
 
virtual const std::list
< WCPositionEH * > * 
positionEventHandlerList ()
 Retrieve position, motion, refresh and display event handler lists. More...
 
virtual const std::list
< WCMotionEH * > * 
motionEventHandlerList ()
 
virtual const std::list
< WCRefreshEH * > * 
refreshEventHandlerList ()
 
virtual const std::list
< DisplayEH * > * 
displayEventHandlerList ()
 
 DisplayData (const DisplayData &other)
 (Required) copy constructor. More...
 
void operator= (const DisplayData &other)
 (Required) copy assignment. More...
 
- Protected Member Functions inherited from casa::DisplayOptions
 DisplayOptions (const DisplayOptions &other)
 (Required) copy constructor. More...
 
void operator= (const DisplayOptions &other)
 (Required) copy assignment. More...
 

Private Member Functions

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

Private Attributes

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

Friends

class ScrollingRasterDM
 

Additional Inherited Members

- Public Types inherited from casa::DisplayData
enum  DisplayState {
  DISPLAYED,
  UNDISPLAYED,
  LIMBO
}
 
- Static Public Attributes inherited from casa::PrincipalAxesDD
static const casacore::String HISTOGRAM_RANGE
 
- Static Public Attributes inherited from casa::DisplayData
static const casacore::String DATA_MIN
 
static const casacore::String DATA_MAX
 
- Static Protected Member Functions inherited from casa::PrincipalAxesDD
static bool has_nonsingleton_nondegenerate_nondisplayed_axis (const DisplayData &other)
 
- Protected Attributes inherited from casa::PrincipalAxesDD
casacore::Bool iAmRubbish
 Internal state. More...
 
casacore::Double datamin
 min and max to use for drawing More...
 
casacore::Double datamax
 
casacore::uInt nArrayAxes
 internal bookkeeping number of axes More...
 
casacore::uInt nPixelAxes
 
casacore::uInt nWorldAxes
 
casacore::Coordinate::formatType itsNotation
 format for diplaying numbers in the tracker More...
 
std::string error_string
 
- Protected Attributes inherited from casa::DisplayData
AttributeBuffer restrictions
 The Book says that we should not put data members in class that is supposed to only define an interface, but by putting these here, we can implement some of the restriction & eventhandling stuff so that people do not have to repeat it. More...
 
AttributeBuffer attributes
 buffer for storing Attributes More...
 
casacore::PtrBlock< void * > DDelement
 list of DisplayDataElements, which are of type DisplayMethod or derived More...
 
casacore::Int activeZIndex_
 Indicates the 'current' animation frame, i.e. More...
 
casacore::Bool delTmpData_
 Flag indicating that temporary data should be removed when deleting the object. More...
 
casacore::Bool rstrsConformed_
 Somewhat limited-use state, saved here for 'efficiency'. More...
 
casacore::Bool csConformed_
 
casacore::Bool zIndexConformed_
 

Detailed Description

Definition at line 53 of file ScrollingRasterDD.h.

Constructor & Destructor Documentation

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

(Required) default constructor.

casa::ScrollingRasterDD::ScrollingRasterDD ( const ScrollingRasterDD other)
protected

(Required) copy constructor.

Member Function Documentation

virtual casacore::String casa::ScrollingRasterDD::className ( ) const
inlinevirtual

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

Reimplemented from casa::DisplayData.

Definition at line 64 of file ScrollingRasterDD.h.

virtual Display::DisplayDataType casa::ScrollingRasterDD::classType ( )
inlineprotectedvirtual

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

Implements casa::DisplayData.

Definition at line 116 of file ScrollingRasterDD.h.

References casa::Display::Raster.

virtual casacore::uInt casa::ScrollingRasterDD::dataDim ( ) const
protectedvirtual

Implements casa::DisplayData.

virtual const casacore::IPosition casa::ScrollingRasterDD::dataShape ( ) const
protectedvirtual

Implements casa::DisplayData.

casacore::String casa::ScrollingRasterDD::dataType ( ) const
inlineprotectedvirtual

Pure virtual function from DisplayData...

Implements casa::DisplayData.

Definition at line 120 of file ScrollingRasterDD.h.

virtual const casacore::Unit casa::ScrollingRasterDD::dataUnit ( ) const
protectedvirtual

Implements casa::DisplayData.

virtual casacore::Float casa::ScrollingRasterDD::dataValue ( casacore::IPosition  pos)
protectedvirtual
casacore::IPosition casa::ScrollingRasterDD::fixedPos ( )
inlineprotected

Definition at line 183 of file ScrollingRasterDD.h.

References itsFixedPos.

virtual casacore::Record casa::ScrollingRasterDD::getLabellerOptions ( bool  = false) const
inlinevirtual

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

Reimplemented from casa::PrincipalAxesDD.

Definition at line 79 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::getMinAndMax ( )
protectedvirtual

Implements casa::PrincipalAxesDD.

virtual casacore::Record casa::ScrollingRasterDD::getOptions ( bool  scrub = false) const
virtual

retrieve the current and default options and parameter types.

Reimplemented from casa::PrincipalAxesDD.

casacore::Float casa::ScrollingRasterDD::headerMax ( )
inlineprotected

Definition at line 153 of file ScrollingRasterDD.h.

References itsHeaderMax.

casacore::Float casa::ScrollingRasterDD::headerMin ( )
inlineprotected

Definition at line 150 of file ScrollingRasterDD.h.

References itsHeaderMin.

casacore::Bool casa::ScrollingRasterDD::headerReceived ( )
inlineprotected

Definition at line 162 of file ScrollingRasterDD.h.

References itsHeaderReceived.

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

Worker function for c'tors.

virtual casacore::Bool casa::ScrollingRasterDD::labelAxes ( const WCRefreshEvent ev)
protectedvirtual

virtual void refresh(casacore::Bool);

Reimplemented from casa::PrincipalAxesDD.

casacore::IPosition casa::ScrollingRasterDD::latticeShape ( )
inlineprotected

Definition at line 193 of file ScrollingRasterDD.h.

References itsLatticeShape.

casacore::IPosition casa::ScrollingRasterDD::latticesShape ( )
inlineprotected

Definition at line 169 of file ScrollingRasterDD.h.

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

virtual casacore::MaskedLattice<casacore::Float>* casa::ScrollingRasterDD::maskedLattice ( )
inlineprotectedvirtual

Definition at line 112 of file ScrollingRasterDD.h.

References itsLatticeConcatPtr.

virtual casacore::Bool casa::ScrollingRasterDD::maskValue ( const casacore::IPosition pos)
protectedvirtual
casacore::Bool casa::ScrollingRasterDD::needResize ( )
inlineprotected

Definition at line 179 of file ScrollingRasterDD.h.

References itsNeedResize.

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

(Required) copy assignment.

virtual void casa::ScrollingRasterDD::recreateEmptyLattices ( casacore::uInt  changedScanNumber = 0)
protectedvirtual
virtual WCResampleHandler* casa::ScrollingRasterDD::resampleHandler ( )
inlinevirtual

Definition at line 88 of file ScrollingRasterDD.h.

References itsResampleHandler.

casacore::uInt casa::ScrollingRasterDD::scanNumber ( )
inlineprotected

Definition at line 159 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 ( casacore::Float  x)
inlineprotected

Definition at line 147 of file ScrollingRasterDD.h.

References itsHeaderMax.

void casa::ScrollingRasterDD::setHeaderMin ( casacore::Float  x)
inlineprotected

Definition at line 144 of file ScrollingRasterDD.h.

References itsHeaderMin.

void casa::ScrollingRasterDD::setHeaderReceived ( casacore::Bool  x)
inlineprotected

Definition at line 165 of file ScrollingRasterDD.h.

References itsHeaderReceived.

virtual casacore::Bool casa::ScrollingRasterDD::setLabellerOptions ( casacore::Record ,
casacore::Record  
)
inlinevirtual

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

Reimplemented from casa::PrincipalAxesDD.

Definition at line 74 of file ScrollingRasterDD.h.

void casa::ScrollingRasterDD::setLatticeShape ( const casacore::IPosition  x)
inlineprotected

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

Definition at line 190 of file ScrollingRasterDD.h.

References itsLatticeShape.

void casa::ScrollingRasterDD::setNeedResize ( const casacore::Bool  x)
inlineprotected

Definition at line 176 of file ScrollingRasterDD.h.

References itsNeedResize.

virtual casacore::Bool casa::ScrollingRasterDD::setOptions ( casacore::Record rec,
casacore::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 ( casacore::uInt  x)
inlineprotected

Definition at line 156 of file ScrollingRasterDD.h.

References itsScanNumber.

virtual void casa::ScrollingRasterDD::setSpectralPreference ( DisplayCoordinateSystem ,
const casacore::String ,
const casacore::String  
)
inlineprotectedvirtual

Set Spectral preference -> not used here.

Definition at line 141 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::setupElements ( )
protectedvirtual

functions need by above

Reimplemented from casa::PrincipalAxesDD.

casacore::uInt casa::ScrollingRasterDD::shiftAxis ( )
inlineprotected

Definition at line 172 of file ScrollingRasterDD.h.

References itsShiftAxis.

virtual casacore::String casa::ScrollingRasterDD::showValue ( const casacore::Vector< casacore::Double > &  world)
protectedvirtual

casacore::Format a string containing value information at the given world coordinate

Implements casa::DisplayData.

virtual casacore::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 casacore::Record )
inlinevirtual

Definition at line 61 of file ScrollingRasterDD.h.

virtual void casa::ScrollingRasterDD::updateLattice ( casacore::Array< casacore::Float > &  ,
DisplayCoordinateSystem  
)
virtual
virtual void casa::ScrollingRasterDD::updateLatticeConcat ( casacore::Array< casacore::Float > *  = NULL,
DisplayCoordinateSystem = NULL 
)
protectedvirtual
virtual void casa::ScrollingRasterDD::updateLatticeStatistics ( )
protectedvirtual
virtual casacore::Vector<casacore::String> casa::ScrollingRasterDD::worldAxisNames ( ) const
protectedvirtual

Miscellaneous information supply routines.

Reimplemented from casa::PrincipalAxesDD.

virtual casacore::Vector<casacore::String> casa::ScrollingRasterDD::worldAxisUnits ( ) const
protectedvirtual

Reimplemented from casa::PrincipalAxesDD.

Friends And Related Function Documentation

friend class ScrollingRasterDM
friend

Definition at line 93 of file ScrollingRasterDD.h.

Member Data Documentation

casacore::Int casa::ScrollingRasterDD::itsFilledCount
private

Definition at line 213 of file ScrollingRasterDD.h.

casacore::SubLattice<casacore::Float>* casa::ScrollingRasterDD::itsFilledDisplayedLatticePtr
private

Definition at line 209 of file ScrollingRasterDD.h.

casacore::IPosition casa::ScrollingRasterDD::itsFixedPos
private

casacore::Int itsM2Axis;

Definition at line 211 of file ScrollingRasterDD.h.

Referenced by fixedPos().

casacore::Float casa::ScrollingRasterDD::itsHeaderMax
private

Definition at line 222 of file ScrollingRasterDD.h.

Referenced by headerMax(), and setHeaderMax().

casacore::Float casa::ScrollingRasterDD::itsHeaderMin
private

Definition at line 221 of file ScrollingRasterDD.h.

Referenced by headerMin(), and setHeaderMin().

casacore::Bool casa::ScrollingRasterDD::itsHeaderReceived
private

Definition at line 220 of file ScrollingRasterDD.h.

Referenced by headerReceived(), and setHeaderReceived().

casacore::LatticeConcat<casacore::Float>* casa::ScrollingRasterDD::itsLatticeConcatPtr
private

casacore::ImageInterface<casacore::Float> *itsImagePtr; casacore::Array<casacore::Float> *itsBaseArrayPtr;

Definition at line 206 of file ScrollingRasterDD.h.

Referenced by maskedLattice().

casacore::MaskedLattice<casacore::Float>** casa::ScrollingRasterDD::itsLattices
private

Definition at line 215 of file ScrollingRasterDD.h.

Referenced by latticesShape().

casacore::IPosition casa::ScrollingRasterDD::itsLatticeShape
private

Definition at line 224 of file ScrollingRasterDD.h.

Referenced by latticeShape(), and setLatticeShape().

casacore::LatticeStatistics<casacore::Float>* casa::ScrollingRasterDD::itsLatticeStatisticsPtr
private

casacore::MaskedLattice<casacore::Float> *itsMaskedLatticePtr;

Definition at line 208 of file ScrollingRasterDD.h.

casacore::Bool casa::ScrollingRasterDD::itsNeedResize
private

Definition at line 217 of file ScrollingRasterDD.h.

Referenced by needResize(), and setNeedResize().

casacore::String casa::ScrollingRasterDD::itsResample
private

casacore::IPosition itsScanShape; casacore::uInt itsPlaneNumber;

storage for the display parameters

Definition at line 229 of file ScrollingRasterDD.h.

WCResampleHandler* casa::ScrollingRasterDD::itsResampleHandler
private

pointer to resampler

Definition at line 232 of file ScrollingRasterDD.h.

Referenced by resampleHandler().

casacore::uInt casa::ScrollingRasterDD::itsScanNumber
private

Definition at line 223 of file ScrollingRasterDD.h.

Referenced by scanNumber(), and setScanNumber().

casacore::uInt casa::ScrollingRasterDD::itsShiftAxis
private

Definition at line 218 of file ScrollingRasterDD.h.

Referenced by shiftAxis().

casacore::uInt casa::ScrollingRasterDD::nDim
private

Definition at line 202 of file ScrollingRasterDD.h.


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