Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::AssimpReader Class Reference

Inviwo Module Assimp. More...

#include <assimpreader.h>

+ Inheritance diagram for inviwo::AssimpReader:

Public Member Functions

 AssimpReader (const AssimpReader &rhs)=default
 
AssimpReaderoperator= (const AssimpReader &that)=default
 
virtual AssimpReaderclone () const override
 
void setLogLevel (AssimpLogLevel level, bool verbose=false)
 
AssimpLogLevel getLogLevel () const
 
void setFixInvalidDataFlag (bool enable)
 
bool getFixInvalidDataFlag () const
 
virtual std::shared_ptr< MeshreadData (const std::filesystem::path &filePath) override
 
virtual bool setOption (std::string_view key, std::any value) override
 Set reader specific options See the documentation of the specific reader for the available options.
 
virtual std::any getOption (std::string_view key) override
 Query the value of an reader specific option.
 
- Public Member Functions inherited from inviwo::DataReaderType< Mesh >
 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderTypeoperator= (const DataReaderType &that)=default
 
DataReaderTypeoperator= (DataReaderType &&that) noexcept=default
 
virtual std::shared_ptr< MeshreadData (const std::filesystem::path &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
void addExtension (FileExtension ext)
 
template<typename T >
bool readsType () const
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataReaderType< Mesh >
virtual bool canRead (const std::type_index &index) const override
 
- Protected Member Functions inherited from inviwo::DataReader
void checkExists (const std::filesystem::path &path) const
 
std::ifstream open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in) const
 
- Protected Attributes inherited from inviwo::DataReader
std::vector< FileExtensionextensions_
 

Detailed Description

Inviwo Module Assimp.

A GeometryReader (DataReaderType<Geometry>) using the Assimp Library.

Member Function Documentation

◆ clone()

virtual AssimpReader * inviwo::AssimpReader::clone ( ) const
overridevirtual

◆ getOption()

virtual std::any inviwo::AssimpReader::getOption ( std::string_view key)
overridevirtual

Query the value of an reader specific option.

Parameters
keythe option to query
Returns
an std::any with the requested option or an empty std::any if the option was not found

Reimplemented from inviwo::DataReader.

◆ readData()

virtual std::shared_ptr< Mesh > inviwo::AssimpReader::readData ( const std::filesystem::path & filePath)
overridevirtual

◆ setOption()

virtual bool inviwo::AssimpReader::setOption ( std::string_view key,
std::any value )
overridevirtual

Set reader specific options See the documentation of the specific reader for the available options.

Parameters
keythe option to set
valuethe new value for the option
Returns
true if the option was recognized and set, otherwise false

Reimplemented from inviwo::DataReader.


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