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

Base class for scrolling DisplayData objects. More...

#include <ScrollingRasterDM.h>

Inheritance diagram for casa::ScrollingRasterDM:
casa::PrincipalAxesDM casa::DisplayMethod

Public Member Functions

 ScrollingRasterDM (casacore::uInt xAxis, casacore::uInt yAxis, casacore::Int mAxis, casacore::IPosition fixedPos, PrincipalAxesDD *padd)
 
- Public Member Functions inherited from casa::PrincipalAxesDM
 PrincipalAxesDM (casacore::uInt xAxis, casacore::uInt yAxis, casacore::uInt mAxis, PrincipalAxesDD *padd)
 User constructor. More...
 
virtual ~PrincipalAxesDM ()
 Destructor. More...
 
virtual void draw (Display::RefreshReason reason, WorldCanvasHolder &wcHolder)
 Draw on the provided WorldCanvasHolder. More...
 
virtual void cleanup ()
 clear drawlist state. More...
 
- Public Member Functions inherited from casa::DisplayMethod
 DisplayMethod (DisplayData *parentDisplayData)
 Constructor. More...
 
virtual ~DisplayMethod ()
 Destructor. More...
 
void addRestriction (Attribute &newAt, casacore::Bool permanent)
 Set & remove restrictions. More...
 
void addRestrictions (AttributeBuffer &newBuf)
 
void setRestriction (Attribute &newAt)
 
void setRestrictions (AttributeBuffer &newBuf)
 
void removeRestriction (const casacore::String &name)
 
casacore::Bool existRestriction (const casacore::String &name)
 
void clearRestrictions ()
 
casacore::Bool matches (Attribute &at)
 match restriction More...
 
casacore::Bool matches (AttributeBuffer &atBuf)
 

Protected Member Functions

virtual void setup (casacore::IPosition fixedPos)
 This method does setup stuff that is common to all elements of an axis-bound display data element. More...
 
virtual casacore::IPosition dataShape ()
 This method should be defined in derived classes to simply return the shape of the data object, eg. More...
 
virtual casacore::uInt dataDrawSelf (WorldCanvas *wCanvas, const casacore::Vector< casacore::Double > &blc, const casacore::Vector< casacore::Double > &trc, const casacore::IPosition &start, const casacore::IPosition &sliceShape, const casacore::IPosition &stride, const casacore::Bool usePixelEdges=false)
 This method should be defined in derived classes to actually draw the data contained in datMatrix, however it likes, starting at the point blc, on *wCanvas. More...
 
virtual casacore::Bool dataGetSlice (casacore::Matrix< casacore::Float > &data, casacore::Matrix< casacore::Bool > &mask, const casacore::IPosition &start, const casacore::IPosition &sliceShape, const casacore::IPosition &stride)
 
- Protected Member Functions inherited from casa::PrincipalAxesDM
virtual void setup2d ()
 
virtual casacore::Bool dataRedrawSelf (WorldCanvas *, Display::RefreshReason)
 Called by draw(): an optimization for ColormapChange in 24bit mode. More...
 
virtual casacore::Bool needToTranspose ()
 Is a transpose necessary? More...
 
 PrincipalAxesDM ()
 The logic behind this cryptic code (see LatticePADM::dataGetSlice): If a either a 1xN or Nx1 slice (including 1x1) is requested, LatticePADM's latt.getSlice() casacore::Array will be 1-dimensional, which the casacore::Matrix = casacore::Array operator will turn into an Nx1 matrix. More...
 
 PrincipalAxesDM (const PrincipalAxesDM &other)
 (Required) copy constructor. More...
 
void operator= (const PrincipalAxesDM &other)
 (Required) copy assignment. More...
 
- Protected Member Functions inherited from casa::DisplayMethod
 DisplayMethod ()
 (Required) default constructor. More...
 
 DisplayMethod (const DisplayMethod &other)
 (Required) copy constructor. More...
 
void operator= (const DisplayMethod &other)
 (Required) copy assignment. More...
 
DisplayDataparentDisplayData ()
 Return the parent DisplayData. More...
 

Additional Inherited Members

- Protected Attributes inherited from casa::PrincipalAxesDM
casacore::IPosition start
 Some data members which all display elements along principal axes will play around with: More...
 
casacore::IPosition sliceShape
 
casacore::IPosition stride
 
- Protected Attributes inherited from casa::DisplayMethod
AttributeBuffer restrictions
 

Detailed Description

Base class for scrolling DisplayData objects.

Definition at line 40 of file ScrollingRasterDM.h.

Constructor & Destructor Documentation

casa::ScrollingRasterDM::ScrollingRasterDM ( casacore::uInt  xAxis,
casacore::uInt  yAxis,
casacore::Int  mAxis,
casacore::IPosition  fixedPos,
PrincipalAxesDD padd 
)

Member Function Documentation

virtual casacore::uInt casa::ScrollingRasterDM::dataDrawSelf ( WorldCanvas wCanvas,
const casacore::Vector< casacore::Double > &  blc,
const casacore::Vector< casacore::Double > &  trc,
const casacore::IPosition start,
const casacore::IPosition sliceShape,
const casacore::IPosition stride,
const casacore::Bool  usePixelEdges = false 
)
protectedvirtual

This method should be defined in derived classes to actually draw the data contained in datMatrix, however it likes, starting at the point blc, on *wCanvas.

It must return a casacore::uInt which indicates the drawListNumber it allocated for this drawing. If usePixelEdges is true, then the given blc and trc correspond to the world blc and trc of the first and last pixels in the given data, otherwise they correspond to the world centres of the blc and trc pixels.

Implements casa::PrincipalAxesDM.

virtual casacore::Bool casa::ScrollingRasterDM::dataGetSlice ( casacore::Matrix< casacore::Float > &  data,
casacore::Matrix< casacore::Bool > &  mask,
const casacore::IPosition start,
const casacore::IPosition sliceShape,
const casacore::IPosition stride 
)
protectedvirtual
virtual casacore::IPosition casa::ScrollingRasterDM::dataShape ( )
protectedvirtual

This method should be defined in derived classes to simply return the shape of the data object, eg.

Array.shape() or Image.shape(), etc.

Implements casa::PrincipalAxesDM.

virtual void casa::ScrollingRasterDM::setup ( casacore::IPosition  fixedPos)
protectedvirtual

This method does setup stuff that is common to all elements of an axis-bound display data element.

Reimplemented from casa::PrincipalAxesDM.


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