Viskores  1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
viskores::rendering::Mapper Class Referenceabstract

Converts data into commands to a rendering system. More...

#include <Mapper.h>

Inheritance diagram for viskores::rendering::Mapper:
viskores::rendering::MapperConnectivity viskores::rendering::MapperCylinder viskores::rendering::MapperGlyphBase viskores::rendering::MapperPoint viskores::rendering::MapperQuad viskores::rendering::MapperRayTracer viskores::rendering::MapperVolume viskores::rendering::MapperWireframer

Public Member Functions

 Mapper ()
 
virtual ~Mapper ()
 
virtual void RenderCells (const viskores::cont::UnknownCellSet &cellset, const viskores::cont::CoordinateSystem &coords, const viskores::cont::Field &scalarField, const viskores::cont::ColorTable &colorTable, const viskores::rendering::Camera &camera, const viskores::Range &scalarRange)
 
void RenderCells (const viskores::cont::UnknownCellSet &cellset, const viskores::cont::CoordinateSystem &coords, const viskores::cont::Field &scalarField, const viskores::cont::ColorTable &colorTable, const viskores::rendering::Camera &camera, const viskores::Range &scalarRange, const viskores::cont::Field &ghostField)
 
virtual void RenderCellsPartitioned (const viskores::cont::PartitionedDataSet partitionedData, const std::string fieldName, const viskores::cont::ColorTable &colorTable, const viskores::rendering::Camera &camera, const viskores::Range &scalarRange)
 
virtual void SetActiveColorTable (const viskores::cont::ColorTable &ct)
 
virtual void SetCanvas (viskores::rendering::Canvas *canvas)=0
 
virtual viskores::rendering::CanvasGetCanvas () const =0
 
virtual viskores::rendering::MapperNewCopy () const =0
 
virtual void SetLogarithmX (bool l)
 
virtual void SetLogarithmY (bool l)
 

Protected Member Functions

virtual void RenderCellsImpl (const viskores::cont::UnknownCellSet &cellset, const viskores::cont::CoordinateSystem &coords, const viskores::cont::Field &scalarField, const viskores::cont::ColorTable &colorTable, const viskores::rendering::Camera &camera, const viskores::Range &scalarRange, const viskores::cont::Field &ghostField)=0
 

Protected Attributes

viskores::cont::ArrayHandle< viskores::Vec4f_32ColorMap
 
bool LogarithmX = false
 
bool LogarithmY = false
 
bool SortBackToFront = true
 

Detailed Description

Converts data into commands to a rendering system.

This is the base class for all mapper classes in Viskores. Different concrete derived classes can provide different representations and rendering techniques.

Constructor & Destructor Documentation

◆ Mapper()

viskores::rendering::Mapper::Mapper ( )
inline

◆ ~Mapper()

virtual viskores::rendering::Mapper::~Mapper ( )
virtual

Member Function Documentation

◆ GetCanvas()

virtual viskores::rendering::Canvas* viskores::rendering::Mapper::GetCanvas ( ) const
pure virtual

◆ NewCopy()

virtual viskores::rendering::Mapper* viskores::rendering::Mapper::NewCopy ( ) const
pure virtual

◆ RenderCells() [1/2]

virtual void viskores::rendering::Mapper::RenderCells ( const viskores::cont::UnknownCellSet cellset,
const viskores::cont::CoordinateSystem coords,
const viskores::cont::Field scalarField,
const viskores::cont::ColorTable colorTable,
const viskores::rendering::Camera camera,
const viskores::Range scalarRange 
)
virtual

◆ RenderCells() [2/2]

void viskores::rendering::Mapper::RenderCells ( const viskores::cont::UnknownCellSet cellset,
const viskores::cont::CoordinateSystem coords,
const viskores::cont::Field scalarField,
const viskores::cont::ColorTable colorTable,
const viskores::rendering::Camera camera,
const viskores::Range scalarRange,
const viskores::cont::Field ghostField 
)

◆ RenderCellsImpl()

virtual void viskores::rendering::Mapper::RenderCellsImpl ( const viskores::cont::UnknownCellSet cellset,
const viskores::cont::CoordinateSystem coords,
const viskores::cont::Field scalarField,
const viskores::cont::ColorTable colorTable,
const viskores::rendering::Camera camera,
const viskores::Range scalarRange,
const viskores::cont::Field ghostField 
)
protectedpure virtual

◆ RenderCellsPartitioned()

virtual void viskores::rendering::Mapper::RenderCellsPartitioned ( const viskores::cont::PartitionedDataSet  partitionedData,
const std::string  fieldName,
const viskores::cont::ColorTable colorTable,
const viskores::rendering::Camera camera,
const viskores::Range scalarRange 
)
virtual

◆ SetActiveColorTable()

virtual void viskores::rendering::Mapper::SetActiveColorTable ( const viskores::cont::ColorTable ct)
virtual

◆ SetCanvas()

virtual void viskores::rendering::Mapper::SetCanvas ( viskores::rendering::Canvas canvas)
pure virtual

◆ SetLogarithmX()

virtual void viskores::rendering::Mapper::SetLogarithmX ( bool  l)
virtual

◆ SetLogarithmY()

virtual void viskores::rendering::Mapper::SetLogarithmY ( bool  l)
virtual

Member Data Documentation

◆ ColorMap

viskores::cont::ArrayHandle<viskores::Vec4f_32> viskores::rendering::Mapper::ColorMap
protected

◆ LogarithmX

bool viskores::rendering::Mapper::LogarithmX = false
protected

◆ LogarithmY

bool viskores::rendering::Mapper::LogarithmY = false
protected

◆ SortBackToFront

bool viskores::rendering::Mapper::SortBackToFront = true
protected

The documentation for this class was generated from the following file: