marker.py 546 Bytes
Newer Older
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
1
2
3
4
5
6
7
8
9
10
11
12
"""The marker module provides the interface to the markers. A marker is any point on
 the coordinate system of the simulators sim"""


from lib import matter

black = 1
gray = 2
red = 3
green = 4
blue = 5

Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
13
class Marker(matter.Matter):
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
14
15
    """In the classe marker all the methods for the characterstic of a marker is included"""

Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
16
    def __init__(self, sim, x, y, color=black, alpha=1):
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
17
        """Initializing the marker constructor"""
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
18
        super().__init__( sim, (x, y), color, alpha, type="marker", mm_size=sim.config_data.marker_mm_size)
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
19
20