MEPP2 Project
SimpleViewerPCLPointCloud.inl
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 
14 
15 
16 namespace FEVV {
17 
18 //
19 // SimpleViewer<>::internal_createMesh(...) specialization for FEVV::PCLPointCloud
20 // with HalfedgeGraph = FEVV::PCLPointCloud
21 // and PointMap = FEVV::PCLPointCloudPointMap
22 //
23 template<>
24 inline void
27  osg::Geode *&geode,
29  PMapsContainer *_pmaps,
30  std::vector< osg::ref_ptr< osg::Geometry > > &geometries,
31  std::vector< osg::ref_ptr< osg::Geometry > > &geometriesL,
32  std::vector< osg::ref_ptr< osg::Geometry > > &geometriesP,
33  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_edges,
34  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_vertices,
35  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_normals,
36  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_custom_vectors,
37  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays,
38  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_edges,
39  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_vertices,
40  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_normals,
41  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_custom_vectors,
42  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays,
43  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArraysF,
44  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_edges,
45  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_vertices,
46  std::vector< osg::ref_ptr< osg::Vec3Array > > &tangentsArrays,
47  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays,
48  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_edges,
49  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_vertices,
50  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_normals,
51  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_custom_vectors,
52  std::vector< osg::ref_ptr< osg::Vec2Array > > &texcoordsArrays,
54  std::string _mesh_file)
55 {
56  internal_createMesh_pointcloud(geode,
57  _g,
58  _pmaps,
59  geometries,
60  geometriesL,
61  geometriesP,
62  geometries_edges,
63  geometries_vertices,
64  geometries_normals,
65  geometries_custom_vectors,
66  vertexArrays,
67  vertexArrays_edges,
68  vertexArrays_vertices,
69  vertexArrays_normals,
70  vertexArrays_custom_vectors,
71  normalsArrays,
72  normalsArraysF,
73  normalsArrays_edges,
74  normalsArrays_vertices,
75  tangentsArrays,
76  colorsArrays,
77  colorsArrays_edges,
78  colorsArrays_vertices,
79  colorsArrays_normals,
80  colorsArrays_custom_vectors,
81  texcoordsArrays,
82  _pm,
83  _mesh_file);
84 }
85 
86 } // namespace FEVV
Graph_properties_pcl_point_cloud.h
FEVV::PCLPointCloud
pcl::PointCloud< PCLEnrichedPoint > PCLPointCloud
Definition: DataStructures_pcl_point_cloud.h:28
FEVV::PMapsContainer
std::map< std::string, boost::any > PMapsContainer
Definition: properties.h:99
FEVV::PCLPointCloudPointMap
Definition: Graph_properties_pcl_point_cloud.h:40
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
DataStructures_pcl_point_cloud.h
FEVV::SimpleViewer::internal_createMesh
void internal_createMesh(osg::Geode *&geode, HalfedgeGraph *_g, PMapsContainer *_pmaps, std::vector< osg::ref_ptr< osg::Geometry > > &geometries, std::vector< osg::ref_ptr< osg::Geometry > > &geometriesL, std::vector< osg::ref_ptr< osg::Geometry > > &geometriesP, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_edges, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_vertices, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_normals, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_custom_vectors, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_edges, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_vertices, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_normals, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_custom_vectors, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArraysF, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_edges, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_vertices, std::vector< osg::ref_ptr< osg::Vec3Array > > &tangentsArrays, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_edges, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_vertices, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_normals, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_custom_vectors, std::vector< osg::ref_ptr< osg::Vec2Array > > &texcoordsArrays, PointMap *_pm, std::string _mesh_file=std::string(""))
Definition: SimpleViewer.inl:616