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

Base class for color image 3d strip with splitting along Z axis. More...

#include <BaseImageZStripColor3d.h>

Inheritance diagram for ipsdk::image::BaseImageZStripColor3d:
ipsdk::image::BaseImageStrip ipsdk::image::BaseImageFragment ipsdk::BaseObjectWithSkeleton ipsdk::BaseIOData ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject ipsdk::image::InOutImageZStripColor3d ipsdk::image::InputImageZStripColor3d ipsdk::image::OutputImageZStripColor3d

Public Member Functions

eImageStripType getImageStripType () const
 retrieve image strip type
 
const HybridBuffergetBuffer (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx) const
 retrieve strip full buffer More...
 
Constructors and destructors
 BaseImageZStripColor3d ()
 
virtual ~BaseImageZStripColor3d ()=0
 
Strip structure informations
const eStripParsingDirectiongetStripParsingDirection () const
 access to used strip parsing direction More...
 
ipUInt64 getSizeX () const
 retrieve image size along x direction More...
 
ipUInt64 getSizeY () const
 retrieve image size along y direction More...
 
ipUInt64 getStripStartOffsetZ () const
 retrieve strip start offset for data along z direction More...
 
ipUInt64 getStripSizeZ () const
 retrieve strip data size along z direction More...
 
ipUInt64 getImageSizeZ () const
 retrieve full image size along z direction More...
 
const ColorGeometrygetColorGeometry () const
 retrieve color geometry (c) size and type More...
 
const eColorGeometryTypegetColorGeometryType () const
 retrieve color geometry (c) type More...
 
ipUInt64 getSizeC () const
 retrieve image size along c direction More...
 
bool isValidZ (ipUInt64 z) const
 check whether a z coordinate value is valid for object More...
 
const eImageBufferTypegetBufferType () const
 retrieve image buffer type More...
 
const ipUInt64 getFullStripSize () const
 retrieve image strip size (number of pixels) More...
 
const ipUInt64 getPlanStripSize () const
 retrieve xy plan image strip size (number of pixels) More...
 
const ipUInt64 getStripNbPlans () const
 retrieve number of xy plans associated to strip More...
 
Plan Indexes
ipUInt64 getTPlanIdx () const
 retrieve t plan index for plan in full image More...
 
ImageZStrip3dConstPtr getImageZStrip3dPtr (const ipUInt64 cPlanIdx) const
 retrieve image z strip 3d associated to a given plan index More...
 
ImageZStrip3dPtr getImageZStrip3dPtr (const ipUInt64 cPlanIdx)
 retrieve image z strip 3d associated to a given plan index More...
 
- Public Member Functions inherited from ipsdk::image::BaseImageStrip
eImageFragmentType getImageFragmentType () const
 retrieve image fragment type
 
const eStripAllocationTypegetStripAllocationType () const
 retrieve flag indicating used strip allocation type More...
 
virtual ipBool fromDisk () const
 returns true if the strip is extracted from a disk image
 
 BaseImageStrip ()
 
virtual ~BaseImageStrip ()=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 eImageStripType::domain g_imageStripType = eImageStripType::eIST_ZColor3d
 image strip type
 
- Static Public Attributes inherited from ipsdk::image::BaseImageStrip
static const eImageFragmentType::domain g_imageFragmentType = eImageFragmentType::eIFT_ImageStrip
 image strip type
 

Protected Member Functions

