VTK-m
2.0
vtkm
rendering
LineRendererBatcher.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
11
#ifndef vtk_m_rendering_LineRendererBatcher_h
12
#define vtk_m_rendering_LineRendererBatcher_h
13
14
#include <string>
15
#include <vector>
16
17
#include <
vtkm/rendering/Canvas.h
>
18
#include <
vtkm/rendering/Color.h
>
19
#include <vtkm/rendering/vtkm_rendering_export.h>
20
21
namespace
vtkm
22
{
23
namespace
rendering
24
{
25
26
class
VTKM_RENDERING_EXPORT
LineRendererBatcher
27
{
28
public
:
29
VTKM_CONT
30
LineRendererBatcher
();
31
32
VTKM_CONT
33
void
BatchLine(
const
vtkm::Vec3f_64
& start,
34
const
vtkm::Vec3f_64
& end,
35
const
vtkm::rendering::Color
& color);
36
37
VTKM_CONT
38
void
BatchLine(
const
vtkm::Vec3f_32
& start,
39
const
vtkm::Vec3f_32
& end,
40
const
vtkm::rendering::Color
& color);
41
42
void
Render(
const
vtkm::rendering::Canvas
* canvas)
const
;
43
44
private
:
45
std::vector<vtkm::Vec3f_32>
Starts
;
46
std::vector<vtkm::Vec3f_32>
Ends
;
47
std::vector<vtkm::Vec4f_32>
Colors
;
48
};
49
}
50
}
// namespace vtkm::rendering
51
52
#endif // vtk_m_rendering_LineRendererBatcher_h
vtkm::rendering::LineRendererBatcher::Ends
std::vector< vtkm::Vec3f_32 > Ends
Definition:
LineRendererBatcher.h:46
vtkm::rendering::Color
It's a color!
Definition:
Color.h:28
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::rendering::LineRendererBatcher::Starts
std::vector< vtkm::Vec3f_32 > Starts
Definition:
LineRendererBatcher.h:45
vtkm::rendering::LineRendererBatcher
Definition:
LineRendererBatcher.h:26
vtkm::rendering::Canvas
Definition:
Canvas.h:34
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
vtkm::Vec< vtkm::Float64, 3 >
vtkm::rendering::LineRendererBatcher::Colors
std::vector< vtkm::Vec4f_32 > Colors
Definition:
LineRendererBatcher.h:47
Color.h
Canvas.h
Generated by
1.8.17