NuTo
Numerics Tool
Public Member Functions | Protected Attributes | List of all members
NuTo::Visualize::Cell Class Reference

class for storing visualization cells More...

#include <Cell.h>

Public Member Functions

 Cell (std::vector< int > pointIds, eCellTypes cellType)
 constructor More...
 
int GetNumPoints () const
 return number of cell points More...
 
const std::vector< int > & GetPointIds () const
 return point id's More...
 
void SetPointIds (std::vector< int > pointIds)
 setter for mPointIds More...
 
eCellTypes GetCellType () const
 returns the corresponding cell type More...
 
void SetData (int dataIndex, Eigen::VectorXd data)
 set tensor data More...
 
const Eigen::VectorXd & GetData (int dataIndex) const
 

Protected Attributes

std::vector< Eigen::VectorXd > mData
 
std::vector< int > mPointIds
 
eCellTypes mCellType
 

Detailed Description

class for storing visualization cells

Constructor & Destructor Documentation

Cell::Cell ( std::vector< int >  pointIds,
eCellTypes  cellType 
)

constructor

Parameters
pointIdspoint ids
cellTypecell type enum

Member Function Documentation

NuTo::eCellTypes Cell::GetCellType ( ) const

returns the corresponding cell type

Returns
cell type
const Eigen::VectorXd & Cell::GetData ( int  dataIndex) const
Parameters
dataIndexdata index
int Cell::GetNumPoints ( ) const

return number of cell points

Returns
number of cell points
const std::vector< int > & Cell::GetPointIds ( ) const

return point id's

Returns
array of point id's
void Cell::SetData ( int  dataIndex,
Eigen::VectorXd  data 
)

set tensor data

Parameters
datadata
void Cell::SetPointIds ( std::vector< int >  pointIds)

setter for mPointIds

Member Data Documentation

eCellTypes NuTo::Visualize::Cell::mCellType
protected
std::vector<Eigen::VectorXd> NuTo::Visualize::Cell::mData
protected
std::vector<int> NuTo::Visualize::Cell::mPointIds
protected

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