gdcmPixmap.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMPIXMAP_H
#define GDCMPIXMAP_H
#include "gdcmBitmap.h"
#include "gdcmCurve.h"
#include "gdcmIconImage.h"
#include "gdcmOverlay.h"
namespace gdcm
{
class GDCM_EXPORT Pixmap : public Bitmap
{
public:
Pixmap();
~Pixmap() override;
void Print(std::ostream &) const override;
bool AreOverlaysInPixelData() const override;
bool UnusedBitsPresentInPixelData() const override;
Curve& GetCurve(size_t i = 0) {
assert( i < Curves.size() );
return Curves[i];
}
const Curve& GetCurve(size_t i = 0) const {
assert( i < Curves.size() );
return Curves[i];
}
size_t GetNumberOfCurves() const { return Curves.size(); }
void SetNumberOfCurves(size_t n) { Curves.resize(n); }
Overlay& GetOverlay(size_t i = 0) {
assert( i < Overlays.size() );
return Overlays[i];
}
const Overlay& GetOverlay(size_t i = 0) const {
assert( i < Overlays.size() );
return Overlays[i];
}
size_t GetNumberOfOverlays() const { return Overlays.size(); }
void SetNumberOfOverlays(size_t n) { Overlays.resize(n); }
void RemoveOverlay(size_t i) {
assert( i < Overlays.size() );
Overlays.erase( Overlays.begin() + i );
}
const IconImage &GetIconImage() const { return *Icon; }
IconImage &GetIconImage() { return *Icon; }
void SetIconImage(IconImage const &ii) { Icon = ii; }
//private:
protected:
std::vector<Overlay> Overlays;
std::vector<Curve> Curves;
SmartPointer<IconImage> Icon;
};
} // end namespace gdcm
#endif //GDCMPIXMAP_H
gdcm::Bitmap::Bitmap
Bitmap()
gdcm::Curve
Curve class to handle element 50xx,3000 Curve Data.
Definition gdcmCurve.h:41
gdcm::Overlay
Overlay class.
Definition gdcmOverlay.h:39
gdcm::Pixmap::Pixmap
Pixmap()
gdcm::Pixmap::GetOverlay
const Overlay & GetOverlay(size_t i=0) const
Definition gdcmPixmap.h:61
gdcm::Pixmap::SetNumberOfCurves
void SetNumberOfCurves(size_t n)
Definition gdcmPixmap.h:54
gdcm::Pixmap::~Pixmap
~Pixmap() override
gdcm::Pixmap::UnusedBitsPresentInPixelData
bool UnusedBitsPresentInPixelData() const override
returns if there are unused bits in the pixel data
gdcm::Pixmap::SetNumberOfOverlays
void SetNumberOfOverlays(size_t n)
Definition gdcmPixmap.h:66
gdcm::Pixmap::GetIconImage
IconImage & GetIconImage()
Definition gdcmPixmap.h:74
gdcm::Pixmap::Overlays
std::vector< Overlay > Overlays
Definition gdcmPixmap.h:79
gdcm::Pixmap::Print
void Print(std::ostream &) const override
gdcm::Pixmap::GetCurve
const Curve & GetCurve(size_t i=0) const
Definition gdcmPixmap.h:49
gdcm::Pixmap::GetOverlay
Overlay & GetOverlay(size_t i=0)
Overlay: group 60xx.
Definition gdcmPixmap.h:57
gdcm::Pixmap::RemoveOverlay
void RemoveOverlay(size_t i)
Definition gdcmPixmap.h:67
gdcm::Pixmap::GetIconImage
const IconImage & GetIconImage() const
Set/Get Icon Image.
Definition gdcmPixmap.h:73
gdcm::Pixmap::Icon
SmartPointer< IconImage > Icon
Definition gdcmPixmap.h:81
gdcm::Pixmap::SetIconImage
void SetIconImage(IconImage const &ii)
Definition gdcmPixmap.h:75
gdcm::Pixmap::GetNumberOfOverlays
size_t GetNumberOfOverlays() const
Definition gdcmPixmap.h:65
gdcm::Pixmap::GetNumberOfCurves
size_t GetNumberOfCurves() const
Definition gdcmPixmap.h:53
gdcm::Pixmap::AreOverlaysInPixelData
bool AreOverlaysInPixelData() const override
returns if Overlays are stored in the unused bit of the pixel data:
gdcm::Pixmap::Curves
std::vector< Curve > Curves
Definition gdcmPixmap.h:80
gdcm::Pixmap::GetCurve
Curve & GetCurve(size_t i=0)
Curve: group 50xx.
Definition gdcmPixmap.h:45
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcmBitmap.h
gdcmCurve.h
gdcmIconImage.h
gdcmOverlay.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::IconImage
Bitmap IconImage
Definition gdcmIconImage.h:91