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

A mapper that produces unoriented glyphs. More...

#include <MapperGlyphScalar.h>

Inheritance diagram for viskores::rendering::MapperGlyphScalar:
viskores::rendering::MapperGlyphBase viskores::rendering::Mapper

Public Member Functions

 MapperGlyphScalar ()
 
 ~MapperGlyphScalar ()
 
viskores::rendering::GlyphType GetGlyphType () const
 Specify the shape of the glyphs. More...
 
void SetGlyphType (viskores::rendering::GlyphType glyphType)
 Specify the shape of the glyphs. More...
 
viskores::rendering::MapperNewCopy () const override
 
- Public Member Functions inherited from viskores::rendering::MapperGlyphBase
 MapperGlyphBase ()
 
virtual ~MapperGlyphBase ()
 
void SetCanvas (viskores::rendering::Canvas *canvas) override
 
virtual viskores::rendering::CanvasGetCanvas () const override
 
virtual viskores::cont::Field::Association GetAssociation () const
 Specify the elements the glyphs will be associated with. More...
 
virtual void SetAssociation (viskores::cont::Field::Association association)
 Specify the elements the glyphs will be associated with. More...
 
virtual bool GetUseCells () const
 Specify the elements the glyphs will be associated with. More...
 
virtual void SetUseCells ()
 Specify the elements the glyphs will be associated with. More...
 
virtual bool GetUsePoints () const
 Specify the elements the glyphs will be associated with. More...
 
virtual void SetUsePoints ()
 Specify the elements the glyphs will be associated with. More...
 
virtual bool GetUseNodes () const
 
virtual void SetUseNodes ()
 
virtual bool GetUseStride () const
 
virtual void SetUseStride (bool on)
 
virtual viskores::Id GetStride () const
 
virtual void SetStride (viskores::Id stride)
 
virtual viskores::Float32 GetBaseSize () const
 Specify the size of each glyph (before scaling). More...
 
virtual void SetBaseSize (viskores::Float32 size)
 Specify the size of each glyph (before scaling). More...
 
virtual bool GetScaleByValue () const
 Specify whether to scale the glyphs by a field. More...
 
virtual void SetScaleByValue (bool on)
 Specify whether to scale the glyphs by a field. More...
 
virtual viskores::Float32 GetScaleDelta () const
 Specify the range of values to scale the glyphs. More...
 
virtual void SetScaleDelta (viskores::Float32 delta)
 Specify the range of values to scale the glyphs. More...
 
virtual void SetCompositeBackground (bool on)
 
- 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)
 

Protected 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
 
- Protected Member Functions inherited from viskores::rendering::MapperGlyphBase
virtual viskores::cont::DataSet FilterPoints (const viskores::cont::UnknownCellSet &cellSet, const viskores::cont::CoordinateSystem &coords, const viskores::cont::Field &scalarField) const
 

Protected Attributes

viskores::rendering::GlyphType GlyphType
 
- Protected Attributes inherited from viskores::rendering::MapperGlyphBase
viskores::rendering::CanvasRayTracerCanvas = nullptr
 
bool CompositeBackground = true
 
viskores::cont::Field::Association Association = viskores::cont::Field::Association::Points
 
bool UseStride = false
 
viskores::Id Stride = 1
 
bool ScaleByValue = false
 
viskores::Float32 BaseSize = -1.f
 
viskores::Float32 ScaleDelta = 0.5f
 
- Protected Attributes inherited from viskores::rendering::Mapper
viskores::cont::ArrayHandle< viskores::Vec4f_32ColorMap
 
bool LogarithmX = false
 
bool LogarithmY = false
 
bool SortBackToFront = true
 

Detailed Description

A mapper that produces unoriented glyphs.

This mapper is meant to be used with scalar fields. The glyphs can be optionally sized based on the field.

Constructor & Destructor Documentation

◆ MapperGlyphScalar()

viskores::rendering::MapperGlyphScalar::MapperGlyphScalar ( )

◆ ~MapperGlyphScalar()

viskores::rendering::MapperGlyphScalar::~MapperGlyphScalar ( )

Member Function Documentation

◆ GetGlyphType()

viskores::rendering::GlyphType viskores::rendering::MapperGlyphScalar::GetGlyphType ( ) const

Specify the shape of the glyphs.

◆ NewCopy()

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

◆ RenderCellsImpl()

void viskores::rendering::MapperGlyphScalar::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 
)
overrideprotectedvirtual

◆ SetGlyphType()

void viskores::rendering::MapperGlyphScalar::SetGlyphType ( viskores::rendering::GlyphType  glyphType)

Specify the shape of the glyphs.

Member Data Documentation

◆ GlyphType

viskores::rendering::GlyphType viskores::rendering::MapperGlyphScalar::GlyphType
protected

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