mosaic.geometry.GeometryTrajectory#
- class GeometryTrajectory(trajectory, **kwargs)[source]#
Bases:
GeometryGeometry 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.
display_frame(frame_idx)Display specific trajectory frame.
get_number_of_points()Get total number of points in the geometry.
get_point_data()is_mesh_representation([representation])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.
subset(idx[, copy])swap_data(points[, normals, faces, ...])Replace geometry data with new point cloud or mesh data.
Attributes
actorVTK actor object for rendering.
Number of frames in the trajectory.
geometry_typeReturn a descriptive type of the current instance
modelnormalsNormal vectors at each point.
points3D point coordinates of the geometry.
quaternionsOrientation quaternions for each point.
sampling_ratevertex_propertiesvisibleVisibility state of the geometry.