libgenua
Basic Geometry, Numerical Algorithms and Interfaces
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Public Member Functions | Protected Attributes | List of all members
MeshFields Class Reference

Detailed Description

Holds visualization data.

MeshFields is used to represent data on a discretized surface, specificially for visualization. This class is used to generate and save data for scalar fields on surface meshes, to be read by the visualization tools.

Note: Use MxMesh instead.

Deprecated:

#include <meshfields.h>

Collaboration diagram for MeshFields:
[legend]

Public Member Functions

 MeshFields ()
 empty init
 
const std::string & name () const
 case name
 
void name (const std::string &s)
 case name
 
uint nvertices () const
 number of nodes
 
uint nmarkers () const
 number of point markers
 
uint nline2 () const
 number of line elements
 
uint ntri3 () const
 number of 3-node triangles
 
uint nquad4 () const
 number of 4-node quads
 
uint nelements () const
 number of shell elements
 
uint nmodes () const
 number of eigenmodes
 
uint nshapes () const
 number of named shapes
 
uint nfields () const
 number of scalar datasets
 
uint nvfields () const
 number vector fields
 
uint ncompsets () const
 number of component sets
 
uint ntraject () const
 number of trajectories
 
Real value (uint ifield, uint jnode) const
 access numerical value jnode of field ifield
 
const Vct3node (uint j) const
 access vertex j
 
const Vct3normal (uint j) const
 access normal j
 
const Indices & markerIndices () const
 access vertex indices of point markers
 
const uint * line2Vertices (uint i) const
 access vertex indices of line element i
 
const uint * tri3Vertices (uint i) const
 access vertex indices of triangle element i
 
const uint * quad4Vertices (uint i) const
 access vertex indices of quad element i
 
const std::string & fieldname (uint i) const
 name of dataset i
 
const std::string & vfieldname (uint i) const
 name of dataset i
 
const std::string & csetname (uint i) const
 name of component set i
 
const Vectorfield (uint i) const
 access field vector
 
const PointList< 3 > & vectorField (uint i) const
 access field vector
 
const Indices & componentSet (uint i) const
 access component set
 
const std::string & modename (uint i) const
 name of mode i
 
const std::string & shapename (uint i) const
 name of shape i
 
const Vectornamedshape (uint i) const
 access named shape i
 
const PointList< 3 > & eigenmode (uint imode) const
 access modeshape
 
bool isNodalField (uint i) const
 check if field i contains nodal values
 
const std::string & trajectoryName (uint i) const
 access trajectory name
 
bool hasVertexNormals () const
 inquire if vertex normals are present
 
uint addVertex (const Vct3 &v)
 general: create vertex, return its index
 
void addVertices (const PointList< 3 > &v)
 add vertex list
 
uint addNormal (const Vct3 &n)
 general: create normal, return its index
 
uint addMarker (uint ipos)
 place a point marker at vertex ipos and return its index
 
uint addMarker (const PointList< 3 > &pts)
 add marker nodes
 
uint addTri3 (const uint *vix)
 create a simplex triangle, return its index
 
uint addTri3 (uint a, uint b, uint c)
 create a simplex triangle, return its index
 
uint addQuad4 (const uint *vix)
 create a 4-node quad, return its index
 
uint addQuad4 (uint a, uint b, uint c, uint d)
 create a 4-node quad, return its index
 
uint addLine2 (uint a, uint b)
 add a line element, return its index
 
void addLine2 (const PointList< 3 > &polyline)
 add polyline (Line2 elements)
 
void addMesh (const Triangulation &t)
 create geometry data from triangulation
 
void addMesh (const TriMesh &t)
 create geometry data from triangulation
 
void addMesh (const PointGrid< 3 > &pg)
 create quad elements from point grid
 
void addMesh (const PointGrid< 3 > &pg, const PointGrid< 3 > &ng)
 create quad elements from point grid and normals
 
uint addField (const std::string &fname, const Vector &values)
 add field data, return field index
 
uint addVectorField (const std::string &fname, const PointList< 3 > &values)
 add vector field data, return field index
 
uint addComponentSet (const std::string &fname, const Indices &cmp)
 add a set of component definitions
 
uint addModeShape (const std::string &sname, const PointList< 6 > &shape)
 add modeshape
 
uint addModeShape (const std::string &sname, const PointList< 3 > &shape)
 add modeshape
 
uint addModeShape (const std::string &sname, const Matrix &shape)
 add modeshape
 
uint addNamedShape (const std::string &fname, const Vector &values)
 add named shape (in modal subspace coordinates)
 
uint addTrajectory (const std::string &tname, const Matrix &m)
 add a named trajectory (first column is time, min. 12 DOF)
 
void mergePayload (const MeshFields &a)
 merge in data from object containing the same mesh
 
void clear ()
 clear all data
 
XmlElement toXml () const
 create XML representation
 
void fromXml (const XmlElement &xe)
 construct from XML representation
 

Protected Attributes

std::string csname
 name for the case
 
PointList< 3 > vtx
 vertex and normal coordinates
 
ShapeArray mds
 modeshapes and 3-component vector fields
 
StringArray vecfnames
 vector field names
 
Indices fpt
 edges, point markers, line elements, simplex triangles, 4-node quads
 
std::vector< Indices > icomp
 element to component assignments
 
StringArray scomp
 component set names
 
VectorArray vfield
 values to visualize
 
StringArray sfield
 names of the data fields
 
StringArray modenames
 names of the modes
 
VectorArray nshape
 named special shapes
 
StringArray sshape
 names for these shapes
 
MatrixArray traject
 trajectories
 
StringArray tjnames
 trajectory names
 

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