ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
dectris.albula.DDrawingPrimitive Class Reference

class DDrawingPrimitve contains primitives that are displayed in a viewer window. More...

Inheritance diagram for dectris.albula.DDrawingPrimitive:
dectris.albula.DDrawingEllipse dectris.albula.DDrawingLine dectris.albula.DDrawingPixel dectris.albula.DDrawingString

Public Member Functions

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 DDrawingPrimitve contains primitives that are displayed in a viewer window.

Possible primitives are pixels, lines, strings and ellipses which are represented by the subclasses DDrawingPixel, DDrawingLine, DDrawingString and DDrawingEllipse respectively. In order to display drawing primitives in a DSubFrame they have to be passed to the DSubFrame by DSubFrame.setPaintList() or DSubFrame.addToPaintList().

Member Function Documentation

def dectris.albula.DDrawingPrimitive.alpha ( )

alpha component of the color.

alpha defines the opacity of the displayed primitive.

Returns
Integer between 0 and 255
def dectris.albula.DDrawingPrimitive.blue ( )

blue component of the color.

Returns
Integer between 0 and 255
def dectris.albula.DDrawingPrimitive.green ( )

green component of the color.

Returns
Integer between 0 and 255
def dectris.albula.DDrawingPrimitive.red ( )

red component of the color.

Returns
Integer between 0 and 255
def dectris.albula.DDrawingPrimitive.setColor (   red,
  green,
  blue,
  alpha 
)

Set the red, green, blue and alpha component of the color.

Parameters
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.
def dectris.albula.DDrawingPrimitive.type ( )

Returns the type of the primitve.

Returns
DDrawingPrimitive.PIXEL, DDrawingPrimitive.LINE, DDrawingPrimitive.STRING, DDrawingPrimitive.ELLIPSE if the type is a DDrawingPixel, DDrawingLine, DDrawingString, DDrawingEllipse repectively.