gdcmPythonFilter.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 GDCMPYTHONFILTER_H
#define GDCMPYTHONFILTER_H
#include <Python.h>
#include "gdcmDataElement.h"
#include "gdcmDicts.h"
#include "gdcmFile.h"
namespace gdcm
{
class GDCM_EXPORT PythonFilter
{
public:
PythonFilter();
~PythonFilter();
void UseDictAlways(bool ) {}
// Allow user to pass in there own dicts
void SetDicts(const Dicts &dicts);
// Convert to string the ByteValue contained in a DataElement
PyObject *ToPyObject(const Tag& t) const;
void SetFile(const File& f);
File &GetFile();
const File &GetFile() const;
private:
SmartPointer<File> F;
};
} // end namespace gdcm
#endif //GDCMPYTHONFILTER_H
gdcm::Dicts
Class to manipulate the sum of knowledge (all the dict user load).
Definition gdcmDicts.h:29
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::PythonFilter::PythonFilter
PythonFilter()
gdcm::PythonFilter::~PythonFilter
~PythonFilter()
gdcm::PythonFilter::GetFile
const File & GetFile() const
gdcm::PythonFilter::UseDictAlways
void UseDictAlways(bool)
Definition gdcmPythonFilter.h:37
gdcm::PythonFilter::ToPyObject
PyObject * ToPyObject(const Tag &t) const
gdcm::PythonFilter::SetDicts
void SetDicts(const Dicts &dicts)
gdcm::PythonFilter::SetFile
void SetFile(const File &f)
gdcm::PythonFilter::GetFile
File & GetFile()
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcmDataElement.h
gdcmDicts.h
gdcmFile.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21