gdcmOverlay.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 GDCMOVERLAY_H
#define GDCMOVERLAY_H
#include "gdcmTypes.h"
#include "gdcmObject.h"
namespace gdcm
{
class OverlayInternal;
class ByteValue;
class DataSet;
class DataElement;
class GDCM_EXPORT Overlay : public Object
{
public:
Overlay();
~Overlay() override;
void Print(std::ostream &) const override;
void Update(const DataElement & de);
void SetGroup(unsigned short group);
unsigned short GetGroup() const;
void SetRows(unsigned short rows);
unsigned short GetRows() const;
void SetColumns(unsigned short columns);
unsigned short GetColumns() const;
void SetNumberOfFrames(unsigned int numberofframes);
void SetDescription(const char* description);
const char *GetDescription() const;
typedef enum {
Invalid = 0,
Graphics = 1,
ROI = 2
} OverlayType;
void SetType(const char* type);
const char *GetType() const;
OverlayType GetTypeAsEnum() const;
static const char *GetOverlayTypeAsString(OverlayType ot);
static OverlayType GetOverlayTypeFromString(const char *);
void SetOrigin(const signed short origin[2]);
const signed short * GetOrigin() const;
void SetFrameOrigin(unsigned short frameorigin);
void SetBitsAllocated(unsigned short bitsallocated);
unsigned short GetBitsAllocated() const;
void SetBitPosition(unsigned short bitposition);
unsigned short GetBitPosition() const;
void SetOverlay(const char *array, size_t length);
bool GrabOverlayFromPixelData(DataSet const &ds);
const ByteValue &GetOverlayData() const;
bool IsEmpty() const;
bool IsZero() const;
bool IsInPixelData() const;
void IsInPixelData(bool b);
void Decompress(std::ostream &os) const;
size_t GetUnpackBufferLength() const;
bool GetUnpackBuffer(char *buffer, size_t len) const;
Overlay(Overlay const &ov);
Overlay &operator=(Overlay const &ov);
private:
OverlayInternal *Internal;
};
} // end namespace gdcm
#endif //GDCMOVERLAY_H
gdcm::ByteValue
Class to represent binary value (array of bytes).
Definition gdcmByteValue.h:35
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Object::Object
Object()
Definition gdcmObject.h:42
gdcm::Overlay::IsZero
bool IsZero() const
return true if all bits are set to 0
gdcm::Overlay::GrabOverlayFromPixelData
bool GrabOverlayFromPixelData(DataSet const &ds)
gdcm::Overlay::GetBitsAllocated
unsigned short GetBitsAllocated() const
return bits allocated
gdcm::Overlay::IsInPixelData
bool IsInPixelData() const
return if the Overlay is stored in the pixel data or not
gdcm::Overlay::GetDescription
const char * GetDescription() const
get description
gdcm::Overlay::GetBitPosition
unsigned short GetBitPosition() const
return bit position
gdcm::Overlay::Overlay
Overlay()
gdcm::Overlay::SetBitPosition
void SetBitPosition(unsigned short bitposition)
set bit position
gdcm::Overlay::GetType
const char * GetType() const
get type
gdcm::Overlay::GetTypeAsEnum
OverlayType GetTypeAsEnum() const
gdcm::Overlay::SetNumberOfFrames
void SetNumberOfFrames(unsigned int numberofframes)
set number of frames
gdcm::Overlay::SetFrameOrigin
void SetFrameOrigin(unsigned short frameorigin)
set frame origin
gdcm::Overlay::GetUnpackBuffer
bool GetUnpackBuffer(char *buffer, size_t len) const
gdcm::Overlay::SetOverlay
void SetOverlay(const char *array, size_t length)
set overlay from byte array + length
gdcm::Overlay::IsInPixelData
void IsInPixelData(bool b)
Set whether or no the OverlayData is in the Pixel Data:
gdcm::Overlay::GetColumns
unsigned short GetColumns() const
get columns
gdcm::Overlay::IsEmpty
bool IsEmpty() const
Return whether or not the Overlay is empty:
gdcm::Overlay::~Overlay
~Overlay() override
gdcm::Overlay::SetColumns
void SetColumns(unsigned short columns)
set columns
gdcm::Overlay::Overlay
Overlay(Overlay const &ov)
gdcm::Overlay::Print
void Print(std::ostream &) const override
Print.
gdcm::Overlay::SetGroup
void SetGroup(unsigned short group)
Set Group number.
gdcm::Overlay::GetGroup
unsigned short GetGroup() const
Get Group number.
gdcm::Overlay::GetOverlayData
const ByteValue & GetOverlayData() const
gdcm::Overlay::SetOrigin
void SetOrigin(const signed short origin[2])
set origin
gdcm::Overlay::OverlayType
OverlayType
Definition gdcmOverlay.h:67
gdcm::Overlay::Invalid
@ Invalid
Definition gdcmOverlay.h:68
gdcm::Overlay::Graphics
@ Graphics
Definition gdcmOverlay.h:69
gdcm::Overlay::ROI
@ ROI
Definition gdcmOverlay.h:70
gdcm::Overlay::GetOrigin
const signed short * GetOrigin() const
get origin
gdcm::Overlay::SetType
void SetType(const char *type)
set type
gdcm::Overlay::operator=
Overlay & operator=(Overlay const &ov)
gdcm::Overlay::GetUnpackBufferLength
size_t GetUnpackBufferLength() const
gdcm::Overlay::SetRows
void SetRows(unsigned short rows)
set rows
gdcm::Overlay::Decompress
void Decompress(std::ostream &os) const
Decode the internal OverlayData (packed bits) into unpacked representation.
gdcm::Overlay::GetRows
unsigned short GetRows() const
get rows
gdcm::Overlay::Update
void Update(const DataElement &de)
Update overlay from data element de:
gdcm::Overlay::GetOverlayTypeAsString
static const char * GetOverlayTypeAsString(OverlayType ot)
gdcm::Overlay::SetDescription
void SetDescription(const char *description)
set description
gdcm::Overlay::SetBitsAllocated
void SetBitsAllocated(unsigned short bitsallocated)
set bits allocated
gdcm::Overlay::GetOverlayTypeFromString
static OverlayType GetOverlayTypeFromString(const char *)
gdcmObject.h
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21