OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WWriterFiberVTK Class Reference

Writes a FiberVTK file. More...

#include <WWriterFiberVTK.h>

+ Inheritance diagram for WWriterFiberVTK:
+ Collaboration diagram for WWriterFiberVTK:

Public Member Functions

 WWriterFiberVTK (const boost::filesystem::path &path, bool overwrite=false)
 Creates a writer object for FiberVTK file writing. More...
 
void writeFibs (std::shared_ptr< const WDataSetFiberVector > fiberDS) const
 Writes a WDataSetFiberVector down to the previousely given file. More...
 
void writeFibs (std::shared_ptr< const WDataSetFibers > fiberDS) const
 Writes tracts of a WDataSetFibers to the previousely given file. More...
 
- Public Member Functions inherited from WWriter
 WWriter (std::string fname, bool overwrite=false)
 Creates a writer object for writing something to a file. More...
 
OW_API_DEPRECATED void setFileName (std::string fname)
 Reset file name and checks if the file already exists in case of non overwriting is specified. More...
 
void setFilename (std::string fname)
 Reset file name and checks if the file already exists in case of non overwriting is specified. More...
 

Additional Inherited Members

- Protected Attributes inherited from WWriter
std::string m_fname
 Absolute path of the file to write to. More...
 
bool m_overwrite
 flag indicating if the file may be overwritten (true) or not (false) More...
 

Detailed Description

Writes a FiberVTK file.

Definition at line 40 of file WWriterFiberVTK.h.

Constructor & Destructor Documentation

◆ WWriterFiberVTK()

WWriterFiberVTK::WWriterFiberVTK ( const boost::filesystem::path &  path,
bool  overwrite = false 
)

Creates a writer object for FiberVTK file writing.

Parameters
pathto the target file where stuff will be written to
overwriteIf true existing files will be overwritten

Definition at line 37 of file WWriterFiberVTK.cpp.

Member Function Documentation

◆ writeFibs() [1/2]

void WWriterFiberVTK::writeFibs ( std::shared_ptr< const WDataSetFibers fiberDS) const

Writes tracts of a WDataSetFibers to the previousely given file.

Parameters
fiberDSThe tract data set

Definition at line 41 of file WWriterFiberVTK.cpp.

References writeFibs().

+ Here is the call graph for this function:

◆ writeFibs() [2/2]

void WWriterFiberVTK::writeFibs ( std::shared_ptr< const WDataSetFiberVector fiberDS) const

Writes a WDataSetFiberVector down to the previousely given file.

Parameters
fiberDSThe WDataSetFiberVector where the data is taken from

Definition at line 46 of file WWriterFiberVTK.cpp.

References WWriter::m_fname, and WMixinVector< ValueT >::size().

Referenced by WMWriteTracts::moduleMain(), WMFiberTransform::update(), and writeFibs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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