|
Katana Plug-in APIs 0.1
|
00001 // Copyright (c) 2017 The Foundry Visionmongers Ltd. All Rights Reserved. 00002 00003 #ifndef EXAMPLE_IGNORE_COMPONENT_H_ 00004 #define EXAMPLE_IGNORE_COMPONENT_H_ 00005 00006 #include <FnViewer/plugin/FnViewerDelegateComponent.h> 00007 #include <FnViewer/plugin/FnViewerDelegate.h> 00008 #include <FnAttribute/FnAttribute.h> 00009 00010 using Foundry::Katana::ViewerAPI::ViewerDelegateComponent; 00011 using Foundry::Katana::ViewerAPI::ViewerDelegateWrapperPtr; 00012 00025 class IgnoreComponent : public ViewerDelegateComponent 00026 { 00027 00028 public: 00029 00030 IgnoreComponent(); 00031 ~IgnoreComponent(); 00032 00033 void setup(); 00034 00035 void cleanup(); 00036 00037 static Foundry::Katana::ViewerAPI::ViewerDelegateComponent* create(); 00038 00039 static void flush(); 00040 00041 bool locationEvent( 00042 const Foundry::Katana::ViewerAPI::ViewerLocationEvent& event, 00043 bool locationHandled) override; 00044 00045 void locationsSelected(const std::vector<std::string>& locations) override 00046 {} 00047 00048 static const std::string kIgnoreLocationsOption; 00049 static const std::string kIgnoreLocationTypesOption; 00050 00051 private: 00056 bool getIgnoreLocationType(const std::string& locationPath); 00057 00062 bool getIgnoreLocationPath(const std::string& locationPath); 00063 }; 00064 00065 #endif
1.7.3