MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / main

Function main

visualization/test/text_simple.cpp:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <pcl/visualization/pcl_visualizer.h>
4
5int
6main (int argc, char** argv)
7{
8 pcl::visualization::PCLVisualizer viz ("Visualizator");
9 viz.addCoordinateSystem (1.0);
10
11 viz.addText3D ("Following text", pcl::PointXYZ(0.0, 0.0, 0.0),
12 1.0, 1.0, 0.0, 0.0, "id_following");
13 viz.spin ();
14 double orientation[3] = {0., 0., 0.};
15 viz.addText3D ("Fixed text", pcl::PointXYZ(0.0, 0.0, 0.0), orientation,
16 1.0, 0.0, 1.0, 0.0, "id_fixed");
17 viz.spin ();
18 viz.removeText3D ("id_following");
19 viz.spin ();
20 viz.removeText3D ("id_fixed");
21 viz.spin ();
22
23 return (0);
24}

Callers

nothing calls this directly

Calls 5

addCoordinateSystemMethod · 0.80
addText3DMethod · 0.80
removeText3DMethod · 0.80
PointXYZClass · 0.50
spinMethod · 0.45

Tested by

no test coverage detected