VTK-m  2.0
BoundingBoxAnnotation.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_BoundingBoxAnnotation_h
11 #define vtk_m_rendering_BoundingBoxAnnotation_h
12 
13 #include <vtkm/Bounds.h>
14 #include <vtkm/rendering/Camera.h>
15 #include <vtkm/rendering/Color.h>
17 
18 namespace vtkm
19 {
20 namespace rendering
21 {
22 
23 class VTKM_RENDERING_EXPORT BoundingBoxAnnotation
24 {
25 private:
28 
29 public:
31 
32  virtual ~BoundingBoxAnnotation();
33 
34  VTKM_CONT
35  const vtkm::Bounds& GetExtents() const { return this->Extents; }
36 
37  VTKM_CONT
38  void SetExtents(const vtkm::Bounds& extents) { this->Extents = extents; }
39 
40  VTKM_CONT
41  const vtkm::rendering::Color& GetColor() const { return this->Color; }
42 
43  VTKM_CONT
44  void SetColor(vtkm::rendering::Color c) { this->Color = c; }
45 
46  virtual void Render(const vtkm::rendering::Camera&, const WorldAnnotator& annotator);
47 };
48 }
49 } //namespace vtkm::rendering
50 
51 #endif // vtk_m_rendering_BoundingBoxAnnotation_h
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::BoundingBoxAnnotation
Definition: BoundingBoxAnnotation.h:23
vtkm::rendering::BoundingBoxAnnotation::SetColor
VTKM_CONT void SetColor(vtkm::rendering::Color c)
Definition: BoundingBoxAnnotation.h:44
vtkm::rendering::BoundingBoxAnnotation::GetColor
const VTKM_CONT vtkm::rendering::Color & GetColor() const
Definition: BoundingBoxAnnotation.h:41
vtkm::rendering::BoundingBoxAnnotation::SetExtents
VTKM_CONT void SetExtents(const vtkm::Bounds &extents)
Definition: BoundingBoxAnnotation.h:38
vtkm::rendering::BoundingBoxAnnotation::Extents
vtkm::Bounds Extents
Definition: BoundingBoxAnnotation.h:27
Bounds.h
Color
vtkm::Float32 Color
Definition: Wireframer.h:115
WorldAnnotator.h
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Bounds
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
vtkm::rendering::WorldAnnotator
Definition: WorldAnnotator.h:27
Camera.h
Color.h
vtkm::rendering::Camera
Definition: Camera.h:28
vtkm::rendering::BoundingBoxAnnotation::GetExtents
const VTKM_CONT vtkm::Bounds & GetExtents() const
Definition: BoundingBoxAnnotation.h:35
vtkm::rendering::BoundingBoxAnnotation::Color
vtkm::rendering::Color Color
Definition: BoundingBoxAnnotation.h:26