gdcmIconImageGenerator.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 GDCMICONIMAGEGENERATOR_H
#define GDCMICONIMAGEGENERATOR_H
#include "gdcmPixmap.h"
#include "gdcmIconImage.h"
namespace gdcm
{
class IconImageGeneratorInternals;
class GDCM_EXPORT IconImageGenerator
{
public:
IconImageGenerator();
~IconImageGenerator();
void SetPixmap(const Pixmap& p) { P = p; }
Pixmap &GetPixmap() { return *P; }
const Pixmap &GetPixmap() const { return *P; }
void SetOutputDimensions(const unsigned int dims[2]);
void SetPixelMinMax(double min, double max);
void AutoPixelMinMax(bool b);
void ConvertRGBToPaletteColor(bool b);
void SetOutsideValuePixel(double v);
bool Generate();
const IconImage& GetIconImage() const { return *I; }
protected:
private:
void BuildLUT( Bitmap & bitmap, unsigned int maxcolor );
SmartPointer<Pixmap> P;
SmartPointer<IconImage> I;
IconImageGeneratorInternals *Internals;
};
} // end namespace gdcm
#endif //GDCMICONIMAGEGENERATOR_H
gdcm::Bitmap
Bitmap class.
Definition gdcmBitmap.h:39
gdcm::IconImageGenerator::GetPixmap
const Pixmap & GetPixmap() const
Definition gdcmIconImageGenerator.h:50
gdcm::IconImageGenerator::GetPixmap
Pixmap & GetPixmap()
Definition gdcmIconImageGenerator.h:49
gdcm::IconImageGenerator::SetPixmap
void SetPixmap(const Pixmap &p)
Set/Get File.
Definition gdcmIconImageGenerator.h:48
gdcm::IconImageGenerator::IconImageGenerator
IconImageGenerator()
gdcm::IconImageGenerator::SetOutputDimensions
void SetOutputDimensions(const unsigned int dims[2])
Set Target dimension of output Icon.
gdcm::IconImageGenerator::Generate
bool Generate()
Generate Icon.
gdcm::IconImageGenerator::ConvertRGBToPaletteColor
void ConvertRGBToPaletteColor(bool b)
gdcm::IconImageGenerator::SetPixelMinMax
void SetPixelMinMax(double min, double max)
gdcm::IconImageGenerator::GetIconImage
const IconImage & GetIconImage() const
Retrieve generated Icon.
Definition gdcmIconImageGenerator.h:80
gdcm::IconImageGenerator::AutoPixelMinMax
void AutoPixelMinMax(bool b)
gdcm::IconImageGenerator::~IconImageGenerator
~IconImageGenerator()
gdcm::IconImageGenerator::SetOutsideValuePixel
void SetOutsideValuePixel(double v)
gdcm::Pixmap
Pixmap class.
Definition gdcmPixmap.h:33
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcmIconImage.h
gdcmPixmap.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::IconImage
Bitmap IconImage
Definition gdcmIconImage.h:91