VTK-m  2.0
ColorTableSamples.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_cont_ColorTableSamples_h
11 #define vtk_m_cont_ColorTableSamples_h
12 
13 #include <vtkm/Range.h>
14 #include <vtkm/cont/ArrayHandle.h>
15 
16 namespace vtkm
17 {
18 namespace cont
19 {
20 
33 {
34 public:
35  vtkm::Range SampleRange = { 1.0, 0.0 };
36  vtkm::Int32 NumberOfSamples = 0; // this will not include end padding, NaN, Below or Above Range
38 };
39 
52 {
53 public:
54  vtkm::Range SampleRange = { 1.0, 0.0 };
55  vtkm::Int32 NumberOfSamples = 0; // this will not include end padding, NaN, Below or Above Range
57 };
58 }
59 }
60 
61 #endif
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:283
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::ColorTableSamplesRGBA::SampleRange
vtkm::Range SampleRange
Definition: ColorTableSamples.h:35
vtkm::cont::ColorTableSamplesRGB::SampleRange
vtkm::Range SampleRange
Definition: ColorTableSamples.h:54
vtkm::cont::ColorTableSamplesRGBA
Color Sample Table used with vtkm::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:32
Range.h
vtkm::cont::ColorTableSamplesRGB::NumberOfSamples
vtkm::Int32 NumberOfSamples
Definition: ColorTableSamples.h:55
vtkm::cont::ColorTableSamplesRGB
Color Sample Table used with vtkm::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:51
vtkm::cont::ColorTableSamplesRGBA::Samples
vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > Samples
Definition: ColorTableSamples.h:37
vtkm::Int32
int32_t Int32
Definition: Types.h:160
vtkm::cont::ColorTableSamplesRGB::Samples
vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > Samples
Definition: ColorTableSamples.h:56
vtkm::cont::ColorTableSamplesRGBA::NumberOfSamples
vtkm::Int32 NumberOfSamples
Definition: ColorTableSamples.h:36
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31