trescope.controller

Label

class trescope.controller. Label [source]

Label for information display .

Forward to a new web page if label is a hyper link .

Parameters

openIfLink – open if link , default True

Returns

self , for chain call

value ( value : str ) [source]

Value of label .

Parameters

value – value

Returns

self , for chain call

EnumControl

class trescope.controller. EnumControl [source]

Control for inputting enumerations .

defaultValue ( value : str ) [source]

Specify default value .

Parameters

value – value

Returns

self , for chain call

enumeration ( * enumeration : List [ str ] ) [source]

Specify enumerations .

Parameters

enumeration – enumeration

Returns

self , for chain call

style ( style : str ) [source]

Specify control to display vertically or horizontally .

Parameters

style – style , horizontal or vertical , default horizontal

Returns

self , for chain call

TextControl

class trescope.controller. TextControl [source]

Control for inputting text .

defaultValue ( value : str ) [source]

Specify default text .

Parameters

value – value

Returns

self , for chain call

VisualDataPickControl

class trescope.controller. VisualDataPickControl [source]

Control for picking visual data , now support Mesh3D , Scatter3D and Image bounding box .

attachOutput ( id : Union [ str , int ] ) [source]

Specify which output to pick data .

Parameters

id – output id

Returns

self , for chain call

colorWhenPicked ( color : int ) [source]

Specify color when data picked .

Parameters

color – color , default 0xff888888 (means light white with no transparency)

Returns

self , for chain call

defaultValue ( * value ) [source]

Specify default data picked .

Parameters

value – value

Returns

self , for chain call