2016-05-18 05:13:36 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
// Copyright 2015 Sandia Corporation.
|
|
|
|
// Copyright 2015 UT-Battelle, LLC.
|
|
|
|
// Copyright 2015 Los Alamos National Security.
|
|
|
|
//
|
|
|
|
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
|
|
// the U.S. Government retains certain rights in this software.
|
|
|
|
//
|
|
|
|
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
|
|
// Laboratory (LANL), the U.S. Government retains certain rights in
|
|
|
|
// this software.
|
|
|
|
//============================================================================
|
2016-06-02 19:41:14 +00:00
|
|
|
#ifndef vtk_m_rendering_MapperRayTracer_h
|
|
|
|
#define vtk_m_rendering_MapperRayTracer_h
|
2016-08-29 21:50:47 +00:00
|
|
|
|
2017-05-18 14:51:24 +00:00
|
|
|
#include <vtkm/rendering/Camera.h>
|
2016-05-18 05:13:36 +00:00
|
|
|
#include <vtkm/rendering/ColorTable.h>
|
2016-06-02 19:41:14 +00:00
|
|
|
#include <vtkm/rendering/Mapper.h>
|
2016-08-29 21:50:47 +00:00
|
|
|
|
2016-09-12 17:08:06 +00:00
|
|
|
#include <memory>
|
2016-08-29 21:50:47 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace rendering
|
|
|
|
{
|
2016-05-18 05:13:36 +00:00
|
|
|
|
2016-10-19 18:09:15 +00:00
|
|
|
class VTKM_RENDERING_EXPORT MapperRayTracer : public Mapper
|
2016-05-19 23:15:06 +00:00
|
|
|
{
|
2016-05-18 05:13:36 +00:00
|
|
|
public:
|
2016-08-29 21:50:47 +00:00
|
|
|
MapperRayTracer();
|
2016-05-19 23:15:06 +00:00
|
|
|
|
2016-09-08 23:08:17 +00:00
|
|
|
~MapperRayTracer();
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
void SetCanvas(vtkm::rendering::Canvas* canvas) VTKM_OVERRIDE;
|
2016-11-28 14:41:01 +00:00
|
|
|
virtual vtkm::rendering::Canvas* GetCanvas() const VTKM_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::rendering::ColorTable& colorTable,
|
|
|
|
const vtkm::rendering::Camera& camera,
|
|
|
|
const vtkm::Range& scalarRange) VTKM_OVERRIDE;
|
2016-05-19 23:15:06 +00:00
|
|
|
|
2016-08-29 21:50:47 +00:00
|
|
|
virtual void StartScene() VTKM_OVERRIDE;
|
|
|
|
virtual void EndScene() VTKM_OVERRIDE;
|
2016-05-18 05:13:36 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
vtkm::rendering::Mapper* NewCopy() const VTKM_OVERRIDE;
|
2016-09-01 18:33:28 +00:00
|
|
|
|
2016-08-29 21:50:47 +00:00
|
|
|
private:
|
|
|
|
struct InternalsType;
|
2016-09-12 17:08:06 +00:00
|
|
|
std::shared_ptr<InternalsType> Internals;
|
2016-05-18 05:13:36 +00:00
|
|
|
|
2016-08-29 21:50:47 +00:00
|
|
|
struct RenderFunctor;
|
2016-05-18 05:13:36 +00:00
|
|
|
};
|
2016-08-29 21:50:47 +00:00
|
|
|
}
|
|
|
|
} //namespace vtkm::rendering
|
|
|
|
|
2016-06-02 19:41:14 +00:00
|
|
|
#endif //vtk_m_rendering_MapperRayTracer_h
|