VTK-m  2.0
CylinderExtractor.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_rendering_raytracing_Cylinder_Extractor_h
11 #define vtk_m_rendering_raytracing_Cylinder_Extractor_h
12 
13 #include <vtkm/cont/DataSet.h>
14 
15 namespace vtkm
16 {
17 namespace rendering
18 {
19 namespace raytracing
20 {
21 
28 {
29 protected:
32 
33 public:
34  //
35  // Extract all vertex shapes with constant radius
36  //
37  void ExtractCells(const vtkm::cont::UnknownCellSet& cells, vtkm::Float32 radius);
38 
39  //
40  // Extract all vertex elements with radius based on scalar values
41  //
42  void ExtractCells(const vtkm::cont::UnknownCellSet& cells,
43  const vtkm::cont::Field& field,
44  const vtkm::Float32 minRadius,
45  const vtkm::Float32 maxRadius);
46 
47 
49 
52 
53 protected:
54  void SetUniformRadius(const vtkm::Float32 radius);
55  void SetVaryingRadius(const vtkm::Float32 minRadius,
56  const vtkm::Float32 maxRadius,
57  const vtkm::cont::Field& field);
58 
59  // void SetPointIdsFromCoords(const vtkm::cont::CoordinateSystem& coords);
61 
62 }; // class ShapeIntersector
63 }
64 }
65 } //namespace vtkm::rendering::raytracing
66 #endif //vtk_m_rendering_raytracing_Shape_Extractor_h
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:283
vtkm::rendering::raytracing::CylinderExtractor::GetCylIds
vtkm::cont::ArrayHandle< vtkm::Id3 > GetCylIds()
vtkm::rendering::raytracing::CylinderExtractor
CylinderExtractor creates a line segments from the edges of a cell set.
Definition: CylinderExtractor.h:27
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::rendering::raytracing::CylinderExtractor::CylIds
vtkm::cont::ArrayHandle< vtkm::Id3 > CylIds
Definition: CylinderExtractor.h:30
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::rendering::raytracing::CylinderExtractor::GetRadii
vtkm::cont::ArrayHandle< vtkm::Float32 > GetRadii()
vtkm::rendering::raytracing::CylinderExtractor::GetNumberOfCylinders
vtkm::Id GetNumberOfCylinders() const
vtkm::rendering::raytracing::CylinderExtractor::SetVaryingRadius
void SetVaryingRadius(const vtkm::Float32 minRadius, const vtkm::Float32 maxRadius, const vtkm::cont::Field &field)
vtkm::rendering::raytracing::CylinderExtractor::SetUniformRadius
void SetUniformRadius(const vtkm::Float32 radius)
vtkm::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
vtkm::rendering::raytracing::CylinderExtractor::ExtractCells
void ExtractCells(const vtkm::cont::UnknownCellSet &cells, vtkm::Float32 radius)
vtkm::Float32
float Float32
Definition: Types.h:154
vtkm::rendering::raytracing::CylinderExtractor::SetCylinderIdsFromCells
void SetCylinderIdsFromCells(const vtkm::cont::UnknownCellSet &cells)
vtkm::rendering::raytracing::CylinderExtractor::Radii
vtkm::cont::ArrayHandle< vtkm::Float32 > Radii
Definition: CylinderExtractor.h:31
DataSet.h