Workspace 6.21.5
Public Member Functions | List of all members
Array3d Class Referenceabstract

#include <DataAnalysis/DataStructures/array3d.h>

Inheritance diagram for Array3d:
[legend]

Public Member Functions

 ~Array3d () override=default
 
virtual qint64 cacheKey () const =0
 
Array3dclone () const override=0
 
virtual unsigned dimension (unsigned i) const =0
 
virtual bool empty () const =0
 
virtual QVector3D getCellSpacing () const
 
virtual QVector3D getOrigin () const
 
virtual void setCellSpacing (const QVector3D &size)
 
virtual void setOrigin (const QVector3D &origin)
 
virtual unsigned size () const =0
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 

Detailed Description

Base interface for accessing a data matrix, irrespective of its implementation.

Constructor & Destructor Documentation

◆ ~Array3d()

~Array3d ( )
overridedefault

Member Function Documentation

◆ cacheKey()

virtual qint64 cacheKey ( ) const
pure virtual

◆ clone()

Array3d * clone ( ) const
overridepure virtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

Implements Clonable.

Implemented in Array3dNullTyped< T >, Array3dNull, Array3dTypedAdaptor< ContainerType, T, Reader, Writer, DeepCopier >, Array3dTypedAdaptor< CSIRO::DataAnalysis::Array3dTyped, double >, Array3dTypedAdaptor< CSIRO::DataAnalysis::Array3dData< CSIRO::Rendering::WSGLSparseOctree::Cell >, QRgb >, Array3dTypedAdaptor< Array3dScalar, QRgb, ImageReader, ImageWriter >, NdTo3dAdaptor, Array3dTyped< T >, Array3dTyped< double >, and Array3dTyped< QRgb >.

◆ dimension()

virtual unsigned dimension ( unsigned  i) const
pure virtual

◆ empty()

virtual bool empty ( ) const
pure virtual

◆ getCellSpacing()

QVector3D getCellSpacing ( ) const
virtual

◆ getOrigin()

QVector3D getOrigin ( ) const
virtual

◆ setCellSpacing()

void setCellSpacing ( const QVector3D &  size)
virtual

◆ setOrigin()

void setOrigin ( const QVector3D &  origin)
virtual
Parameters
originThe desired origin of the array in world coordinates. Default value is [0,0,0].

Useful alongside setCellSpacing to define the extent of the array's data in world coordinates. This is needed for some algorithms where the shape of each voxel and its location needs to be known prior to execution.

Reimplemented in Array3dTypedAdaptor< ContainerType, T, Reader, Writer, DeepCopier >, Array3dTypedAdaptor< CSIRO::DataAnalysis::Array3dTyped, double >, Array3dTypedAdaptor< CSIRO::DataAnalysis::Array3dData< CSIRO::Rendering::WSGLSparseOctree::Cell >, QRgb >, and Array3dTypedAdaptor< Array3dScalar, QRgb, ImageReader, ImageWriter >.

◆ size()

virtual unsigned size ( ) const
pure virtual