GDCM  2.2.0
gdcmCurve.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 GDCMCURVE_H
15 #define GDCMCURVE_H
16 
17 #include "gdcmTypes.h"
18 #include "gdcmObject.h"
19 
20 namespace gdcm
21 {
22 
23 class CurveInternal;
24 class ByteValue;
25 class DataSet;
26 class DataElement;
37 class GDCM_EXPORT Curve : public Object
38 {
39 public:
40  Curve();
41  ~Curve();
42  void Print(std::ostream &) const;
43 
44  void GetAsPoints(float *array) const;
45 
46 
47  static unsigned int GetNumberOfCurves(DataSet const & ds);
48 
49  // Update curve data from dataelmenet de:
50  void Update(const DataElement & de);
51 
52  void SetGroup(unsigned short group);
53  unsigned short GetGroup() const;
54  void SetDimensions(unsigned short dimensions);
55  unsigned short GetDimensions() const;
56  void SetNumberOfPoints(unsigned short numberofpoints);
57  unsigned short GetNumberOfPoints() const;
58  void SetTypeOfData(const char *typeofdata);
59  const char *GetTypeOfData() const;
60  // See PS 3.3 - 2004 - C.10.2.1.1 Type of data
61  const char *GetTypeOfDataDescription() const;
62  void SetCurveDescription(const char *curvedescription);
63  void SetDataValueRepresentation(unsigned short datavaluerepresentation);
64  unsigned short GetDataValueRepresentation() const;
65  void SetCurveDataDescriptor(const uint16_t * values, size_t num);
66  void SetCoordinateStartValue( unsigned short v );
67  void SetCoordinateStepValue( unsigned short v );
68 
69  void SetCurve(const char *array, unsigned int length);
70 
71  bool IsEmpty() const;
72 
73  void Decode(std::istream &is, std::ostream &os);
74 
75  Curve(Curve const &ov);
76 private:
77  double ComputeValueFromStartAndStep(unsigned int idx) const;
78  CurveInternal *Internal;
79 };
80 
81 } // end namespace gdcm
82 
83 #endif //GDCMCURVE_H

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