NuTo
Numerics Tool
Public Member Functions | Friends | List of all members
NuTo::Visualize::UnstructuredGrid Class Reference

visualization of unstructured grids More...

#include <UnstructuredGrid.h>

Public Member Functions

void ExportVtuDataFile (const std::string &filename, bool asBinary=true) const
 export to Vtu datafile More...
 
int AddPoint (Eigen::VectorXd coordinates)
 add Point to unstructured grid More...
 
int AddCell (std::vector< int > pointIds, eCellTypes cellType)
 add cell More...
 
void DefinePointData (std::string name)
 define point data More...
 
void DefineCellData (std::string name)
 define cell data More...
 
void SetPointData (int pointIndex, const std::string &name, double data)
 set scalar point data More...
 
void SetPointData (int pointIndex, const std::string &name, Eigen::VectorXd data)
 set point data More...
 
void SetCellData (int cellIndex, const std::string &name, double data)
 set scalar cell data More...
 
void SetCellData (int cellIndex, const std::string &name, Eigen::VectorXd data)
 set cell data More...
 

Friends

class XMLWriter
 
struct ::UnstructuredGridCheck
 

Detailed Description

visualization of unstructured grids

Member Function Documentation

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

add cell

Parameters
pointIdspoint id's (zero based indexing)
Returns
cell identifier (zero based indexing)
int UnstructuredGrid::AddPoint ( Eigen::VectorXd  coordinates)

add Point to unstructured grid

Parameters
coordinatespoint coordinates
Returns
point id
void UnstructuredGrid::DefineCellData ( std::string  name)

define cell data

Parameters
namename of the data field
void UnstructuredGrid::DefinePointData ( std::string  name)

define point data

Parameters
namename of the data field
void UnstructuredGrid::ExportVtuDataFile ( const std::string &  filename,
bool  asBinary = true 
) const

export to Vtu datafile

Parameters
filenamefilename including ".vtu"
asBinarytrue for output as binary vtu file
void UnstructuredGrid::SetCellData ( int  cellIndex,
const std::string &  name,
double  data 
)

set scalar cell data

Parameters
cellIndexcell index
namename of the data field
datascalar data
void UnstructuredGrid::SetCellData ( int  cellIndex,
const std::string &  name,
Eigen::VectorXd  data 
)

set cell data

Parameters
cellIndexcell index
namename of the data field
datadata
void UnstructuredGrid::SetPointData ( int  pointIndex,
const std::string &  name,
double  data 
)

set scalar point data

Parameters
pointIndexpoint index
namename of the data field
datascalar data
void UnstructuredGrid::SetPointData ( int  pointIndex,
const std::string &  name,
Eigen::VectorXd  data 
)

set point data

Parameters
pointIndexpoint index
namename of the data field
datadata

Friends And Related Function Documentation

friend struct ::UnstructuredGridCheck
friend
friend class XMLWriter
friend

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