IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
ipsdk::image::BaseImageTile2d Class Referenceabstract

Base class for 2 image tiles. More...

#include <BaseImageTile2d.h>

Inheritance diagram for ipsdk::image::BaseImageTile2d:
ipsdk::image::BaseImageTile ipsdk::image::BaseImageFragment ipsdk::BaseObjectWithSkeleton ipsdk::BaseIOData ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject ipsdk::image::InOutImageTile2d ipsdk::image::InputImageTile2d ipsdk::image::OutputImageTile2d

Public Member Functions

eImageTileType getImageTileType () const
 retrieve image tile type
 
const eImageBufferTypegetBufferType () const
 retrieve image buffer type More...
 
const ipUInt64 getFullTileSize () const
 retrieve image tile size (number of pixels) More...
 
const ipUInt64 getPlanTileSize () const
 retrieve xy plan image tile size (number of pixels) More...
 
const ipUInt64 getTileNbPlans () const
 retrieve number of xy plans associated to tile More...
 
const FragHybridBuffergetBuffer () const
 retrieve tile full buffer More...
 
template<typename T >
const T * getBuffer (const ipUInt64 rowIdx) const
 retrieve tile row buffer for a given row index More...
 
Constructors and destructor
 BaseImageTile2d ()
 
virtual ~BaseImageTile2d ()=0
 
ipUInt64 getImageSizeX () const
 retrieve full image size More...
 
ipUInt64 getImageSizeY () const
 retrieve full image size More...
 
ipInt64 getTileStartOffsetX () const
 retrieve tile start offsets in full image More...
 
ipInt64 getTileStartOffsetY () const
 retrieve tile start offsets in full image More...
 
ipUInt64 getTileSizeX () const
 retrieve tile size More...
 
ipUInt64 getTileSizeY () const
 retrieve tile size More...
 
ipUInt64 getTileEndOffsetX () const
 retrieve tile end offsets in full image (first coordinates after tile) More...
 
ipUInt64 getTileEndOffsetY () const
 retrieve tile end offsets in full image (first coordinates after tile) More...
 
Plan Indexes
ipUInt64 getZPlanIdx () const
 retrieve z plan index for image tile in full image More...
 
ipUInt64 getCPlanIdx () const
 retrieve c plan index for image tile in full image More...
 
ipUInt64 getTPlanIdx () const
 retrieve t plan index for image tile in full image More...
 
- Public Member Functions inherited from ipsdk::image::BaseImageTile
eImageFragmentType getImageFragmentType () const
 retrieve image fragment type
 
 BaseImageTile ()
 
virtual ~BaseImageTile ()=0
 
- Public Member Functions inherited from ipsdk::image::BaseImageFragment
virtual bool isInput () const =0
 retrieve fragment input state More...
 
virtual bool isOutput () const =0
 retrieve fragment output state More...
 
bool isInOut () const
 retrieve fragment in/out state
 
bool isInit () const
 retrieve object initialization flag
 
eDataAccessMode getDataAccessMode () const
 retrieve flag indicating access mode for an image fragment data More...
 
bool hasLocalDataAccess () const
 retrieve flag indicating whether fragment data can locally be accessed More...
 
bool isBufferInit () const
 check whether strip buffer has been initialized More...
 
BoolResult initBuffer ()
 method allowing to initialize strip buffer More...
 
void clearBuffer ()
 method allowing to clear strip buffer More...
 
bool isBufferSyncInput () const
 retrieve flag indicating whether buffer has been synchronised from image (read from image storage) More...
 
bool isBufferSyncOutput () const
 retrieve flag indicating whether buffer has been synchronised to image (write to image storage) More...
 
void clear ()
 clear object initialization data
 
 BaseImageFragment ()
 
virtual ~BaseImageFragment ()=0
 
const GuidgetGuid () const
 access to image guid More...
 
const std::string & getName () const
 access to image name More...
 
bool existsHeaderKey (const std::string &key) const
 check whether a given key exists into header More...
 
ItemNames getHeaderKeys () const
 retrieve header key list More...
 
const BaseDataItemgetHeaderItem (const std::string &key) const
 retrieve a header item given associated key More...
 
- Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton
const eSklSrzModegetSerializationMode () const
 retrieve serialization flag for object More...
 
void setSerializationMode (const eSklSrzMode &sklSrzMode) const
 set serialization flag for object
 
 BaseObjectWithSkeleton ()
 
 ~BaseObjectWithSkeleton ()
 
- Public Member Functions inherited from ipsdk::BaseSerializationObject
 BaseSerializationObject ()
 Default constructor.
 
virtual ~BaseSerializationObject ()=0
 destructor
 
- Public Member Functions inherited from ipsdk::BaseDynamicObject
virtual const std::string & getClassName () const
 method allowing to retrieve object class name
 
virtual BaseDynamicObjectcreateNew () const =0
 method allowing to create new instance of current object type
 
virtual DynamicObjectPtr createShared () const =0
 method allowing to create new shared instance of current object type
 
virtual bool hasCopySupport () const =0
 check whether objet has copy support
 
virtual BaseDynamicObjectduplicate () const =0
 method allowing to duplicate current object More...
 
virtual DynamicObjectPtr duplicateShared () const =0
 method allowing shared duplication of current object More...
 
 BaseDynamicObject ()
 
virtual ~BaseDynamicObject ()=0
 
- Public Member Functions inherited from ipsdk::BaseIOData
virtual eIOStatus getIOStatus () const =0
 retrieve data input/output status
 
 BaseIOData ()
 
virtual ~BaseIOData ()=0
 

Static Public Attributes

static const eImageTileType::domain g_imageTileType = eImageTileType::eITT_2d
 image tile type
 
- Static Public Attributes inherited from ipsdk::image::BaseImageTile
static const eImageFragmentType::domain g_imageFragmentType = eImageFragmentType::eIFT_ImageTile
 image fragment type
 

Protected Member Functions

