forked from claraandradee/GeometricDraw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32f3e52
commit 842163a
Showing
54 changed files
with
1,755 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"CurrentProjectSetting": null | ||
} |
Binary file added
BIN
+127 Bytes
.vs/ProjetoI-EditorGrafico/FileContentIndex/798f30b7-afde-4ee3-be26-0507a2c35265.vsidx
Binary file not shown.
Binary file added
BIN
+516 Bytes
.vs/ProjetoI-EditorGrafico/FileContentIndex/8d33cc0c-a5e7-4e63-ad24-be9b5aee3771.vsidx
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ExpandedNodes": [ | ||
"" | ||
], | ||
"PreviewInSolutionExplorer": false | ||
} |
Binary file not shown.
Binary file added
BIN
+23 KB
apGrafico/.vs/apGrafico/FileContentIndex/4e90150c-b176-4e5e-8884-ce190f869cf5.vsidx
Binary file not shown.
Binary file added
BIN
+136 KB
apGrafico/.vs/apGrafico/FileContentIndex/87575b08-c84a-40cf-9796-916f4e24d0e0.vsidx
Binary file not shown.
Binary file added
BIN
+142 KB
apGrafico/.vs/apGrafico/FileContentIndex/987198ee-9f0f-4be6-8022-d0a79e551559.vsidx
Binary file not shown.
Binary file added
BIN
+43.6 KB
apGrafico/.vs/apGrafico/FileContentIndex/ca1c4197-f38a-423a-a134-9e6d25132416.vsidx
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.4.33205.214 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "apGrafico", "apGrafico\apGrafico.csproj", "{04A3C00E-8BBA-4CD6-867E-4460C850B8D0}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{04A3C00E-8BBA-4CD6-867E-4460C850B8D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{04A3C00E-8BBA-4CD6-867E-4460C850B8D0}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{04A3C00E-8BBA-4CD6-867E-4460C850B8D0}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{04A3C00E-8BBA-4CD6-867E-4460C850B8D0}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {123C0402-0C54-4D24-90C8-3C94A8E3657A} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Drawing; | ||
|
||
namespace apGrafico | ||
{ | ||
class Circulo : Ponto //herdada da classe ponto | ||
{ | ||
int raio; //vamos utilizar mais uma variável | ||
|
||
//get e set | ||
public int Raio { get { return raio; } set { raio = value; } } | ||
|
||
//contrutor | ||
public Circulo(int xCentro, int yCentro, int novoRaio, Color novaCor) : | ||
base(xCentro, yCentro, novaCor) | ||
{ | ||
raio = novoRaio; | ||
} | ||
|
||
//set no do novoRaio | ||
public void setRaio(int novoRaio) | ||
{ | ||
raio = novoRaio; | ||
} | ||
|
||
//sobreposição da metodo desenhar | ||
public override void desenhar(Color corDesenho, Graphics g) | ||
{ | ||
Pen pen = new Pen(corDesenho); | ||
g.DrawEllipse(pen, base.X - raio, base.Y - raio, //centro - raio | ||
2 * raio, 2 * raio); //centro + raio | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Drawing; | ||
|
||
namespace apGrafico | ||
{ | ||
class Elipse : Ponto | ||
{ | ||
int raio1, raio2; | ||
|
||
//getters e setters dos raios | ||
public int Raio1 { get { return raio1; } set { raio1 = value; } } | ||
public int Raio2 { get { return raio2; } set { raio2 = value; } } | ||
|
||
//construtor | ||
public Elipse(int xCentro, int yCentro, int novoRaio1, int novoRaio2, Color novaCor) : | ||
base(xCentro, yCentro, novaCor) | ||
{ | ||
raio1 = novoRaio1; | ||
raio2 = novoRaio2; | ||
} | ||
|
||
//setters dos novos raios | ||
public void setRaio1(int novoRaio1) | ||
{ | ||
raio1 = novoRaio1; | ||
} | ||
|
||
public void setRaio2(int novoRaio2) | ||
{ | ||
raio2 = novoRaio2; | ||
} | ||
|
||
//sobreposição do metodo desenhar | ||
public override void desenhar(Color corDesenho, Graphics g) | ||
{ | ||
Pen pen = new Pen(corDesenho); | ||
g.DrawEllipse(pen, base.X - raio1, base.Y - raio2, 2 * raio1, 2 * raio2); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.