GDCM  2.2.0
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 
20 namespace gdcm
21 {
22 
30 {
31 public:
32  SurfaceWriter();
33 
34  virtual ~SurfaceWriter();
35 
36 // const Surface & GetSurface() const { return *SurfaceData; }
37 // Surface & GetSurface() { return *SurfaceData; }
38 // void SetSurface(Surface const & segment);
39 
41  bool Write(); // Execute()
42 
43  unsigned long GetNumberOfSurfaces();
44  void SetNumberOfSurfaces(const unsigned long nb);
45 
46 protected:
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

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo