Skip to content

Commit

Permalink
projeto1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
claraandradee committed Mar 23, 2023
1 parent 32f3e52 commit 842163a
Show file tree
Hide file tree
Showing 54 changed files with 1,755 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added .vs/ProjetoI-EditorGrafico/v17/.wsuo
Binary file not shown.
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added apGrafico/.vs/apGrafico/v17/.suo
Binary file not shown.
25 changes: 25 additions & 0 deletions apGrafico/apGrafico.sln
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
6 changes: 6 additions & 0 deletions apGrafico/apGrafico/App.config
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>
39 changes: 39 additions & 0 deletions apGrafico/apGrafico/Circulo.cs
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
}

}
}
44 changes: 44 additions & 0 deletions apGrafico/apGrafico/Elipse.cs
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);
}
}
}
256 changes: 256 additions & 0 deletions apGrafico/apGrafico/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 842163a

Please sign in to comment.