Viskores  1.0
BoundingBoxAnnotation.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 #ifndef viskores_rendering_BoundingBoxAnnotation_h
19 #define viskores_rendering_BoundingBoxAnnotation_h
20 
21 #include <viskores/Bounds.h>
25 
26 namespace viskores
27 {
28 namespace rendering
29 {
30 
31 class VISKORES_RENDERING_EXPORT BoundingBoxAnnotation
32 {
33 private:
36 
37 public:
39 
40  virtual ~BoundingBoxAnnotation();
41 
43  const viskores::Bounds& GetExtents() const { return this->Extents; }
44 
46  void SetExtents(const viskores::Bounds& extents) { this->Extents = extents; }
47 
49  const viskores::rendering::Color& GetColor() const { return this->Color; }
50 
52  void SetColor(viskores::rendering::Color c) { this->Color = c; }
53 
54  virtual void Render(const viskores::rendering::Camera&, const WorldAnnotator& annotator);
55 };
56 }
57 } //namespace viskores::rendering
58 
59 #endif // viskores_rendering_BoundingBoxAnnotation_h
viskores::Bounds
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:37
viskores::rendering::BoundingBoxAnnotation::Extents
viskores::Bounds Extents
Definition: BoundingBoxAnnotation.h:35
Color
viskores::Float32 Color
Definition: Wireframer.h:130
viskores::rendering::BoundingBoxAnnotation::GetColor
const viskores::rendering::Color & GetColor() const
Definition: BoundingBoxAnnotation.h:49
viskores::rendering::BoundingBoxAnnotation::GetExtents
const viskores::Bounds & GetExtents() const
Definition: BoundingBoxAnnotation.h:43
viskores::rendering::BoundingBoxAnnotation::SetExtents
void SetExtents(const viskores::Bounds &extents)
Definition: BoundingBoxAnnotation.h:46
viskores::rendering::BoundingBoxAnnotation
Definition: BoundingBoxAnnotation.h:31
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
Bounds.h
WorldAnnotator.h
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
viskores::rendering::BoundingBoxAnnotation::SetColor
void SetColor(viskores::rendering::Color c)
Definition: BoundingBoxAnnotation.h:52
Camera.h
Color.h
viskores::rendering::WorldAnnotator
Definition: WorldAnnotator.h:35
viskores::rendering::Color
Representation of a color.
Definition: Color.h:37
viskores::rendering::BoundingBoxAnnotation::Color
viskores::rendering::Color Color
Definition: BoundingBoxAnnotation.h:34