MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPythonScene.h File Reference
#include "MRMesh/MRAffineXf3.h"
#include "MRMesh/MRBitSet.h"
#include "MRMesh/MRDistanceMap.h"
#include "MRMesh/MRMesh.h"
#include "MRMesh/MRObject.h"
#include "MRMesh/MRPointCloud.h"
#include "MRMesh/MRPolyline.h"
#include "MRVoxels/MRVoxelsVolume.h"
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::PythonViewer

Functions

void MR::PythonViewer::addMeshToScene (const Mesh &mesh, const std::string &name)
 Add given mesh to scene tree.
void MR::PythonViewer::addPointCloudToScene (const PointCloud &points, const std::string &name)
 Add given point cloud to scene tree.
void MR::PythonViewer::addLinesToScene (const Polyline3 &lines, const std::string &name)
 Add given lines to scene tree.
void MR::PythonViewer::addDistanceMapToScene (const DistanceMap &distancemap, const std::string &name, const AffineXf3f &dmap_to_local_xf)
 Add given distance map to scene tree.
void MR::PythonViewer::modifySelectedMesh (const Mesh &mesh)
 Assign a new mesh to the selected mesh object. Exactly one object must be selected.
std::vector< FaceBitSet > MR::PythonViewer::getSelectedMeshFaces ()
 Get selected face bitsets of the selected mesh objects.
std::vector< UndirectedEdgeBitSet > MR::PythonViewer::getSelectedMeshEdges ()
 Get selected edge bitsets of the selected mesh objects.
std::vector< VertBitSet > MR::PythonViewer::getSelectedPointCloudPoints ()
 Get selected point bitsets of the selected point cloud objects.
void MR::PythonViewer::setSelectedMeshFaces (const std::vector< FaceBitSet > &bitsets)
 Set selected face bitsets of the selected mesh objects.
void MR::PythonViewer::setSelectedMeshEdges (const std::vector< UndirectedEdgeBitSet > &bitsets)
 Set selected edge bitsets of the selected mesh objects.
void MR::PythonViewer::setSelectedPointCloudPoints (const std::vector< VertBitSet > &bitsets)
 Set selected point bitsets of the selected point cloud objects.
void MR::PythonViewer::clearScene ()
 remove all objects from scene tree
void MR::PythonViewer::selectByName (const std::string &objectName)
 select objects in scene tree with given name, unselect others
void MR::PythonViewer::selectByType (const std::string &typeName)
void MR::PythonViewer::unselectAll ()
 unselect all objects in scene tree
std::vector< std::shared_ptr< Object > > MR::PythonViewer::getSelectedObjects ()
std::vector< Mesh > MR::PythonViewer::getSelectedMeshes ()
 Get copies of all selected meshes in the scene.
std::vector< PointCloud > MR::PythonViewer::getSelectedPointClouds ()
 Get copies of all selected point clouds in the scene.
std::vector< Polyline3 > MR::PythonViewer::getSelectedPolylines ()
 Get copies of all selected polylines in the scene.
std::vector< DistanceMap > MR::PythonViewer::getSelectedDistanceMaps ()
 Get copies of all selected voxel grids in the scene.
void MR::PythonViewer::addVoxelsToScene (const VdbVolume &voxels, const std::string &name)
 Add given voxels to scene tree.
std::vector< VdbVolume > MR::PythonViewer::getSelectedVoxels ()
 Get copies of all selected voxel grids in the scene.