MEPP2 Project
|
SimpleViewer is a specialization of osgViewer::CompositeViewer. This class is a widget where we are able to draw objects using OpenSceneGraph. More...
#include <SimpleViewer.h>
Public Member Functions | |
SimpleViewer () | |
~SimpleViewer () | |
void | init () override |
bool | isInit () const override |
bool | isValid () const override |
bool | changeBackgroundColor (const Color &_color) override |
bool | saveScreenshot (const std::string &_name) override |
void | addModel (Model *_geode) override |
void | addGroup (Group *_group) override |
void | setNodeSelected (osg::Node *_geode, bool isSelected) override |
bool | isNodeSelected (osg::Node *_geode) override |
std::vector< osg::Geode * > | getSelectedGeodes () |
std::vector< osg::Geode * > | getGeodes () |
MixedMeshesVector | getSelectedMeshes () |
MixedMeshesVector | getMeshes () |
size_t | getMeshId (const void *mesh_ptr) |
std::vector< std::string > | getSelectedMeshesNames () |
std::vector< std::string > | getMeshesNames () |
std::vector< PMapsContainer * > | getSelected_properties_maps () |
std::vector< PMapsContainer * > | get_properties_maps () |
std::vector< osg::Group * > | getSelectedDraggers1 () |
std::vector< osg::Group * > | getDraggers1 () |
std::vector< osg::Group * > | getSelectedDraggers2 () |
std::vector< osg::Group * > | getDraggers2 () |
DataModelVector * | getDataModel () override |
osg::Matrix | getTransformMatrixOsg (unsigned int position) |
Eigen::Matrix4d | getTransformMatrixEigen (unsigned int position) |
void | resetTransformMatrix (unsigned int position) |
template<typename HalfedgeGraph , typename PointMap > | |
osg::ref_ptr< osg::Group > | createMesh (HalfedgeGraph *_g, PMapsContainer *_pmaps, PointMap *_pm, std::string _mesh_file=std::string(""), osg::ref_ptr< osg::Group > _group=new osg::Group) |
template<typename HalfedgeGraph , typename PointMap > | |
void | drawMesh (HalfedgeGraph *_g, PMapsContainer *_pmaps, PointMap *_pm, std::string _mesh_file=std::string("")) |
template<typename HalfedgeGraph , typename PointMap > | |
void | redrawMesh (HalfedgeGraph *_g, PMapsContainer *_pmaps, PointMap *_pm=nullptr, std::string _mesh_file=std::string("")) |
template<typename HalfedgeGraph > | |
void | centerMesh (HalfedgeGraph *_g) |
osg::Matrix | getMatrixVP () |
void | setMatrixVP (osg::Matrix matrix) |
template<typename HalfedgeGraph > | |
void | draw_or_redraw_mesh (HalfedgeGraph *_g, PMapsContainer *_pmaps, bool _redraw=false, bool _recomputeNT_if_redraw=false, std::string _mesh_filename=std::string(""), bool _recreateOSGobj_if_redraw=true, float _step=0.) |
void | activate_time_mode () |
void | activate_space_mode () |
void | updateSWModelList () |
osg::Node * | addDraggersToScene (osg::Node *scene, const std::string &nameDrag1, float fScaleDrag1, char keyDrag1, const std::string &nameDrag2, float fScaleDrag2, char keyDrag2) |
![]() | |
BaseViewerOSG () | |
virtual | ~BaseViewerOSG () |
Group * | getRootNode () |
virtual bool | isSelected () const |
virtual void | setSelected (const bool _isSelected) |
![]() | |
BaseViewer () | |
virtual | ~BaseViewer () |
virtual bool | isSelected () const |
virtual void | setSelected (const bool _isSelected) |
void | attach (Window *_window) |
void | attach (Adapter *_adapter) |
Adapter * | getAdapter () |
Window * | getWindow () |
Public Attributes | |
osg::ref_ptr< osg::Group > | gizmo |
osg::ref_ptr< osg::Group > | grid |
osg::ref_ptr< osg::Group > | hud |
osg::ref_ptr< osgText::Text > | hudText |
int | i_time |
int | current_i_time |
![]() | |
RenderMethod | m_RenderMethod |
bool | m_RenderSuperimposedVertices |
bool | m_RenderSuperimposedVertices_Big |
bool | m_RenderSuperimposedEdges |
bool | m_UseVertexColor |
bool | m_UseFaceColor |
bool | m_UseTexture |
bool | m_Lighting |
bool | m_SmoothFlat_Shading |
RenderMode | m_RenderMode |
bool | m_ShowAxis |
bool | m_ShowGrid |
bool | m_Show_Vertex_Normals |
bool | m_Show_CustomVectors_Vertices |
bool | m_ShowSelected |
bool | m_ShowTranslateDragger |
bool | m_ShowRotateDragger |
bool | m_redraw |
bool | m_recomputeNT_if_redraw |
bool | m_recreateOSGobj_if_redraw |
float | m_step |
bool | m_space_time |
bool | m_space_time_changeColorMode |
bool | m_time |
Protected Member Functions | |
template<typename HalfedgeGraph , typename PointMap > | |
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("")) |
template<typename HalfedgeGraph , typename PointMap > | |
osg::Geode * | internal_createMesh (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("")) |
template<typename PointCloud , typename PointMap > | |
void | internal_createMesh_pointcloud (osg::Geode *&geode, PointCloud *_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_vectorss, 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("")) |
Protected Attributes | |
MixedMeshesVector | v_mixed_meshes |
std::vector< std::string > | v_meshes_names |
std::vector< PMapsContainer * > | v_properties_maps |
std::vector< osg::Group * > | v_draggers1 |
std::vector< osg::Group * > | v_draggers2 |
std::vector< bool > | v_meshIsSelected |
std::vector< osg::Geode * > | v_geodes |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometries |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometriesL |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometriesP |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometries_edges |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometries_vertices |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometries_normals |
std::vector< std::vector< osg::ref_ptr< osg::Geometry > > > | v_geometries_custom_vectors |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_vertexArrays |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_vertexArrays_edges |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_vertexArrays_vertices |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_vertexArrays_normals |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_vertexArrays_custom_vectors |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_normalsArrays |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_normalsArraysF |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_normalsArrays_edges |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_normalsArrays_vertices |
std::vector< std::vector< osg::ref_ptr< osg::Vec3Array > > > | v_tangentsArrays |
std::vector< std::vector< osg::ref_ptr< osg::Vec4Array > > > | v_colorsArrays |
std::vector< std::vector< osg::ref_ptr< osg::Vec4Array > > > | v_colorsArrays_edges |
std::vector< std::vector< osg::ref_ptr< osg::Vec4Array > > > | v_colorsArrays_vertices |
std::vector< std::vector< osg::ref_ptr< osg::Vec4Array > > > | v_colorsArrays_normals |
std::vector< std::vector< osg::ref_ptr< osg::Vec4Array > > > | v_colorsArrays_custom_vectors |
std::vector< std::vector< osg::ref_ptr< osg::Vec2Array > > > | v_texcoordsArrays |
![]() | |
osg::Group * | root_node = nullptr |
DataVisitor * | visitor = nullptr |
![]() | |
Window * | myWindow = nullptr |
Adapter * | myAdapter = nullptr |
bool | bIsInit = false |
bool | bIsSelected = false |
Private Member Functions | |
template<typename HalfedgeGraph , typename VertexNormalMap , typename VertexTangentMap , typename VertexColorMap , typename FaceColorMap , typename VertexUVMap , typename HalfedgeUVMap , typename FaceMaterialMap > | |
void | internal_loadShadedMesh (osg::Geode *_geode, HalfedgeGraph *_g, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_edges, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_vertices, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_normals, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_custom_vectors, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_edges, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_normals, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_custom_vectors, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays_edges, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_tangentsArrays, const std::vector< osg::ref_ptr< osg::Vec2Array > > &_texcoordsArrays, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_edges, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_normals, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_custom_vectors, std::size_t _m_mm_size, VertexNormalMap *_vt_nm, VertexTangentMap *_vt_tm, VertexColorMap *_vt_cm, FaceColorMap *_f_cm, VertexUVMap *_vt_uv_m, HalfedgeUVMap *_het_uv_m, FaceMaterialMap *_m_mm, bool has_face_color_map) |
template<typename HalfedgeGraph , typename VertexNormalMap , typename VertexColorMap , typename FaceColorMap , typename VertexUVMap , typename HalfedgeUVMap , typename FaceMaterialMap > | |
void | internal_loadLegacyMesh (osg::Geode *_geode, HalfedgeGraph *_g, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_edges, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_vertices, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_normals, const std::vector< osg::ref_ptr< osg::Geometry > > &_geometries_custom_vectors, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_edges, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_normals, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_vertexArrays_custom_vectors, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays_edges, const std::vector< osg::ref_ptr< osg::Vec3Array > > &_normalsArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec2Array > > &_texcoordsArrays, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_edges, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_vertices, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_normals, const std::vector< osg::ref_ptr< osg::Vec4Array > > &_colorsArrays_custom_vectors, std::size_t _m_mm_size, int _texture_type, VertexNormalMap *_vt_nm, VertexColorMap *_vt_cm, FaceColorMap *_f_cm, VertexUVMap *_vt_uv_m, HalfedgeUVMap *_het_uv_m, FaceMaterialMap *_m_mm, bool has_face_color_map) |
Private Attributes | |
std::vector< osg::ref_ptr< osg::Light > > | lights |
Additional Inherited Members | |
![]() | |
using | DataModel = DataVisitor::Data |
using | DataModelVector = DataVisitor::Output |
using | Model = osg::Geode |
using | Group = osg::Group |
![]() | |
using | Window = BaseWindow |
using | Adapter = BaseAdapterVisu |
SimpleViewer is a specialization of osgViewer::CompositeViewer. This class is a widget where we are able to draw objects using OpenSceneGraph.
Definition at line 179 of file SimpleViewer.h.
|
inline |
Constructor.
Definition at line 43 of file SimpleViewer.inl.
|
inline |
|
inline |
|
inline |
Definition at line 3456 of file SimpleViewer.inl.
|
inline |
|
inlineoverridevirtual |
Add a group to the scene.
[in] | _group | Pointer to a group of geode. |
Implements FEVV::BaseViewerOSG.
Definition at line 348 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Add a geode to the scene.
[in] | _geode | Pointer to a geode. |
Implements FEVV::BaseViewerOSG.
Definition at line 333 of file SimpleViewer.inl.
void FEVV::SimpleViewer::centerMesh | ( | HalfedgeGraph * | _g | ) |
Definition at line 3245 of file SimpleViewer.inl.
|
inlineoverridevirtual |
[in] | _color | the color to use. |
Implements FEVV::BaseViewer.
Definition at line 285 of file SimpleViewer.inl.
osg::ref_ptr< osg::Group > FEVV::SimpleViewer::createMesh | ( | HalfedgeGraph * | _g, |
PMapsContainer * | _pmaps, | ||
PointMap * | _pm, | ||
std::string | _mesh_file = std::string("") , |
||
osg::ref_ptr< osg::Group > | _group = new osg::Group |
||
) |
Draw mesh into the scene.
PointMap | a class of points map. Associate a coordinate to an halfedge_descriptor. |
[in] | _g | a mesh (model of HalfedgeGraph concept). |
[in] | _pm | a point map. |
Definition at line 2996 of file SimpleViewer.inl.
void FEVV::SimpleViewer::draw_or_redraw_mesh | ( | HalfedgeGraph * | _g, |
PMapsContainer * | _pmaps, | ||
bool | _redraw = false , |
||
bool | _recomputeNT_if_redraw = false , |
||
std::string | _mesh_filename = std::string("") , |
||
bool | _recreateOSGobj_if_redraw = true , |
||
float | _step = 0. |
||
) |
Definition at line 3415 of file SimpleViewer.inl.
void FEVV::SimpleViewer::drawMesh | ( | HalfedgeGraph * | _g, |
PMapsContainer * | _pmaps, | ||
PointMap * | _pm, | ||
std::string | _mesh_file = std::string("") |
||
) |
|
inline |
Returns all properties maps.
Definition at line 475 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewerOSG.
Definition at line 363 of file SimpleViewer.inl.
|
inline |
|
inline |
|
inline |
Returns all geodes.
Definition at line 394 of file SimpleViewer.inl.
|
inline |
Definition at line 3310 of file SimpleViewer.inl.
|
inline |
Returns all meshes.
Definition at line 421 of file SimpleViewer.inl.
|
inline |
Returns all meshes names.
Definition at line 448 of file SimpleViewer.inl.
|
inline |
Returns the id of the mesh in v_mixed_meshes array. Returns -1 if the mesh is not in v_mixed_meshes array.
Definition at line 3606 of file SimpleViewer.inl.
|
inline |
Returns all selected properties maps.
Definition at line 456 of file SimpleViewer.inl.
|
inline |
Definition at line 483 of file SimpleViewer.inl.
|
inline |
Definition at line 510 of file SimpleViewer.inl.
|
inline |
Returns all selected geodes.
Definition at line 375 of file SimpleViewer.inl.
|
inline |
Returns all selected meshes.
Definition at line 402 of file SimpleViewer.inl.
|
inline |
Returns all selected meshes names.
Definition at line 429 of file SimpleViewer.inl.
|
inline |
|
inline |
Returns the transformation matrix of the mesh at a given position.
[in] | position | A given position (lower than v_meshes.size()). |
Definition at line 3364 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewer.
Definition at line 184 of file SimpleViewer.inl.
|
protected |
Draw mesh into the scene.
PointMap | a class of points map. Associate a coordinate to an halfedge_descriptor. |
[in] | _g | a mesh (model of HalfedgeGraph concept). |
[in] | _pm | a point map. |
Definition at line 550 of file SimpleViewer.inl.
|
protected |
Draw mesh into the scene.
PointMap | a class of points map. Associate a coordinate to an halfedge_descriptor. |
[in] | _g | a mesh (model of HalfedgeGraph concept). |
[in] | _pm | a point map. |
Adding edges - superimpose only
Adding vertices - superimpose and 'only_pts' mode only
Adding faces
Definition at line 616 of file SimpleViewer.inl.
|
protected |
Draw point cloud into the scene.
PointMap | a class of points map. Associate a coordinate to an vertex_descriptor. |
[in] | _g | a point cloud (model of PointCloud concept). |
[in] | _pm | a point map. |
Adding vertices - superimpose and 'only_pts' mode only
Definition at line 2079 of file SimpleViewer.inl.
|
private |
Loads a mesh into the scene using old rendering mode.
VertexNormalMap | a class of vertex normals map. Associates a normal to a vertex_descriptor. |
VertexColorMap | a class of vertex colors map. Associates a coordinate to a vertex_descriptor. |
FaceColorMap | a class of face colors map. Associates a coordinate to a material index. |
VertexUVMap | a class of vertex texture coordinates map. Associates texture coordinates to a vertex_descriptor. |
HalfedgeUVMap | a class of halfedge texture coordinates map. Associates texture coordinates to an halfedge_descriptor. |
FaceMaterialMap | a class of face materials map. Associates a material to an material index. |
[in] | _geode | the geode which we want to load. |
[in] | _g | the halfedge graph. |
[in] | _geometries | the geometries which we load into the geode. |
[in] | _geometries_edges | the superimposed edges geometries which we load into the geode. |
[in] | _geometries_vertices | the superimposed vertices geometries which we load into the geode. |
[in] | _vertexArrays | the vertices positions we load into the geode. |
[in] | _vertexArrays_edges | the superimposed edges positions we load into the geode. |
[in] | _vertexArrays_vertices | the superimposed vertices positions we load into the geode. |
[in] | _normalsArrays | the normals we load into the geode. |
[in] | _texcoordsArrays | the texture coordinates we load into the geode. |
[in] | _colorsArrays | the colors we load into the geode. |
[in] | _colorsArrays_edges | the superimposed edges colors we load into the geode. |
[in] | _colorsArrays_vertices | the superimposed vertices colors we load into the geode. |
[in] | _m_mm_size | the number of materials. |
[in] | _texture_type | the texture coordinates setup (by vertex, by halfedge, or none). |
[in] | _vt_nm | the vertex normals property map. |
[in] | _vt_cm | the vertex colors property map. |
[in] | _f_cm | the face colors property map. |
[in] | _vt_uv_m | the vertex texture coordinates property map. |
[in] | _het_uv_m | the halfedge texture coordinates property map. |
[in] | _m_mm | the face materials property map. |
Definition at line 1050 of file MeshLoading.inl.
|
private |
Loads a mesh into the scene, using shaders. Assigns a shader to each mesh, according to its material type (standard - Blinn-Phong/PBR - Cook-Torrance).
VertexNormalMap | a class of vertex normals map. Associates a normal to a vertex_descriptor. |
VertexTangentMap | a class of vertex tangents map. Associates a tangent to an vertex_descriptor. |
VertexColorMap | a class of vertex colors map. Associates a coordinate to a vertex_descriptor. |
FaceMaterialMap | a class of face materials map. Associates a material to an material index. |
[in] | _geode | the geode which we want to load. |
[in] | _g | the halfedge graph. |
[in] | _geometries | the geometries which we load into the geode. |
[in] | _geometries_edges | the superimposed edges geometries which we load into the geode. |
[in] | _geometries_vertices | the superimposed vertices geometries which we load into the geode. |
[in] | _vertexArrays | the vertices positions we load into the geode. |
[in] | _vertexArrays_edges | the superimposed edges positions we load into the geode. |
[in] | _vertexArrays_vertices | the superimposed vertices positions we load into the geode. |
[in] | _normalsArrays | the normals we load into the geode. |
[in] | _tangentsArrays | the tangents we load into the geode. |
[in] | _texcoordsArrays | the texture coordinates we load into the geode. |
[in] | _colorsArrays | the colors we load into the geode. |
[in] | _colorsArrays_edges | the superimposed edges colors we load into the geode. |
[in] | _colorsArrays_vertices | the superimposed vertices colors we load into the geode. |
[in] | _m_mm_size | the number of materials. |
[in] | _texture_type | the texture coordinates setup (by vertex, by halfedge, or none). |
[in] | _vt_nm | the vertex normals property map. |
[in] | _vt_tm | the vertex tangents property map. |
[in] | _vt_cm | the vertex colors property map. |
[in] | _m_mm | the face materials property map. |
Definition at line 615 of file MeshLoading.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewer.
Definition at line 255 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewerOSG.
Definition at line 3584 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewer.
Definition at line 263 of file SimpleViewer.inl.
void FEVV::SimpleViewer::redrawMesh | ( | HalfedgeGraph * | _g, |
PMapsContainer * | _pmaps, | ||
PointMap * | _pm = nullptr , |
||
std::string | _mesh_file = std::string("") |
||
) |
|
inline |
Reset the transformation matrix of the mesh at a given position.
[in] | position | A given position (lower than v_meshes.size()). |
Definition at line 3400 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Export the current view of the scene into a screenshot (JPEG).
[in] | _name | name of the file to export (without extension). |
Implements FEVV::BaseViewer.
Definition at line 312 of file SimpleViewer.inl.
|
inline |
Definition at line 3339 of file SimpleViewer.inl.
|
inlineoverridevirtual |
Implements FEVV::BaseViewerOSG.
Definition at line 3492 of file SimpleViewer.inl.
|
inline |
Definition at line 3480 of file SimpleViewer.inl.
int FEVV::SimpleViewer::current_i_time |
Definition at line 777 of file SimpleViewer.h.
osg::ref_ptr< osg::Group > FEVV::SimpleViewer::gizmo |
Definition at line 770 of file SimpleViewer.h.
osg::ref_ptr< osg::Group > FEVV::SimpleViewer::grid |
Definition at line 771 of file SimpleViewer.h.
osg::ref_ptr< osg::Group > FEVV::SimpleViewer::hud |
Definition at line 773 of file SimpleViewer.h.
osg::ref_ptr< osgText::Text > FEVV::SimpleViewer::hudText |
Definition at line 774 of file SimpleViewer.h.
int FEVV::SimpleViewer::i_time |
Definition at line 776 of file SimpleViewer.h.
|
private |
Definition at line 745 of file SimpleViewer.h.
|
protected |
Definition at line 764 of file SimpleViewer.h.
|
protected |
Definition at line 765 of file SimpleViewer.h.
|
protected |
Definition at line 765 of file SimpleViewer.h.
|
protected |
Definition at line 765 of file SimpleViewer.h.
|
protected |
Definition at line 765 of file SimpleViewer.h.
|
protected |
Definition at line 752 of file SimpleViewer.h.
|
protected |
Definition at line 753 of file SimpleViewer.h.
|
protected |
Definition at line 755 of file SimpleViewer.h.
|
protected |
Definition at line 757 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 758 of file SimpleViewer.h.
|
protected |
Definition at line 750 of file SimpleViewer.h.
|
protected |
Definition at line 754 of file SimpleViewer.h.
|
protected |
Definition at line 748 of file SimpleViewer.h.
|
protected |
Definition at line 761 of file SimpleViewer.h.
|
protected |
Definition at line 762 of file SimpleViewer.h.
|
protected |
Definition at line 762 of file SimpleViewer.h.
|
protected |
Definition at line 762 of file SimpleViewer.h.
|
protected |
Definition at line 751 of file SimpleViewer.h.
|
protected |
Definition at line 763 of file SimpleViewer.h.
|
protected |
Definition at line 767 of file SimpleViewer.h.
|
protected |
Definition at line 759 of file SimpleViewer.h.
|
protected |
Definition at line 760 of file SimpleViewer.h.
|
protected |
Definition at line 760 of file SimpleViewer.h.
|
protected |
Definition at line 760 of file SimpleViewer.h.
|
protected |
Definition at line 760 of file SimpleViewer.h.