Skip to content
Snippets Groups Projects
Commit 78f9af36 authored by moenck's avatar moenck
Browse files

Made methods virtual

parent b6fdff36
No related branches found
No related tags found
No related merge requests found
Pipeline #12606 passed
...@@ -57,29 +57,20 @@ public: ...@@ -57,29 +57,20 @@ public:
*/ */
virtual IModelTrackedComponent *getLastChild() = 0; virtual IModelTrackedComponent *getLastChild() = 0;
void setTime(std::chrono::system_clock::time_point t) { _time = t; }; virtual void setTime(std::chrono::system_clock::time_point t) { _time = t; };
std::chrono::system_clock::time_point getTime() { return _time; }; virtual std::chrono::system_clock::time_point getTime() { return _time; };
virtual QList<IModelTrackedComponent*> getChildNodes() = 0;
virtual void setChildNodes(QList<IModelTrackedComponent*> n) = 0;
virtual bool hasChildNodes() = 0;
QList<IModelTrackedComponent*> getChildNodes() {
return _TrackedComponents;
}
void setChildNodes(QList<IModelTrackedComponent*> n) {
_TrackedComponents = n;
}
bool hasChildNodes() {
return true;
}
// ITrackedComponent interface
public: public:
void operate(); virtual void operate();
std::chrono::system_clock::time_point _time;
protected: protected:
static int nextID; static int nextID;
std::chrono::system_clock::time_point _time;
QList<IModelTrackedComponent*> _TrackedComponents;
}; };
#endif // ITRACKEDOTRAJECTORY_H #endif // ITRACKEDOTRAJECTORY_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment