VTK-m  2.2
Scene.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_Scene_h
11 #define vtk_m_rendering_Scene_h
12 
14 
15 #include <vtkm/rendering/Actor.h>
16 #include <vtkm/rendering/Camera.h>
17 #include <vtkm/rendering/Canvas.h>
18 #include <vtkm/rendering/Mapper.h>
19 
20 #include <memory>
21 
22 namespace vtkm
23 {
24 namespace rendering
25 {
26 
31 {
32 public:
33  Scene();
34 
36  void AddActor(vtkm::rendering::Actor actor);
37 
39  const vtkm::rendering::Actor& GetActor(vtkm::IdComponent index) const;
40 
42  vtkm::IdComponent GetNumberOfActors() const;
43 
44  void Render(vtkm::rendering::Mapper& mapper,
46  const vtkm::rendering::Camera& camera) const;
47 
49  vtkm::Bounds GetSpatialBounds() const;
50 
51 private:
52  struct InternalsType;
53  std::shared_ptr<InternalsType> Internals;
54 };
55 }
56 } //namespace vtkm::rendering
57 
58 #endif //vtk_m_rendering_Scene_h
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::IdComponent
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
vtkm::rendering::Actor
An item to be rendered.
Definition: Actor.h:30
vtkm_rendering_export.h
vtkm::rendering::Mapper
Converts data into commands to a rendering system.
Definition: Mapper.h:29
vtkm::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
vtkm::Bounds
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
vtkm::rendering::Scene::Internals
std::shared_ptr< InternalsType > Internals
Definition: Scene.h:52
Camera.h
Actor.h
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
Canvas.h
Mapper.h
vtkm::rendering::Scene
A simple collection of things to render.
Definition: Scene.h:30