|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
A set of cells stored on a Grid. More...
#include <CellCluster.hpp>
Public Types | |
| typedef TypedArray< Eagle::PhysicalSpace::point > | CoordsArray_t |
| typedef MemArray< 1, Eagle::PhysicalSpace::point > | CoordsMemArray_t |
| typedef uint32_t | CellIndex_t |
| The index type used for line set indices. | |
| typedef std::vector< CellIndex_t > | CellIndices_t |
| A vector of cell indices. | |
| typedef MemArray< 1, CellIndices_t > | CellClusterArray_t |
| An array of line indices. | |
Public Member Functions | |
| CellCluster (const WeakPtr< Grid > &G=NullPtr()) | |
| Retrieve a CellCluster from a Grid object. | |
| bool | operator= (const WeakPtr< Grid > &G) |
| Assign from Grid pointer, will overwrite all members. | |
| CellCluster & | operator= (const CellCluster &LS) |
| Assigning from existing LineSet - faster than assigning from Grid pointer since it is just copying pointers. | |
| ~CellCluster () | |
| Destructor, cleans up references. | |
| operator bool () const | |
| Return true if line indices are defined, thus this is a set of lines. | |
| bool | operator! () const |
| Inverse operator of the line indices check. | |
Static Public Member Functions | |
| static SkeletonID | ClusterSkeletonID () |
| A Skeleton ID for clusters of cells. | |
| static SkeletonID | CellSkeletonID () |
| The Skeleton ID of the objects that are going to be clustered here. | |
| static SkeletonID | ID () |
| A Skeleton ID that is supposed to be typical for this Grid Type. | |
Public Attributes | |
| RefPtr< Skeleton > | Vertices |
| RefPtr< Skeleton > | Cells |
| RefPtr< Skeleton > | Clusters |
| RefPtr< Representation > | CartesianVertices |
| RefPtr< Representation > | ClustersAsCartesianVertices |
| RefPtr< Representation > | ClustersAsCells |
| RefPtr< Field > | Coords |
| RefPtr< Field > | ClusterCoordinates |
| RefPtr< Field > | ClusterAsVertexIndices |
| RefPtr< Field > | ClusterAsCellIndices |
| Which cells constitute a cluster. | |
| RefPtr< Field > | CellsAsCluster |
| Which clusters are at each cell. | |
A set of cells stored on a Grid.
The (2,2) Skeleton describes the sets of k-cells.
The positions field of this triangle set is a 1D array of vector<index_t> which describes the triangle indices make up a triangle set.
A Grid object can be easily tested whether it is ("conforms to the concept of") a CellCluster:
| typedef MemArray<1, CellIndices_t> Fiber::CellCluster< CellDims, ClusterDepth >::CellClusterArray_t |
An array of line indices.
This will make an vector<vector<>> and thus has to be taken with care since I/O will be slow.
| typedef uint32_t Fiber::CellCluster< CellDims, ClusterDepth >::CellIndex_t |
The index type used for line set indices.
This is a 32 bit unsigned integer because of OpenGL, mostly. OpenGL cannot render 64bit indices, and we want to be able to shuffle the line set indices stored here directly to the graphics card.
|
inlinestatic |
A Skeleton ID for clusters of cells.
This skeleton bundles the vertices and cells per cluster together. See also the ID() function.
Referenced by Fiber::CellCluster< CellDims, ClusterDepth >::CellCluster(), and Fiber::CellCluster< CellDims, ClusterDepth >::ID().
| bool Fiber::CellCluster< CellDims, ClusterDepth >::operator= | ( | const WeakPtr< Grid > & | G | ) |