VTK-m  2.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
vtkm::worklet::Tube::GeneratePoints Class Reference

#include <Tube.h>

Inheritance diagram for vtkm::worklet::Tube::GeneratePoints:
vtkm::worklet::WorkletVisitCellsWithPoints vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint > vtkm::exec::FunctorBase

Public Types

using ControlSignature = void(CellSetIn cellset, WholeArrayIn pointCoords, WholeArrayIn normals, FieldInCell numNonCoincidentPts, FieldInCell tubePointOffsets, FieldInCell polylineOffset, WholeArrayOut newPointCoords, WholeArrayOut outPointSrcIdx)
 
using ExecutionSignature = void(CellShape shapeType, PointCount numPoints, PointIndices ptIndices, _2 inPts, _3 inNormals, _4 numNonCoincidentPts, _5 tubePointOffsets, _6 polylineOffset, _7 outPts, _8 outPointSrcIdx)
 
using InputDomain = _1
 
using ScatterType = vtkm::worklet::ScatterCounting
 
- Public Types inherited from vtkm::worklet::WorkletVisitCellsWithPoints
using FieldInPoint = FieldInIncident
 
using FieldInCell = FieldInVisit
 
using FieldOutCell = FieldOut
 
using FieldInOutCell = FieldInOut
 
using PointCount = IncidentElementCount
 
using PointIndices = IncidentElementIndices
 
- Public Types inherited from vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint >
using VisitTopologyType = vtkm::TopologyElementTagCell
 
using IncidentTopologyType = vtkm::TopologyElementTagPoint
 

Public Member Functions

VTKM_CONT GeneratePoints (const bool &capping, const vtkm::Id &n, const vtkm::FloatDefault &r)
 
template<typename CellShapeTag , typename PointIndexType , typename InPointsType , typename InNormalsType , typename OutPointsType , typename OutPointSrcIdxType >
VTKM_EXEC void operator() (const CellShapeTag &shapeType, const vtkm::IdComponent &numPoints, const PointIndexType &ptIndices, const InPointsType &inPts, const InNormalsType &inNormals, const vtkm::Id &numNonCoincidentPts, const vtkm::Id &tubePointOffsets, const vtkm::Id &polylineOffset, OutPointsType &outPts, OutPointSrcIdxType &outPointSrcIdx) const
 
template<typename PointIndexType , typename InPointsType >
VTKM_EXEC vtkm::IdComponent FindNextNonCoincidentPointIndex (const PointIndexType &ptIndices, const InPointsType &inPts, vtkm::IdComponent start, vtkm::IdComponent numPoints) const
 
- Public Member Functions inherited from vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint >
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::CustomScatterOrMaskTagGetThreadIndices (vtkm::Id threadIndex, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const InputDomainType &connectivity) const
 Topology map worklets use topology map indices. More...
 
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC EnableFnWhen< S &&M, vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::DefaultScatterAndMaskTag > > GetThreadIndices (vtkm::Id threadIndex1D, const vtkm::Id3 &threadIndex3D, const OutToInArrayType &vtkmNotUsed(outToIn), const VisitArrayType &vtkmNotUsed(visit), const ThreadToOutArrayType &vtkmNotUsed(threadToOut), const InputDomainType &connectivity) const
 Optimized for ScatterIdentity and MaskNone. More...
 
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC EnableFnWhen<!(S &&M), vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::CustomScatterOrMaskTag > > GetThreadIndices (vtkm::Id threadIndex1D, const vtkm::Id3 &threadIndex3D, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const InputDomainType &connectivity) const
 Default version. More...
 

Static Public Member Functions

static VTKM_CONT ScatterType MakeScatter (const vtkm::cont::ArrayHandle< vtkm::Id > &validCell)
 

Private Attributes

bool Capping
 
vtkm::Id NumSides
 
vtkm::FloatDefault Radius
 
vtkm::FloatDefault Theta
 

Member Typedef Documentation

◆ ControlSignature

using vtkm::worklet::Tube::GeneratePoints::ControlSignature = void(CellSetIn cellset, WholeArrayIn pointCoords, WholeArrayIn normals, FieldInCell numNonCoincidentPts, FieldInCell tubePointOffsets, FieldInCell polylineOffset, WholeArrayOut newPointCoords, WholeArrayOut outPointSrcIdx)

◆ ExecutionSignature

using vtkm::worklet::Tube::GeneratePoints::ExecutionSignature = void(CellShape shapeType, PointCount numPoints, PointIndices ptIndices, _2 inPts, _3 inNormals, _4 numNonCoincidentPts, _5 tubePointOffsets, _6 polylineOffset, _7 outPts, _8 outPointSrcIdx)

◆ InputDomain

◆ ScatterType

Constructor & Destructor Documentation

◆ GeneratePoints()

VTKM_CONT vtkm::worklet::Tube::GeneratePoints::GeneratePoints ( const bool &  capping,
const vtkm::Id n,
const vtkm::FloatDefault r 
)
inline

Member Function Documentation

◆ FindNextNonCoincidentPointIndex()

template<typename PointIndexType , typename InPointsType >
VTKM_EXEC vtkm::IdComponent vtkm::worklet::Tube::GeneratePoints::FindNextNonCoincidentPointIndex ( const PointIndexType &  ptIndices,
const InPointsType &  inPts,
vtkm::IdComponent  start,
vtkm::IdComponent  numPoints 
) const
inline

◆ MakeScatter()

static VTKM_CONT ScatterType vtkm::worklet::Tube::GeneratePoints::MakeScatter ( const vtkm::cont::ArrayHandle< vtkm::Id > &  validCell)
inlinestatic

◆ operator()()

template<typename CellShapeTag , typename PointIndexType , typename InPointsType , typename InNormalsType , typename OutPointsType , typename OutPointSrcIdxType >
VTKM_EXEC void vtkm::worklet::Tube::GeneratePoints::operator() ( const CellShapeTag &  shapeType,
const vtkm::IdComponent numPoints,
const PointIndexType &  ptIndices,
const InPointsType &  inPts,
const InNormalsType &  inNormals,
const vtkm::Id numNonCoincidentPts,
const vtkm::Id tubePointOffsets,
const vtkm::Id polylineOffset,
OutPointsType &  outPts,
OutPointSrcIdxType &  outPointSrcIdx 
) const
inline

Member Data Documentation

◆ Capping

bool vtkm::worklet::Tube::GeneratePoints::Capping
private

◆ NumSides

vtkm::Id vtkm::worklet::Tube::GeneratePoints::NumSides
private

◆ Radius

vtkm::FloatDefault vtkm::worklet::Tube::GeneratePoints::Radius
private

◆ Theta

vtkm::FloatDefault vtkm::worklet::Tube::GeneratePoints::Theta
private

The documentation for this class was generated from the following file: