CImageStack
-
class Lib3MF::CImageStack : public CImage3D
-
Lib3MF_uint32 GetRowCount()
Retrieves the number of rows in each image of this image3d
- Returns:
number of rows
-
void SetRowCount(const Lib3MF_uint32 nRowCount)
Sets the number of rows in each image of this image3d
- Parameters:
nRowCount – number of rows
-
Lib3MF_uint32 GetColumnCount()
Retrieves the number of columns in each image of this image3d
- Returns:
number of columns
-
void SetColumnCount(const Lib3MF_uint32 nColumnCount)
Sets the number of columns in each image of this image3d
- Parameters:
nColumnCount – number of columns
-
Lib3MF_uint32 GetSheetCount()
Retrieves the number of images in the stack.
- Returns:
number of images
-
PAttachment GetSheet(const Lib3MF_uint32 nIndex)
Retrieves a sheet of the stack. Raises an error if sheet is not set.
- Parameters:
nIndex – index of the image (0-based)
- Returns:
attachment containing the image
-
void SetSheet(const Lib3MF_uint32 nIndex, classParam<CAttachment> pSheet)
Sets a sheet to an existing attachment.
- Parameters:
nIndex – index of the image (0-based)
pSheet – attachment containing the image
-
PAttachment CreateEmptySheet(const Lib3MF_uint32 nIndex, const std::string &sPath)
Creates a new sheet attachment with empty data.
- Parameters:
nIndex – index of the image (0-based)
sPath – path of part in the package
- Returns:
attachment containing the image
-
PAttachment CreateSheetFromBuffer(const Lib3MF_uint32 nIndex, const std::string &sPath, const CInputVector<Lib3MF_uint8> &DataBuffer)
Creates a new sheet attachment from a memory buffer.
- Parameters:
nIndex – index of the image (0-based)
sPath – path of part in the package
DataBuffer – binary image data
- Returns:
attachment containing the image
-
PAttachment CreateSheetFromFile(const Lib3MF_uint32 nIndex, const std::string &sPath, const std::string &sFileName)
Creates a new sheet attachment from a file on disk.
- Parameters:
nIndex – index of the image (0-based)
sPath – path of part in the package
sFileName – file name to read from
- Returns:
attachment containing the image
-
Lib3MF_uint32 GetRowCount()
-
typedef std::shared_ptr<CImageStack> Lib3MF::PImageStack
Shared pointer to CImageStack to easily allow reference counting.