Viskores  1.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
viskores::rendering::MapperCylinder Class Reference

MapperCylinder renderers edges from a cell set and renders them as cylinders via ray tracing. More...

#include <MapperCylinder.h>

Inheritance diagram for viskores::rendering::MapperCylinder:
viskores::rendering::Mapper

Public Member Functions

 MapperCylinder ()
 
 ~MapperCylinder ()
 
void SetCanvas (viskores::rendering::Canvas *canvas) override
 
virtual viskores::rendering::CanvasGetCanvas () const override
 
void UseVariableRadius (bool useVariableRadius)
 render points using a variable radius based on the scalar field. More...
 
void SetRadius (const viskores::Float32 &radius)
 Set a base radius for all points. More...
 
void SetRadiusDelta (const viskores::Float32 &delta)
 When using a variable radius for all cylinder, the radius delta controls how much larger and smaller radii become based on the scalar field. More...
 
void SetCompositeBackground (bool on)
 
viskores::rendering::MapperNewCopy () const override
 
- Public Member Functions inherited from viskores::rendering::Mapper
 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 SetLogarithmX (bool l)
 
virtual void SetLogarithmY (bool l)
 

Private Member Functions

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) override
 

Private Attributes

std::shared_ptr< InternalsType > Internals
 

Additional Inherited Members

- Protected Attributes inherited from viskores::rendering::Mapper
viskores::cont::ArrayHandle< viskores::Vec4f_32ColorMap
 
bool LogarithmX = false
 
bool LogarithmY = false
 
bool SortBackToFront = true
 

Detailed Description

MapperCylinder renderers edges from a cell set and renders them as cylinders via ray tracing.

Constructor & Destructor Documentation

◆ MapperCylinder()

viskores::rendering::MapperCylinder::MapperCylinder ( )

◆ ~MapperCylinder()

viskores::rendering::MapperCylinder::~MapperCylinder ( )

Member Function Documentation

◆ GetCanvas()

virtual viskores::rendering::Canvas* viskores::rendering::MapperCylinder::GetCanvas ( ) const
overridevirtual

◆ NewCopy()

viskores::rendering::Mapper* viskores::rendering::MapperCylinder::NewCopy ( ) const
overridevirtual

◆ RenderCellsImpl()

void viskores::rendering::MapperCylinder::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 
)
overrideprivatevirtual

◆ SetCanvas()

void viskores::rendering::MapperCylinder::SetCanvas ( viskores::rendering::Canvas canvas)
overridevirtual

◆ SetCompositeBackground()

void viskores::rendering::MapperCylinder::SetCompositeBackground ( bool  on)

◆ SetRadius()

void viskores::rendering::MapperCylinder::SetRadius ( const viskores::Float32 radius)

Set a base radius for all points.

If a radius is never specified the default heuristic is used.

◆ SetRadiusDelta()

void viskores::rendering::MapperCylinder::SetRadiusDelta ( const viskores::Float32 delta)

When using a variable radius for all cylinder, the radius delta controls how much larger and smaller radii become based on the scalar field.

If the delta is 0 all points will have the same radius. If the delta is 0.5 then the max/min scalar values would have a radii of base +/- base * 0.5.

◆ UseVariableRadius()

void viskores::rendering::MapperCylinder::UseVariableRadius ( bool  useVariableRadius)

render points using a variable radius based on the scalar field.

The default is false.

Member Data Documentation

◆ Internals

std::shared_ptr<InternalsType> viskores::rendering::MapperCylinder::Internals
private

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