vtk-m/vtkm/rendering/MapperWireframer.h

61 lines
1.9 KiB
C
Raw Normal View History

//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +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.
//============================================================================
2017-08-16 18:45:28 +00:00
#ifndef vtk_m_rendering_MapperWireframer_h
#define vtk_m_rendering_MapperWireframer_h
#include <memory>
#include <vtkm/cont/ColorTable.h>
#include <vtkm/cont/CoordinateSystem.h>
#include <vtkm/cont/DynamicCellSet.h>
#include <vtkm/cont/Field.h>
#include <vtkm/rendering/Camera.h>
2017-08-16 18:01:03 +00:00
#include <vtkm/rendering/Canvas.h>
#include <vtkm/rendering/Mapper.h>
namespace vtkm
{
namespace rendering
{
2017-08-16 18:45:28 +00:00
class VTKM_RENDERING_EXPORT MapperWireframer : public Mapper
{
public:
VTKM_CONT
2017-08-16 18:45:28 +00:00
MapperWireframer();
virtual ~MapperWireframer();
virtual vtkm::rendering::Canvas* GetCanvas() const override;
virtual void SetCanvas(vtkm::rendering::Canvas* canvas) override;
2017-08-16 18:01:03 +00:00
bool GetShowInternalZones() const;
void SetShowInternalZones(bool showInternalZones);
2017-12-05 04:46:38 +00:00
void SetCompositeBackground(bool on);
2017-08-16 18:01:03 +00:00
bool GetIsOverlay() const;
void SetIsOverlay(bool isOverlay);
virtual void RenderCells(const vtkm::cont::DynamicCellSet& cellset,
const vtkm::cont::CoordinateSystem& coords,
const vtkm::cont::Field& scalarField,
const vtkm::cont::ColorTable& colorTable,
const vtkm::rendering::Camera& camera,
const vtkm::Range& scalarRange) override;
virtual vtkm::rendering::Mapper* NewCopy() const override;
private:
2017-08-16 18:01:03 +00:00
struct InternalsType;
std::shared_ptr<InternalsType> Internals;
2017-08-16 18:45:28 +00:00
}; // class MapperWireframer
}
2017-08-16 18:01:03 +00:00
} // namespace vtkm::rendering
2017-08-16 18:45:28 +00:00
#endif // vtk_m_rendering_MapperWireframer_h