VTK-m
2.0
|
#include <CastAndCall.h>
Classes | |
struct | ConnectivityChooser |
struct | Internals |
Public Types | |
using | SchedulingRangeType = vtkm::Id |
using | ShapesArrayType = typename CellPointIdsType::ShapesArrayType |
using | ConnectivityArrayType = typename CellPointIdsType::ConnectivityArrayType |
using | OffsetsArrayType = typename CellPointIdsType::OffsetsArrayType |
using | NumIndicesArrayType = typename ConnTypes::NumIndicesArrayType |
template<typename VisitTopology , typename IncidentTopology > | |
using | ExecConnectivityType = typename ConnectivityChooser< VisitTopology, IncidentTopology >::ExecConnectivityType |
Public Member Functions | |
VTKM_CONT | CellSetExplicit () |
VTKM_CONT | CellSetExplicit (const Thisclass &src) |
VTKM_CONT | CellSetExplicit (Thisclass &&src) noexcept |
VTKM_CONT Thisclass & | operator= (const Thisclass &src) |
VTKM_CONT Thisclass & | operator= (Thisclass &&src) noexcept |
virtual VTKM_CONT | ~CellSetExplicit () override |
VTKM_CONT vtkm::Id | GetNumberOfCells () const override |
VTKM_CONT vtkm::Id | GetNumberOfPoints () const override |
VTKM_CONT vtkm::Id | GetNumberOfFaces () const override |
VTKM_CONT vtkm::Id | GetNumberOfEdges () const override |
VTKM_CONT void | PrintSummary (std::ostream &out) const override |
VTKM_CONT void | ReleaseResourcesExecution () override |
VTKM_CONT std::shared_ptr< CellSet > | NewInstance () const override |
VTKM_CONT void | DeepCopy (const CellSet *src) override |
VTKM_CONT vtkm::Id | GetSchedulingRange (vtkm::TopologyElementTagCell) const |
VTKM_CONT vtkm::Id | GetSchedulingRange (vtkm::TopologyElementTagPoint) const |
VTKM_CONT vtkm::IdComponent | GetNumberOfPointsInCell (vtkm::Id cellid) const override |
VTKM_CONT void | GetCellPointIds (vtkm::Id id, vtkm::Id *ptids) const override |
VTKM_CONT vtkm::cont::ArrayHandle< vtkm::UInt8, ShapesStorageTag >::ReadPortalType | ShapesReadPortal () const |
VTKM_CONT vtkm::UInt8 | GetCellShape (vtkm::Id cellid) const override |
template<vtkm::IdComponent NumIndices> | |
VTKM_CONT void | GetIndices (vtkm::Id index, vtkm::Vec< vtkm::Id, NumIndices > &ids) const |
VTKM_CONT void | GetIndices (vtkm::Id index, vtkm::cont::ArrayHandle< vtkm::Id > &ids) const |
VTKM_CONT void | PrepareToAddCells (vtkm::Id numCells, vtkm::Id connectivityMaxLen) |
First method to add cells – one at a time. More... | |
template<typename IdVecType > | |
VTKM_CONT void | AddCell (vtkm::UInt8 cellType, vtkm::IdComponent numVertices, const IdVecType &ids) |
VTKM_CONT void | CompleteAddingCells (vtkm::Id numPoints) |
VTKM_CONT void | Fill (vtkm::Id numPoints, const vtkm::cont::ArrayHandle< vtkm::UInt8, ShapesStorageTag > &cellTypes, const vtkm::cont::ArrayHandle< vtkm::Id, ConnectivityStorageTag > &connectivity, const vtkm::cont::ArrayHandle< vtkm::Id, OffsetsStorageTag > &offsets) |
Second method to add cells – all at once. More... | |
template<typename VisitTopology , typename IncidentTopology > | |
VTKM_CONT ExecConnectivityType< VisitTopology, IncidentTopology > | PrepareForInput (vtkm::cont::DeviceAdapterId, VisitTopology, IncidentTopology, vtkm::cont::Token &) const |
template<typename VisitTopology , typename IncidentTopology > | |
const VTKM_CONT ConnectivityChooser< VisitTopology, IncidentTopology >::ShapesArrayType & | GetShapesArray (VisitTopology, IncidentTopology) const |
template<typename VisitTopology , typename IncidentTopology > | |
const VTKM_CONT ConnectivityChooser< VisitTopology, IncidentTopology >::ConnectivityArrayType & | GetConnectivityArray (VisitTopology, IncidentTopology) const |
template<typename VisitTopology , typename IncidentTopology > | |
const VTKM_CONT ConnectivityChooser< VisitTopology, IncidentTopology >::OffsetsArrayType & | GetOffsetsArray (VisitTopology, IncidentTopology) const |
template<typename VisitTopology , typename IncidentTopology > | |
VTKM_CONT ConnectivityChooser< VisitTopology, IncidentTopology >::NumIndicesArrayType | GetNumIndicesArray (VisitTopology, IncidentTopology) const |
template<typename VisitTopology , typename IncidentTopology > | |
VTKM_CONT bool | HasConnectivity (VisitTopology visit, IncidentTopology incident) const |
template<typename VisitTopology , typename IncidentTopology > | |
VTKM_CONT void | ResetConnectivity (VisitTopology visit, IncidentTopology incident) |
Protected Attributes | |
std::shared_ptr< Internals > | Data |
Private Types | |
using | Thisclass = CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag > |
using | ConnTypes = ConnectivityChooser< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint > |
using | RConnTypes = ConnectivityChooser< vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell > |
using | CellPointIdsType = typename ConnTypes::ConnectivityType |
using | PointCellIdsType = typename RConnTypes::ConnectivityType |
Private Member Functions | |
const VTKM_CONT CellPointIdsType & | GetConnectivity (vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const |
const VTKM_CONT CellPointIdsType & | GetConnectivity (vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) |
const VTKM_CONT PointCellIdsType & | GetConnectivity (vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) const |
const VTKM_CONT PointCellIdsType & | GetConnectivity (vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) |
|
private |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::ConnectivityArrayType = typename CellPointIdsType::ConnectivityArrayType |
|
private |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::ExecConnectivityType = typename ConnectivityChooser<VisitTopology, IncidentTopology>::ExecConnectivityType |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::NumIndicesArrayType = typename ConnTypes::NumIndicesArrayType |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::OffsetsArrayType = typename CellPointIdsType::OffsetsArrayType |
|
private |
|
private |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::SchedulingRangeType = vtkm::Id |
using vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::ShapesArrayType = typename CellPointIdsType::ShapesArrayType |
|
private |
VTKM_CONT vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::CellSetExplicit | ( | ) |
VTKM_CONT vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::CellSetExplicit | ( | const Thisclass & | src | ) |
|
noexcept |
|
overridevirtual |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::AddCell | ( | vtkm::UInt8 | cellType, |
vtkm::IdComponent | numVertices, | ||
const IdVecType & | ids | ||
) |
|
inlineprotected |
|
inlineprotected |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::CompleteAddingCells | ( | vtkm::Id | numPoints | ) |
|
override |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::Fill | ( | vtkm::Id | numPoints, |
const vtkm::cont::ArrayHandle< vtkm::UInt8, ShapesStorageTag > & | cellTypes, | ||
const vtkm::cont::ArrayHandle< vtkm::Id, ConnectivityStorageTag > & | connectivity, | ||
const vtkm::cont::ArrayHandle< vtkm::Id, OffsetsStorageTag > & | offsets | ||
) |
Second method to add cells – all at once.
Assigns the array handles to the explicit connectivity. This is the way you can fill the memory from another system without copying
|
override |
|
override |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
const VTKM_CONT ConnectivityChooser<VisitTopology, IncidentTopology>::ConnectivityArrayType& vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetConnectivityArray | ( | VisitTopology | , |
IncidentTopology | |||
) | const |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetIndices | ( | vtkm::Id | index, |
vtkm::cont::ArrayHandle< vtkm::Id > & | ids | ||
) | const |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetIndices | ( | vtkm::Id | index, |
vtkm::Vec< vtkm::Id, NumIndices > & | ids | ||
) | const |
|
override |
|
override |
|
override |
|
override |
|
override |
VTKM_CONT ConnectivityChooser<VisitTopology, IncidentTopology>::NumIndicesArrayType vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetNumIndicesArray | ( | VisitTopology | , |
IncidentTopology | |||
) | const |
const VTKM_CONT ConnectivityChooser<VisitTopology, IncidentTopology>::OffsetsArrayType& vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetOffsetsArray | ( | VisitTopology | , |
IncidentTopology | |||
) | const |
VTKM_CONT vtkm::Id vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetSchedulingRange | ( | vtkm::TopologyElementTagCell | ) | const |
VTKM_CONT vtkm::Id vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetSchedulingRange | ( | vtkm::TopologyElementTagPoint | ) | const |
const VTKM_CONT ConnectivityChooser<VisitTopology, IncidentTopology>::ShapesArrayType& vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::GetShapesArray | ( | VisitTopology | , |
IncidentTopology | |||
) | const |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
override |
VTKM_CONT Thisclass& vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::operator= | ( | const Thisclass & | src | ) |
|
noexcept |
VTKM_CONT ExecConnectivityType<VisitTopology, IncidentTopology> vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::PrepareForInput | ( | vtkm::cont::DeviceAdapterId | , |
VisitTopology | , | ||
IncidentTopology | , | ||
vtkm::cont::Token & | |||
) | const |
VTKM_CONT void vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::PrepareToAddCells | ( | vtkm::Id | numCells, |
vtkm::Id | connectivityMaxLen | ||
) |
First method to add cells – one at a time.
|
override |
|
override |
|
inline |
|
inlineprotected |
|
inlineprotected |
VTKM_CONT vtkm::cont::ArrayHandle<vtkm::UInt8, ShapesStorageTag>::ReadPortalType vtkm::cont::CellSetExplicit< ShapesStorageTag, ConnectivityStorageTag, OffsetsStorageTag >::ShapesReadPortal | ( | ) | const |
|
protected |