ALBULA  4.0.1
dectris.albula.DDrawingPixel Class Reference

class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross. More...

Inheritance diagram for dectris.albula.DDrawingPixel:
dectris.albula.DDrawingPrimitive

Public Member Functions

def DDrawingPixel (x, y, red, green, blue, alpha=255)
 Construct DDrawingPixel given its position and color. More...
 
def x ()
 X-Position. More...
 
def y ()
 Y-Position. More...
 
def setX (x)
 Set X-Position. More...
 
def setY (y)
 Set Y-Position. More...
 
- Public Member Functions inherited from dectris.albula.DDrawingPrimitive
def type ()
 Returns the type of the primitve. More...
 
def red ()
 red component of the color. More...
 
def green ()
 green component of the color. More...
 
def blue ()
 blue component of the color. More...
 
def alpha ()
 alpha component of the color. More...
 
def setColor (red, green, blue, alpha)
 Set the red, green, blue and alpha component of the color. More...
 

Detailed Description

class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross.

It is defined by its position.

Constructor & Destructor Documentation

◆ DDrawingPixel()

def dectris.albula.DDrawingPixel.DDrawingPixel (   x,
  y,
  red,
  green,
  blue,
  alpha = 255 
)

Construct DDrawingPixel given its position and color.

Parameters
xFloat. X-Position.
yFloat. Y-Position.
redInteger between 0 and 255
greenInteger between 0 and 255
blueInteger between 0 and 255
alphaInteger between 0 and 255. alpha defines the opacity of the displayed primitive.

Member Function Documentation

◆ setX()

def dectris.albula.DDrawingPixel.setX (   x)

Set X-Position.

Parameters
xFloat.

◆ setY()

def dectris.albula.DDrawingPixel.setY (   y)

Set Y-Position.

Parameters
yFloat.

◆ x()

def dectris.albula.DDrawingPixel.x ( )

X-Position.

Returns
Float.

◆ y()

def dectris.albula.DDrawingPixel.y ( )

Y-Position.

Returns
Float.