DGtal 2.1.0
Loading...
Searching...
No Matches
my_vertex_copier< Graph1, Graph2, VertexIndexMap > Struct Template Reference

Public Types

typedef boost::property_map< Graph2, boost::vertex_index_t >::type graph_vertex_index_map
 
typedef boost::property_map< Graph2, surfel_position_t >::type graph_vertex_position_map
 
typedef boost::graph_traits< Graph1 >::vertex_descriptor Vertex1
 
typedef boost::graph_traits< Graph2 >::vertex_descriptor Vertex2
 
using graph_vertex_index_map = typename boost::property_map< Graph2, boost::vertex_index_t >::type
 
using graph_vertex_position_map = typename boost::property_map< Graph2, vertex_position_t >::type
 
using Vertex1 = typename boost::graph_traits< Graph1 >::vertex_descriptor
 
using Vertex2 = typename boost::graph_traits< Graph2 >::vertex_descriptor
 

Public Member Functions

 my_vertex_copier (const Graph1 &g1, Graph2 &g2, VertexIndexMap &indexMap)
 
void operator() (const Vertex1 &v1, const Vertex2 &v2) const
 
 my_vertex_copier (const Graph1 &g1, Graph2 &g2, VertexIndexMap &indexMap)
 
void operator() (const Vertex1 &v1, const Vertex2 &v2) const
 

Data Fields

const Graph1 & myG1
 
graph_vertex_index_map graph_vertex_index
 
graph_vertex_position_map graph_vertex_position
 
VertexIndexMap & myIndexMap
 

Detailed Description

template<typename Graph1, typename Graph2, typename VertexIndexMap>
struct my_vertex_copier< Graph1, Graph2, VertexIndexMap >

Definition at line 80 of file testDigitalSurfaceBoostGraphInterface.cpp.

Member Typedef Documentation

◆ graph_vertex_index_map [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
typedef boost::property_map<Graph2,boost::vertex_index_t>::type my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_index_map

Definition at line 81 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ graph_vertex_index_map [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
using my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_index_map = typename boost::property_map< Graph2, boost::vertex_index_t>::type

Definition at line 126 of file testObjectBoostGraphInterface.cpp.

◆ graph_vertex_position_map [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
typedef boost::property_map<Graph2,surfel_position_t>::type my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_position_map

Definition at line 82 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ graph_vertex_position_map [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
using my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_position_map = typename boost::property_map< Graph2, vertex_position_t>::type

Definition at line 127 of file testObjectBoostGraphInterface.cpp.

◆ Vertex1 [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
typedef boost::graph_traits<Graph1>::vertex_descriptor my_vertex_copier< Graph1, Graph2, VertexIndexMap >::Vertex1

Definition at line 83 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ Vertex1 [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
using my_vertex_copier< Graph1, Graph2, VertexIndexMap >::Vertex1 = typename boost::graph_traits< Graph1 >::vertex_descriptor

Definition at line 128 of file testObjectBoostGraphInterface.cpp.

◆ Vertex2 [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
typedef boost::graph_traits<Graph2>::vertex_descriptor my_vertex_copier< Graph1, Graph2, VertexIndexMap >::Vertex2

Definition at line 84 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ Vertex2 [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
using my_vertex_copier< Graph1, Graph2, VertexIndexMap >::Vertex2 = typename boost::graph_traits< Graph2 >::vertex_descriptor

Definition at line 129 of file testObjectBoostGraphInterface.cpp.

Constructor & Destructor Documentation

◆ my_vertex_copier() [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
my_vertex_copier< Graph1, Graph2, VertexIndexMap >::my_vertex_copier ( const Graph1 &  g1,
Graph2 &  g2,
VertexIndexMap &  indexMap 
)
inline

Definition at line 91 of file testDigitalSurfaceBoostGraphInterface.cpp.

92 : myG1( g1 ),
93 graph_vertex_index( boost::get( boost::vertex_index_t(), g2 ) ),
94 graph_vertex_position( boost::get( surfel_position_t(), g2) ),
95 myIndexMap( indexMap )
96 {}
graph_vertex_position_map graph_vertex_position

◆ my_vertex_copier() [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
my_vertex_copier< Graph1, Graph2, VertexIndexMap >::my_vertex_copier ( const Graph1 &  g1,
Graph2 &  g2,
VertexIndexMap &  indexMap 
)
inline

Definition at line 136 of file testObjectBoostGraphInterface.cpp.

137 : myG1( g1 ),
138 graph_vertex_index( boost::get( boost::vertex_index_t(), g2 ) ),
139 graph_vertex_position( boost::get( vertex_position_t(), g2) ),
140 myIndexMap( indexMap )
141 {}

Member Function Documentation

◆ operator()() [1/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
void my_vertex_copier< Graph1, Graph2, VertexIndexMap >::operator() ( const Vertex1 v1,
const Vertex2 v2 
) const
inline

Definition at line 98 of file testDigitalSurfaceBoostGraphInterface.cpp.

98 {
99 // std::size_t idx = myIndexMap[ v1 ];
100 // Does not work !
101 // put( graph_vertex_index, v2, idx);
102 surfel_position pos;
103 pos.myP = v1.myCoordinates;
104 //std::cout << "surfel " << idx << " at " << pos.myP << std::endl;
105 put( graph_vertex_position, v2, pos);
106 }

References my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_position, and surfel_position::myP.

◆ operator()() [2/2]

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
void my_vertex_copier< Graph1, Graph2, VertexIndexMap >::operator() ( const Vertex1 v1,
const Vertex2 v2 
) const
inline

Field Documentation

◆ graph_vertex_index

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
graph_vertex_index_map my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_index

Definition at line 87 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ graph_vertex_position

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
graph_vertex_position_map my_vertex_copier< Graph1, Graph2, VertexIndexMap >::graph_vertex_position

◆ myG1

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
const Graph1 & my_vertex_copier< Graph1, Graph2, VertexIndexMap >::myG1

Definition at line 86 of file testDigitalSurfaceBoostGraphInterface.cpp.

◆ myIndexMap

template<typename Graph1 , typename Graph2 , typename VertexIndexMap >
VertexIndexMap & my_vertex_copier< Graph1, Graph2, VertexIndexMap >::myIndexMap

Definition at line 89 of file testDigitalSurfaceBoostGraphInterface.cpp.


The documentation for this struct was generated from the following files: