|
Katana Plug-in APIs 0.1
|
00001 // Copyright (c) 2017 The Foundry Visionmongers Ltd. All Rights Reserved. 00002 00003 #ifndef EXAMPLE_LOGGGING_COMPONENT_H_ 00004 #define EXAMPLE_LOGGGING_COMPONENT_H_ 00005 00006 #include <FnViewer/plugin/FnViewerDelegateComponent.h> 00007 #include <FnViewer/plugin/FnViewerDelegate.h> 00008 00009 #include <vector> 00010 #include <string> 00011 00012 using Foundry::Katana::ViewerAPI::ViewerDelegateComponent; 00013 using Foundry::Katana::ViewerAPI::ViewerDelegateWrapperPtr; 00014 00022 class LoggingComponent : public ViewerDelegateComponent 00023 { 00024 00025 public: 00026 00027 LoggingComponent(); 00028 00029 ~LoggingComponent(); 00030 00031 void setup(); 00032 00033 void cleanup(); 00034 00035 static Foundry::Katana::ViewerAPI::ViewerDelegateComponent* create(); 00036 00037 static void flush(); 00038 00039 bool locationEvent( 00040 const Foundry::Katana::ViewerAPI::ViewerLocationEvent& event, 00041 bool locationHandled) override; 00042 void locationsSelected(const std::vector<std::string>& locations) override; 00043 }; 00044 00045 00046 #endif
1.7.3