{"id":28436905,"url":"https://github.com/cern/openphigs","last_synced_at":"2025-06-27T20:32:16.582Z","repository":{"id":265460636,"uuid":"883801965","full_name":"CERN/OpenPHIGS","owner":"CERN","description":"OpenPHIGS with OpenGL backend and extensions for data preservation purpose","archived":false,"fork":false,"pushed_at":"2025-04-04T08:17:42.000Z","size":635,"stargazers_count":2,"open_issues_count":5,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-05T23:07:57.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CERN.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T15:42:56.000Z","updated_at":"2025-04-04T08:17:47.000Z","dependencies_parsed_at":"2024-11-29T13:42:46.944Z","dependency_job_id":"6605c71f-ea62-4f96-9ba4-78fd56cf834f","html_url":"https://github.com/CERN/OpenPHIGS","commit_stats":null,"previous_names":["cern/openphigs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CERN/OpenPHIGS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2FOpenPHIGS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2FOpenPHIGS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2FOpenPHIGS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2FOpenPHIGS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CERN","download_url":"https://codeload.github.com/CERN/OpenPHIGS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CERN%2FOpenPHIGS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262327331,"owners_count":23294252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-05T23:07:55.294Z","updated_at":"2025-06-27T20:32:16.499Z","avatar_url":"https://github.com/CERN.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenPHIGS\n\nThis repository is based on OpenPHIGS from\n\nhttps://sourceforge.net/projects/phigs/files/\n\nwhich is based on\n\nhttps://www.x.org/archive/unsupported/lib/PHIGS\n\nThis distribution contains modifications and extensions which are needed for the purpose of data preservation in high energy physics.\nThe code maturity level is pre-alpha, since it does not implement the full standard, neither for the C bindings, nor for Fortran.\n\n## Building\n\nRun\n```\nmake\nmake install\n```\nwhich will create and install the OpenPHIGS library, headers and tests in a new subdirectory called distrib. The install step will create a folder called distrib, including headers, binaries and libraries.\n\n### Switching between GLEW and Epoxy\nOpenphigs uses by default GLEW. Switching between GLEW and Epoxy is supported by configuring with -DUSE_GLEW=0. The Makefile checks for the environment variable NO_GLEW. If defined, it will use Epoxy, else GLEW. To switch to Epoxy, do\n```\nNO_GLEW=1 make\n```\n\n### Switching between Xaw and Motif Widgets\nBy default, widgets will use Motif. To switch to Xaw, make sure that cmake is configure without the -DMotif switch. Take a look at the top level CMakeLists.txt file\n\n## Extensions\nSome extensions have been implemented, specifically for the Fortran bindings, to support the DELPHI and OPAL event displays.\n\n### New Work station types 4 and 5\nWork station types 4 (without double buffering) and 5 (with double buffering) take a screen shot when closed and write the screen shot as targa file to a file name.\n\n#### Fortran bindings:\nThe second argument of popwk expects a non-zero integer which will be passed on as LUN.\n\n* If a file name has been defined in the configuration file as  %wf \u003cfilename\u003e, the targa file will be created with this name in the current folder.\n* If no file name has been defined in the configuration file as %wf \u003cfilename\u003e fort.\u003cLUN\u003e will be used.\n* After opening the work station, the output file name can be set with a call to CALL PSFNAME(WKD, \u003cfilename\u003e) where filename can be the full path to the output\n\n#### C bindings\n\n* If a file name has been defined in the configuration file as  %wf \u003cfilename\u003e, the targa file will be created with this name in the current folder.\n* If no file name has been defined in the configuraiton file, it defaults to \"output.tga\" and is created in the current directory.\n\n## Transparency\nThe ALPHA channel in a structure can be set with\n\nCALL PSALCH(X)\n\nwhere X is a floating point number between 0. (fully transparent) and 1. (fully opaque).\n\n## Migration notes and extensions\nSome notes on differences with respect to other implementations.\n\n### Workstation types\n* 0 PWST_OUTPUT_TRUE                 Output only on GL display\n* 1 PWST_OUTIN_TRUE                  Input/Output on GL display\n* 2 PWST_OUTPUT_TRUE_DB              Output only on GL, buffered\n* 3 PWST_OUTIN_TRUE_DB               Input/Output on GL display, buffered\n* 4 PWST_HCOPY_TRUE                  Hardcopy to file as TGA\n* 5 PWST_HCOPY_TRUE_DB               Hardcopy to file as TGA\n* 6 PWST_HCOPY_TRUE_RGB_PNG          Hardcopy to file as PNG RGB only\n* 7 PWST_HCOPY_TRUE_RGB_PNG_DB       Hardcopy to file as PNG RGB only\n* 8 PWST_HCOPY_TRUE_RGBA_PNG         Hardcopy to file as PNG with Alpha channel\n* 9 PWST_HCOPY_TRUE_RGBA_PNG_DB      Hardcopy to file as PNG with Alpha channel\n\nNotes:\n * There is no support for PostScript at the moment.\n * The hardcopy types are available in Fortran. C-Bindings have not been tested with them\n\n### (Extension) Display/Color\nThere is some support for transparency.\n* PSALCH(REAL VALUE): set ALPHA channel to Value. Value is between 0(fully transparent) and 1 (opaque). Added to the current structure.\n* pset_alpha_channel(float value): C-Binding for PSALCH. Added to the current structure.\n\n### Input devices\nOpenphigs behaviour on echo modes is summarized below.\n\n#### String echo modes\n* echo mode 1\n  * opens a new window\n  * echo area given in NC coordinates for the root window\n* echo mode -1\n  * echo area given in % relative to the main window\n\n#### Valuator echo modes\n* echo mode 1:\n  * uses default strings for label, format low label and high label\n  * opens a new window\n  * echo area given in NC coordinates for the root window\n* echo mode -1: As mode 1 but expects additional parameters as string, namely\n  * label\n  * format\n  * low label\n  * high label\n  These should be encoded\nExtensions:\n* echo mode 2:\n  * as echo mode 1 but places the window on top of the main window\n  * echo area given as a fraction of the main window\n* echo mode -2:\n  * as echo mode -1 but places the window on top of the main window\n  * echo area given as a fraction of the main window\n* echo mode 3, -3:\n  * as echo mode 2 but places the window on top of the main window\n  * echo area given as a fraction of the main window\n  * boxes the valuators up in one Window.\n  (!) PPREC expects one integer for this echo mode which is the number of valuators to be boxed up\n\n#### Choice echo modes\n* echo mode 1:\n  * opens a new window\n  * echo area given in NC coordinates for the root window\n* echo mode -1:\n  * displays window on top of the root window\n  * echo area is given as a fraction of the root window\n* echo mode 3:\n  * opens a new window\n  * echo area given in NC coordinates for the root window\n  * expects titels as strings\n* echo mode -3:\n  * as 3 but\n  * echo area is given as a fraction of the root window\n* echo mode 4:\n  * as 3 but expects one more string\n  * last string will be used as title\n* echo mode -4:\n  * as 4 but\n  * echo area is given as a fraction of the root window\n\n## Versions\n* 0.0.1-1: Revised code from upstream\n* 0.0.2-1: Implement additional extend C and Fortran bindings for CERN specific purposes\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcern%2Fopenphigs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcern%2Fopenphigs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcern%2Fopenphigs/lists"}