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.

__init__(trajectory, **kwargs)[source]#

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

actor

VTK actor object for rendering.

frames

Number of frames in the trajectory.

geometry_type

Return a descriptive type of the current instance

model

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.