Skip to content
Snippets Groups Projects
Commit a54b9204 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

STYLE: rename Modulus to Amplitude

parent a7a4faf8
No related branches found
No related tags found
No related merge requests found
...@@ -102,11 +102,11 @@ ImageViewerManagerController ...@@ -102,11 +102,11 @@ ImageViewerManagerController
void void
ImageViewerManagerController ImageViewerManagerController
::UpdateModulusChannelOrder(int realChoice, int imChoice, unsigned int selectedItem) ::UpdateAmplitudeChannelOrder(int realChoice, int imChoice, unsigned int selectedItem)
{ {
try try
{ {
m_Model->UpdateModulusChannelOrder(realChoice,imChoice, selectedItem); m_Model->UpdateAmplitudeChannelOrder(realChoice,imChoice, selectedItem);
} }
catch (itk::ExceptionObject & err) catch (itk::ExceptionObject & err)
{ {
......
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
virtual void CloseImage(unsigned int selectedItem); virtual void CloseImage(unsigned int selectedItem);
virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem); virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem);
virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem ); virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem );
virtual void UpdateModulusChannelOrder(int realChoice , int imChoice ,unsigned int selectedItem ); virtual void UpdateAmplitudeChannelOrder(int realChoice , int imChoice ,unsigned int selectedItem );
virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice, unsigned int selectedItem); virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice, unsigned int selectedItem);
virtual void Link(unsigned int leftChoice, unsigned int rightChoice , OffsetType offset); virtual void Link(unsigned int leftChoice, unsigned int rightChoice , OffsetType offset);
virtual void UpdateImageViewController(unsigned int selectedItem); virtual void UpdateImageViewController(unsigned int selectedItem);
......
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
virtual void CloseImage(unsigned int selectedItem) = 0; virtual void CloseImage(unsigned int selectedItem) = 0;
virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem) = 0; virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem) = 0;
virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem) = 0; virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem) = 0;
virtual void UpdateModulusChannelOrder(int realChoice , int imChoice,unsigned int selectedItem) = 0; virtual void UpdateAmplitudeChannelOrder(int realChoice , int imChoice,unsigned int selectedItem) = 0;
virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice, unsigned int selectedItem) = 0; virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice, unsigned int selectedItem) = 0;
virtual void Link(unsigned int leftChoice, unsigned int rightChoice , OffsetType offset) = 0; virtual void Link(unsigned int leftChoice, unsigned int rightChoice , OffsetType offset) = 0;
virtual void UpdateImageViewController(unsigned int selectedItem) = 0; virtual void UpdateImageViewController(unsigned int selectedItem) = 0;
......
...@@ -260,14 +260,14 @@ ImageViewerManagerModel ...@@ -260,14 +260,14 @@ ImageViewerManagerModel
void void
ImageViewerManagerModel ImageViewerManagerModel
::UpdateModulusChannelOrder(int realChoice , int imChoice, unsigned int selectedItem ) ::UpdateAmplitudeChannelOrder(int realChoice , int imChoice, unsigned int selectedItem )
{ {
ModulusRenderingFunction::PixelRepresentationFunctionType::ChannelListType channels; AmplitudeRenderingFunction::PixelRepresentationFunctionType::ChannelListType channels;
channels.push_back(realChoice); channels.push_back(realChoice);
channels.push_back(imChoice); channels.push_back(imChoice);
ModulusRenderingFunction::Pointer modulusFunction; AmplitudeRenderingFunction::Pointer modulusFunction;
modulusFunction = ModulusRenderingFunction::New(); modulusFunction = AmplitudeRenderingFunction::New();
modulusFunction->SetChannelList(channels); modulusFunction->SetChannelList(channels);
......
...@@ -37,9 +37,6 @@ PURPOSE. See the above copyright notices for more information. ...@@ -37,9 +37,6 @@ PURPOSE. See the above copyright notices for more information.
#include "otbChangeScaleActionHandler.h" #include "otbChangeScaleActionHandler.h"
#include "otbArrowKeyMoveActionHandler.h" #include "otbArrowKeyMoveActionHandler.h"
// #include "otbModulusRenderingFunction.h"
// #include "otbPhaseRenderingFunction.h"
#include "otbAmplitudeFunctor.h" #include "otbAmplitudeFunctor.h"
#include "otbPhaseFunctor.h" #include "otbPhaseFunctor.h"
...@@ -93,10 +90,7 @@ public: ...@@ -93,10 +90,7 @@ public:
typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType> StandardRenderingFunctionType; typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType> StandardRenderingFunctionType;
typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType, typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType,
otb::Function::AmplitudeFunctor<ImageType::PixelType> > ModulusRenderingFunction; otb::Function::AmplitudeFunctor<ImageType::PixelType> > AmplitudeRenderingFunction;
// typedef Function::ModulusRenderingFunction<ImageType::InternalPixelType, RGBPixelType> ModulusRenderingFunction;
// typedef Function::PhaseRenderingFunction<ImageType::InternalPixelType, RGBPixelType> PhaseRenderingFunction;
typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType, typedef Function::StandardRenderingFunction<ImageType::PixelType, RGBPixelType,
otb::Function::PhaseFunctor<ImageType::PixelType> > PhaseRenderingFunction; otb::Function::PhaseFunctor<ImageType::PixelType> > PhaseRenderingFunction;
...@@ -162,7 +156,7 @@ public: ...@@ -162,7 +156,7 @@ public:
virtual void CloseImage(unsigned int selectedItem); virtual void CloseImage(unsigned int selectedItem);
virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem); virtual void UpdateRGBChannelOrder(int redChoice , int greenChoice, int BlueChoice, unsigned int selectedItem);
virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem); virtual void UpdateGrayScaleChannelOrder(int choice, unsigned int selectedItem);
virtual void UpdateModulusChannelOrder(int realChoice , int imChoice,unsigned int selectedItem ); virtual void UpdateAmplitudeChannelOrder(int realChoice , int imChoice,unsigned int selectedItem );
virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice,unsigned int selectedItem ); virtual void UpdatePhaseChannelOrder(int realChoice , int imChoice,unsigned int selectedItem );
virtual void Link(unsigned int leftChoice, unsigned int rightChoice, OffsetType offset); virtual void Link(unsigned int leftChoice, unsigned int rightChoice, OffsetType offset);
virtual void InitializeImageViewController(unsigned int selectedItem); virtual void InitializeImageViewController(unsigned int selectedItem);
......
...@@ -830,7 +830,7 @@ ImageViewerManagerViewGUI ...@@ -830,7 +830,7 @@ ImageViewerManagerViewGUI
guiGrayscaleChannelChoice->deactivate(); guiGrayscaleChannelChoice->deactivate();
guiRealChannelChoice->deactivate(); guiRealChannelChoice->deactivate();
guiImaginaryChannelChoice->deactivate(); guiImaginaryChannelChoice->deactivate();
bModulus->deactivate(); bAmplitude->deactivate();
bPhase->deactivate(); bPhase->deactivate();
guiRedChannelChoice->activate(); guiRedChannelChoice->activate();
...@@ -878,7 +878,7 @@ ImageViewerManagerViewGUI ...@@ -878,7 +878,7 @@ ImageViewerManagerViewGUI
guiRealChannelChoice->deactivate(); guiRealChannelChoice->deactivate();
guiImaginaryChannelChoice->deactivate(); guiImaginaryChannelChoice->deactivate();
bModulus->deactivate(); bAmplitude->deactivate();
bPhase->deactivate(); bPhase->deactivate();
guiRedChannelChoice->deactivate(); guiRedChannelChoice->deactivate();
guiGreenChannelChoice->deactivate(); guiGreenChannelChoice->deactivate();
...@@ -922,7 +922,7 @@ ImageViewerManagerViewGUI ...@@ -922,7 +922,7 @@ ImageViewerManagerViewGUI
guiBlueChannelChoice->deactivate(); guiBlueChannelChoice->deactivate();
guiRealChannelChoice->activate(); guiRealChannelChoice->activate();
guiImaginaryChannelChoice->activate(); guiImaginaryChannelChoice->activate();
bModulus->activate(); bAmplitude->activate();
bPhase->activate(); bPhase->activate();
...@@ -983,9 +983,9 @@ ImageViewerManagerViewGUI ...@@ -983,9 +983,9 @@ ImageViewerManagerViewGUI
} }
else if (guiViewerSetupComplexMode->value()) else if (guiViewerSetupComplexMode->value())
{ {
if (bModulus->value()) if (bAmplitude->value())
{ {
m_ImageViewerManagerController->UpdateModulusChannelOrder(atoi(guiRealChannelChoice->value())-1, m_ImageViewerManagerController->UpdateAmplitudeChannelOrder(atoi(guiRealChannelChoice->value())-1,
atoi(guiImaginaryChannelChoice->value())-1, atoi(guiImaginaryChannelChoice->value())-1,
selectedItem); selectedItem);
} }
......
...@@ -155,14 +155,14 @@ class ImageViewerManagerViewGroup {open ...@@ -155,14 +155,14 @@ class ImageViewerManagerViewGroup {open
label {Imaginary channel index } open label {Imaginary channel index } open
tooltip {Select band for imaginary channel in complex composition} xywh {375 96 57 24} box EMBOSSED_BOX color 7 selection_color 55 labelcolor 187 deactivate tooltip {Select band for imaginary channel in complex composition} xywh {375 96 57 24} box EMBOSSED_BOX color 7 selection_color 55 labelcolor 187 deactivate
} {} } {}
Fl_Round_Button bModulus { Fl_Round_Button bAmplitude {
label Modulus label Amplitude
callback {bPhase->clear();} callback {bPhase->clear();}
tooltip {Toggle modulus mode} xywh {235 50 80 15} down_box ROUND_DOWN_BOX value 1 labelcolor 187 deactivate tooltip {Toggle modulus mode} xywh {235 50 80 15} down_box ROUND_DOWN_BOX value 1 labelcolor 187 deactivate
} }
Fl_Round_Button bPhase { Fl_Round_Button bPhase {
label Phase label Phase
callback {bModulus->clear();} callback {bAmplitude->clear();}
tooltip {Toggle phase mode} xywh {325 50 80 15} down_box ROUND_DOWN_BOX labelcolor 187 deactivate tooltip {Toggle phase mode} xywh {325 50 80 15} down_box ROUND_DOWN_BOX labelcolor 187 deactivate
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment