33#ifndef __mlMLToROIContourSequence_H
34#define __mlMLToROIContourSequence_H
44#include <boost/function.hpp>
50typedef std::map<std::string, std::string>
TStrStrMap;
51typedef std::pair<std::string, std::string>
TStrStrPair;
57class DcmDRTROIContourSequenceInterface;
58class DcmDRTContourSequenceInterface;
59class DcmDRTContourImageSequenceInterface;
99 std::string getContourGeometricType(
const CSO &cso);
100 std::string getContourData(
const CSO &cso,
size_t& numPoints);
101 std::string getROIDisplayColor(
const CSOGroup &csoGroup);
103 bool isCollinear(
const CSO& cso)
const;
109 bool _treatCollinearAsPlanar;
110 ImageReferenceMode _imageReferenceMode;
Class to provide access to DRTContourImageSequence.
Class to provide access to DRTContourSequence.
Class to provide access to DRTROIContourSequence.
DCMTree::TreePtr convert(PagedImage *image, CSOList *csoList, int precision)
ImageReferenceMode imageReferenceMode() const
MLToROIContourSequence(boost::function< void(float)> *setProgress)
void setTreatCollinearAsPlanar(bool collinearIsPlanar)
@ RequireExactlyOneSlice
always reference one image slice, print an error if the CSO does not lie in exactly one existing slic...
@ ReferenceImageIfOneSlice
reference one image slice if the CSO lies in one slice
@ DoNotReferenceImage
never reference image
void setImageReferenceMode(ImageReferenceMode mode)
std::map< std::string, std::string > TStrStrMap
std::pair< std::string, std::string > TStrStrPair
Class for setting progress.
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.