Inviwo  0.9.10.1
Inviwo documentation
inviwo::FileShaderResource Class Reference
+ Inheritance diagram for inviwo::FileShaderResource:

Public Member Functions

 FileShaderResource (const std::string &key, const std::string &fileName)
 
virtual std::unique_ptr< ShaderResourceclone () override
 
virtual std::string key () const override
 
virtual std::string source () const override
 
std::string file () const
 
virtual void fileChanged (const std::string &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 (const std::string &filePath="")
 Starts observing file if existing. More...
 
 FileObserver (const FileObserver &)=delete
 
FileObserveroperator= (const FileObserver &)=delete
 
 FileObserver (FileObserver &&rhs)
 
FileObserveroperator= (FileObserver &&that)
 
virtual ~FileObserver ()
 
bool startFileObservation (const std::string &filePath)
 Starts observing file if it exists. More...
 
bool stopFileObservation (const std::string &filePath)
 Stops observing the file if being observed. More...
 
void stopAllObservation ()
 
const std::unordered_set< std::string > & getFiles () const
 
bool isObserved (const std::string &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
InviwoApplicationapp_
 

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