layout
#
|
Provide functionalities for laying out actors in a 3D scene. |
|
Provide functionalities for laying out actors in a 2D grid fashion. |
|
Provide functionalities for laying out actors in a horizontal layout. |
|
Provide functionalities for laying out actors in a vertical stack. |
|
Provide functionalities for laying out actors along x-axis. |
|
Provide functionalities for laying out actors along y-axis. |
|
Provide functionalities for laying out actors along z-axis. |
Layout
#
GridLayout
#
- class fury.layout.GridLayout(*, cell_padding=0, cell_shape='rect', aspect_ratio=1.7777777777777777, dim=None, position_offset=(0, 0, 0))[source]#
Bases:
Layout
Provide functionalities for laying out actors in a 2D grid fashion.
The GridLayout class lays the actors in a 2D structured grid aligned with the xy-plane.
- compute_positions(actors)[source]#
Compute the 3D coordinates of some actors. The coordinates will lie on the xy-plane and form a 2D grid.
- Parameters:
- actorslist of vtkProp3D objects
Actors to be layout in a grid manner.
- Returns:
- list of 3-tuple
The computed 3D coordinates of every actors.
HorizontalLayout
#
- class fury.layout.HorizontalLayout(*, cell_padding=0, cell_shape='rect')[source]#
Bases:
GridLayout
Provide functionalities for laying out actors in a horizontal layout.
- compute_positions(actors)[source]#
Compute the 3D coordinates of some actors. The coordinates will lie on the xy-plane and form a horizontal stack.
- Parameters:
- actorslist of vtkProp3D objects
Actors to be layout in a horizontal fashion.
- Returns:
- list of 3-tuple
The computed 3D coordinates of every actors.
VerticalLayout
#
- class fury.layout.VerticalLayout(*, cell_padding=0, cell_shape='rect')[source]#
Bases:
GridLayout
Provide functionalities for laying out actors in a vertical stack.
XLayout
#
- class fury.layout.XLayout(*, direction='x+', cell_padding=0, cell_shape='rect')[source]#
Bases:
HorizontalLayout
Provide functionalities for laying out actors along x-axis.
- compute_positions(actors)[source]#
Compute the 3D coordinates of some actors.
The coordinates will lie on the xy-plane and will be placed along x-axis.
- Parameters:
- actorslist of vtkProp3D objects
Actors to be layout along the x-axis.
- Returns:
- list of 3-tuple
The computed 3D coordinates of every actors.
YLayout
#
- class fury.layout.YLayout(*, direction='y+', cell_padding=0, cell_shape='rect')[source]#
Bases:
VerticalLayout
Provide functionalities for laying out actors along y-axis.
- compute_positions(actors)[source]#
Compute the 3D coordinates of some actors.
The coordinates will lie on the xy-plane and will be placed along y-axis.
- Parameters:
- actorslist of vtkProp3D objects
Actors to be layout along the y-axis.
- Returns:
- list of 3-tuple
The computed 3D coordinates of every actors.
ZLayout
#
- class fury.layout.ZLayout(*, direction='z+', cell_padding=0, cell_shape='rect')[source]#
Bases:
GridLayout
Provide functionalities for laying out actors along z-axis.