Metadata-Version: 2.4
Name: trame-rca
Version: 2.2.3
Summary: Remote Controlled Area widget for trame
Author: Kitware Inc.
License: Apache License 2.0
Keywords: Python,Interactive,Web,Application,Framework
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: trame-client<4,>=3.4
Requires-Dist: wslink>=2.1.3
Requires-Dist: numpy
Requires-Dist: packaging
Requires-Dist: pillow
Requires-Dist: pillow-avif-plugin
Provides-Extra: dev
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Provides-Extra: turbo
Requires-Dist: PyTurboJPEG; extra == "turbo"
Dynamic: license-file

.. |pypi_download| image:: https://img.shields.io/pypi/dm/trame-rca

=============================================
Remote Controlled Area |pypi_download|
=============================================

Remote Controlled Area widget for trame provide components
and communication infrastructure to display remote generated
image based content while allowing interaction forwarding
such as mouse, touch and multi-pointer devices.

This library aims to provide a core that can then be extended
or specialized for any backend. But its initial integration
will be focused toward VTK and/or ParaView for enabling
interactive remote rendering.
But because it aims to be generic, you should be able to rely
on its core to connect and drive any kind of backend that could
produce images/video-stream and react to mouse interaction.

License
-----------------------------------------------------------

trame-rca is made available under the Apache Software License.


Development
-----------------------------------------------------------

Build and install the Vue components

.. code-block:: console

    cd vue-components
    npm i
    npm run build
    cd -

Install the component

.. code-block:: console

    pip install -e .


Optional dependencies
-----------------------------------------------------------

Faster Jpeg encoding using TurboJPEG.

**macOS system install**

.. code-block:: console

    # macOS
    brew install jpeg-turbo

**Windows install**

Download and install from Github: https://github.com/libjpeg-turbo/libjpeg-turbo/releases

**Linux install**

.. code-block:: console

    # RHEL/CentOS/Fedora
    # YUM doc: https://libjpeg-turbo.org/Downloads/YUM

    # Ubuntu
    apt-get install libturbojpeg

Once your system is ready, you can try our code example:

.. code-block:: console

    pip install trame trame-vuetify vtk
    pip install "trame-rca[turbo]"

    # other encoders: jpeg, avif, turbo-jpeg, png, webp
    python ./examples/01_vtk/vtk_cone_simple.py --encoder turbo-jpeg
