SPH
ContourRenderer.h
Go to the documentation of this file.
1 #pragma once
2 
7 
8 #include "gui/objects/Palette.h"
11 #include "sph/kernel/Kernel.h"
12 
14 
15 class IScheduler;
16 class IBasicFinder;
17 
18 class ContourRenderer : public IRenderer {
19 private:
20  SharedPtr<IScheduler> scheduler;
21 
22  AutoPtr<IBasicFinder> finder;
23 
24  LutKernel<3> kernel;
25 
26  struct {
28 
30 
32 
33  } cached;
34 
35 public:
36  ContourRenderer(SharedPtr<IScheduler> scheduler, const GuiSettings& settings);
37 
38  virtual void initialize(const Storage& storage,
39  const IColorizer& colorizer,
40  const ICamera& camera) override;
41 
42  virtual bool isInitialized() const override;
43 
44  virtual void render(const RenderParams& params, Statistics& stats, IRenderOutput& output) const override;
45 
46  virtual void cancelRender() override {}
47 };
48 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Interface for renderers.
SPH kernels.
#define NAMESPACE_SPH_END
Definition: Object.h:12
Generic dynamically allocated resizable storage.
Definition: Array.h:43
virtual bool isInitialized() const override
Checks if the renderer has been initialized.
Array< float > values
virtual void render(const RenderParams &params, Statistics &stats, IRenderOutput &output) const override
Draws particles into the bitmap, given the data provided in initialize.
Array< Vector > positions
Optional< Palette > palette
virtual void cancelRender() override
Stops the rendering if it is currently in progress.
virtual void initialize(const Storage &storage, const IColorizer &colorizer, const ICamera &camera) override
Prepares the objects for rendering and updates its data.
ContourRenderer(SharedPtr< IScheduler > scheduler, const GuiSettings &settings)
Interface of objects finding neighbouring particles.
Interface defining a camera or view, used by a renderer.
Definition: Camera.h:62
Interface for objects assigning colors to particles.
Definition: Colorizer.h:34
Interface used to implement renderers.
Definition: IRenderer.h:166
Interface that allows unified implementation of sequential and parallelized versions of algorithms.
Definition: Scheduler.h:27
Object holding various statistics about current run.
Definition: Statistics.h:22
Container storing all quantities used within the simulations.
Definition: Storage.h:230
Parameters of the rendered image.
Definition: IRenderer.h:60