Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::FileShaderResource Class Reference
+ Inheritance diagram for inviwo::FileShaderResource:

Public Member Functions

 FileShaderResource (std::string_view key, const std::filesystem::path &fileName)
 
virtual std::unique_ptr< ShaderResourceclone () const override
 
virtual const std::string & key () const override
 
virtual const std::string & source () const override
 
virtual void setSource (std::string_view source) override
 
const std::filesystem::path & file () const
 
virtual void fileChanged (const std::filesystem::path &fileName) override
 
- Public Member Functions inherited from inviwo::ShaderResource
template<typename T >
std::shared_ptr< Callback > onChange (T &&callback) const
 
- Public Member Functions inherited from inviwo::FileObserver
 FileObserver (InviwoApplication *app)
 
 FileObserver (FileSystemObserver *app)
 
 FileObserver (const FileObserver &)=delete
 
FileObserveroperator= (const FileObserver &)=delete
 
 FileObserver (FileObserver &&rhs)
 
FileObserveroperator= (FileObserver &&that)
 
virtual ~FileObserver ()
 
bool startFileObservation (const std::filesystem::path &filePath)
 Starts observing file if it exists.
 
bool stopFileObservation (const std::filesystem::path &filePath)
 Stops observing the file if being observed.
 
void stopAllObservation ()
 
const std::unordered_set< std::filesystem::path, PathHash > & getFiles () const
 
bool isObserved (const std::filesystem::path &fileName) const
 

Additional Inherited Members

- Public Types inherited from inviwo::ShaderResource
using Callback = std::function<void(const ShaderResource*)>
 
- Protected Attributes inherited from inviwo::ShaderResource
Dispatcher< void(const ShaderResource *)> callbacks_
 
- Protected Attributes inherited from inviwo::FileObserver
FileSystemObserverfileSystemObserver_
 

Member Function Documentation

◆ clone()

virtual std::unique_ptr< ShaderResource > inviwo::FileShaderResource::clone ( ) const
overridevirtual

◆ fileChanged()

virtual void inviwo::FileShaderResource::fileChanged ( const std::filesystem::path & fileName)
overridevirtual

Implements inviwo::FileObserver.

◆ key()

virtual const std::string & inviwo::FileShaderResource::key ( ) const
overridevirtual

◆ setSource()

virtual void inviwo::FileShaderResource::setSource ( std::string_view source)
overridevirtual

◆ source()

virtual const std::string & inviwo::FileShaderResource::source ( ) const
overridevirtual

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