Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit c5f1d288 authored by saubatn's avatar saubatn
Browse files

UPDATED Doxygen Documentation improved.

UPDATED Allow working on this component from another extension, such as action-dicom in incubator/imaging.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2000 ec899d31-69d1-42ba-9299-647d76f65fb3
parent be025da6
......@@ -3,5 +3,6 @@ camitk_extension( COMPONENT_EXTENSION
CEP_NAME CEP_IMAGING
DESCRIPTION "This allows one to read a single DICOM image file (.dcm) using the library GDCM 2.2.x"
TEST_APPLICATION ${APPLICATION_TEST_COMPONENT}
INSTALL_ALL_HEADERS
)
......@@ -47,9 +47,11 @@ using namespace camitk;
// --------------- Constructor -------------------
DicomComponent::DicomComponent(DicomSerie* dicomSerie) throw(AbortException) : ImageComponent("") {
std::vector<std::string> stdFileNames = dicomSerie->getStdFileNames();
// associated the component's dicom serie
serie = dicomSerie;
std::vector<std::string> stdFileNames = dicomSerie->getStdFileNames();
// scan files for serie description
gdcm::Scanner scanner;
gdcm::Tag serieDescriptionTag = gdcm::Tag(0x0008, 0x103e);
......@@ -135,12 +137,12 @@ DicomComponent::~DicomComponent() {
void DicomComponent::updateLUT() {
// Update LUT
// Initialize our lut with vtkGDCMImageReader information found, as our LUT needs repair ...
std::cout << "DicomSerieComponent::updateLUT >> ";
// std::cout << "DicomSerieComponent::updateLUT >> ";
double range[2] = {0.0, 0.0};
imageReader->GetOutput()->GetScalarRange(range);
getLut()->SetRange(range); // we need to set up range and table values
getLut()->SetNumberOfTableValues(abs(range[0]) + abs(range[1]));
std::cout << "UPDATE DONE" << std::endl;
// std::cout << "UPDATE DONE" << std::endl;
}
// --------------- readDirectCosinesAngle -------------------
......
......@@ -32,8 +32,9 @@
class DicomSerie;
class vtkGDCMImageReader;
/**
* @ingroup group_cepimaging_components_dicomimage
* @ingroup group_cepimaging_components_dicom
*
* @brief
* DICOM Component represents a volumic image of a DICOM SERIE with its corresponding tags information (as CamiTK properties).
......@@ -47,11 +48,16 @@ class DicomComponent : public camitk::ImageComponent {
public:
/**
* Create a new Component that handles DICOM image
* @param path: the path to a .dcm image file.
* Create a new Component that handles DICOM images
* @param pointor to the associated DicomSerie
**/
DicomComponent(DicomSerie*) throw(camitk::AbortException);
/**
* @brief Get the DicomSerie associated to this component.
*/
DicomSerie* getSerie() { return serie; }
/// Default Destructor
virtual ~DicomComponent();
......@@ -83,6 +89,11 @@ private:
* @return the rounded cosine value -1, 0 or 1
*/
double roundCosine(const double & value) const;
/**
* @brief The associated DicomSerie to this component.
*/
DicomSerie* serie;
};
#endif // DICOMCOMPONENT_H
......
......@@ -37,7 +37,7 @@ class DicomDialogEntry;
#include <QList>
/**
* @ingroup group_cepimaging_components_dicomimage
* @ingroup group_cepimaging_components_dicom
*
* @brief
* Dialog class to select the DICOM series to open, using a GUI.
......
......@@ -31,7 +31,7 @@
#include <QDate>
/**
* @ingroup group_cepimaging_components_dicomimage
* @ingroup group_cepimaging_components_dicom
*
* @brief This class represents a line in the Dialog box of the DICOM series the user is prompted to open.
*
......
......@@ -40,9 +40,9 @@
/**
* @ingroup group_cepimaging_components_dicomimage
* @ingroup group_cepimaging_components_dicom
*
* @brief DicomParser allows one to parse a directory DICOM files looking for studies and series
* @brief DicomParser allows one to parse a directory of DICOM files looking for studies and series
*
* @note This class is part of the model (in the MVP pattern) of the DICOM COMPONENT
*
......
......@@ -35,13 +35,15 @@
/**
* @ingroup group_cepimaging_components_dicomimage
* @ingroup group_cepimaging_components_dicom
*
* @brief DicomSerie is a CamiTK high level class to represent a DICOM SERIE
* This class encapsulates GDCM objects to handle a DICOM SERIE
*
* @note This class is part of the model (in the MVP pattern) of the DICOM COMPONENT
* @note This class does NOT represent a CamiTK Component (@see DicomComponent)
* @note This class does NOT represent a CamiTK Component.
*
* @see DicomComponent
*
*/
class DicomSerie {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment