MeshCore::MeshInput Class Reference

The MeshInput class is able to read a mesh object from a input stream in various formats. More...

#include <MeshIO.h>

List of all members.

Public Member Functions

bool LoadAny (const char *FileName)
 Loads the file, decided by extension.
bool LoadAsciiSTL (std::istream &rstrIn)
 Loads an ASCII STL file.
bool LoadBinarySTL (std::istream &rstrIn)
 Loads a binary STL file.
bool LoadCadmouldFE (std::ifstream &rstrIn)
 Loads a Cadmould FE file.
bool LoadInventor (std::istream &rstrIn)
 Loads an OpenInventor file.
bool LoadMeshNode (std::istream &rstrIn)
 Loads a node from an OpenInventor file.
bool LoadNastran (std::istream &rstrIn)
 Loads a Nastran file.
bool LoadOBJ (std::istream &rstrIn)
 Loads an OBJ Mesh file.
bool LoadPLY (std::istream &rstrIn)
 Loads a PLY Mesh file.
bool LoadSTL (std::istream &rstrIn)
 Loads an STL file either in binary or ASCII format.
void LoadXML (Base::XMLReader &reader)
 Loads the mesh object from an XML file.
 MeshInput (MeshKernel &rclM)
virtual ~MeshInput (void)

Protected Attributes

MeshKernel_rclMesh
 reference to mesh data structure

Detailed Description

The MeshInput class is able to read a mesh object from a input stream in various formats.

Definition at line 74 of file MeshIO.h.


Constructor & Destructor Documentation

MeshCore::MeshInput::MeshInput ( MeshKernel rclM  )  [inline]

Definition at line 77 of file MeshIO.h.

virtual MeshCore::MeshInput::~MeshInput ( void   )  [inline, virtual]

Definition at line 78 of file MeshIO.h.


Member Function Documentation

bool MeshInput::LoadAny ( const char *  FileName  ) 
bool MeshInput::LoadAsciiSTL ( std::istream &  rstrIn  ) 
bool MeshInput::LoadBinarySTL ( std::istream &  rstrIn  ) 
bool MeshInput::LoadCadmouldFE ( std::ifstream &  rstrIn  ) 

Loads a Cadmould FE file.

Definition at line 1190 of file MeshIO.cpp.

bool MeshInput::LoadInventor ( std::istream &  rstrIn  ) 
bool MeshInput::LoadMeshNode ( std::istream &  rstrIn  ) 

Loads a node from an OpenInventor file.

Definition at line 703 of file MeshIO.cpp.

References _rclMesh, MeshCore::MeshKernel::Adopt(), MeshCore::MeshKernel::Clear(), importOCA::getline(), and MeshCore::MeshKernel::Merge().

bool MeshInput::LoadNastran ( std::istream &  rstrIn  ) 

Loads a Nastran file.

Definition at line 1071 of file MeshIO.cpp.

References MeshCore::MeshFacet::_aulPoints, _rclMesh, importOCA::getline(), ltrim(), MeshCore::MeshKernel::Merge(), and upper().

Referenced by LoadAny().

bool MeshInput::LoadOBJ ( std::istream &  rstrIn  ) 
bool MeshInput::LoadPLY ( std::istream &  rstrIn  ) 
bool MeshInput::LoadSTL ( std::istream &  rstrIn  ) 

Loads an STL file either in binary or ASCII format.

Therefore the file header gets checked to decide if the file is binary or not.

Definition at line 347 of file MeshIO.cpp.

References _rclMesh, MeshCore::MeshKernel::Clear(), LoadAsciiSTL(), LoadBinarySTL(), and upper().

Referenced by LoadAny().

void MeshInput::LoadXML ( Base::XMLReader reader  ) 

Member Data Documentation

reference to mesh data structure

Definition at line 106 of file MeshIO.h.

Referenced by LoadAny(), LoadAsciiSTL(), LoadBinarySTL(), LoadInventor(), LoadMeshNode(), LoadNastran(), LoadOBJ(), LoadPLY(), LoadSTL(), and LoadXML().


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

Generated on Wed Nov 23 19:02:25 2011 for FreeCAD by  doxygen 1.6.1