IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
ipsdk::image::OutputImageZStrip3d Class Reference

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

#include <OutputImageZStrip3d.h>

Inheritance diagram for ipsdk::image::OutputImageZStrip3d:
ipsdk::image::BaseImageZStrip3d ipsdk::image::BaseImageStrip ipsdk::image::BaseImageFragment ipsdk::BaseObjectWithSkeleton ipsdk::BaseIOData ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject

Public Types

typedef BaseImage ImageType
 
typedef PlanStorageColl1d InputStorageType
 

Public Member Functions

HybridBuffergetBuffer (const ipUInt64 zPlanIdx)
 retrieve strip full buffer More...
 
Constructors and destructors
 OutputImageZStrip3d ()
 
 ~OutputImageZStrip3d ()
 
Strip read and write access
BoolResult writeToImage ()
 write image strip data to image storage More...
 
- Public Member Functions inherited from ipsdk::image::BaseImageZStrip3d
eImageStripType getImageStripType () const
 retrieve image strip type
 
const HybridBuffergetBuffer (const ipUInt64 zPlanIdx) const
 retrieve strip full buffer More...
 
virtual ipBool fromDisk () const
 returns true if the strip is extracted from a disk image
 
 BaseImageZStrip3d ()
 
virtual ~BaseImageZStrip3d ()=0
 
const eStripParsingDirectiongetStripParsingDirection () const
 access to strip parsing direction associated to attribute 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...
 
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 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...
 
ipUInt64 getCPlanIdx () const
 retrieve c plan index for plan in full image More...
 
ipUInt64 getTPlanIdx () const
 retrieve t plan index for plan in full image More...
 
ImageYStrip2dConstPtr getImageYStrip2dPtr (const ipUInt64 zPlanIdx) const
 retrieve image y strip 2d associated to a given plan index More...
 
ImageYStrip2dPtr getImageYStrip2dPtr (const ipUInt64 zPlanIdx)
 retrieve image y strip 2d 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...
 
 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
 

Protected Member Functions

void init (const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 stripStartOffsetZ, const ipUInt64 stripSizeZ, const ipUInt64 imageSizeZ, const eStripAllocationType &stripAllocationType, const eStripParsingDirection &stripParsingDirection, const PlanStorageColl1d &volumeColl, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 initialization of object More...
 
void createSubStrip (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const eStripAllocationType &stripAllocationType, const eStripParsingDirection &stripParsingDirection, const PlanStoragePtr &pPlanStorage, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader, ImageYStrip2dPtr &pImageYStrip2d) const
 method allowing to create a new image 2d sub strip in derived class
 
- Protected Member Functions inherited from ipsdk::image::BaseImageZStrip3d
void initBase (const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 stripStartOffsetZ, const ipUInt64 stripSizeZ, const ipUInt64 imageSizeZ, const eStripAllocationType &stripAllocationType, const eStripParsingDirection &stripParsingDirection, const PlanStorageColl1d &volumeColl, 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
 
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 zPlanIdx) const
 access to strip full buffer More...
 
HybridBufferaccessBuffer (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
 

Friends

struct ImageStripExtractor
 

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
 
- Static Public Attributes inherited from ipsdk::image::BaseImageZStrip3d
static const eImageStripType::domain g_imageStripType = eImageStripType::eIST_Z3d
 image strip type
 
- Static Public Attributes inherited from ipsdk::image::BaseImageStrip
static const eImageFragmentType::domain g_imageFragmentType = eImageFragmentType::eIFT_ImageStrip
 image strip type
 
- 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

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

Author
E.Noirfalise
Date
2015/01/09

Member Function Documentation

◆ writeToImage()

BoolResult ipsdk::image::OutputImageZStrip3d::writeToImage ( )

write image strip data to image storage

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif hasLocalDataAccess() == false
ipsdk::image::IPSDKImageExceptionif getAccessMode() == eImageAccessMode::eIAM_Read
Returns
false in case of failure

◆ getBuffer()

HybridBuffer & ipsdk::image::OutputImageZStrip3d::getBuffer ( const ipUInt64  zPlanIdx)
inline

retrieve strip full buffer

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

◆ init()

void ipsdk::image::OutputImageZStrip3d::init ( const ipUInt64  cPlanIdx,
const ipUInt64  tPlanIdx,
const ipUInt64  stripStartOffsetZ,
const ipUInt64  stripSizeZ,
const ipUInt64  imageSizeZ,
const eStripAllocationType stripAllocationType,
const eStripParsingDirection stripParsingDirection,
const PlanStorageColl1d volumeColl,
const DataIdentifierConstPtr pImageIdentifier,
const DataItemMapConstPtr pImageHeader 
)
protected

initialization of object

Exceptions
ipsdk::image::IPSDKImageExceptionif plan storages have no write access
ipsdk::image::IPSDKImageExceptionif volumeColl.size() != stripSizeZ
ipsdk::image::IPSDKImageExceptionif stripStartOffsetZ + stripSizeZ > imageSizeZ

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