Go to the documentation of this file.
11 #ifndef vtk_m_interop_anari_ANARIMapperPoints_h
12 #define vtk_m_interop_anari_ANARIMapperPoints_h
31 anari_cpp::Array1D
Radius{
nullptr };
76 anari_cpp::Device device,
78 const std::string& name =
"<points>",
88 void SetActor(
const ANARIActor& actor)
override;
93 void SetMapFieldAsAttribute(
bool enabled)
override;
98 void SetANARIColorMap(anari_cpp::Array1D color,
99 anari_cpp::Array1D opacity,
100 bool releaseArrays =
true)
override;
104 void SetANARIColorMapValueRange(
const vtkm::Vec2f_32& valueRange)
override;
106 anari_cpp::Geometry GetANARIGeometry()
override;
107 anari_cpp::Surface GetANARISurface()
override;
113 void ConstructArrays(
bool regenerate =
false);
115 void UpdateGeometry();
117 void UpdateMaterial();
122 anari_cpp::Device Device{
nullptr };
123 anari_cpp::Geometry Geometry{
nullptr };
124 anari_cpp::Sampler Sampler{
nullptr };
125 anari_cpp::Material Material{
nullptr };
126 anari_cpp::Surface Surface{
nullptr };
129 void ReleaseArrays();
int NumberOfField1Components
Definition: ANARIMapperPoints.h:53
Definition: VtkmANARITypes.h:30
Container of all relevant ANARI scene object handles.
Definition: ANARIMapperPoints.h:120
Manages an array-worth of data.
Definition: ArrayHandle.h:300
int NumberOfField2Components
Definition: ANARIMapperPoints.h:56
Groups connected points that have the same field value.
Definition: Atomic.h:19
Color Table for coloring arbitrary fields.
Definition: cont/ColorTable.h:89
vtkm::cont::ArrayHandleRuntimeVec< vtkm::Float32 > Field4
Definition: ANARIMapperPoints.h:61
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
anari_cpp::Array1D Position
Definition: ANARIMapperPoints.h:30
This is the base class used for all ANARI mappers.
Definition: ANARIMapper.h:37
unsigned int NumPrimitives
Definition: ANARIMapperPoints.h:36
std::shared_ptr< ANARIHandles > Handles
Definition: ANARIMapperPoints.h:132
std::string Field1Name
Definition: ANARIMapperPoints.h:54
vtkm::cont::ArrayHandleRuntimeVec< vtkm::Float32 > Field2
Definition: ANARIMapperPoints.h:55
Mapper which turns each point into ANARI sphere geometry.
Definition: ANARIMapperPoints.h:71
std::array< std::string, 4 > AttributeName
Definition: ANARIMapperPoints.h:33
VTK-m data arrays underlying the ANARIArray handles created by the mapper.
Definition: ANARIMapperPoints.h:41
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
struct vtkm::interop::anari::PointsParameters::VertexData Vertex
VTK-m data arrays underlying the ANARIArray handles created by the mapper for field attributes.
Definition: ANARIMapperPoints.h:50
anari_cpp::Array1D Radius
Definition: ANARIMapperPoints.h:31
Collects cells, coords, and 0-4 fields for ANARI mappers to consume.
Definition: ANARIActor.h:52
PointsParameters Parameters
Definition: ANARIMapperPoints.h:127
std::shared_ptr< vtkm::cont::Token > Token
Definition: ANARIMapperPoints.h:45
Raw ANARI arrays and parameter values set on the ANARIGeometry.
Definition: ANARIMapperPoints.h:26
vtkm::cont::ArrayHandleRuntimeVec< vtkm::Float32 > Field1
Definition: ANARIMapperPoints.h:52
std::array< anari_cpp::Array1D, 4 > Attribute
Definition: ANARIMapperPoints.h:32
std::shared_ptr< vtkm::cont::Token > Token
Definition: ANARIMapperPoints.h:64
Definition: ANARIMapperPoints.h:28
vtkm::cont::ArrayHandleRuntimeVec< vtkm::Float32 > Field3
Definition: ANARIMapperPoints.h:58
std::string Field3Name
Definition: ANARIMapperPoints.h:60
vtkm::cont::ArrayHandle< vtkm::Vec3f_32 > Vertices
Definition: ANARIMapperPoints.h:43
std::string Field4Name
Definition: ANARIMapperPoints.h:63
int NumberOfField4Components
Definition: ANARIMapperPoints.h:62
PointsFieldArrays FieldArrays
Definition: ANARIMapperPoints.h:135
int NumberOfField3Components
Definition: ANARIMapperPoints.h:59
std::string Field2Name
Definition: ANARIMapperPoints.h:57
PointsArrays Arrays
Definition: ANARIMapperPoints.h:134
vtkm::cont::ArrayHandle< vtkm::Float32 > Radii
Definition: ANARIMapperPoints.h:44