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

This mapper renders points from a cell set. More...

#include <MapperPoint.h>

Inheritance diagram for viskores::rendering::MapperPoint:
viskores::rendering::Mapper

Public Member Functions

 MapperPoint ()
 
 ~MapperPoint ()
 
void SetCanvas (viskores::rendering::Canvas *canvas) override
 
virtual viskores::rendering::CanvasGetCanvas () const override
 
virtual viskores::cont::Field::Association GetAssociation () const
 Specify the elements the points will be associated with. More...
 
virtual void SetAssociation (viskores::cont::Field::Association association)
 Specify the elements the points will be associated with. More...
 
virtual bool GetUseCells () const
 Specify the elements the points will be associated with. More...
 
virtual void SetUseCells ()
 Specify the elements the points will be associated with. More...
 
virtual bool GetUsePoints () const
 Specify the elements the points will be associated with. More...
 
virtual void SetUsePoints ()
 Specify the elements the points will be associated with. More...
 
void UseCells ()
 
void UseNodes ()
 
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 raidus for all points. More...
 
void SetRadiusDelta (const viskores::Float32 &delta)
 When using a variable raidus for all points, 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

This mapper renders points from a cell set.

This mapper can natively create points from vertex cell shapes as well as use the points defined by a coordinate system.

Constructor & Destructor Documentation

◆ MapperPoint()

viskores::rendering::MapperPoint::MapperPoint ( )

◆ ~MapperPoint()

viskores::rendering::MapperPoint::~MapperPoint ( )

Member Function Documentation

◆ GetAssociation()

virtual viskores::cont::Field::Association viskores::rendering::MapperPoint::GetAssociation ( ) const
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ GetCanvas()

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

◆ GetUseCells()

virtual bool viskores::rendering::MapperPoint::GetUseCells ( ) const
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ GetUsePoints()

virtual bool viskores::rendering::MapperPoint::GetUsePoints ( ) const
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ NewCopy()

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

◆ RenderCellsImpl()

void viskores::rendering::MapperPoint::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

◆ SetAssociation()

virtual void viskores::rendering::MapperPoint::SetAssociation ( viskores::cont::Field::Association  association)
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ SetCanvas()

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

◆ SetCompositeBackground()

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

◆ SetRadius()

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

Set a base raidus for all points.

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

◆ SetRadiusDelta()

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

When using a variable raidus for all points, 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.

◆ SetUseCells()

virtual void viskores::rendering::MapperPoint::SetUseCells ( )
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ SetUsePoints()

virtual void viskores::rendering::MapperPoint::SetUsePoints ( )
virtual

Specify the elements the points will be associated with.

The point mapper will place visible points over locations specified by either the points or the cells of a mesh.

◆ UseCells()

void viskores::rendering::MapperPoint::UseCells ( )

◆ UseNodes()

void viskores::rendering::MapperPoint::UseNodes ( )

◆ UseVariableRadius()

void viskores::rendering::MapperPoint::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::MapperPoint::Internals
private

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