Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
FileShaderResource (std::string_view key, const std::filesystem::path &fileName) | |
virtual std::unique_ptr< ShaderResource > | clone () 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 | |
FileObserver & | operator= (const FileObserver &)=delete |
FileObserver (FileObserver &&rhs) | |
FileObserver & | operator= (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 | |
FileSystemObserver * | fileSystemObserver_ |
|
overridevirtual |
Implements inviwo::ShaderResource.
|
overridevirtual |
Implements inviwo::FileObserver.
|
overridevirtual |
Implements inviwo::ShaderResource.
|
overridevirtual |
Implements inviwo::ShaderResource.
|
overridevirtual |
Implements inviwo::ShaderResource.