# gdcmCurve.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004   Module:  $URL$
    00005
    00006   Copyright (c) 2006-2009 Mathieu Malaterre
    00007   All rights reserved.
    00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00009
    00010      This software is distributed WITHOUT ANY WARRANTY; without even
    00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00012      PURPOSE.  See the above copyright notice for more information.
    00013
    00014 =========================================================================*/
    00015 #ifndef __gdcmCurve_h
    00016 #define __gdcmCurve_h
    00017
    00018 #include "gdcmTypes.h"
    00019 #include "gdcmObject.h"
    00020
    00021 namespace gdcm
    00022 {
    00023
    00024 class CurveInternal;
    00025 class ByteValue;
    00026 class DataSet;
    00027 class DataElement;
    00038 class GDCM_EXPORT Curve : public Object
    00039 {
    00040 public:
    00041   Curve();
    00042   ~Curve();
    00043   void Print(std::ostream &) const;
    00044
    00045   void GetAsPoints(float *array) const;
    00046
    00047
    00048   static unsigned int GetNumberOfCurves(DataSet const & ds);
    00049
    00050   // Update curve data from dataelmenet de:
    00051   void Update(const DataElement & de);
    00052
    00053   void SetGroup(unsigned short group);
    00054   unsigned short GetGroup() const;
    00055   void SetDimensions(unsigned short dimensions);
    00056   unsigned short GetDimensions() const;
    00057   void SetNumberOfPoints(unsigned short numberofpoints);
    00058   unsigned short GetNumberOfPoints() const;
    00059   void SetTypeOfData(const char *typeofdata);
    00060   const char *GetTypeOfData() const;
    00061   // See PS 3.3 - 2004 - C.10.2.1.1 Type of data
    00062   const char *GetTypeOfDataDescription() const;
    00063   void SetCurveDescription(const char *curvedescription);
    00064   void SetDataValueRepresentation(unsigned short datavaluerepresentation);
    00065   unsigned short GetDataValueRepresentation() const;
    00066   void SetCurve(const char *array, unsigned int length);
    00067
    00068   bool IsEmpty() const;
    00069
    00070   void Decode(std::istream &is, std::ostream &os);
    00071
    00072   Curve(Curve const &ov);
    00073 private:
    00074   CurveInternal *Internal;
    00075 };
    00076
    00077 } // end namespace gdcm
    00078
    00079 #endif //__gdcmCurve_h