gdcmSurfaceWriter.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 GDCMSURFACEWRITER_H
#define GDCMSURFACEWRITER_H
#include <gdcmSegmentWriter.h>
#include <gdcmSurface.h>
namespace gdcm
{
class GDCM_EXPORT SurfaceWriter : public SegmentWriter
{
public:
SurfaceWriter();
~SurfaceWriter() override;
// const Surface & GetSurface() const { return *SurfaceData; }
// Surface & GetSurface() { return *SurfaceData; }
// void SetSurface(Surface const & segment);
bool Write() override; // Execute()
unsigned long GetNumberOfSurfaces();
void SetNumberOfSurfaces(const unsigned long nb);
protected:
bool PrepareWrite();
void ComputeNumberOfSurfaces();
bool PrepareWritePointMacro(SmartPointer< Surface > surface,
DataSet & surfaceDS,
const TransferSyntax & ts);
//0066 0001 UL 1 Number of Surfaces
unsigned long NumberOfSurfaces;
};
}
#endif // GDCMSURFACEWRITER_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::SegmentWriter::SegmentWriter
SegmentWriter()
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::SurfaceWriter::SurfaceWriter
SurfaceWriter()
gdcm::SurfaceWriter::~SurfaceWriter
~SurfaceWriter() override
gdcm::SurfaceWriter::PrepareWritePointMacro
bool PrepareWritePointMacro(SmartPointer< Surface > surface, DataSet &surfaceDS, const TransferSyntax &ts)
gdcm::SurfaceWriter::SetNumberOfSurfaces
void SetNumberOfSurfaces(const unsigned long nb)
gdcm::SurfaceWriter::Write
bool Write() override
Write.
gdcm::SurfaceWriter::GetNumberOfSurfaces
unsigned long GetNumberOfSurfaces()
gdcm::SurfaceWriter::NumberOfSurfaces
unsigned long NumberOfSurfaces
Definition gdcmSurfaceWriter.h:57
gdcm::SurfaceWriter::PrepareWrite
bool PrepareWrite()
gdcm::SurfaceWriter::ComputeNumberOfSurfaces
void ComputeNumberOfSurfaces()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmSegmentWriter.h
gdcmSurface.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21