Viskores  1.0
LineRendererBatcher.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 
19 #ifndef viskores_rendering_LineRendererBatcher_h
20 #define viskores_rendering_LineRendererBatcher_h
21 
22 #include <string>
23 #include <vector>
24 
28 
29 namespace viskores
30 {
31 namespace rendering
32 {
33 
34 class VISKORES_RENDERING_EXPORT LineRendererBatcher
35 {
36 public:
39 
41  void BatchLine(const viskores::Vec3f_64& start,
42  const viskores::Vec3f_64& end,
43  const viskores::rendering::Color& color);
44 
46  void BatchLine(const viskores::Vec3f_32& start,
47  const viskores::Vec3f_32& end,
48  const viskores::rendering::Color& color);
49 
50  void Render(const viskores::rendering::Canvas* canvas) const;
51 
52 private:
53  std::vector<viskores::Vec3f_32> Starts;
54  std::vector<viskores::Vec3f_32> Ends;
55  std::vector<viskores::Vec4f_32> Colors;
56 };
57 }
58 } // namespace viskores::rendering
59 
60 #endif // viskores_rendering_LineRendererBatcher_h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::rendering::LineRendererBatcher::Ends
std::vector< viskores::Vec3f_32 > Ends
Definition: LineRendererBatcher.h:54
viskores::rendering::LineRendererBatcher::Colors
std::vector< viskores::Vec4f_32 > Colors
Definition: LineRendererBatcher.h:55
viskores::rendering::LineRendererBatcher
Definition: LineRendererBatcher.h:34
Color.h
viskores::rendering::LineRendererBatcher::Starts
std::vector< viskores::Vec3f_32 > Starts
Definition: LineRendererBatcher.h:53
viskores_rendering_export.h
Canvas.h
viskores::Vec< viskores::Float64, 3 >
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:43
viskores::rendering::Color
Representation of a color.
Definition: Color.h:37