Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
b90c9ffb
Commit
b90c9ffb
authored
Dec 13, 2016
by
Jakob Schöttl
Browse files
Implement setters for shape
parent
a6fa6ecb
Changes
11
Hide whitespace changes
Inline
Side-by-side
VadereGui/src/org/vadere/gui/topographycreator/model/AgentWrapper.java
View file @
b90c9ffb
...
...
@@ -44,6 +44,11 @@ public final class AgentWrapper extends ScenarioElement {
public
void
setAgentInitialStore
(
final
Agent
store
)
{
this
.
agent
=
store
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
agent
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesObstacle.java
View file @
b90c9ffb
...
...
@@ -19,6 +19,10 @@ public class AttributesObstacle extends Attributes {
this
.
shape
=
shape
;
}
public
void
setShape
(
VShape
shape
)
{
this
.
shape
=
shape
;
}
public
VShape
getShape
()
{
return
shape
;
}
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesSource.java
View file @
b90c9ffb
...
...
@@ -123,6 +123,10 @@ public class AttributesSource extends Attributes {
return
id
;
}
public
void
setShape
(
VShape
shape
)
{
this
.
shape
=
shape
;
}
public
VShape
getShape
()
{
return
shape
;
}
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesStairs.java
View file @
b90c9ffb
...
...
@@ -42,6 +42,10 @@ public class AttributesStairs extends Attributes {
}
}
public
void
setShape
(
VShape
shape
)
{
this
.
shape
=
shape
;
}
public
VShape
getShape
()
{
return
shape
;
}
...
...
VadereState/src/org/vadere/state/attributes/scenario/AttributesTarget.java
View file @
b90c9ffb
...
...
@@ -99,6 +99,10 @@ public class AttributesTarget extends Attributes {
return
id
;
}
public
void
setShape
(
VShape
shape
)
{
this
.
shape
=
shape
;
}
public
VShape
getShape
()
{
return
shape
;
}
...
...
VadereState/src/org/vadere/state/scenario/Agent.java
View file @
b90c9ffb
...
...
@@ -98,6 +98,11 @@ public abstract class Agent extends DynamicElement {
public
VPoint
getPosition
()
{
return
position
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
position
=
newShape
.
getCentroid
();
}
@Override
public
VShape
getShape
()
{
...
...
VadereState/src/org/vadere/state/scenario/Obstacle.java
View file @
b90c9ffb
...
...
@@ -15,6 +15,11 @@ public class Obstacle extends ScenarioElement {
this
.
attributes
=
attributes
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
attributes
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
...
...
VadereState/src/org/vadere/state/scenario/Source.java
View file @
b90c9ffb
...
...
@@ -12,6 +12,11 @@ public class Source extends ScenarioElement {
this
.
attributes
=
attributes
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
attributes
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
return
attributes
.
getShape
();
...
...
VadereState/src/org/vadere/state/scenario/Stairs.java
View file @
b90c9ffb
...
...
@@ -64,6 +64,11 @@ public class Stairs extends ScenarioElement {
return
treadsResult
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
attributes
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
return
attributes
.
getShape
();
...
...
VadereState/src/org/vadere/state/scenario/Target.java
View file @
b90c9ffb
...
...
@@ -63,6 +63,11 @@ public class Target extends ScenarioElement implements Comparable<Target> {
return
attributes
.
getId
();
}
@Override
public
void
setShape
(
VShape
newShape
)
{
attributes
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
return
attributes
.
getShape
();
...
...
VadereState/src/org/vadere/state/scenario/TargetPedestrian.java
View file @
b90c9ffb
...
...
@@ -14,6 +14,11 @@ public class TargetPedestrian extends Target implements DynamicElementRemoveList
this
.
isDeleted
=
false
;
}
@Override
public
void
setShape
(
VShape
newShape
)
{
pedestrian
.
setShape
(
newShape
);
}
@Override
public
VShape
getShape
()
{
return
pedestrian
.
getShape
();
...
...
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