void initBase (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipInt64 tileStartOffsetX, const ipInt64 tileStartOffsetY, const ipUInt64 tileSizeX, const ipUInt64 tileSizeY, const PlanStoragePtr &pPlanStorage, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization with a plan storage support
 
void initBase (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipInt64 tileStartOffsetX, const ipInt64 tileStartOffsetY, const ipUInt64 tileSizeX, const ipUInt64 tileSizeY, const ipUInt64 imageSizeX, const ipUInt64 imageSizeY, const eImageBufferType &bufferType, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization without plan storage support
 
bool isBufferInitDerived () const
 check whether tile buffer has been initialized in derived class
 
BoolResult initBufferDerived ()
 method allowing to initialize tile buffer in derived class
 
void clearBufferDerived ()
 method allowing to clear tile buffer in derived class
 
eDataAccessMode retrieveAccessMode () const
 method allowing to retrieve data access mode associated to fragment
 
FragHybridBufferaccessBuffer () const
 access to tile full buffer More...
 
void clearDerived ()
 clear function defined in derived class
 
void retrieveIntersection (tile::ImageTileInfo2d &imageTileInfo2d) const
 method allowing to retrieve tile/image intersection More...
 
tile read and write access
BoolResult readDataDerived () const
 read image tile data from image storage More...
 
BoolResult writeDataDerived ()
 write image tile data to image storage More...
 
const void * accessBuffer (const ipUInt64 rowIdx) const
 access to tile tile row buffer for a given row index More...
 
void * accessBuffer (const ipUInt64 rowIdx)
 access to tile tile row buffer for a given row index More...
 
- Protected Member Functions inherited from ipsdk::image::BaseImageFragment
void initBase (const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization method
 
BoolResult readData () const
 read image strip data from image storage More...
 
BoolResult writeData ()
 write image strip data to image storage More...
 
- Protected Member Functions inherited from ipsdk::BaseSerializationObject
virtual BoolResult write (BaseOArchive &ar) const
 method allowing to ensure serialization write part for object
 
virtual BoolResult read (BaseIArchive &ar)
 method allowing to ensure serialization read part for object
 
- Protected Member Functions inherited from ipsdk::BaseDynamicObject
virtual void initCtorCopy (const BaseDynamicObject &object)
 
virtual void copy (const BaseDynamicObject &object)
 method allowing to copy data from another object
 

Friends

class BaseImageTile3d
 
class InputImageTile3d
 

Additional Inherited Members

- Static Public Member Functions inherited from ipsdk::BaseSerializationObject
static ipUInt32 getVersion ()
 method allowing to retrieve class version information for serialization
 
- Static Public Member Functions inherited from ipsdk::BaseDynamicObject
static const std::string & getTypeName ()
 method allowing to retrieve name associated to class
 
- Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton
eSklSrzMode _sklSrzMode
 serialization flag for object More...
 

Detailed Description

Base class for 2 image tiles.

Author
E.Noirfalise
Date
2016/09/06

Member Function Documentation

◆ getImageSizeX()

ipUInt64 ipsdk::image::BaseImageTile2d::getImageSizeX ( ) const

retrieve full image size

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getImageSizeY()

ipUInt64 ipsdk::image::BaseImageTile2d::getImageSizeY ( ) const

retrieve full image size

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileStartOffsetX()

ipInt64 ipsdk::image::BaseImageTile2d::getTileStartOffsetX ( ) const

retrieve tile start offsets in full image

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileStartOffsetY()

ipInt64 ipsdk::image::BaseImageTile2d::getTileStartOffsetY ( ) const

retrieve tile start offsets in full image

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileSizeX()

ipUInt64 ipsdk::image::BaseImageTile2d::getTileSizeX ( ) const

retrieve tile size

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileSizeY()

ipUInt64 ipsdk::image::BaseImageTile2d::getTileSizeY ( ) const

retrieve tile size

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileEndOffsetX()

ipUInt64 ipsdk::image::BaseImageTile2d::getTileEndOffsetX ( ) const

retrieve tile end offsets in full image (first coordinates after tile)

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTileEndOffsetY()

ipUInt64 ipsdk::image::BaseImageTile2d::getTileEndOffsetY ( ) const

retrieve tile end offsets in full image (first coordinates after tile)

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getBufferType()

const eImageBufferType& ipsdk::image::BaseImageTile2d::getBufferType ( ) const
virtual

retrieve image buffer type

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

Implements ipsdk::image::BaseImageTile.

◆ getFullTileSize()

const ipUInt64 ipsdk::image::BaseImageTile2d::getFullTileSize ( ) const
virtual

retrieve image tile size (number of pixels)

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

Implements ipsdk::image::BaseImageTile.

◆ getPlanTileSize()

const ipUInt64 ipsdk::image::BaseImageTile2d::getPlanTileSize ( ) const
virtual

retrieve xy plan image tile size (number of pixels)

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

Implements ipsdk::image::BaseImageTile.

◆ getTileNbPlans()

const ipUInt64 ipsdk::image::BaseImageTile2d::getTileNbPlans ( ) const
virtual

retrieve number of xy plans associated to tile

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

Implements ipsdk::image::BaseImageTile.

◆ getZPlanIdx()

ipUInt64 ipsdk::image::BaseImageTile2d::getZPlanIdx ( ) const

retrieve z plan index for image tile in full image

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getCPlanIdx()

ipUInt64 ipsdk::image::BaseImageTile2d::getCPlanIdx ( ) const

retrieve c plan index for image tile in full image

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getTPlanIdx()

ipUInt64 ipsdk::image::BaseImageTile2d::getTPlanIdx ( ) const

retrieve t plan index for image tile in full image

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

◆ getBuffer() [1/2]

const FragHybridBuffer & ipsdk::image::BaseImageTile2d::getBuffer ( ) const
inline

retrieve tile full buffer

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false

◆ getBuffer() [2/2]

template<typename T >
const T* ipsdk::image::BaseImageTile2d::getBuffer ( const ipUInt64  rowIdx) const
inline

retrieve tile row buffer for a given row index

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif rowIdx >= getTileSizeY()

◆ readDataDerived()

BoolResult ipsdk::image::BaseImageTile2d::readDataDerived ( ) const
protectedvirtual

read image tile data from image storage

Returns
false in case of failure

Implements ipsdk::image::BaseImageFragment.

◆ writeDataDerived()

BoolResult ipsdk::image::BaseImageTile2d::writeDataDerived ( )
protectedvirtual

write image tile data to image storage

Returns
false in case of failure

Implements ipsdk::image::BaseImageFragment.

◆ accessBuffer() [1/3]

FragHybridBuffer& ipsdk::image::BaseImageTile2d::accessBuffer ( ) const
protected

access to tile full buffer

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false

◆ accessBuffer() [2/3]

const void* ipsdk::image::BaseImageTile2d::accessBuffer ( const ipUInt64  rowIdx) const
protected

access to tile tile row buffer for a given row index

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif rowIdx >= getTileSizeY()

◆ accessBuffer() [3/3]

void* ipsdk::image::BaseImageTile2d::accessBuffer ( const ipUInt64  rowIdx)
protected

access to tile tile row buffer for a given row index

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif rowIdx >= getTileSizeY()

◆ retrieveIntersection()

void ipsdk::image::BaseImageTile2d::retrieveIntersection ( tile::ImageTileInfo2d imageTileInfo2d) const
protected

method allowing to retrieve tile/image intersection

Exceptions
ipsdk::image::IPSDKImageExceptionif isInit() == false

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