Inviwo
0.9.10.1
Inviwo documentation
|
Public Member Functions | |
FileShaderResource (const std::string &key, const std::string &fileName) | |
virtual std::unique_ptr< ShaderResource > | clone () 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 | |
FileObserver & | operator= (const FileObserver &)=delete |
FileObserver (FileObserver &&rhs) | |
FileObserver & | operator= (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 | |
InviwoApplication * | app_ |