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

UPDATED modernize first step

parent e5f3cc13
......@@ -49,7 +49,7 @@ public:
RegionGrowingWidget(camitk::Action* action);
/// destructor
~RegionGrowingWidget();
~RegionGrowingWidget() override override;
/// Update the widget with the correct PickedPixelMap (ImageComponent + Qlist of the selected points)
void updateComponent(camitk::ImageComponent* image);
......
......@@ -50,7 +50,7 @@ public:
/**Default Constructor*/
DicomDialog(QList<DicomDialogEntry*>);
/**Destructor*/
~DicomDialog();
~DicomDialog() override override;
/// Get the list of DicomDialogEntry selected for opening
QList<DicomDialogEntry*> getSelectedDicomDialogEntries();
......
......@@ -38,7 +38,7 @@ class CamiTKPropertyList : public QObject {
public:
// destructor
virtual ~CamiTKPropertyList();
~CamiTKPropertyList() override override;
/** Get a Property given its name
* @param name the property name
......
......@@ -71,7 +71,7 @@ public:
PMLExplorerWidget ( PMLComponent* comp );
/// Destructor
virtual ~PMLExplorerWidget(); //{ if (this->ui) delete ui; }
~PMLExplorerWidget() override override; //{ if (this->ui) delete ui; }
/// Update the widget content as the input selected component changed.
void updateTarget ( PMLComponent* comp );
......
......@@ -49,7 +49,7 @@ class MMLCOMPONENT_API MMLDisplay : QObject {
public:
MMLDisplay(MMLComponent* mmlManager);
~MMLDisplay();
~MMLDisplay() override override override override;
public slots:
/// slot called when display have to be updated
......
......@@ -50,7 +50,7 @@ public:
/// constructor
MMLMonitorDisplay(Monitor* monitor, MMLComponent* manager);
/// destructor
~MMLMonitorDisplay();
~MMLMonitorDisplay() override override override override override override;
/// update display
virtual void update() = 0;
......
......@@ -36,12 +36,12 @@ public:
/// constructor
Arrows(Monitor* monitor, MMLComponent* manager);
/// destructor
~Arrows();
~Arrows() override;
/// update display
void update();
void update() override;
/// hide display
void hide();
void hide() override;
};
......
......@@ -36,12 +36,12 @@ public:
/// constructor
Colors(Monitor* monitor, MMLComponent* manager);
/// destructor
~Colors();
~Colors() override;
/// update display
void update();
void update() override;
/// hide display
void hide();
void hide() override;
};
#endif
\ No newline at end of file
......@@ -39,12 +39,12 @@ public:
/// constructor
Statistics(Monitor* monitor, MMLComponent* manager);
/// destructor
~Statistics();
~Statistics() override;
/// update display
void update();
void update() override;
/// hide display
void hide();
void hide() override;
private:
......
......@@ -40,12 +40,12 @@ public:
/// constructor
Tabular(Monitor* monitor, MMLComponent* manager);
/// destructor
~Tabular();
~Tabular() override;
/// update display
void update();
void update() override;
/// hide display
void hide();
void hide() override;
public slots:
......@@ -60,7 +60,7 @@ private:
/// old row size in the monitors table
int oldRowSize;
/// event filter which manage opening of the tabular popup menu when rigth click is pressed
bool eventFilter(QObject* obj, QEvent* event);
bool eventFilter(QObject* obj, QEvent* event) override;
};
#endif
\ No newline at end of file
......@@ -43,7 +43,7 @@ public:
/** Redefinition of ansysPrint to print in ansys format
* \warning not everything is implemented (yet!)
*/
virtual void ansysPrint(std::ostream&) const;
void ansysPrint(std::ostream&) const override override;
};
......
......@@ -43,7 +43,7 @@ public:
/** Redefinition of ansysPrint to print in ansys format
* \warning not everything is implemented (yet!)
*/
virtual void ansysPrint(std::ostream&) const;
void ansysPrint(std::ostream&) const override override override;
};
......
......@@ -49,13 +49,13 @@ public:
*/
AndMultipleCriterion(mml::MultipleCriteria* m, MonitoringManager* monitoringManager, MultipleCriterion* parent = NULL);
/// destructor
~AndMultipleCriterion();
~AndMultipleCriterion() override override override override;
/// return true if every single Criterion is reached
bool checkCriterion();
bool checkCriterion() override override override override;
/// get stopping criterion name
std::string getName();
std::string getName() override override override override;
};
#endif // STOPPINGCRITERION_STOPPINGCRITERIA_MULTIPLECRITERIA_ANDMULTIPLECRITERIA_H
......@@ -52,19 +52,19 @@ public:
*/
Criterion(mml::Criteria* c, MonitoringManager* monitoringManager, MultipleCriterion* parent = NULL);
/// destructor
virtual ~Criterion();
~Criterion() override override override override override override override override override override;
/// return true if the criterion is reach
bool checkCriterion();
bool checkCriterion() override override override override override override override override override override;
/// get number of childre; return -1 for non multiple criteria
int getNumberOfChildren();
int getNumberOfChildren() override override override override override override override override override override;
/// get the child repered by index, return null if no child
StoppingCriterion* getChild(const unsigned int i);
StoppingCriterion* getChild(const unsigned int i) override override override override override override override override override override;
/// get stopping criterion name
virtual std::string getName() = 0;
std::string getName() override override override override override override override override override override = 0;
/// get Method Name
std::string getMethodString();
......
......@@ -47,14 +47,14 @@ public:
*/
ForceCriterion(mml::Force* c, MonitoringManager* monitoringManager, MultipleCriterion* parent = NULL);
/// destructor
~ForceCriterion();
~ForceCriterion() override override override override;
/// get stopping criterion name
std::string getName();
std::string getName() override override override override;
private:
/// calculate stopping criteria data and store it into values vector
void calculate();
void calculate() override override override override;
};
#endif // STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_FORCE_H
......@@ -58,16 +58,16 @@ public:
InteractiveMonitoringManager(const char* mml);
/// destructor
virtual ~InteractiveMonitoringManager();
~InteractiveMonitoringManager() override override;
/// Initialize manager
bool init();
bool init() override override;
/// End manager
void end();
void end() override override;
/// make a simulation move (one step)
void doMove();
void doMove() override override;
/// check if the stopping criterion is reached
bool checkStop();
bool checkStop() override override;
/// get Stopping Criterion
StoppingCriterion* getStoppingCriterion();
......
......@@ -42,14 +42,14 @@ public:
/// constructor
InteractiveSimulator(MonitoringManager* monitoringManager, const char* file);
/// destructor
virtual ~InteractiveSimulator();
~InteractiveSimulator() override override override;
/// initialize the simulator
virtual void init() = 0;
void init() override override override = 0;
/// end simultor
virtual void end() = 0;
void end() override override override = 0;
/// get current position for one atom
virtual void getPosition(int index, double position[3]) = 0;
void getPosition(int index, double position[3]) override override override = 0;
/**
* ask the simulator do to one step of the simulation
......@@ -58,7 +58,7 @@ public:
virtual void doMove(double dt) = 0;
/// Create a pml file from an imput file
virtual void createPml(const char* inputFile, const char* pmlFile) = 0;
void createPml(const char* inputFile, const char* pmlFile) override override override = 0;
};
#endif // SIMULATOR_INTERACTIVESIMULATOR_H
......@@ -46,14 +46,14 @@ public:
*/
kineticEnergy(mml::KineticEnergy* c, MonitoringManager* monitoringManager, MultipleCriterion* parent = NULL);
/// destructor
~kineticEnergy();
~kineticEnergy() override override override override;
/// get stopping criterion name
std::string getName();
std::string getName() override override override override;
private:
/// calculate stopping criteria data and store it into values vector
void calculate();
void calculate() override override override override;
};
#endif // STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_KINETICENGERGY_H
......@@ -45,13 +45,13 @@ public:
*/
MinThreshold(mml::MinThreshold* m);
/// destructor
~MinThreshold();
~MinThreshold() override override override;
/// return true if tested >= value
bool individualTest(double tested);
bool individualTest(double tested) override override override;
/// get Method name
std::string toString();
std::string toString() override;
private:
/// value of the threshold
......
......@@ -44,13 +44,13 @@ public:
*/
MonitorComputingTime(mml::Monitor* m, MonitoringManager* monitoringManager);
/// destructor
~MonitorComputingTime();
~MonitorComputingTime() override override override override;
/// calculate current followed data and store them in values vector
void calculate();
void calculate() override override override override;
/// return a string relative to monitor type
std::string getTypeName();
std::string getTypeName() override override override override;
};
#endif // MONITOR_MONITORS_MONITORCOMPUTINGTIME_H
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