mosaic.geometry.GeometryTrajectory#
- class GeometryTrajectory(trajectory, **kwargs)[source]#
Bases:
Geometry
Geometry class for displaying animated trajectory sequences.
- Parameters:
- trajectorylist of dict
List of trajectory frames containing geometry data.
- **kwargs
Additional keyword arguments passed to parent Geometry class.
Methods
__init__
(trajectory, **kwargs)change_representation
([representation])Change the visual representation mode of the geometry.
color_points
(point_ids, color)Color specific points in the geometry using set_scalars backend.
compute_distance
(query_points[, k])display_frame
(frame_idx)Display specific trajectory frame.
get_number_of_points
()Get total number of points in the geometry.
merge
(geometries)Merge multiple geometry objects into a single geometry.
set_appearance
([size, opacity, ...])Set visual appearance properties of the geometry.
set_color
([color])Set uniform color for all points in the geometry.
set_scalars
(scalars, color_lut[, ...])Set scalar data for coloring points.
set_visibility
([visibility])Set geometry visibility in the scene.
swap_data
(points[, normals, faces, ...])Replace geometry data with new point cloud or mesh data.
Attributes
actor
VTK actor object for rendering.
Number of frames in the trajectory.
normals
Normal vectors at each point.
points
3D point coordinates of the geometry.
quaternions
Orientation quaternions for each point.
sampling_rate
vertex_properties
visible
Visibility state of the geometry.