mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 11:29:02 +00:00
78 lines
2.2 KiB
C++
78 lines
2.2 KiB
C++
//============================================================================
|
|
// 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.
|
|
//============================================================================
|
|
#ifndef vtk_m_rendering_Actor_h
|
|
#define vtk_m_rendering_Actor_h
|
|
|
|
#include <vtkm/rendering/vtkm_rendering_export.h>
|
|
|
|
#include <vtkm/rendering/Camera.h>
|
|
#include <vtkm/rendering/Canvas.h>
|
|
#include <vtkm/rendering/Mapper.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace rendering
|
|
{
|
|
|
|
class VTKM_RENDERING_EXPORT Actor
|
|
{
|
|
public:
|
|
Actor(const vtkm::cont::UnknownCellSet& cells,
|
|
const vtkm::cont::CoordinateSystem& coordinates,
|
|
const vtkm::cont::Field& scalarField);
|
|
|
|
Actor(const vtkm::cont::UnknownCellSet& cells,
|
|
const vtkm::cont::CoordinateSystem& coordinates,
|
|
const vtkm::cont::Field& scalarField,
|
|
const vtkm::cont::ColorTable& colorTable);
|
|
|
|
Actor(const vtkm::cont::UnknownCellSet& cells,
|
|
const vtkm::cont::CoordinateSystem& coordinates,
|
|
const vtkm::cont::Field& scalarField,
|
|
const vtkm::rendering::Color& color);
|
|
|
|
Actor(const Actor&);
|
|
Actor& operator=(const Actor&);
|
|
|
|
Actor(Actor&&) noexcept;
|
|
Actor& operator=(Actor&&) noexcept;
|
|
~Actor();
|
|
|
|
void Render(vtkm::rendering::Mapper& mapper,
|
|
vtkm::rendering::Canvas& canvas,
|
|
const vtkm::rendering::Camera& camera) const;
|
|
|
|
const vtkm::cont::UnknownCellSet& GetCells() const;
|
|
|
|
const vtkm::cont::CoordinateSystem& GetCoordinates() const;
|
|
|
|
const vtkm::cont::Field& GetScalarField() const;
|
|
|
|
const vtkm::cont::ColorTable& GetColorTable() const;
|
|
|
|
const vtkm::Range& GetScalarRange() const;
|
|
|
|
const vtkm::Bounds& GetSpatialBounds() const;
|
|
|
|
void SetScalarRange(const vtkm::Range& scalarRange);
|
|
|
|
private:
|
|
struct InternalsType;
|
|
std::unique_ptr<InternalsType> Internals;
|
|
|
|
void Init(const vtkm::cont::CoordinateSystem& coordinates, const vtkm::cont::Field& scalarField);
|
|
};
|
|
}
|
|
} //namespace vtkm::rendering
|
|
|
|
#endif //vtk_m_rendering_Actor_h
|