OpenCMISS-Zinc C++ API Documentation
|
An image-specific stream information object. More...
#include <streamimage.hpp>
Public Types | |
enum | Attribute { ATTRIBUTE_RAW_WIDTH_PIXELS = CMZN_STREAMINFORMATION_IMAGE_ATTRIBUTE_RAW_WIDTH_PIXELS, ATTRIBUTE_RAW_HEIGHT_PIXELS = CMZN_STREAMINFORMATION_IMAGE_ATTRIBUTE_RAW_HEIGHT_PIXELS, ATTRIBUTE_BITS_PER_COMPONENT = CMZN_STREAMINFORMATION_IMAGE_ATTRIBUTE_BITS_PER_COMPONENT, ATTRIBUTE_COMPRESSION_QUALITY = CMZN_STREAMINFORMATION_IMAGE_ATTRIBUTE_COMPRESSION_QUALITY } |
enum | FileFormat { FILE_FORMAT_INVALID = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_INVALID, FILE_FORMAT_BMP = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_BMP, FILE_FORMAT_DICOM = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_DICOM, FILE_FORMAT_JPG = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_JPG, FILE_FORMAT_GIF = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_GIF, FILE_FORMAT_PNG = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_PNG, FILE_FORMAT_SGI = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_SGI, FILE_FORMAT_TIFF = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_TIFF, FILE_FORMAT_ANALYZE = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_ANALYZE, FILE_FORMAT_ANALYZE_OBJECT_MAP = CMZN_STREAMINFORMATION_IMAGE_FILE_FORMAT_ANALYZE_OBJECT_MAP } |
enum | PixelFormat { PIXEL_FORMAT_INVALID = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_INVALID, PIXEL_FORMAT_LUMINANCE = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_LUMINANCE, PIXEL_FORMAT_LUMINANCE_ALPHA = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_LUMINANCE_ALPHA, PIXEL_FORMAT_RGB = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_RGB, PIXEL_FORMAT_RGBA = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_RGBA, PIXEL_FORMAT_ABGR = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_ABGR, PIXEL_FORMAT_BGR = CMZN_STREAMINFORMATION_IMAGE_PIXEL_FORMAT_BGR } |
Public Types inherited from OpenCMISS::Zinc::Streaminformation | |
enum | DataCompressionType { DATA_COMPRESSION_TYPE_INVALID = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_INVALID, DATA_COMPRESSION_TYPE_DEFAULT = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_DEFAULT, DATA_COMPRESSION_TYPE_NONE = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_NONE, DATA_COMPRESSION_TYPE_GZIP = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_GZIP, DATA_COMPRESSION_TYPE_BZ2 = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_BZIP2 } |
Public Member Functions | |
StreaminformationImage (cmzn_streaminformation_image_id streaminformation_image_id) | |
bool | isValid () const |
cmzn_streaminformation_image_id | getDerivedId () const |
int | setAttributeInteger (Attribute attribute, int value) |
int | setAttributeReal (Attribute attribute, double value) |
int | setFileFormat (FileFormat imageFileFormat) |
int | setPixelFormat (PixelFormat imagePixelFormat) |
Public Member Functions inherited from OpenCMISS::Zinc::Streaminformation | |
Streaminformation (cmzn_streaminformation_id in_streaminformation_id) | |
Streaminformation (const Streaminformation &streamInformation) | |
Streaminformation & | operator= (const Streaminformation &streamInformation) |
bool | isValid () const |
cmzn_streaminformation_id | getId () const |
StreamresourceFile | createStreamresourceFile (const char *file_name) |
StreamresourceMemory | createStreamresourceMemory () |
StreamresourceMemory | createStreamresourceMemoryBuffer (const void *buffer, unsigned int buffer_length) |
StreamresourceMemory | createStreamresourceMemoryBufferCopy (const void *buffer, unsigned int buffer_length) |
enum DataCompressionType | getResourceDataCompressionType (const Streamresource &resource) |
int | setResourceDataCompressionType (const Streamresource &resource, DataCompressionType dataCompressionType) |
enum DataCompressionType | getDataCompressionType () |
int | setDataCompressionType (DataCompressionType dataCompressionType) |
StreaminformationImage | castImage () |
StreaminformationRegion | castRegion () |
StreaminformationScene | castScene () |
Additional Inherited Members | |
Protected Attributes inherited from OpenCMISS::Zinc::Streaminformation | |
cmzn_streaminformation_id | id |
An image-specific stream information object.
An image-specific stream information object, used to specify one or more image files/resources for an image field to read from or write to, with any attributes specified for them such as format, size etc.
Enumeration of attributes that can be set by generic stream information image methods.
Describes the format for image storage.
Optional information used to describe the binary data supplied to the images.
|
inline |
Return the C handle of the derived StreaminformationImage object.
|
inline |
Check if this is a valid StreaminformationImage object.
|
inline |
Set an integer or Boolean attribute of the streaminformation_image.
attribute | The identifier of the integer attribute to set. |
value | The new value for the attribute. For Boolean values use 1 for true. |
|
inline |
Set an double attribute of the streaminformation_image.
attribute | The identifier of the double attribute to set. |
value | The new value for the attribute. |
|
inline |
Specifies the format for binary data to be read/written using this streaminformation.
imageFileFormat | The image file format. |
|
inline |
Specifies the pixel format for binary data of the images to be read/written using this streaminformation.
imagePixelFormat | The pixel_format of the formatted data. |