gdcmCurve.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMCURVE_H
#define GDCMCURVE_H
#include "gdcmTypes.h"
#include "gdcmObject.h"
#include <vector>
namespace gdcm
{
class CurveInternal;
class ByteValue;
class DataSet;
class DataElement;
class GDCM_EXPORT Curve : public Object
{
public:
Curve();
~Curve() override;
void Print(std::ostream &) const override;
void GetAsPoints(float *array) const;
static unsigned int GetNumberOfCurves(DataSet const & ds);
// Update curve data from dataelmenet de:
void Update(const DataElement & de);
void SetGroup(unsigned short group);
unsigned short GetGroup() const;
void SetDimensions(unsigned short dimensions);
unsigned short GetDimensions() const;
void SetNumberOfPoints(unsigned short numberofpoints);
unsigned short GetNumberOfPoints() const;
void SetTypeOfData(const char *typeofdata);
const char *GetTypeOfData() const;
// See PS 3.3 - 2004 - C.10.2.1.1 Type of data
const char *GetTypeOfDataDescription() const;
void SetCurveDescription(const char *curvedescription);
void SetDataValueRepresentation(unsigned short datavaluerepresentation);
unsigned short GetDataValueRepresentation() const;
void SetCurveDataDescriptor(const uint16_t * values, size_t num);
std::vector<unsigned short> const &GetCurveDataDescriptor() const;
void SetCoordinateStartValue( unsigned short v );
void SetCoordinateStepValue( unsigned short v );
void SetCurve(const char *array, unsigned int length);
bool IsEmpty() const;
void Decode(std::istream &is, std::ostream &os);
Curve(Curve const &ov);
private:
double ComputeValueFromStartAndStep(unsigned int idx) const;
CurveInternal *Internal;
};
} // end namespace gdcm
#endif //GDCMCURVE_H
gdcm::ByteValue
Class to represent binary value (array of bytes).
Definition gdcmByteValue.h:35
gdcm::Curve::SetGroup
void SetGroup(unsigned short group)
gdcm::Curve::Curve
Curve()
gdcm::Curve::Curve
Curve(Curve const &ov)
gdcm::Curve::SetDimensions
void SetDimensions(unsigned short dimensions)
gdcm::Curve::GetCurveDataDescriptor
std::vector< unsigned short > const & GetCurveDataDescriptor() const
gdcm::Curve::SetTypeOfData
void SetTypeOfData(const char *typeofdata)
gdcm::Curve::GetDimensions
unsigned short GetDimensions() const
gdcm::Curve::GetGroup
unsigned short GetGroup() const
gdcm::Curve::SetCurveDescription
void SetCurveDescription(const char *curvedescription)
gdcm::Curve::GetNumberOfCurves
static unsigned int GetNumberOfCurves(DataSet const &ds)
gdcm::Curve::SetNumberOfPoints
void SetNumberOfPoints(unsigned short numberofpoints)
gdcm::Curve::GetNumberOfPoints
unsigned short GetNumberOfPoints() const
gdcm::Curve::SetDataValueRepresentation
void SetDataValueRepresentation(unsigned short datavaluerepresentation)
gdcm::Curve::Update
void Update(const DataElement &de)
gdcm::Curve::SetCoordinateStartValue
void SetCoordinateStartValue(unsigned short v)
gdcm::Curve::Print
void Print(std::ostream &) const override
gdcm::Curve::SetCoordinateStepValue
void SetCoordinateStepValue(unsigned short v)
gdcm::Curve::GetAsPoints
void GetAsPoints(float *array) const
gdcm::Curve::GetDataValueRepresentation
unsigned short GetDataValueRepresentation() const
gdcm::Curve::IsEmpty
bool IsEmpty() const
gdcm::Curve::GetTypeOfDataDescription
const char * GetTypeOfDataDescription() const
gdcm::Curve::Decode
void Decode(std::istream &is, std::ostream &os)
gdcm::Curve::SetCurveDataDescriptor
void SetCurveDataDescriptor(const uint16_t *values, size_t num)
gdcm::Curve::~Curve
~Curve() override
gdcm::Curve::SetCurve
void SetCurve(const char *array, unsigned int length)
gdcm::Curve::GetTypeOfData
const char * GetTypeOfData() const
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Object::Object
Object()
Definition gdcmObject.h:42
gdcmObject.h
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21