28 #define C_DECL __cdecl 29 #define C_EXPORT extern "C" __declspec(dllexport) 30 #elif defined(__GNUC__) 32 #define C_EXPORT extern "C" __attribute__((visibility("default"))) 35 #define C_EXPORT extern "C" 49 virtual const char* GetPluginName() = 0;
54 virtual const char* GetPluginVersionString() = 0;
59 virtual bool GetRequiredOnServer() = 0;
64 virtual bool GetRequiredOnClient() = 0;
69 virtual const char* GetRequiredPlugins() = 0;
74 virtual const char* GetDescription() = 0;
79 virtual const char* GetEULA() = 0;
86 virtual void GetBinaryResources(std::vector<std::string>& resources);
113 static void SetEULAConfirmationCallback(EULAConfirmationCallback callback);
114 static EULAConfirmationCallback GetEULAConfirmationCallback();
123 void SetFileName(
const char* filename);
136 static EULAConfirmationCallback EULAConfirmationCallbackPtr;
148 #ifdef PARAVIEW_BUILDING_PLUGIN 156 #if PARAVIEW_PLUGIN_BUILT_SHARED 157 #define _PV_PLUGIN_GLOBAL_FUNCTIONS(PLUGIN) \ 158 C_EXPORT vtkPVPlugin* C_DECL pv_plugin_instance() { return pv_plugin_instance_##PLUGIN(); } 162 #define _PV_PLUGIN_GLOBAL_FUNCTIONS(PLUGIN) 169 #define PV_PLUGIN_EXPORT(PLUGIN, PLUGINCLASS) \ 170 C_EXPORT vtkPVPlugin* C_DECL pv_plugin_instance_##PLUGIN() \ 172 static PLUGINCLASS instance; \ 175 _PV_PLUGIN_GLOBAL_FUNCTIONS(PLUGIN); 184 #define PV_PLUGIN_IMPORT_INIT(PLUGIN) extern "C" vtkPVPlugin* pv_plugin_instance_##PLUGIN(); 186 #define PV_PLUGIN_IMPORT(PLUGIN) vtkPVPlugin::ImportPlugin(pv_plugin_instance_##PLUGIN()); 190 #endif // vtkPVPlugin_h
defines the core interface for any ParaView plugin.
Used to load ParaView plugins.
const char * GetFileName()
#define VTKREMOTINGCORE_EXPORT
vtkPVPlugin *(C_DECL * pv_plugin_query_instance_fptr)()