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

#include <Tube.h>

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

Public Types

using ControlSignature = void(CellSetIn cellset, WholeArrayIn pointCoords, FieldInCell polylineOffset, WholeArrayOut newNormals)
 
using ExecutionSignature = void(CellShape shapeType, PointCount numPoints, PointIndices ptIndices, _2 inPts, _3 polylineOffset, _4 outNormals)
 
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 GenerateNormals ()
 
template<typename InPointsType , typename PointIndexType >
VTKM_EXEC vtkm::IdComponent FindValidSegment (const InPointsType &inPts, const PointIndexType &ptIndices, const vtkm::IdComponent &numPoints, vtkm::IdComponent start) const
 
template<typename CellShapeTag , typename PointIndexType , typename InPointsType , typename OutNormalType >
VTKM_EXEC void operator() (const CellShapeTag &shapeType, const vtkm::IdComponent &numPoints, const PointIndexType &ptIndices, const InPointsType &inPts, const vtkm::Id &polylineOffset, OutNormalType &outNormals) 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

vtkm::Vec3f DefaultNorm
 

Static Private Attributes

static constexpr vtkm::FloatDefault vecMagnitudeEps = static_cast<vtkm::FloatDefault>(1e-3)
 

Member Typedef Documentation

◆ ControlSignature

using vtkm::worklet::Tube::GenerateNormals::ControlSignature = void(CellSetIn cellset, WholeArrayIn pointCoords, FieldInCell polylineOffset, WholeArrayOut newNormals)

◆ ExecutionSignature

using vtkm::worklet::Tube::GenerateNormals::ExecutionSignature = void(CellShape shapeType, PointCount numPoints, PointIndices ptIndices, _2 inPts, _3 polylineOffset, _4 outNormals)

◆ InputDomain

◆ ScatterType

Constructor & Destructor Documentation

◆ GenerateNormals()

VTKM_CONT vtkm::worklet::Tube::GenerateNormals::GenerateNormals ( )
inline

Member Function Documentation

◆ FindValidSegment()

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

◆ MakeScatter()

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

◆ operator()()

template<typename CellShapeTag , typename PointIndexType , typename InPointsType , typename OutNormalType >
VTKM_EXEC void vtkm::worklet::Tube::GenerateNormals::operator() ( const CellShapeTag &  shapeType,
const vtkm::IdComponent numPoints,
const PointIndexType &  ptIndices,
const InPointsType &  inPts,
const vtkm::Id polylineOffset,
OutNormalType &  outNormals 
) const
inline

Member Data Documentation

◆ DefaultNorm

vtkm::Vec3f vtkm::worklet::Tube::GenerateNormals::DefaultNorm
private

◆ vecMagnitudeEps

constexpr vtkm::FloatDefault vtkm::worklet::Tube::GenerateNormals::vecMagnitudeEps = static_cast<vtkm::FloatDefault>(1e-3)
staticconstexprprivate

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