A collection is a container for several items having the same data structure (dtype). Each data type can be declared as local (it specific to a vertex), shared (it is shared among an item vertices) or global (it is shared by all vertices). It is based on the BaseCollection but offers a more intuitive interface.
vispy.visuals.collections.collection.
Collection
Bases: vispy.visuals.collections.base_collection.BaseCollection
vispy.visuals.collections.base_collection.BaseCollection
A collection is a container for several items having the same data structure (dtype). Each data type can be declared as local (it is specific to a vertex), shared (it is shared among item vertices) or global (it is shared by all items). It is based on the BaseCollection but offers a more intuitive interface.
Data individual types as (name, dtype, scope, default)
Indices data type
GL_POINTS, GL_LINES, GL_LINE_STRIP, GL_LINE_LOOP, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN
Vertex shader to use to draw this collection
Fragment shader to use to draw this collection
Scope can also be specified using keyword argument, where parameter name must be one of the dtype.
draw
Draw collection
view
Return a view on the collection using provided transform
CollectionView
Bases: object
object