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 495201b0 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED code cleaning

parent 40341a89
...@@ -36,11 +36,11 @@ using namespace camitk; ...@@ -36,11 +36,11 @@ using namespace camitk;
// --------------- constructor ------------------- // --------------- constructor -------------------
ImageLutAction::ImageLutAction(ActionExtension* extension) : Action(extension) { ImageLutAction::ImageLutAction(ActionExtension* extension) : Action(extension) {
setName("Lut"); setName("Image Look Up Table");
setDescription("Modify the LUT of an image components"); setDescription("Modify the LUT of an image components");
setComponent("ImageComponent"); setComponent("ImageComponent");
setFamily("ImageLut"); setFamily("Image LUT");
addTag("Lut"); addTag("LUT");
} }
// --------------- getWidget ------------------- // --------------- getWidget -------------------
......
...@@ -47,7 +47,7 @@ using namespace camitk; ...@@ -47,7 +47,7 @@ using namespace camitk;
// ---------------------- Constructor ---------------------------- // ---------------------- Constructor ----------------------------
ImageLutWidget::ImageLutWidget(QWidget* parent) : QWidget(parent) { ImageLutWidget::ImageLutWidget(QWidget* parent) : QWidget(parent) {
myComponent = NULL; myComponent = nullptr;
lutMin = 0; lutMin = 0;
lutMax = 255; lutMax = 255;
...@@ -92,7 +92,7 @@ void ImageLutWidget::updateComponent(ImageComponent* comp) { ...@@ -92,7 +92,7 @@ void ImageLutWidget::updateComponent(ImageComponent* comp) {
myComponent = comp; myComponent = comp;
// if there is no lookup table, just don't display this widget! // if there is no lookup table, just don't display this widget!
if (myComponent->getLut() == NULL) { if (myComponent->getLut() == nullptr) {
setEnabled(false); setEnabled(false);
return; return;
} }
......
...@@ -51,10 +51,8 @@ public: ...@@ -51,10 +51,8 @@ public:
/// Default Destructor /// Default Destructor
virtual ~VolumeRenderingAction() = default; virtual ~VolumeRenderingAction() = default;
void createVolumeRendering(camitk::ImageComponent* comp); void createVolumeRendering(camitk::ImageComponent* comp);
public slots: public slots:
/** this method is automatically called when the action is triggered. /** this method is automatically called when the action is triggered.
* Call getTargets() method to get the list of components to use. * Call getTargets() method to get the list of components to use.
......
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