GDCM 3.0.24
gdcmSurfaceWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMSURFACEWRITER_H
15#define GDCMSURFACEWRITER_H
16
17#include <gdcmSegmentWriter.h>
18#include <gdcmSurface.h>
19
20namespace gdcm
21{
22
30{
31public:
33
34 ~SurfaceWriter() override;
35
36// const Surface & GetSurface() const { return *SurfaceData; }
37// Surface & GetSurface() { return *SurfaceData; }
38// void SetSurface(Surface const & segment);
39
41 bool Write() override; // Execute()
42
43 unsigned long GetNumberOfSurfaces();
44 void SetNumberOfSurfaces(const unsigned long nb);
45
46protected:
47
49
51
53 DataSet & surfaceDS,
54 const TransferSyntax & ts);
55
56 //0066 0001 UL 1 Number of Surfaces
57 unsigned long NumberOfSurfaces;
58};
59
60}
61
62#endif // GDCMSURFACEWRITER_H
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
This class defines a segment writer.
Definition gdcmSegmentWriter.h:30
This class defines a SURFACE IE writer.
Definition gdcmSurfaceWriter.h:30
~SurfaceWriter() override
bool PrepareWritePointMacro(SmartPointer< Surface > surface, DataSet &surfaceDS, const TransferSyntax &ts)
void SetNumberOfSurfaces(const unsigned long nb)
bool Write() override
Write.
unsigned long GetNumberOfSurfaces()
unsigned long NumberOfSurfaces
Definition gdcmSurfaceWriter.h:57
void ComputeNumberOfSurfaces()
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21