void initBase (const ipUInt64 tPlanIdx, const ColorGeometry &colorGeometry, const ipUInt64 stripStartOffsetZ, const ipUInt64 stripSizeZ, const ipUInt64 imageSizeZ, const eStripAllocationType &stripAllocationType, const eStripParsingDirection &stripParsingDirection, const PlanStorageColl2d &colorVolumeColl, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization More...
 
bool isBufferInitDerived () const
 check whether strip buffer has been initialized in derived class
 
BoolResult initBufferDerived ()
 method allowing to initialize strip buffer in derived class
 
void clearBufferDerived ()
 method allowing to clear strip buffer in derived class
 
eDataAccessMode retrieveAccessMode () const
 method allowing to retrieve data access mode associated to fragment
 
void clearDerived ()
 clear function defined in derived class
 
virtual void createSubStrip (const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 stripStartOffsetZ, const ipUInt64 stripSizeZ, const ipUInt64 imageSizeZ, const eStripAllocationType &stripAllocationType, const eStripParsingDirection &stripParsingDirection, const PlanStorageColl1d &planStorage, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader, ImageZStrip3dPtr &pImageZStrip3d) const =0
 method allowing to create a new image 2d sub strip in derived class More...
 
Strip read and write access
BoolResult readDataDerived () const
 read image strip data from image storage More...
 
BoolResult writeDataDerived ()
 write image strip data to image storage More...
 
const HybridBufferaccessBuffer (const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx) const
 access to strip full buffer More...
 
HybridBufferaccessBuffer (const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx)
 access to strip full buffer More...
 
- Protected Member Functions inherited from ipsdk::image::BaseImageStrip
void initBase (const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader, const eStripAllocationType &stripAllocationType)
 base class initialization method
 
- 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
 

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::image::BaseImageStrip
eStripAllocationType _stripAllocationType
 flag indicating used strip allocation type
 
- Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton
eSklSrzMode _sklSrzMode
 serialization flag for object More...
 

Detailed Description

Base class for color image 3d strip with splitting along Z axis.

Author
H. Delestre
Date
2016/02/10

Member Function Documentation

◆ getStripParsingDirection()

const eStripParsingDirection& ipsdk::image::BaseImageZStripColor3d::getStripParsingDirection ( ) const

access to used strip parsing direction

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

◆ getSizeX()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getSizeX ( ) const

retrieve image size along x direction

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

◆ getSizeY()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getSizeY ( ) const

retrieve image size along y direction

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

◆ getStripStartOffsetZ()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getStripStartOffsetZ ( ) const

retrieve strip start offset for data along z direction

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

◆ getStripSizeZ()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getStripSizeZ ( ) const

retrieve strip data size along z direction

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

◆ getImageSizeZ()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getImageSizeZ ( ) const

retrieve full image size along z direction

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

◆ getColorGeometry()

const ColorGeometry& ipsdk::image::BaseImageZStripColor3d::getColorGeometry ( ) const

retrieve color geometry (c) size and type

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

◆ getColorGeometryType()

const eColorGeometryType& ipsdk::image::BaseImageZStripColor3d::getColorGeometryType ( ) const

retrieve color geometry (c) type

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

◆ getSizeC()

ipUInt64 ipsdk::image::BaseImageZStripColor3d::getSizeC ( ) const

retrieve image size along c direction

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

◆ isValidZ()

bool ipsdk::image::BaseImageZStripColor3d::isValidZ ( ipUInt64  z) const

check whether a z coordinate value is valid for object

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

◆ getBufferType()

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

retrieve image buffer type

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

Implements ipsdk::image::BaseImageStrip.

◆ getFullStripSize()

const ipUInt64 ipsdk::image::BaseImageZStripColor3d::getFullStripSize ( ) const
virtual

retrieve image strip size (number of pixels)

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

Implements ipsdk::image::BaseImageStrip.

◆ getPlanStripSize()

const ipUInt64 ipsdk::image::BaseImageZStripColor3d::getPlanStripSize ( ) const
virtual

retrieve xy plan image strip size (number of pixels)

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

Implements ipsdk::image::BaseImageStrip.

◆ getStripNbPlans()

const ipUInt64 ipsdk::image::BaseImageZStripColor3d::getStripNbPlans ( ) const
virtual

retrieve number of xy plans associated to strip

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

Implements ipsdk::image::BaseImageStrip.

◆ getTPlanIdx()

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

retrieve t plan index for plan in full image

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

◆ getBuffer()

const HybridBuffer & ipsdk::image::BaseImageZStripColor3d::getBuffer ( const ipUInt64  zPlanIdx,
const ipUInt64  cPlanIdx 
) const
inline

retrieve strip full buffer

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif cPlanIdx >= getStripSizeC() or zPlanIdx >= getStripSizeZ()

◆ getImageZStrip3dPtr() [1/2]

ImageZStrip3dConstPtr ipsdk::image::BaseImageZStripColor3d::getImageZStrip3dPtr ( const ipUInt64  cPlanIdx) const

retrieve image z strip 3d associated to a given plan index

Exceptions
ipsdk::image::IPSDKImageExceptionif cPlanIdx > getSizeC()

◆ getImageZStrip3dPtr() [2/2]

ImageZStrip3dPtr ipsdk::image::BaseImageZStripColor3d::getImageZStrip3dPtr ( const ipUInt64  cPlanIdx)

retrieve image z strip 3d associated to a given plan index

Exceptions
ipsdk::image::IPSDKImageExceptionif cPlanIdx > getSizeC()

◆ initBase()

void ipsdk::image::BaseImageZStripColor3d::initBase ( const ipUInt64  tPlanIdx,
const ColorGeometry colorGeometry,
const ipUInt64  stripStartOffsetZ,
const ipUInt64  stripSizeZ,
const ipUInt64  imageSizeZ,
const eStripAllocationType stripAllocationType,
const eStripParsingDirection stripParsingDirection,
const PlanStorageColl2d colorVolumeColl,
const DataIdentifierConstPtr pImageIdentifier,
const DataItemMapConstPtr pImageHeader 
)
protected

base class initialization

Exceptions
ipsdk::image::IPSDKImageExceptionif colorVolumeColl.size() != colorGeometry.getSizeC()
ipsdk::image::IPSDKImageExceptionif stripStartOffsetZ + stripSizeZ > image size z
ipsdk::image::IPSDKImageExceptionif colorVolumeColl[i].size() != stripSizeZ for i=0 to colorGeometry.getSizeC()-1

◆ readDataDerived()

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

read image strip data from image storage

Returns
false in case of failure

Implements ipsdk::image::BaseImageFragment.

◆ writeDataDerived()

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

write image strip data to image storage

Returns
false in case of failure

Implements ipsdk::image::BaseImageFragment.

◆ accessBuffer() [1/2]

const HybridBuffer& ipsdk::image::BaseImageZStripColor3d::accessBuffer ( const ipUInt64  cPlanIdx,
const ipUInt64  zPlanIdx 
) const
protected

access to strip full buffer

Exceptions
ipsdk::image::IPSDKImageExceptionif cPlanIdx >= getStripSizeC()

◆ accessBuffer() [2/2]

HybridBuffer& ipsdk::image::BaseImageZStripColor3d::accessBuffer ( const ipUInt64  cPlanIdx,
const ipUInt64  zPlanIdx 
)
protected

access to strip full buffer

Exceptions
ipsdk::image::IPSDKImageExceptionif cPlanIdx >= getStripSizeC()

◆ createSubStrip()

virtual void ipsdk::image::BaseImageZStripColor3d::createSubStrip ( const ipUInt64  cPlanIdx,
const ipUInt64  tPlanIdx,
const ipUInt64  stripStartOffsetZ,
const ipUInt64  stripSizeZ,
const ipUInt64  imageSizeZ,
const eStripAllocationType stripAllocationType,
const eStripParsingDirection stripParsingDirection,
const PlanStorageColl1d planStorage,
const DataIdentifierConstPtr pImageIdentifier,
const DataItemMapConstPtr pImageHeader,
ImageZStrip3dPtr pImageZStrip3d 
) const
protectedpure virtual

method allowing to create a new image 2d sub strip in derived class

Returns
false in case of failure

Implemented in ipsdk::image::InOutImageZStripColor3d, ipsdk::image::OutputImageZStripColor3d, and ipsdk::image::InputImageZStripColor3d.


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