Inviwo 0.9.12-pre
Inviwo documentation
|
Export Meshes in the STL format. More...
#include <stlwriter.h>
Public Member Functions | |
StlWriter (const StlWriter &)=default | |
StlWriter & | operator= (const StlWriter &)=default |
virtual StlWriter * | clone () const override |
virtual void | writeData (const Mesh *data, const std::filesystem::path &filePath) const override |
virtual std::unique_ptr< std::vector< unsigned char > > | writeDataToBuffer (const Mesh *data, std::string_view fileExtension) const override |
Public Member Functions inherited from inviwo::DataWriterType< Mesh > | |
DataWriterType (const DataWriterType &rhs)=default | |
DataWriterType (DataWriterType &&rhs) noexcept=default | |
DataWriterType & | operator= (const DataWriterType &that)=default |
DataWriterType & | operator= (DataWriterType &&that) noexcept=default |
virtual void | writeData (const T *data, const std::filesystem::path &filePath) const=0 |
Write data to filePath . | |
virtual std::unique_ptr< std::vector< unsigned char > > | writeDataToBuffer (const T *, std::string_view) const |
Public Member Functions inherited from inviwo::DataWriter | |
DataWriter (const DataWriter &rhs) | |
DataWriter & | operator= (const DataWriter &that) |
DataWriter (DataWriter &&rhs) noexcept=default | |
DataWriter & | operator= (DataWriter &&that) noexcept=default |
const std::vector< FileExtension > & | getExtensions () const |
void | addExtension (FileExtension ext) |
Overwrite | getOverwrite () const |
void | setOverwrite (Overwrite val) |
void | checkOverwrite (const std::filesystem::path &path) const |
virtual bool | setOption (std::string_view key, std::any value) |
Set writer specific options See the documentation of the specific writer for the available options. | |
virtual std::any | getOption (std::string_view key) const |
Query the value of a writer specific option. | |
template<typename T > | |
bool | writesType () const |
Additional Inherited Members | |
Static Public Member Functions inherited from inviwo::DataWriter | |
static void | checkOverwrite (const std::filesystem::path &path, Overwrite overwrite) |
Protected Member Functions inherited from inviwo::DataWriterType< Mesh > | |
virtual bool | canWrite (const std::type_index &index) const override |
Protected Member Functions inherited from inviwo::DataWriter | |
std::ofstream | open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::out) const |
Protected Attributes inherited from inviwo::DataWriter | |
Overwrite | overwrite_ |
std::vector< FileExtension > | extensions_ |
Export Meshes in the STL format.
|
overridevirtual |
Implements inviwo::DataWriterType< Mesh >.