Skip to main content
`Ctrl`+`K`

# vispy.visuals.collections package

## Submodules

- vispy.visuals.collections.agg_fast_path_collection module
  - `AggFastPathCollection`
    - `AggFastPathCollection.append()`
    - `AggFastPathCollection.bake()`
    - `AggFastPathCollection.draw()`
- vispy.visuals.collections.agg_path_collection module
  - `AggPathCollection`
    - `AggPathCollection.append()`
    - `AggPathCollection.draw()`
- vispy.visuals.collections.agg_point_collection module
  - `AggPointCollection`
- vispy.visuals.collections.agg_segment_collection module
  - `AggSegmentCollection`
    - `AggSegmentCollection.append()`
- vispy.visuals.collections.array_list module
  - Example
  - Example
  - `ArrayList`
    - `ArrayList.append()`
    - `ArrayList.data`
    - `ArrayList.dtype`
    - `ArrayList.insert()`
    - `ArrayList.itemsize`
    - `ArrayList.reserve()`
    - `ArrayList.size`
- vispy.visuals.collections.base_collection module
  - `BaseCollection`
    - `BaseCollection.append()`
    - `BaseCollection.itype`
    - `BaseCollection.utype`
    - `BaseCollection.vtype`
  - `Item`
    - `Item.indices`
    - `Item.uniforms`
    - `Item.vertices`
  - `next_power_of_2()`
- vispy.visuals.collections.collection module
  - `Collection`
    - `Collection.draw()`
    - `Collection.view()`
  - `CollectionView`
    - `CollectionView.draw()`
- vispy.visuals.collections.path_collection module
  - `PathCollection()`
- vispy.visuals.collections.point_collection module
  - `PointCollection()`
- vispy.visuals.collections.polygon_collection module
  - `PolygonCollection()`
- vispy.visuals.collections.raw_path_collection module
  - `RawPathCollection`
    - `RawPathCollection.append()`
- vispy.visuals.collections.raw_point_collection module
  - `RawPointCollection`
    - `RawPointCollection.append()`
- vispy.visuals.collections.raw_polygon_collection module
  - `RawPolygonCollection`
    - `RawPolygonCollection.append()`
- vispy.visuals.collections.raw_segment_collection module
  - `RawSegmentCollection`
    - `RawSegmentCollection.append()`
- vispy.visuals.collections.raw_triangle_collection module
  - `RawTriangleCollection`
    - `RawTriangleCollection.append()`
- vispy.visuals.collections.segment_collection module
  - `SegmentCollection()`
- vispy.visuals.collections.triangle_collection module
  - `TriangleCollection()`
- vispy.visuals.collections.util module
  - `dtype_reduce()`
  - `fetchcode()`

## Module contents

Collections allow batch rendering of object of the same type:

> - Points

> - Line segments

> - Polylines (paths)

> - Raw Triangles

> - Polygons

Each collection has several modes:

> - raw (point, segment, path, triangle, polygon)

> - agg (point, segment, path, polygon)

> - agg+ (path, polygon)

Note: Storage of shared attributes requires non-clamped textures which is not

  the case on all graphic cards. This means such shared attributes must be normalized on CPU and scales back on GPU (in shader code).