plot_client 1.3.4
See the version list below for details.
dotnet add package plot_client --version 1.3.4
NuGet\Install-Package plot_client -Version 1.3.4
<PackageReference Include="plot_client" Version="1.3.4" />
<PackageVersion Include="plot_client" Version="1.3.4" />
<PackageReference Include="plot_client" />
paket add plot_client --version 1.3.4
#r "nuget: plot_client, 1.3.4"
#:package plot_client@1.3.4
#addin nuget:?package=plot_client&version=1.3.4
#tool nuget:?package=plot_client&version=1.3.4
Overview
C++ library to build plots. Point cloud data is visualized by plot.exe which is installed via plot_viewer.nupkg. This plot_client library helps you to pass point cloud data and some plot settings to the exe through memory map.
Features
- Draw points
- Draw line segments
- Draw polylines
- Draw meshes using arrays of vertex indices
- Configure point size, line thickness, colors and so on
Sample code
Here is sample code to build a plot using class plotclient::plot.
#include <plot_client interface/plot.h>
#include <plot_client interface/plot_exception.h>
/// Point data buffer///
auto num_points = 1000;
auto x = new double[num_points];
auto y = new double[num_points];
auto z = new double[num_points];
auto ref = new double[num_points];
//////////////////////////////////////
// Fill x, y, z and color arrays here
//////////////////////////////////////
try
{
auto plot = plotclient::plot::create(L"sample points");
plot->set_points3d(num_points, x, y, z);
plot->set_colorrefs(ref);
plot->set_title(L"Num of points: %d", num_points);
plot->set_frame_ratio(1.0f, 1.0f, 0.5f);
plot->set_window_size(800, 600);
plot->build();
}catch (plotclient::plot_exception ex)
{
// Handle the exception if any.
}
delete[] x;
delete[] y;
delete[] z;
delete[] color;
Note that "plot->build()" internally executes plot.exe which is automatically deployed to the current and output paths. Some other settings are configurable. See the main header "plot.h" to find available settings.
plot viewer quick manual
- R-click & drag : Rotate in 3D
- Ctrl & R-click & drag : Rotate along z direction in 3D
- L-click & drag : Move xyz range
- L-click & drag on color scale: Move color scale range
- Wheel on plot : Scale xyz range
- Wheel on color scale : Scale color scale range
- X & Wheel : Scale x range
- Y & Wheel : Scale y range
- Z & Wheel : Scale z range
- Ctrl & Wheel : Change magnification
- Ctrl & P : Change projection mode
- Ctrl & F : ON and OFF frames
- Ctrl & I : Go back to initial state
- Ctrl & S : Save as a file (.plot is not supported yet)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
-
- core_math (>= 1.0.1 && < 2.0.0)
- plot_viewer (>= 1.3.3 && < 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Supports Visual Studio Toolset from v140 to v142.