fw4spl
core/fwDataCamp/src/fwDataCamp/Mesh.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include <fwCamp/UserObject.hpp>
8 #include "fwDataCamp/Mesh.hpp"
9 
10 fwCampImplementDataMacro((fwData)(Mesh))
11 {
12  builder
13  .tag("object_version", "3")
14  .tag("lib_name", "fwData")
15  .base< ::fwData::Object>()
16  .property("nb_points", &::fwData::Mesh::m_nbPoints)
17  .property("nb_cells", &::fwData::Mesh::m_nbCells)
18  .property("cells_data_size", &::fwData::Mesh::m_cellsDataSize)
19  .property("points", &::fwData::Mesh::m_points)
20  .property("cell_types", &::fwData::Mesh::m_cellTypes)
21  .property("cell_data", &::fwData::Mesh::m_cellData)
22  .property("cell_data_offsets", &::fwData::Mesh::m_cellDataOffsets)
23  .property("point_colors", &::fwData::Mesh::m_pointColors)
24  .property("cell_colors", &::fwData::Mesh::m_cellColors)
25  .property("point_normals", &::fwData::Mesh::m_pointNormals)
26  .property("cell_normals", &::fwData::Mesh::m_cellNormals)
27  .property("point_tex_coords", &::fwData::Mesh::m_pointTexCoords)
28  .property("cell_tex_coords", &::fwData::Mesh::m_cellTexCoords)
29  .property("array_map", &::fwData::Mesh::m_arrayMap)
30  ;
31 }
Id m_cellsDataSize
Number of point index defined for mesh (size of m_cellData)
::fwData::Array::sptr m_pointNormals
Mesh point array : 3-components 1-dimension uint8_t array, size = m_nbPoints.
::fwData::Array::sptr m_cellDataOffsets
Cell data offsets array : 1-components 1-dimension uint64 array, size = m_nbCells.
::fwData::Array::sptr m_cellTexCoords
Mesh texCoord array : 2-components 1-dimension float array, size = m_nbCells.
Id m_nbCells
Number of cells defined for the mesh.
::fwData::Array::sptr m_pointColors
point colors array : 3 or 4-components 1-dimension float array, size = m_nbPoints.
Base class for each data object.
::fwData::Array::sptr m_pointTexCoords
Mesh texCoord array : 2-components 1-dimension float array, size = m_nbPoints.
Id m_nbPoints
Number of points defined for the mesh.
::fwData::Array::sptr m_cellData
Cell data array : 1-components 1-dimension uint64 array, size = m_cellsDataSize.
ArrayMapType m_arrayMap
Array map where you can add few additional arrays registered thanks to a key to perform/conserve some...
Contains the representation of the data objects used in the framework.
::fwData::Array::sptr m_points
Mesh point array : 3-components 1-dimension float array, size = m_nbPoints x 3.
::fwData::Array::sptr m_cellNormals
Mesh point array : 3-components 1-dimension float array, size = m_nbCells.
::fwData::Array::sptr m_cellColors
Mesh point array : 3 or 4-components 1-dimension uint8_t array, size = m_nbCells. ...
::fwData::Array::sptr m_cellTypes
Cell types array : 1-components 1-dimension uint8 array, size = m_nbCells.