28#if !defined(DGTAL_WITH_POLYSCOPE_VIEWER)
29#error DGTAL_WITH_POLYSCOPE_VIEWER flag not set during the cmake step
32#include "DGtal/io/Display3D.h"
34#include "polyscope/polyscope.h"
36#include "polyscope/curve_network.h"
37#include "polyscope/surface_mesh.h"
38#include "polyscope/volume_mesh.h"
39#include "polyscope/volume_grid.h"
40#include "polyscope/point_cloud.h"
41#include "polyscope/pick.h"
49 std::vector<glm::vec3>
toglm(
const std::vector<DGtal::Color>& col);
52 glm::mat4
toglm(
const Eigen::Affine3d& transform);
55 template <
typename Space = Z3i::Space,
typename KSpace = Z3i::KSpace>
68 polyscope::removeAllStructures();
109#include "PolyscopeViewer.ih"
Structure representing an RGB triple with alpha component.
Base class for viewing DGtal objects.
virtual void clear()
Clear the viewer, including screen and internal data.
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...
void registerVolumeMesh(const std::string &n, const DisplayData< typename Space::RealPoint > &d)
void setGeneralProperties(polyscope::Structure *s, const DisplayData< typename Space::RealPoint > &d)
void renderClippingPlanes()
void setCallback(typename Display3D< Space, KSpace >::Callback *callback) override
void registerPointCloud(const std::string &n, const DisplayData< typename Space::RealPoint > &d)
void show() override
Starts the event loop and display of elements.
static constexpr double BallToCubeRatio
void clearView() override
Clear the screen.
PolyscopeViewer(const KSpace &k)
void registerSurfaceMesh(const std::string &n, const DisplayData< typename Space::RealPoint > &d)
void registerLineNetwork(const std::string &n, const DisplayData< typename Space::RealPoint > &d)
void renderNewData() override
Renders newly added data.
static constexpr double VectorScale
glm::vec3 toglm(const DGtal::Color &col)
DGtal is the top-level namespace which contains all DGtal functions and types.
A general callback for the viewer to give control to the user.
Data required to display an object.