VTK-m  2.2
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 
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
Representation of a color.
Definition: Color.h:29
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_RENDERING_EXPORT
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
vtkm::rendering::BoundingBoxAnnotation::SetColor
void SetColor(vtkm::rendering::Color c)
Definition: BoundingBoxAnnotation.h:44
vtkm::rendering::BoundingBoxAnnotation
Definition: BoundingBoxAnnotation.h:23
vtkm::rendering::BoundingBoxAnnotation::SetExtents
void SetExtents(const vtkm::Bounds &extents)
Definition: BoundingBoxAnnotation.h:38
vtkm::rendering::BoundingBoxAnnotation::GetColor
const vtkm::rendering::Color & GetColor() const
Definition: BoundingBoxAnnotation.h:41
vtkm::rendering::BoundingBoxAnnotation::Extents
vtkm::Bounds Extents
Definition: BoundingBoxAnnotation.h:27
Bounds.h
Color
vtkm::Float32 Color
Definition: Wireframer.h:115
WorldAnnotator.h
vtkm::rendering::BoundingBoxAnnotation::GetExtents
const vtkm::Bounds & GetExtents() const
Definition: BoundingBoxAnnotation.h:35
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
Specifies the viewport for a rendering.
Definition: Camera.h:37
vtkm::rendering::BoundingBoxAnnotation::Color
vtkm::rendering::Color Color
Definition: BoundingBoxAnnotation.h:26