GDCM  2.2.6
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
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
This class defines a segment writer. It writes attributes of group 0x0062.
Definition: gdcmSegmentWriter.h:29
unsigned long NumberOfSurfaces
Definition: gdcmSurfaceWriter.h:57
Class to manipulate Transfer Syntax.
Definition: gdcmTransferSyntax.h:39
This class defines a SURFACE IE writer. It writes surface mesh module attributes. ...
Definition: gdcmSurfaceWriter.h:29

Generated on Sat Dec 21 2013 05:56:17 for GDCM by doxygen 1.8.5
SourceForge.net Logo