VTK-m
2.2
|
An item to be rendered. More...
#include <Actor.h>
Public Member Functions | |
Actor (const vtkm::cont::DataSet dataSet, const std::string coordinateName, const std::string fieldName) | |
Actor (const vtkm::cont::DataSet dataSet, const std::string coordinateName, const std::string fieldName, const vtkm::cont::ColorTable &colorTable) | |
Actor (const vtkm::cont::DataSet dataSet, const std::string coordinateName, const std::string fieldName, const vtkm::rendering::Color &color) | |
Actor (const vtkm::cont::PartitionedDataSet dataSet, const std::string coordinateName, const std::string fieldName) | |
Actor (const vtkm::cont::PartitionedDataSet dataSet, const std::string coordinateName, const std::string fieldName, const vtkm::cont::ColorTable &colorTable) | |
Actor (const vtkm::cont::PartitionedDataSet dataSet, const std::string coordinateName, const std::string fieldName, const vtkm::rendering::Color &color) | |
Actor (const vtkm::cont::UnknownCellSet &cells, const vtkm::cont::CoordinateSystem &coordinates, const vtkm::cont::Field &scalarField) | |
Create an Actor object that renders a set of cells positioned by a given coordiante system. More... | |
Actor (const vtkm::cont::UnknownCellSet &cells, const vtkm::cont::CoordinateSystem &coordinates, const vtkm::cont::Field &scalarField, const vtkm::cont::ColorTable &colorTable) | |
Create an Actor object that renders a set of cells positioned by a given coordiante system. More... | |
Actor (const vtkm::cont::UnknownCellSet &cells, const vtkm::cont::CoordinateSystem &coordinates, const vtkm::cont::Field &scalarField, const vtkm::rendering::Color &color) | |
Create an Actor object that renders a set of cells positioned by a given coordiante system. More... | |
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 |
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) |
Specifies the range for psudocoloring. More... | |
Private Member Functions | |
void | Init (const vtkm::cont::CoordinateSystem &coordinates, const vtkm::cont::Field &scalarField) |
void | Init () |
Private Attributes | |
std::unique_ptr< InternalsType > | Internals |
An item to be rendered.
The Actor
holds the geometry from a vtkm::cont::DataSet
as well as other visual properties that define how the geometry should look when it is rendered.
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::DataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::DataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName, | ||
const vtkm::cont::ColorTable & | colorTable | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::DataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName, | ||
const vtkm::rendering::Color & | color | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::PartitionedDataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::PartitionedDataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName, | ||
const vtkm::cont::ColorTable & | colorTable | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::PartitionedDataSet | dataSet, |
const std::string | coordinateName, | ||
const std::string | fieldName, | ||
const vtkm::rendering::Color & | color | ||
) |
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::UnknownCellSet & | cells, |
const vtkm::cont::CoordinateSystem & | coordinates, | ||
const vtkm::cont::Field & | scalarField | ||
) |
Create an Actor
object that renders a set of cells positioned by a given coordiante system.
A field to apply psudocoloring is also provided. The default colormap is applied. The cells, coordinates, and field are typically pulled from a vtkm::cont::DataSet
object.
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::UnknownCellSet & | cells, |
const vtkm::cont::CoordinateSystem & | coordinates, | ||
const vtkm::cont::Field & | scalarField, | ||
const vtkm::cont::ColorTable & | colorTable | ||
) |
Create an Actor
object that renders a set of cells positioned by a given coordiante system.
A field to apply psudocoloring is also provided. A color table providing the map from scalar values to colors is also provided. The cells, coordinates, and field are typically pulled from a vtkm::cont::DataSet
object.
vtkm::rendering::Actor::Actor | ( | const vtkm::cont::UnknownCellSet & | cells, |
const vtkm::cont::CoordinateSystem & | coordinates, | ||
const vtkm::cont::Field & | scalarField, | ||
const vtkm::rendering::Color & | color | ||
) |
Create an Actor
object that renders a set of cells positioned by a given coordiante system.
A constant color to apply to the object is also provided. The cells and coordinates are typically pulled from a vtkm::cont::DataSet
object.
vtkm::rendering::Actor::Actor | ( | const Actor & | ) |
|
noexcept |
vtkm::rendering::Actor::~Actor | ( | ) |
const vtkm::cont::UnknownCellSet& vtkm::rendering::Actor::GetCells | ( | ) | const |
const vtkm::cont::ColorTable& vtkm::rendering::Actor::GetColorTable | ( | ) | const |
vtkm::cont::CoordinateSystem vtkm::rendering::Actor::GetCoordinates | ( | ) | const |
const vtkm::cont::Field& vtkm::rendering::Actor::GetScalarField | ( | ) | const |
const vtkm::Range& vtkm::rendering::Actor::GetScalarRange | ( | ) | const |
const vtkm::Bounds& vtkm::rendering::Actor::GetSpatialBounds | ( | ) | const |
|
private |
|
private |
void vtkm::rendering::Actor::Render | ( | vtkm::rendering::Mapper & | mapper, |
vtkm::rendering::Canvas & | canvas, | ||
const vtkm::rendering::Camera & | camera | ||
) | const |
void vtkm::rendering::Actor::SetScalarRange | ( | const vtkm::Range & | scalarRange | ) |
Specifies the range for psudocoloring.
When coloring data by mapping a scalar field to colors, this is the range used for the colors provided by the table. If a range is not provided, the range of data in the field is used.
|
private |