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

class DDrawingString is a DDrawingPrimitive that represents a string in the viewer window. More...

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

Public Member Functions

def DDrawingString
 Construct DDrawingString by passing its position, its text content and its color. More...
 
def x
 X position of the string. More...
 
def y
 Y position of the string. More...
 
def text
 Text to be displayed. More...
 
def setX
 Set X position of the string. More...
 
def setY
 Set Y position of the string. More...
 
def setText
 Set text of the string. 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 DDrawingString is a DDrawingPrimitive that represents a string in the viewer window.

The length of the string is restricted to 256 characters.

Constructor & Destructor Documentation

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

Construct DDrawingString by passing its position, its text content and its color.

Parameters
xFloat. X position.
yFloat. Y position.
textString. Text to be displayed. Maximum 256 characters.
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.DDrawingString.setText (   text)

Set text of the string.

Maximum 256 characters.

Parameters
textString.
def dectris.albula.DDrawingString.setX (   x)

Set X position of the string.

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

Set Y position of the string.

Parameters
yFloat
def dectris.albula.DDrawingString.text ( )

Text to be displayed.

Returns
String.
def dectris.albula.DDrawingString.x ( )

X position of the string.

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

Y position of the string.

Returns
Float