KUIML
Blue Cat's User Interface Programming Language
VIEW_3D

Description

This widget creates a 3D view that displays a 3D Scene where 3D Objects can be aggregated and represented as a tree structure. The viewpoint for the 3D scene is set by a translation vector (tx,ty,tz) followed by a rotation defined by Euler angles (rx,ry,rz) which coordinates can be initialized and controlled by exposed parameters.

Inherited Attributes

See Attributes Common to Widgets.

Specific Attributes

Name Value Type Default Value Description Comment V. Exp.

x_ratio

real number

1

aspect ratio for the x axis.


1.6

1.6

y_ratio

real number

1

aspect ratio for the y axis.


1.6

1.6

z_ratio

real number

1

aspect ratio for the z axis.


1.6

1.6

transform.tx

real number

1

tx coordinate for the translation matrix of the view point.


1.6

1.6

transform.ty

real number

1

ty coordinate for the translation matrix of the view point.


1.6

1.6

transform.tz

real number

1

tz coordinate for the translation matrix of the view point.


1.6

1.6

transform.rx

real number

1

rx: Euler angle (degrees) for the rotation around the x axis.


1.6

1.6

transform.ry

real number

1

ry: Euler angle (degrees) for the rotation around the y axis.


1.6

1.6

transform.rz

real number

1

rz: Euler angle (degrees) for the rotation around the z axis.


1.6

1.6

persistent_viewpoint

boolean

false

Shortcut to make all the parameters of the viewpoint persistent (apsect ratio and transform matrix coordinates). This also enables undo/redo on all modifications of the 3D viewpoint made by the end user.


1.6

1.6

Read Only Attributes

vendor

string

Vendor string of the openGL driver.

2.0

vendor

string

Vendor string of the openGL driver.

2.0

renderer

string

renderer string of the openGL driver.

2.0

version

string

version string of the openGL driver.

2.0

Examples

See the examples in the 3D Objects section.