X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=binaries%2Fsrc%2FViennaRNA%2FRNAforester%2Fg2-0.70%2Fsrc%2Fg2_physical_device.h;fp=binaries%2Fsrc%2FViennaRNA%2FRNAforester%2Fg2-0.70%2Fsrc%2Fg2_physical_device.h;h=d25d58eaeb9ffbbec0780e7464684844445b9775;hb=7522ace91fc0804a9719dbac9f68bc8154da3132;hp=0000000000000000000000000000000000000000;hpb=8116c0444fe98e8eb21bcdd8ded06e1429085823;p=jabaws.git diff --git a/binaries/src/ViennaRNA/RNAforester/g2-0.70/src/g2_physical_device.h b/binaries/src/ViennaRNA/RNAforester/g2-0.70/src/g2_physical_device.h new file mode 100644 index 0000000..d25d58e --- /dev/null +++ b/binaries/src/ViennaRNA/RNAforester/g2-0.70/src/g2_physical_device.h @@ -0,0 +1,61 @@ +/***************************************************************************** +** Copyright (C) 1998-2001 Ljubomir Milanovic & Horst Wagner +** This file is part of the g2 library +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License as published by the Free Software Foundation; either +** version 2.1 of the License, or (at your option) any later version. +** +** This library is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** Lesser General Public License for more details. +** +** You should have received a copy of the GNU Lesser General Public +** License along with this library; if not, write to the Free Software +** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +******************************************************************************/ +#ifndef _G2_PHYSICAL_DEVICE_H +#define _G2_PHYSICAL_DEVICE_H + +#include "g2.h" +#include "g2_funix.h" + + +typedef enum _g2_coor { /* coord. type */ + g2_IntCoor, g2_DoubleCoor +} g2_coor; + + +typedef struct _g2_funix_fun { /* funix--function paar */ + g2_funix fx; /* function index */ + int (*fun)(); /* pointer to function */ +} g2_funix_fun; + + +typedef struct _g2_physical_device { + int pid; /* physical device id */ + void *pdp; /* pointer to something in phys. dev. */ + g2_coor coor_type; /* coordinate type */ + g2_funix_fun *ff; /* list of funix-function pairs */ + double a11, a22; /* coordinate transformation (ud->pd) */ + double b1, b2; /* Ar + B */ + + double x_origin; /* User coordinates specification */ + double y_origin; + double x_mul; + double y_mul; +} g2_physical_device; + + + +g2_physical_device *g2_create_physical_device(int pid, + void *pdp, + g2_coor ct, + const g2_funix_fun *ff, + double a11, double a22, + double b1, double b2); +void g2_destroy_physical_device(g2_physical_device *pd); + +#endif /* _G2_PHYSICAL_DEVICE_H */