summaryrefslogtreecommitdiffstats
path: root/Project
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-05 00:37:13 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-05 00:37:13 -0300
commit47cebfc84d4ae315f4bf8ffb3d074b2b75781a1b (patch)
tree9fb509762086674197aae821bd1335bea47da033 /Project
parentc1aad656847602f7e4c7aead048f7465a76838d4 (diff)
downloadPSP.git-47cebfc84d4ae315f4bf8ffb3d074b2b75781a1b.tar.gz
PSP.git-47cebfc84d4ae315f4bf8ffb3d074b2b75781a1b.tar.xz
PSP.git-47cebfc84d4ae315f4bf8ffb3d074b2b75781a1b.zip
Capacitor under implementation
Diffstat (limited to 'Project')
-rw-r--r--Project/Capacitor.cpp25
-rw-r--r--Project/Capacitor.h19
-rw-r--r--Project/Project.project2
3 files changed, 46 insertions, 0 deletions
diff --git a/Project/Capacitor.cpp b/Project/Capacitor.cpp
new file mode 100644
index 0000000..698d6a4
--- /dev/null
+++ b/Project/Capacitor.cpp
@@ -0,0 +1,25 @@
+#include "Capacitor.h"
+
+Capacitor::Capacitor() : Shunt()
+{
+}
+
+Capacitor::~Capacitor()
+{
+}
+
+bool Capacitor::AddParent(Element* parent, wxPoint2DDouble position)
+{
+}
+
+void Capacitor::Draw(wxPoint2DDouble translation, double scale) const
+{
+}
+
+void Capacitor::Rotate()
+{
+}
+
+bool Capacitor::GetContextMenu(wxMenu& menu)
+{
+}
diff --git a/Project/Capacitor.h b/Project/Capacitor.h
new file mode 100644
index 0000000..fe7c267
--- /dev/null
+++ b/Project/Capacitor.h
@@ -0,0 +1,19 @@
+#ifndef CAPACITOR_H
+#define CAPACITOR_H
+
+#include "Shunt.h"
+
+class Capacitor : Shunt
+{
+public:
+ Capacitor();
+ ~Capacitor();
+
+ virtual bool AddParent(Element* parent, wxPoint2DDouble position);
+ virtual void Draw(wxPoint2DDouble translation, double scale) const;
+ virtual void Rotate();
+ virtual bool GetContextMenu(wxMenu& menu);
+
+};
+
+#endif // CAPACITOR_H
diff --git a/Project/Project.project b/Project/Project.project
index 1152807..76d12ac 100644
--- a/Project/Project.project
+++ b/Project/Project.project
@@ -22,6 +22,7 @@
<File Name="Shunt.cpp"/>
<File Name="Load.cpp"/>
<File Name="Inductor.cpp"/>
+ <File Name="Capacitor.cpp"/>
</VirtualDirectory>
</VirtualDirectory>
<VirtualDirectory Name="view">
@@ -48,6 +49,7 @@
<File Name="Shunt.h"/>
<File Name="Load.h"/>
<File Name="Inductor.h"/>
+ <File Name="Capacitor.h"/>
</VirtualDirectory>
</VirtualDirectory>
<VirtualDirectory Name="view">