vtk-m/vtkm/rendering/MapperRayTracer.h

57 lines
1.6 KiB
C
Raw Normal View History

2016-05-18 05:13:36 +00:00
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
//
2016-05-18 05:13:36 +00:00
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
#ifndef vtk_m_rendering_MapperRayTracer_h
#define vtk_m_rendering_MapperRayTracer_h
#include <vtkm/cont/ColorTable.h>
2017-05-18 14:51:24 +00:00
#include <vtkm/rendering/Camera.h>
#include <vtkm/rendering/Mapper.h>
#include <memory>
2017-05-18 14:29:41 +00:00
namespace vtkm
{
namespace rendering
{
2016-05-18 05:13:36 +00:00
class VTKM_RENDERING_EXPORT MapperRayTracer : public Mapper
{
2016-05-18 05:13:36 +00:00
public:
MapperRayTracer();
~MapperRayTracer();
void SetCanvas(vtkm::rendering::Canvas* canvas) override;
virtual vtkm::rendering::Canvas* GetCanvas() const override;
2016-05-18 05:13:36 +00:00
2017-05-18 14:29:41 +00:00
void RenderCells(const vtkm::cont::DynamicCellSet& cellset,
const vtkm::cont::CoordinateSystem& coords,
const vtkm::cont::Field& scalarField,
const vtkm::cont::ColorTable& colorTable,
2017-05-18 14:29:41 +00:00
const vtkm::rendering::Camera& camera,
const vtkm::Range& scalarRange) override;
virtual void StartScene() override;
virtual void EndScene() override;
2017-08-06 18:59:19 +00:00
void SetCompositeBackground(bool on);
vtkm::rendering::Mapper* NewCopy() const override;
2018-09-25 18:31:37 +00:00
void SetShadingOn(bool on);
private:
struct InternalsType;
std::shared_ptr<InternalsType> Internals;
2016-05-18 05:13:36 +00:00
struct RenderFunctor;
2016-05-18 05:13:36 +00:00
};
}
} //namespace vtkm::rendering
#endif //vtk_m_rendering_MapperRayTracer_h