Skip to content

Commit

Permalink
Merge pull request #167 from allen-cell-animated/feature/docs-year-ci…
Browse files Browse the repository at this point in the history
…tation

Add citation to docs
  • Loading branch information
toloudis authored Mar 12, 2024
2 parents a72038a + 8af2c26 commit 23592c4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
23 changes: 14 additions & 9 deletions agave_app/citationDialog.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "citationDialog.h"

#include <QApplication>
#include <QDate>
#include <QDialogButtonBox>
#include <QLabel>
#include <QTextBrowser>
Expand All @@ -18,13 +19,15 @@ CitationDialog::CitationDialog()

QString agaveUrl = "https://github.com/allen-cell-animated/agave";

int year = QDate::currentDate().year();
QString syear = QString::number(year);

auto citationtext = new QLabel(this);
citationtext->setText(
"Daniel Toloudis, AGAVE Contributors (2023). AGAVE: Advanced GPU Accelerated Volume Explorer (Version " +
qApp->applicationVersion() +
") [Computer software]. Allen Institute for Cell Science. <a "
"href=\"" +
agaveUrl + "\"></a>");
citationtext->setText("Daniel Toloudis, AGAVE Contributors (" + syear +
"). AGAVE: Advanced GPU Accelerated Volume Explorer (Version " + qApp->applicationVersion() +
") [Computer software]. Allen Institute for Cell Science. <a "
"href=\"" +
agaveUrl + "\"></a>");
citationtext->setFrameShape(QFrame::Panel);
citationtext->setFrameShadow(QFrame::Sunken);
citationtext->setTextInteractionFlags(Qt::TextBrowserInteraction);
Expand All @@ -40,14 +43,16 @@ CitationDialog::CitationDialog()
citationtext2->setText("<tt>@software{agave,<br/>"
"&nbsp;&nbsp;author = {Toloudis, Daniel and AGAVE Contributors},<br/>"
"&nbsp;&nbsp;title = {AGAVE: Advanced GPU Accelerated Volume Explorer},<br/>"
"&nbsp;&nbsp;year = {2023},<br/>"
"&nbsp;&nbsp;year = {" +
syear +
"},<br/>"
"&nbsp;&nbsp;version = {" +
qApp->applicationVersion() +
"},<br/>"
"&nbsp;&nbsp;url = {" +
agaveUrl +
"}<br/>"
"&nbsp;&nbsp;organization = {Allen Institute for Cell Science}<br/>"
"},<br/>"
"&nbsp;&nbsp;organization = {Allen Institute for Cell Science},<br/>"
"&nbsp;&nbsp;note = {Computer Software}<br/>"
"}</tt><br/>");
citationtext2->setFrameShape(QFrame::Panel);
Expand Down
23 changes: 23 additions & 0 deletions docs/agave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,29 @@ AGAVE supports the following command line options:

Only valid in server mode on Linux. Allows AGAVE to run as a server on a headless cluster node. On other platforms AGAVE must be run in a windowed desktop environment, even in server mode.

.. _Citation:

Citation
--------

.. |year| date:: %Y

Daniel Toloudis, AGAVE Contributors (|year|). AGAVE: Advanced GPU Accelerated Volume Explorer (Version |release|) [Computer software]. Allen Institute for Cell Science. https://github.com/allen-cell-animated/agave

bibtex:

.. parsed-literal::
@software{agave,
author = {Toloudis, Daniel and AGAVE Contributors},
title = {AGAVE: Advanced GPU Accelerated Volume Explorer},
year = {|year|},
version = {|release|},
url = {https://github.com/allen-cell-animated/agave},
organization = {Allen Institute for Cell Science},
note = {Computer Software}
}
Troubleshooting
---------------

Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ AGAVE is a desktop application for viewing multichannel volume data.

AGAVE's core viewing engine uses a "progressive path tracer". During interactive use, your image will appear grainy at first, but will refine over time as the rendering system builds up more and more render passes. The speed of refinement depends on your hardware, the size and complexity of the image, and the AGAVE parameters you set, i.e., the faster your GPU, the quicker a rendering will resolve. GPU memory dictates the maximum size of the files AGAVE can load. As soon as you change any viewing parameter, including your camera angle, the rendering will start over.

If you use AGAVE in your research, please :ref:`cite <Citation>` it.

.. toctree::
:includehidden:
:maxdepth: 2
Expand Down

0 comments on commit 23592c4

Please sign in to comment.