GDCM: gdcmSurfaceWriter.h Source File

GDCM 3.2.5

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
29 class GDCM_EXPORT SurfaceWriter : public SegmentWriter
30{
31public:
32 SurfaceWriter();
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
48 bool PrepareWrite();
49
50 void ComputeNumberOfSurfaces();
51
52 bool PrepareWritePointMacro(SmartPointer< Surface > surface,
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
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