Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
ecc87ee6
Commit
ecc87ee6
authored
Jun 09, 2021
by
Maxime Goret
Browse files
Override Voisinage
parent
9e365948
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/voisinage.h
View file @
ecc87ee6
...
...
@@ -80,8 +80,8 @@ class RegleVoisinageNeumann : public RegleVoisinage {
public:
void
calculVoisinage
(
Voisinage
&
v
,
const
Reseau
&
r
)
const
override
;
void
setr
(
unsigned
int
r
)
{
rayon
=
r
;
}
unsigned
int
getr
()
const
{
return
rayon
;
}
int
getType
()
const
{
return
1
;
}
unsigned
int
getr
()
const
override
{
return
rayon
;
}
int
getType
()
const
override
{
return
1
;
}
};
class
RegleVoisinageMoore
:
public
RegleVoisinage
{
...
...
@@ -90,8 +90,8 @@ class RegleVoisinageMoore : public RegleVoisinage {
public:
void
calculVoisinage
(
Voisinage
&
v
,
const
Reseau
&
r
)
const
override
;
void
setr
(
unsigned
int
r
)
{
rayon
=
r
;
}
unsigned
int
getr
()
const
{
return
rayon
;
}
int
getType
()
const
{
return
2
;
}
unsigned
int
getr
()
const
override
{
return
rayon
;
}
int
getType
()
const
override
{
return
2
;
}
};
class
RegleVoisinageArbitraire
:
public
RegleVoisinage
{
//définit la règle pour le voisinage arbitraire
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment