source/dcm_transform.py
def draw_xhair(self, pos_x, pos_y, pen_size, width, val, alpha=1.0):
        """ Draws a cross hair  in the buffer at x, y with size s and pen width w
            with intensity val and alpha blending alpha"""
        rounded_width = int(width / 2 * 2) + 1
        half_width = (rounded_width - 1) / 2
        line_len = int(pen_size)
        self.draw_frect(pos_x - line_len, pos_y - half_width,
                        line_len - half_width, rounded_width, val, alpha)
        self.draw_frect(pos_x + half_width + 1, pos_y - half_width,
                        line_len - half_width, rounded_width, val, alpha)
        self.draw_frect(pos_x - half_width, pos_y - line_len,
                        rounded_width, line_len - half_width, val, alpha)
        self.draw_frect(pos_x - half_width, pos_y + 1 + half_width,
                        rounded_width, line_len - half_width, val, alpha)
 Draws a cross hair  in the buffer at x, y with size s and pen width w
            with intensity val and alpha blending alpha
Draws a cross hair  in the buffer at x, y with size s and pen width w
with intensity val and alpha blending alpha
Draws a cross hair in the buffer at x y with size s and pen width w with intensity val and alpha blending alpha
def draw_xhair(self, pos_x, pos_y, pen_size, width, val, alpha=1.0):
        rounded_width = int(width / 2 * 2) + 1
        half_width = (rounded_width - 1) / 2
        line_len = int(pen_size)
        self.draw_frect(pos_x - line_len, pos_y - half_width,
                        line_len - half_width, rounded_width, val, alpha)
        self.draw_frect(pos_x + half_width + 1, pos_y - half_width,
                        line_len - half_width, rounded_width, val, alpha)
        self.draw_frect(pos_x - half_width, pos_y - line_len,
                        rounded_width, line_len - half_width, val, alpha)
        self.draw_frect(pos_x - half_width, pos_y + 1 + half_width,
                        rounded_width, line_len - half_width, val, alpha)
def draw_xhair ( self , pos_x , pos_y , pen_size , width , val , alpha = 1.0 ) : rounded_width = int ( width / 2 * 2 ) + 1 half_width = ( rounded_width - 1 ) / 2 line_len = int ( pen_size ) self . draw_frect ( pos_x - line_len , pos_y - half_width , line_len - half_width , rounded_width , val , alpha ) self . draw_frect ( pos_x + half_width + 1 , pos_y - half_width , line_len - half_width , rounded_width , val , alpha ) self . draw_frect ( pos_x - half_width , pos_y - line_len , rounded_width , line_len - half_width , val , alpha ) self . draw_frect ( pos_x - half_width , pos_y + 1 + half_width , rounded_width , line_len - half_width , val , alpha )
Draws a cross hair  in the buffer at x, y with size s and pen width w
with intensity val and alpha blending alpha
Draws a cross hair in the buffer at x y with size s and pen width w with intensity val and alpha blending alpha
""" Draws a cross hair  in the buffer at x, y with size s and pen width w
            with intensity val and alpha blending alpha"""
self
pos_x
pos_y
pen_size
width
val
alpha