Commit 0769470e authored by Julien Michel's avatar Julien Michel
Browse files

WRG: Fix more missing override warnings

No related merge requests found
Showing with 56 additions and 56 deletions
+56 -56
...@@ -57,7 +57,7 @@ private: ...@@ -57,7 +57,7 @@ private:
m_CalculatorList = RateCalculatorListType::New(); m_CalculatorList = RateCalculatorListType::New();
} }
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName("MultiImageSamplingRate"); SetName("MultiImageSamplingRate");
SetDescription("Compute sampling rate for an input set of images."); SetDescription("Compute sampling rate for an input set of images.");
...@@ -186,11 +186,11 @@ private: ...@@ -186,11 +186,11 @@ private:
SetOfficialDocLink(); SetOfficialDocLink();
} }
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
} }
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
// Clear state // Clear state
m_CalculatorList->Clear(); m_CalculatorList->Clear();
......
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
private: private:
SampleExtraction() {} SampleExtraction() {}
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName("SampleExtraction"); SetName("SampleExtraction");
SetDescription("Extracts samples values from an image."); SetDescription("Extracts samples values from an image.");
...@@ -119,7 +119,7 @@ private: ...@@ -119,7 +119,7 @@ private:
SetOfficialDocLink(); SetOfficialDocLink();
} }
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
if ( HasValue("vec") ) if ( HasValue("vec") )
{ {
...@@ -149,7 +149,7 @@ private: ...@@ -149,7 +149,7 @@ private:
} }
} }
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
ogr::DataSource::Pointer vectors; ogr::DataSource::Pointer vectors;
ogr::DataSource::Pointer output; ogr::DataSource::Pointer output;
......
...@@ -80,7 +80,7 @@ private: ...@@ -80,7 +80,7 @@ private:
m_RateCalculator = RateCalculatorType::New(); m_RateCalculator = RateCalculatorType::New();
} }
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName("SampleSelection"); SetName("SampleSelection");
SetDescription("Selects samples from a training vector data set."); SetDescription("Selects samples from a training vector data set.");
...@@ -227,7 +227,7 @@ private: ...@@ -227,7 +227,7 @@ private:
SetOfficialDocLink(); SetOfficialDocLink();
} }
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
if ( HasValue("vec") ) if ( HasValue("vec") )
{ {
...@@ -257,7 +257,7 @@ private: ...@@ -257,7 +257,7 @@ private:
} }
} }
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
// Clear state // Clear state
m_RateCalculator->ClearRates(); m_RateCalculator->ClearRates();
......
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
typedef ContingencyTableType::Pointer ContingencyTablePointerType; typedef ContingencyTableType::Pointer ContingencyTablePointerType;
protected: protected:
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName( "TrainVectorClassifier" ); SetName( "TrainVectorClassifier" );
SetDescription( "Train a classifier based on labeled geometries and a " SetDescription( "Train a classifier based on labeled geometries and a "
...@@ -73,12 +73,12 @@ protected: ...@@ -73,12 +73,12 @@ protected:
Superclass::DoInit(); Superclass::DoInit();
} }
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
Superclass::DoUpdateParameters(); Superclass::DoUpdateParameters();
} }
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
m_FeaturesInfo.SetClassFieldNames( GetChoiceNames( "cfield" ), GetSelectedItems( "cfield" ) ); m_FeaturesInfo.SetClassFieldNames( GetChoiceNames( "cfield" ), GetSelectedItems( "cfield" ) );
......
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
typedef otb::DimensionalityReductionModelFactory<ValueType, ValueType> ModelFactoryType; typedef otb::DimensionalityReductionModelFactory<ValueType, ValueType> ModelFactoryType;
private: private:
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName("TrainDimensionalityReduction"); SetName("TrainDimensionalityReduction");
SetDescription("Train a dimensionality reduction model"); SetDescription("Train a dimensionality reduction model");
...@@ -115,11 +115,11 @@ private: ...@@ -115,11 +115,11 @@ private:
" value_5 value_6 value_7 value_8 value_9"); " value_5 value_6 value_7 value_8 value_9");
} }
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
} }
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
std::string shapefile = GetParameterString("io.vd"); std::string shapefile = GetParameterString("io.vd");
......
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
typedef itk::ComplexToPhaseImageFilter<ComplexFloatImageType, FloatImageType> PhaseFilterType; typedef itk::ComplexToPhaseImageFilter<ComplexFloatImageType, FloatImageType> PhaseFilterType;
private: private:
void DoInit() void DoInit() ITK_OVERRIDE
{ {
SetName("ComputeModulusAndPhase"); SetName("ComputeModulusAndPhase");
SetDescription("This application computes the modulus and the phase of a complex SAR image."); SetDescription("This application computes the modulus and the phase of a complex SAR image.");
...@@ -100,12 +100,12 @@ private: ...@@ -100,12 +100,12 @@ private:
} }
// DoUpdateParameters() is called as soon as a parameter value change. // DoUpdateParameters() is called as soon as a parameter value change.
void DoUpdateParameters() void DoUpdateParameters() ITK_OVERRIDE
{ {
} }
// DoExecute() contains the application core. // DoExecute() contains the application core.
void DoExecute() void DoExecute() ITK_OVERRIDE
{ {
m_Modulus = ModulusFilterType::New(); m_Modulus = ModulusFilterType::New();
m_Phase = PhaseFilterType::New(); m_Phase = PhaseFilterType::New();
......
...@@ -92,11 +92,11 @@ protected: ...@@ -92,11 +92,11 @@ protected:
WaveletImageFilter(); WaveletImageFilter();
virtual ~WaveletImageFilter(); virtual ~WaveletImageFilter();
virtual void GenerateInputRequestedRegion(); virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
virtual void GenerateData(); virtual void GenerateData() ITK_OVERRIDE;
virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; virtual void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
WaveletImageFilter(const Self&); //purposely not implemented WaveletImageFilter(const Self&); //purposely not implemented
......
...@@ -87,17 +87,17 @@ public: ...@@ -87,17 +87,17 @@ public:
itkSetMacro(NumberOfDecompositions,unsigned int); itkSetMacro(NumberOfDecompositions,unsigned int);
/** If the filter is modified, the internal filters need to be modified too */ /** If the filter is modified, the internal filters need to be modified too */
virtual void Modified() const; virtual void Modified() const ITK_OVERRIDE;
protected: protected:
WaveletInverseImageFilter(); WaveletInverseImageFilter();
virtual ~WaveletInverseImageFilter(); virtual ~WaveletInverseImageFilter();
virtual void GenerateInputRequestedRegion(); virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
virtual void GenerateData(); virtual void GenerateData() ITK_OVERRIDE;
virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; virtual void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
WaveletInverseImageFilter(const Self&); //purposely not implemented WaveletInverseImageFilter(const Self&); //purposely not implemented
......
...@@ -68,19 +68,19 @@ public: ...@@ -68,19 +68,19 @@ public:
protected: protected:
/** Main computation method */ /** Main computation method */
virtual void ThreadedGenerateData(const RegionType & outputRegionForThread, itk::ThreadIdType threadId); virtual void ThreadedGenerateData(const RegionType & outputRegionForThread, itk::ThreadIdType threadId) ITK_OVERRIDE;
/** GenerateOutputInformation /** GenerateOutputInformation
* Set the number of bands of the output. * Set the number of bands of the output.
* Copy information from the first image of the list if existing. * Copy information from the first image of the list if existing.
**/ **/
virtual void GenerateOutputInformation(void); virtual void GenerateOutputInformation(void) ITK_OVERRIDE;
/** /**
* GenerateInputRequestedRegion * GenerateInputRequestedRegion
* Set the requested region of each image in the list. * Set the requested region of each image in the list.
*/ */
virtual void GenerateInputRequestedRegion(void); virtual void GenerateInputRequestedRegion(void) ITK_OVERRIDE;
/** Constructor */ /** Constructor */
WaveletsBandsListToWaveletsSynopsisImageFilter(); WaveletsBandsListToWaveletsSynopsisImageFilter();
...@@ -89,7 +89,7 @@ protected: ...@@ -89,7 +89,7 @@ protected:
virtual ~WaveletsBandsListToWaveletsSynopsisImageFilter(); virtual ~WaveletsBandsListToWaveletsSynopsisImageFilter();
/**PrintSelf method */ /**PrintSelf method */
virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; virtual void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
WaveletsBandsListToWaveletsSynopsisImageFilter(const Self&); //purposely not implemented WaveletsBandsListToWaveletsSynopsisImageFilter(const Self&); //purposely not implemented
......
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
itkGetMacro(DecimationRatio,unsigned int); itkGetMacro(DecimationRatio,unsigned int);
/** If the filter is modified, the extract list need to be regenerated */ /** If the filter is modified, the extract list need to be regenerated */
virtual void Modified() const; virtual void Modified() const ITK_OVERRIDE;
protected: protected:
/** Constructor */ /** Constructor */
...@@ -90,16 +90,16 @@ protected: ...@@ -90,16 +90,16 @@ protected:
virtual ~WaveletsSynopsisImageToWaveletsBandsListFilter(); virtual ~WaveletsSynopsisImageToWaveletsBandsListFilter();
/**PrintSelf method */ /**PrintSelf method */
virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; virtual void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
/** Generate the input requested region from the first element in the list. */ /** Generate the input requested region from the first element in the list. */
virtual void GenerateInputRequestedRegion(void); virtual void GenerateInputRequestedRegion(void) ITK_OVERRIDE;
/** Generate the output information by building the output list. */ /** Generate the output information by building the output list. */
virtual void GenerateOutputInformation(void); virtual void GenerateOutputInformation(void) ITK_OVERRIDE;
/** Main computation method */ /** Main computation method */
virtual void GenerateData(void); virtual void GenerateData(void) ITK_OVERRIDE;
private: private:
WaveletsSynopsisImageToWaveletsBandsListFilter(const Self&); //purposely not implemented WaveletsSynopsisImageToWaveletsBandsListFilter(const Self&); //purposely not implemented
......
...@@ -119,8 +119,8 @@ public: ...@@ -119,8 +119,8 @@ public:
itkGetMacro(LearningCurveFileName,std::string); itkGetMacro(LearningCurveFileName,std::string);
itkSetMacro(LearningCurveFileName,std::string); itkSetMacro(LearningCurveFileName,std::string);
bool CanReadFile(const std::string & filename); bool CanReadFile(const std::string & filename) ITK_OVERRIDE;
bool CanWriteFile(const std::string & filename); bool CanWriteFile(const std::string & filename) ITK_OVERRIDE;
void Save(const std::string & filename, const std::string & name="") ITK_OVERRIDE; void Save(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
void Load(const std::string & filename, const std::string & name="") ITK_OVERRIDE; void Load(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
...@@ -155,14 +155,14 @@ protected: ...@@ -155,14 +155,14 @@ protected:
virtual TargetSampleType DoPredict( virtual TargetSampleType DoPredict(
const InputSampleType& input, const InputSampleType& input,
ConfidenceValueType * quality = ITK_NULLPTR) const; ConfidenceValueType * quality = ITK_NULLPTR) const ITK_OVERRIDE;
virtual void DoPredictBatch( virtual void DoPredictBatch(
const InputListSampleType *, const InputListSampleType *,
const unsigned int & startIndex, const unsigned int & startIndex,
const unsigned int & size, const unsigned int & size,
TargetListSampleType *, TargetListSampleType *,
ConfidenceListSampleType * quality = ITK_NULLPTR) const; ConfidenceListSampleType * quality = ITK_NULLPTR) const ITK_OVERRIDE;
private: private:
/** Internal Network */ /** Internal Network */
......
...@@ -115,7 +115,7 @@ protected: ...@@ -115,7 +115,7 @@ protected:
~ImageDimensionalityReductionFilter() ITK_OVERRIDE {} ~ImageDimensionalityReductionFilter() ITK_OVERRIDE {}
/** Generate output information */ /** Generate output information */
virtual void GenerateOutputInformation(); virtual void GenerateOutputInformation() ITK_OVERRIDE;
/** Threaded generate data */ /** Threaded generate data */
void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) ITK_OVERRIDE; void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) ITK_OVERRIDE;
......
...@@ -80,8 +80,8 @@ public: ...@@ -80,8 +80,8 @@ public:
itkSetMacro(WriteEigenvectors, bool); itkSetMacro(WriteEigenvectors, bool);
itkGetMacro(WriteEigenvectors, bool); itkGetMacro(WriteEigenvectors, bool);
bool CanReadFile(const std::string & filename); bool CanReadFile(const std::string & filename) ITK_OVERRIDE;
bool CanWriteFile(const std::string & filename); bool CanWriteFile(const std::string & filename) ITK_OVERRIDE;
void Save(const std::string & filename, const std::string & name="") ITK_OVERRIDE; void Save(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
void Load(const std::string & filename, const std::string & name="") ITK_OVERRIDE; void Load(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
...@@ -94,7 +94,7 @@ protected: ...@@ -94,7 +94,7 @@ protected:
virtual TargetSampleType DoPredict( virtual TargetSampleType DoPredict(
const InputSampleType& input, const InputSampleType& input,
ConfidenceValueType * quality = ITK_NULLPTR) const; ConfidenceValueType * quality = ITK_NULLPTR) const ITK_OVERRIDE;
virtual void DoPredictBatch( virtual void DoPredictBatch(
const InputListSampleType *, const InputListSampleType *,
......
...@@ -101,11 +101,11 @@ public: ...@@ -101,11 +101,11 @@ public:
itkSetMacro(Seed, unsigned int); itkSetMacro(Seed, unsigned int);
itkGetMacro(Seed, unsigned int); itkGetMacro(Seed, unsigned int);
bool CanReadFile(const std::string & filename); bool CanReadFile(const std::string & filename) ITK_OVERRIDE;
bool CanWriteFile(const std::string & filename); bool CanWriteFile(const std::string & filename) ITK_OVERRIDE;
void Save(const std::string & filename, const std::string & name="") ; void Save(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
void Load(const std::string & filename, const std::string & name="") ; void Load(const std::string & filename, const std::string & name="") ITK_OVERRIDE;
void Train() ITK_OVERRIDE; void Train() ITK_OVERRIDE;
...@@ -118,7 +118,7 @@ private: ...@@ -118,7 +118,7 @@ private:
virtual TargetSampleType DoPredict( virtual TargetSampleType DoPredict(
const InputSampleType& input, const InputSampleType& input,
ConfidenceValueType * quality = ITK_NULLPTR) const; ConfidenceValueType * quality = ITK_NULLPTR) const ITK_OVERRIDE;
/** Map size (width, height) */ /** Map size (width, height) */
SizeType m_MapSize; SizeType m_MapSize;
......
...@@ -148,7 +148,7 @@ protected: ...@@ -148,7 +148,7 @@ protected:
virtual void DoPredictBatch(const InputListSampleType *, const unsigned int & startIndex, const unsigned int & size, TargetListSampleType *, ConfidenceListSampleType * = ITK_NULLPTR) const ITK_OVERRIDE; virtual void DoPredictBatch(const InputListSampleType *, const unsigned int & startIndex, const unsigned int & size, TargetListSampleType *, ConfidenceListSampleType * = ITK_NULLPTR) const ITK_OVERRIDE;
/** PrintSelf method */ /** PrintSelf method */
void PrintSelf(std::ostream& os, itk::Indent indent) const; void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
SharkRandomForestsMachineLearningModel(const Self &); //purposely not implemented SharkRandomForestsMachineLearningModel(const Self &); //purposely not implemented
......
...@@ -42,8 +42,8 @@ public: ...@@ -42,8 +42,8 @@ public:
typedef itk::SmartPointer<const Self> ConstPointer; typedef itk::SmartPointer<const Self> ConstPointer;
/** Class methods used to interface with the registered factories. */ /** Class methods used to interface with the registered factories. */
virtual const char* GetITKSourceVersion(void) const; virtual const char* GetITKSourceVersion(void) const ITK_OVERRIDE;
virtual const char* GetDescription(void) const; virtual const char* GetDescription(void) const ITK_OVERRIDE;
/** Method for class instantiation. */ /** Method for class instantiation. */
itkFactorylessNewMacro(Self); itkFactorylessNewMacro(Self);
......
...@@ -140,7 +140,7 @@ protected: ...@@ -140,7 +140,7 @@ protected:
DataType NormalizeData(const DataType &data) const; DataType NormalizeData(const DataType &data) const;
/** PrintSelf method */ /** PrintSelf method */
void PrintSelf(std::ostream &os, itk::Indent indent) const; void PrintSelf(std::ostream &os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
SharkKMeansMachineLearningModel(const Self &); //purposely not implemented SharkKMeansMachineLearningModel(const Self &); //purposely not implemented
......
...@@ -41,8 +41,8 @@ public: ...@@ -41,8 +41,8 @@ public:
typedef itk::SmartPointer<const Self> ConstPointer; typedef itk::SmartPointer<const Self> ConstPointer;
/** Class methods used to interface with the registered factories. */ /** Class methods used to interface with the registered factories. */
virtual const char* GetITKSourceVersion(void) const; virtual const char* GetITKSourceVersion(void) const ITK_OVERRIDE;
virtual const char* GetDescription(void) const; virtual const char* GetDescription(void) const ITK_OVERRIDE;
/** Method for class instantiation. */ /** Method for class instantiation. */
itkFactorylessNewMacro(Self); itkFactorylessNewMacro(Self);
......
...@@ -115,7 +115,7 @@ class ITK_EXPORT ProSailParameters : public itk::DataObject ...@@ -115,7 +115,7 @@ class ITK_EXPORT ProSailParameters : public itk::DataObject
/** Destructor */ /** Destructor */
virtual ~ProSailParameters() {}; virtual ~ProSailParameters() {};
/** PrintSelf method */ /** PrintSelf method */
void PrintSelf(std::ostream& os, itk::Indent indent) const; void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private: private:
......
...@@ -70,8 +70,8 @@ public: ...@@ -70,8 +70,8 @@ public:
PyObject * GetCommandCallable(); PyObject * GetCommandCallable();
void Execute(Object *, const EventObject&); void Execute(Object *, const EventObject&) ITK_OVERRIDE;
void Execute(const Object *, const EventObject&); void Execute(const Object *, const EventObject&) ITK_OVERRIDE;
protected: protected:
PyCommand(); PyCommand();
......
Supports Markdown
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