Debian Codegraph @

libs/opengl/src/Visualizable.cpp

raw
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | https://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2026, Individual contributors, see AUTHORS file |
6 | See: https://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See: https://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9
10 #include "opengl-precomp.h" // Precompiled header
11 //
12 #include <mrpt/opengl/CSetOfObjects.h>
13 #include <mrpt/opengl/Visualizable.h>
14
15 // Note: This method cannot be defined into the .h to avoid including the
16 // full CSetOfObjects.h header.
17 mrpt::opengl::CSetOfObjects::Ptr mrpt::opengl::Visualizable::getVisualization() const
18 {
19 auto o = mrpt::opengl::CSetOfObjects::Create();
20 getVisualizationInto(*o);
21 return o;
22 }