ColoredMeshGrid Class Reference

Public Types

using Color = Eigen::Vector4i
 
using ColorGrid = std::vector< std::vector< Color > >
 
using Position = Eigen::Vector3f
 
using VertexGrid = std::vector< std::vector< Position > >
 

Public Member Functions

void apply (const auto &posFn, const auto &colorFn)
 
 ColoredMeshGrid (Eigen::Array2i numCells)
 
std::vector< std::vector< viz::data::Color > > getColors ()
 
const VertexGridgetVertices () const
 
void setColoredVertex (const Eigen::Array2i &idx, const Position &position, const Color &color)
 

Detailed Description

Definition at line 57 of file ArVizDrawer.cpp.

Member Typedef Documentation

◆ Color

using Color = Eigen::Vector4i

Definition at line 60 of file ArVizDrawer.cpp.

◆ ColorGrid

using ColorGrid = std::vector<std::vector<Color> >

Definition at line 63 of file ArVizDrawer.cpp.

◆ Position

using Position = Eigen::Vector3f

Definition at line 61 of file ArVizDrawer.cpp.

◆ VertexGrid

using VertexGrid = std::vector<std::vector<Position> >

Definition at line 64 of file ArVizDrawer.cpp.

Constructor & Destructor Documentation

◆ ColoredMeshGrid()

ColoredMeshGrid ( Eigen::Array2i  numCells)
inline

Definition at line 66 of file ArVizDrawer.cpp.

Member Function Documentation

◆ apply()

void apply ( const auto &  posFn,
const auto &  colorFn 
)
inline

Definition at line 80 of file ArVizDrawer.cpp.

+ Here is the call graph for this function:

◆ getColors()

std::vector<std::vector<viz::data::Color> > getColors ( )
inline

Definition at line 92 of file ArVizDrawer.cpp.

+ Here is the call graph for this function:

◆ getVertices()

const VertexGrid& getVertices ( ) const
inline

Definition at line 114 of file ArVizDrawer.cpp.

◆ setColoredVertex()

void setColoredVertex ( const Eigen::Array2i &  idx,
const Position position,
const Color color 
)
inline

Definition at line 74 of file ArVizDrawer.cpp.

+ Here is the caller graph for this function:

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