ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
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
 Construct DDrawingPixel given its position and color. More...
 
def x
 X-Position. More...
 
def y
 Y-Position. More...
 
def setX
 Set X-Position. More...
 
def setY
 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
 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

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

def dectris.albula.DDrawingPixel.setX (   x)

Set X-Position.

Parameters
xFloat.
def dectris.albula.DDrawingPixel.setY (   y)

Set Y-Position.

Parameters
yFloat.
def dectris.albula.DDrawingPixel.x ( )

X-Position.

Returns
Float.
def dectris.albula.DDrawingPixel.y ( )

Y-Position.

Returns
Float.