Static Public Member Functions

SimplexMeshAccessor< MeshType > Class Template Reference

#include <mitkMeshUtil.h>

Inheritance diagram for SimplexMeshAccessor< MeshType >:
Inheritance graph
[legend]
Collaboration diagram for SimplexMeshAccessor< MeshType >:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static vtkFloatingPointType GetPointScalar (typename MeshType::PointDataContainer *point, typename MeshType::PointIdentifier idx, MeshType *mesh, unsigned int type=0)

Detailed Description

template<typename MeshType>
class SimplexMeshAccessor< MeshType >

Definition at line 97 of file mitkMeshUtil.h.


Member Function Documentation

template<typename MeshType >
static vtkFloatingPointType SimplexMeshAccessor< MeshType >::GetPointScalar ( typename MeshType::PointDataContainer *  point,
typename MeshType::PointIdentifier  idx,
MeshType *  mesh,
unsigned int  type = 0 
) [inline, static]

Reimplemented from NullScalarAccessor< MeshType >.

Definition at line 100 of file mitkMeshUtil.h.

  {
    typename MeshType::GeometryMapPointer geometryData = mesh->GetGeometryData();

    if (type == 0)
    {
      double val = mesh->GetMeanCurvature( idx );
      mesh->SetPointData(idx, val);
      return val;
    }
    else if (type == 1)
    {
      double val = geometryData->GetElement(idx)->meanTension;
      mesh->SetPointData(idx, val);
      return val;
    }
    else if (type == 2)
    {
      double val = geometryData->GetElement(idx)->externalForce.GetNorm();
      mesh->SetPointData(idx, val);
      return val;
    }
    else if (type == 3)
      return geometryData->GetElement(idx)->internalForce.GetNorm();
    else if (type == 4)
      return geometryData->GetElement(idx)->externalForce.GetNorm() *
      mesh->GetDistance(idx);
    else if (type == 5)
    {
      typename MeshType::PixelType dis = 0;    
      mesh->GetPointData(idx, &dis);
      return (vtkFloatingPointType) dis;
    }
    else if (type == 6)
    {
      return (vtkFloatingPointType) ((geometryData->GetElement(idx))->allowSplitting);
    }
    else
      return (vtkFloatingPointType) 0;
  };

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines