diff options
Diffstat (limited to 'Project/Shunt.h')
-rw-r--r-- | Project/Shunt.h | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/Project/Shunt.h b/Project/Shunt.h index 15b8efb..eb0384a 100644 --- a/Project/Shunt.h +++ b/Project/Shunt.h @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + #ifndef SHUNT_H #define SHUNT_H @@ -6,10 +23,10 @@ class Shunt : public PowerElement { -public: - Shunt(); - ~Shunt(); - + public: + Shunt(); + ~Shunt(); + virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } virtual void Move(wxPoint2DDouble position); @@ -24,9 +41,8 @@ public: protected: void UpdateSwitchesPosition(); void UpdatePowerFlowArrowsPosition(); - void DrawGround(wxPoint2DDouble position) const; + void DrawGround(wxPoint2DDouble position) const; bool m_inserted = false; - }; -#endif // SHUNT_H +#endif // SHUNT_H |