OpenWalnut
1.5.0dev
|
Load VTK meshes. More...
#include <WMeshReaderVTK.h>
Public Member Functions | |
WMeshReaderVTK () | |
Constructor. More... | |
virtual | ~WMeshReaderVTK () |
Destructor. More... | |
virtual WTriangleMesh::SPtr | operator() (WProgressCombiner::SPtr parentProgress, boost::filesystem::path file) |
Load the dataset. More... | |
Public Member Functions inherited from WObjectNDIP< WMeshReaderInterface > | |
virtual | ~WObjectNDIP () |
Destructor. More... | |
virtual std::string | getName () const |
The name of the object. More... | |
virtual std::string | getDescription () const |
The description of this object. More... | |
virtual const char ** | getIcon () const |
The icon of this object. More... | |
virtual WProperties::SPtr | getProperties () |
Return the property group of this object. More... | |
Public Member Functions inherited from WMeshReaderInterface | |
virtual | ~WMeshReaderInterface () |
Destructor. More... | |
std::string | getLine (std::shared_ptr< std::ifstream > ifs, const std::string &desc) const |
Read a line from the given input stream and throw an exception on error. More... | |
std::string | getLine (std::ifstream &ifs, const std::string &desc) const |
Read a line from the given input stream and throw an exception on error. More... | |
Private Attributes | |
WPropBool | m_propVectorAsColor |
Use vectors from file as color of surface. More... | |
Additional Inherited Members | |
Public Types inherited from WObjectNDIP< WMeshReaderInterface > | |
typedef std::shared_ptr< WObjectNDIP > | SPtr |
Shared ptr to an instance. More... | |
typedef std::shared_ptr< const WObjectNDIP > | ConstSPtr |
Shared ptr to a const instance. More... | |
Protected Member Functions inherited from WObjectNDIP< WMeshReaderInterface > | |
WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
Construct a NDIP'ed object. More... | |
Protected Attributes inherited from WObjectNDIP< WMeshReaderInterface > | |
WProperties::SPtr | m_properties |
the properties of the object. More... | |
Load VTK meshes.
Definition at line 35 of file WMeshReaderVTK.h.
WMeshReaderVTK::WMeshReaderVTK | ( | ) |
Constructor.
Definition at line 31 of file WMeshReaderVTK.cpp.
References WObjectNDIP< WMeshReaderInterface >::m_properties, and m_propVectorAsColor.
|
virtual |
Destructor.
Definition at line 41 of file WMeshReaderVTK.cpp.
|
virtual |
Load the dataset.
Throws exceptions if appropriate. Refer to the implementing class.
parentProgress | the progress indicator |
file | path to the file to load |
Implements WMeshReaderInterface.
Definition at line 46 of file WMeshReaderVTK.cpp.
References WLogger::addLogMessage(), WLogger::getLogger(), m_propVectorAsColor, and string_utils::toString().
|
private |
Use vectors from file as color of surface.
Definition at line 59 of file WMeshReaderVTK.h.
Referenced by operator()(), and WMeshReaderVTK().