/usr/share/doc/gwyddion-plugins/README is in gwyddion-plugins 2.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | This directory contains plug-in examples in various languages. All source
files here are in the public domain.
All plug-ins implement the same simple Value Invert function for easy
comparison and cross reference. They all appear in
Data Proces -> Plug-Ins -> Test -> Value Invert (LANGUAGE_NAME)
menu in Gwyddion.
All also implement it the same way, if possible: a class/module/unit reading
and writing plug-in proxy dump files is defined separately from the plug-in.
This makes the plug-ins really simple and allows to reuse the module as is.
For languages where it seemed useful, a plug-in helper function/method
encapsulating the command line argument handling is defined too.
C++
Note it doesn't resemble Gwyddion C implementation much, it's full of STL
stuff, a really different implementation.
It is only distributed but never built. It seems a proper configure check
for *optional* C++ is next to impossible.
Files:
dump.cc, dump.hh: Dump format implementation (a really simple class).
plugin-helper.hh: Plug-in helper simplifying command line processing.
invert_cpp.cc: The plug-in itself.
Pascal
Uses Delphi dialect (namely for dynamic arrays), should be compilable
with FreePascal >= 1.9 and Delphi.
Files:
GwyddionDump.pas: Dump format and plug-in helper.
invert_pascal.pas: The plug-in itself.
Perl
Files:
invert_perl.pl: The plug-in itself.
The dump format in implemented in Gwyddion::dump module in
../../perl/Gwyddion/dump.pm, installed with Gwyddion by default.
Python
Files:
invert_python.py: The plug-in itself.
The dump format in implemented in Gwyddion.dump module in
../../python/Gwyddion/dump.py, installed with Gwyddion by default.
Beside that, a one extraodrinary plug-in is present:
yellow.sh
A shell plug-in demostrating a property of plug-in proxy: it remembers
EVERYTHING and only updates it with data obtained from the plug-in.
So this plug-in only writes a single line of metadata and does not
deal with the data itself at all.
|