![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for image plan data storage. More...
#include <BasePlanStorage.h>
Public Member Functions | |
| virtual ePlanStorageType | getPlanStorageType () const =0 |
| retrieve plan storage type | |
| bool | isInit () const |
| retrieve object initialisation flag | |
| virtual eImageAccessMode | getAccessMode () const =0 |
| retrieve image access mode More... | |
| bool | hasFullDataAccess () const |
| check whether object has a contiguous access to full plan data More... | |
| virtual bool | hasRowDataAccess (const ipUInt64 startOffsetY, const ipUInt64 sizeY=1) const |
| check whether object has a contiguous access to specific rows of data More... | |
| virtual bool | canBeRemotlyAccessed () const =0 |
| retrieve flag indicating whether data can be remotly accessed More... | |
| virtual bool | hasBinary8BitsStorage () const =0 |
| method allowing to check whether image underlying storage stores binary data with a 8 bit alignment More... | |
| BoolResult | resize (const ImagePlanGeometry &planGeometry) |
| resize plan storage More... | |
| virtual ipUInt64 | getFullBufferSize () const |
| retrieve full buffer size More... | |
| void | clear () |
| clear object data | |
| virtual ipBool | isDiskPlanStorage () const |
| returns true if the plan storage is used for a disk image | |
Constructors and destructors | |
| BasePlanStorage () | |
| virtual | ~BasePlanStorage ()=0 |
Image geometry | |
| const ImagePlanGeometry & | getPlanGeometry () const |
| retrieve geometry associated to storage More... | |
| ipUInt64 | getSizeX () const |
| retrieve geometry plan x size More... | |
| ipUInt64 | getSizeY () const |
| retrieve geometry plan y size More... | |
| ipUInt64 | getNbPixels () const |
| retrieve number of pixels inside geometry More... | |
| const eImageBufferType & | getBufferType () const |
| retrieve image data type More... | |
| virtual const void * | getDataPtr () const |
| retrieve data pointer More... | |
| virtual void * | getDataPtr () |
| retrieve data pointer More... | |
| virtual const void * | getRowDataPtr (const ipUInt64 offsetY) const |
| retrieve a row data pointer More... | |
| virtual void * | getRowDataPtr (const ipUInt64 offsetY) |
| retrieve a row data pointer More... | |
Data I/O access | |
| BoolResult | readRaw (const ipUInt64 startOffset, const ipUInt64 size, void *pData) const |
| method allowing to read data from image storage More... | |
| BoolResult | readArea (const ipUInt64 areaStartOffsetX, const ipUInt64 areaSizeX, const ipUInt64 areaStartOffsetY, const BufferPtrColl &dataColl) const |
| method allowing to read a rectangular area of data More... | |
| BoolResult | writeRaw (const ipUInt64 startOffset, const ipUInt64 size, const void *pData) |
| method allowing to write data to image storage More... | |
| BoolResult | writeArea (const ipUInt64 areaStartOffsetX, const ipUInt64 areaSizeX, const ipUInt64 areaStartOffsetY, const BufferConstPtrColl &dataColl) |
| method allowing to write a rectangular area of data More... | |
Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton | |
| const eSklSrzMode & | getSerializationMode () 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 BaseDynamicObject * | createNew () 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 BaseDynamicObject * | duplicate () 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 |
Protected Member Functions | |
| void | initBase (const ImagePlanGeometry &planGeometry) |
| base class initialization method | |
| virtual BoolResult | resizePlan (const ImagePlanGeometry &planGeometry)=0 |
| resize plan storage in derived class More... | |
| virtual BoolResult | readRawData (const ipUInt64 startOffset, const ipUInt64 size, void *pData) const =0 |
| method allowing to read data from image storage More... | |
| virtual BoolResult | readAreaData (const ipUInt64 areaStartOffsetX, const ipUInt64 areaSizeX, const ipUInt64 areaStartOffsetY, const BufferPtrColl &dataColl) const |
| method allowing to read a rectangular area of data More... | |
| virtual BoolResult | writeRawData (const ipUInt64 startOffset, const ipUInt64 size, const void *pData)=0 |
| method allowing to write data to image storage More... | |
| virtual BoolResult | writeAreaData (const ipUInt64 areaStartOffsetX, const ipUInt64 areaSizeX, const ipUInt64 areaStartOffsetY, const BufferConstPtrColl &dataColl) |
| method allowing to write a rectangular area of data More... | |
| virtual void | clearPlanData ()=0 |
| clear plan data in derived class | |
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 | SubImage |
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... | |
Base class for image plan data storage.
| const ImagePlanGeometry& ipsdk::image::BasePlanStorage::getPlanGeometry | ( | ) | const |
retrieve geometry associated to storage
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BasePlanStorage::getSizeX | ( | ) | const |
retrieve geometry plan x size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BasePlanStorage::getSizeY | ( | ) | const |
retrieve geometry plan y size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BasePlanStorage::getNbPixels | ( | ) | const |
retrieve number of pixels inside geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eImageBufferType& ipsdk::image::BasePlanStorage::getBufferType | ( | ) | const |
retrieve image data type
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
pure virtual |
retrieve image access mode
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::python::PythonAlignedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
|
virtual |
retrieve data pointer
| ipsdk::image::IPSDKImageException | if isInit() == false |
Reimplemented in ipsdk::image::UserPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
|
virtual |
retrieve data pointer
| ipsdk::image::IPSDKImageException | if isInit() == false |
Reimplemented in ipsdk::image::UserPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
| bool ipsdk::image::BasePlanStorage::hasFullDataAccess | ( | ) | const |
check whether object has a contiguous access to full plan data
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
virtual |
check whether object has a contiguous access to specific rows of data
| ipsdk::image::IPSDKImageException | if startOffsetY + sizeY > getSizeY() |
Reimplemented in ipsdk::image::DistributedPlanStorage, and ipsdk::image::ReInterpretedPlanStorage.
|
pure virtual |
retrieve flag indicating whether data can be remotly accessed
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::python::PythonAlignedPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
|
pure virtual |
method allowing to check whether image underlying storage stores binary data with a 8 bit alignment
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::python::PythonAlignedPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
|
virtual |
retrieve a row data pointer
| ipsdk::image::IPSDKImageException | if offsetY >= getSizeY() |
Reimplemented in ipsdk::image::DistributedPlanStorage.
|
virtual |
retrieve a row data pointer
| ipsdk::image::IPSDKImageException | if offsetY >= getSizeY() |
Reimplemented in ipsdk::image::DistributedPlanStorage.
| BoolResult ipsdk::image::BasePlanStorage::resize | ( | const ImagePlanGeometry & | planGeometry | ) |
resize plan storage
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
virtual |
retrieve full buffer size
| ipsdk::image::IPSDKImageException | if isInit() == false |
Reimplemented in ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::MemoryPlanStorage, and ipsdk::python::PythonPlanStorage.
| BoolResult ipsdk::image::BasePlanStorage::readRaw | ( | const ipUInt64 | startOffset, |
| const ipUInt64 | size, | ||
| void * | pData | ||
| ) | const |
method allowing to read data from image storage
| ipsdk::image::IPSDKImageException | if startOffset + size > getNbPixels() |
| BoolResult ipsdk::image::BasePlanStorage::readArea | ( | const ipUInt64 | areaStartOffsetX, |
| const ipUInt64 | areaSizeX, | ||
| const ipUInt64 | areaStartOffsetY, | ||
| const BufferPtrColl & | dataColl | ||
| ) | const |
method allowing to read a rectangular area of data
| ipsdk::image::IPSDKImageException | if areaStartOffsetY + dataColl.size() > getSizeY() |
| ipsdk::image::IPSDKImageException | if areaStartOffsetX + areaSizeX > getSizeX() |
| BoolResult ipsdk::image::BasePlanStorage::writeRaw | ( | const ipUInt64 | startOffset, |
| const ipUInt64 | size, | ||
| const void * | pData | ||
| ) |
method allowing to write data to image storage
| ipsdk::image::IPSDKImageException | if startOffset + size > getNbPixels() |
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
| BoolResult ipsdk::image::BasePlanStorage::writeArea | ( | const ipUInt64 | areaStartOffsetX, |
| const ipUInt64 | areaSizeX, | ||
| const ipUInt64 | areaStartOffsetY, | ||
| const BufferConstPtrColl & | dataColl | ||
| ) |
method allowing to write a rectangular area of data
| ipsdk::image::IPSDKImageException | if areaStartOffsetY + dataColl.size() > getSizeY() |
| ipsdk::image::IPSDKImageException | if areaStartOffsetX + areaSizeX > getSizeX() |
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
|
protectedpure virtual |
resize plan storage in derived class
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::image::MemoryPlanStorage, ipsdk::python::PythonAlignedPlanStorage, and ipsdk::python::PythonPlanStorage.
|
protectedpure virtual |
method allowing to read data from image storage
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::image::MemoryPlanStorage, ipsdk::python::PythonAlignedPlanStorage, and ipsdk::python::PythonPlanStorage.
|
protectedvirtual |
method allowing to read a rectangular area of data
Reimplemented in ipsdk::image::DistributedPlanStorage.
|
protectedpure virtual |
method allowing to write data to image storage
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
Implemented in ipsdk::image::DistributedPlanStorage, ipsdk::image::CudaPlanStorage, ipsdk::image::ReInterpretedPlanStorage, ipsdk::image::UserPlanStorage, ipsdk::image::DiskPlanStorage, ipsdk::image::MemoryPlanStorage, ipsdk::python::PythonAlignedPlanStorage, and ipsdk::python::PythonPlanStorage.
|
protectedvirtual |
method allowing to write a rectangular area of data
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
Reimplemented in ipsdk::image::DistributedPlanStorage.
1.8.14