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.
See Attributes Common to Widgets.
Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|
x_ratio |
1 |
aspect ratio for the x axis. |
|
1.6 |
1.6 | |
y_ratio |
1 |
aspect ratio for the y axis. |
|
1.6 |
1.6 | |
z_ratio |
1 |
aspect ratio for the z axis. |
|
1.6 |
1.6 | |
transform.tx |
1 |
tx coordinate for the translation matrix of the view point. |
|
1.6 |
1.6 | |
transform.ty |
1 |
ty coordinate for the translation matrix of the view point. |
|
1.6 |
1.6 | |
transform.tz |
1 |
tz coordinate for the translation matrix of the view point. |
|
1.6 |
1.6 | |
transform.rx |
1 |
rx: Euler angle (degrees) for the rotation around the x axis. |
|
1.6 |
1.6 | |
transform.ry |
1 |
ry: Euler angle (degrees) for the rotation around the y axis. |
|
1.6 |
1.6 | |
transform.rz |
1 |
rz: Euler angle (degrees) for the rotation around the z axis. |
|
1.6 |
1.6 | |
persistent_viewpoint |
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 |
Vendor string of the openGL driver. |
2.0 | ||||
vendor |
Vendor string of the openGL driver. |
2.0 | ||||
renderer |
renderer string of the openGL driver. |
2.0 | ||||
version |
version string of the openGL driver. |
2.0 |
See the examples in the 3D Objects section.