![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Functions | |
| QPCL_ENGINE_LIB_API PCLTextureMesh::Ptr | CreateTexturingMesh (const std::string &filePath, bool show_cameras=false, bool verbose=false) |
| QPCL_ENGINE_LIB_API PCLTextureMesh::Ptr | CreateTexturingMesh (const std::string &filePath, const cloudViewer::camera::PinholeCameraTrajectory &cameraTrajectory, bool show_cameras=false, bool verbose=false) |
| PCLTextureMesh::Ptr | CreateTexturingMesh (const PCLMesh::ConstPtr &triangles, const pcl::texture_mapping::CameraVector &cameras, bool show_cameras=false, bool verbose=false) |
| int | GetDefaultScalarInterpolationForDataSet (vtkDataSet *data) |
| void | CreateActorFromVTKDataSet (const vtkSmartPointer< vtkDataSet > &data, vtkSmartPointer< vtkActor > &actor, bool use_scalars=true, bool use_vbos=false) |
| Internal method. Creates a vtk actor from a vtk polydata object. More... | |
| void | CreateActorFromVTKDataSet (const vtkSmartPointer< vtkDataSet > &data, vtkSmartPointer< vtkLODActor > &actor, bool use_scalars=true, bool use_vbos=false) |
| Internal method. Creates a vtk actor from a vtk polydata object. More... | |
| void | AllocVtkUnstructuredGrid (vtkSmartPointer< vtkUnstructuredGrid > &polydata) |
| Allocate a new unstructured grid smartpointer. For internal use only. More... | |
| bool | UpdateScalarBar (vtkAbstractWidget *widget, const CC_DRAW_CONTEXT &CONTEXT) |
| bool | TransformPolyData (vtkSmartPointer< vtkPolyData > polyData, const ccGLMatrixd &trans) |
| bool | TransformVtkPoints (vtkSmartPointer< vtkPoints > points, const ccGLMatrixd &trans) |
| vtkSmartPointer< vtkPoints > | GetVtkPointsFromLineSet (const cloudViewer::geometry::LineSet &lineset) |
| bool | GetVtkPointsAndLinesFromLineSet (const cloudViewer::geometry::LineSet &lineset, vtkSmartPointer< vtkPoints > points, vtkSmartPointer< vtkCellArray > lines, vtkSmartPointer< vtkUnsignedCharArray > colors) |
| vtkSmartPointer< vtkPolyData > | CreateCoordinateFromLineSet (const cloudViewer::geometry::LineSet &lineset) |
| vtkSmartPointer< vtkPolyData > | CreatePolyDataFromLineSet (const cloudViewer::geometry::LineSet &lineset, bool useLineSource=true) |
| void | SetPolyDataColor (vtkSmartPointer< vtkPolyData > polyData, const ecvColor::Rgb &color, bool is_cell=false) |
| void | AddPolyDataCell (vtkSmartPointer< vtkPolyData > polyData) |
| vtkSmartPointer< vtkPolyData > | CreateLine (vtkSmartPointer< vtkPoints > points) |
| vtkSmartPointer< vtkPolyData > | CreateLine (vtkSmartPointer< vtkPoints > points, vtkSmartPointer< vtkCellArray > lines, vtkSmartPointer< vtkUnsignedCharArray > colors) |
| vtkSmartPointer< vtkPolyData > | CreateCube (double width, double height, double depth, const ccGLMatrixd &trans) |
| vtkSmartPointer< vtkPolyData > | CreateCube (double width, double height, double depth) |
| vtkSmartPointer< vtkPolyData > | CreateGBLSensor (const ccGBLSensor *gBLSensor) |
| vtkSmartPointer< vtkPolyData > | CreateCameraSensor (const ccCameraSensor *cameraSensor, const ecvColor::Rgb &lineColor, const ecvColor::Rgb &planeColor) |
| vtkSmartPointer< vtkPolyData > | CreatePlane (const pcl::ModelCoefficients &coefficients, double x, double y, double z, double scale=1) |
| vtkSmartPointer< vtkPolyData > | CreatePlane (const pcl::ModelCoefficients &coefficients) |
| vtkSmartPointer< vtkPropAssembly > | CreateCoordinate (double axesLength=1.5, const std::string &xLabel="x", const std::string &yLabel="y", const std::string &zLabel="z", const std::string &xPlus="R", const std::string &xMinus="L", const std::string &yPlus="A", const std::string &yMinus="P", const std::string &zPlus="I", const std::string &zMinus="S") |
| void PclTools::AddPolyDataCell | ( | vtkSmartPointer< vtkPolyData > | polyData | ) |
Definition at line 371 of file PclTools.cpp.
Referenced by CreateCameraSensor().
| void PclTools::AllocVtkUnstructuredGrid | ( | vtkSmartPointer< vtkUnstructuredGrid > & | polydata | ) |
Allocate a new unstructured grid smartpointer. For internal use only.
| [out] | polydata | the resultant unstructured grid. |
Definition at line 255 of file PclTools.cpp.
| void PclTools::CreateActorFromVTKDataSet | ( | const vtkSmartPointer< vtkDataSet > & | data, |
| vtkSmartPointer< vtkActor > & | actor, | ||
| bool | use_scalars = true, |
||
| bool | use_vbos = false |
||
| ) |
Internal method. Creates a vtk actor from a vtk polydata object.
| [in] | data | the vtk polydata object to create an actor for |
| [out] | actor | the resultant vtk actor object |
| [in] | use_scalars | set scalar properties to the mapper if it exists in the data. Default: true. |
FIXME disabling backface culling due to known VTK bug: vtkTextActors are not shown when there is a vtkActor with backface culling on present in the scene Please see VTK bug tracker for more details: http://www.vtk.org/Bug/view.php?id=12588
FIXME disabling backface culling due to known VTK bug: vtkTextActors are not shown when there is a vtkActor with backface culling on present in the scene Please see VTK bug tracker for more details: http://www.vtk.org/Bug/view.php?id=12588
Definition at line 166 of file PclTools.cpp.
References data, and GetDefaultScalarInterpolationForDataSet().
Referenced by PclUtils::PCLVis::addOrientedCube(), PclUtils::PCLVis::addPolyline(), and PclUtils::PCLVis::draw().
| void PclTools::CreateActorFromVTKDataSet | ( | const vtkSmartPointer< vtkDataSet > & | data, |
| vtkSmartPointer< vtkLODActor > & | actor, | ||
| bool | use_scalars = true, |
||
| bool | use_vbos = false |
||
| ) |
Internal method. Creates a vtk actor from a vtk polydata object.
| [in] | data | the vtk polydata object to create an actor for |
| [out] | actor | the resultant vtk actor object |
| [in] | use_scalars | set scalar properties to the mapper if it exists in the data. Default: true. |
FIXME disabling backface culling due to known VTK bug: vtkTextActors are not shown when there is a vtkActor with backface culling on present in the scene Please see VTK bug tracker for more details: http://www.vtk.org/Bug/view.php?id=12588
FIXME disabling backface culling due to known VTK bug: vtkTextActors are not shown when there is a vtkActor with backface culling on present in the scene Please see VTK bug tracker for more details: http://www.vtk.org/Bug/view.php?id=12588
Definition at line 81 of file PclTools.cpp.
References data, and GetDefaultScalarInterpolationForDataSet().
| vtkSmartPointer< vtkPolyData > PclTools::CreateCameraSensor | ( | const ccCameraSensor * | cameraSensor, |
| const ecvColor::Rgb & | lineColor, | ||
| const ecvColor::Rgb & | planeColor | ||
| ) |
Definition at line 464 of file PclTools.cpp.
References AddPolyDataCell(), CreateCoordinateFromLineSet(), CreatePolyDataFromLineSet(), ccCameraSensor::getArrow(), ccCameraSensor::getAxis(), ccCameraSensor::getNearPlane(), ccCameraSensor::getSideLines(), and SetPolyDataColor().
Referenced by PclUtils::PCLVis::draw().
| vtkSmartPointer< vtkPropAssembly > PclTools::CreateCoordinate | ( | double | axesLength = 1.5, |
| const std::string & | xLabel = "x", |
||
| const std::string & | yLabel = "y", |
||
| const std::string & | zLabel = "z", |
||
| const std::string & | xPlus = "R", |
||
| const std::string & | xMinus = "L", |
||
| const std::string & | yPlus = "A", |
||
| const std::string & | yMinus = "P", |
||
| const std::string & | zPlus = "I", |
||
| const std::string & | zMinus = "S" |
||
| ) |
Definition at line 581 of file PclTools.cpp.
Referenced by PclUtils::PCLVis::showOrientationMarkerWidgetAxes().
| vtkSmartPointer< vtkPolyData > PclTools::CreateCoordinateFromLineSet | ( | const cloudViewer::geometry::LineSet & | lineset | ) |
Definition at line 393 of file PclTools.cpp.
References CreateLine(), cloudViewer::geometry::LineSet::GetLineCoordinate(), ecvColor::green(), cloudViewer::geometry::LineSet::lines_, ecvColor::red(), SetPolyDataColor(), and ecvColor::yellow().
Referenced by CreateCameraSensor().
| vtkSmartPointer< vtkPolyData > PclTools::CreateCube | ( | double | width, |
| double | height, | ||
| double | depth | ||
| ) |
Definition at line 1113 of file PclTools.cpp.
| vtkSmartPointer< vtkPolyData > PclTools::CreateCube | ( | double | width, |
| double | height, | ||
| double | depth, | ||
| const ccGLMatrixd & | trans | ||
| ) |
Definition at line 1101 of file PclTools.cpp.
References data, CVLog::Error(), height, TransformPolyData(), and width.
Referenced by PclUtils::PCLVis::addOrientedCube().
| vtkSmartPointer< vtkPolyData > PclTools::CreateGBLSensor | ( | const ccGBLSensor * | gBLSensor | ) |
Definition at line 436 of file PclTools.cpp.
References cloudViewer::geometry::LineSet::CreateFromOrientedBoundingBox(), CreatePolyDataFromLineSet(), ccGBLSensor::getSensorAxis(), ccGBLSensor::getSensorHead(), and ccGBLSensor::getSensorLegLines().
Referenced by PclUtils::PCLVis::draw().
| vtkSmartPointer< vtkPolyData > PclTools::CreateLine | ( | vtkSmartPointer< vtkPoints > | points | ) |
Definition at line 316 of file PclTools.cpp.
References points.
Referenced by PclUtils::PCLVis::addPolyline(), CreateCoordinateFromLineSet(), and CreatePolyDataFromLineSet().
| vtkSmartPointer< vtkPolyData > PclTools::CreateLine | ( | vtkSmartPointer< vtkPoints > | points, |
| vtkSmartPointer< vtkCellArray > | lines, | ||
| vtkSmartPointer< vtkUnsignedCharArray > | colors | ||
| ) |
Definition at line 325 of file PclTools.cpp.
| vtkSmartPointer< vtkPolyData > PclTools::CreatePlane | ( | const pcl::ModelCoefficients & | coefficients | ) |
Definition at line 501 of file PclTools.cpp.
| vtkSmartPointer< vtkPolyData > PclTools::CreatePlane | ( | const pcl::ModelCoefficients & | coefficients, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | scale = 1 |
||
| ) |
Definition at line 517 of file PclTools.cpp.
| vtkSmartPointer< vtkPolyData > PclTools::CreatePolyDataFromLineSet | ( | const cloudViewer::geometry::LineSet & | lineset, |
| bool | useLineSource = true |
||
| ) |
Definition at line 1124 of file PclTools.cpp.
References colors, CreateLine(), GetVtkPointsAndLinesFromLineSet(), GetVtkPointsFromLineSet(), and points.
Referenced by PclUtils::PCLVis::addOrientedCube(), CreateCameraSensor(), CreateGBLSensor(), and PclUtils::PCLVis::draw().
| PCLTextureMesh::Ptr PclTools::CreateTexturingMesh | ( | const PCLMesh::ConstPtr & | triangles, |
| const pcl::texture_mapping::CameraVector & | cameras, | ||
| bool | show_cameras = false, |
||
| bool | verbose = false |
||
| ) |
Definition at line 1417 of file PclTools.cpp.
References FROM_PCL_CLOUD, normals, CVLog::Print(), and TO_PCL_CLOUD.
| PCLTextureMesh::Ptr PclTools::CreateTexturingMesh | ( | const std::string & | filePath, |
| bool | show_cameras = false, |
||
| bool | verbose = false |
||
| ) |
Definition at line 1381 of file PclTools.cpp.
References cloudViewer::utility::filesystem::GetFileBaseName(), cloudViewer::utility::filesystem::ListFilesInDirectoryWithExtension(), and CVLog::Print().
Referenced by CreateTexturingMesh().
| PCLTextureMesh::Ptr PclTools::CreateTexturingMesh | ( | const std::string & | filePath, |
| const cloudViewer::camera::PinholeCameraTrajectory & | cameraTrajectory, | ||
| bool | show_cameras = false, |
||
| bool | verbose = false |
||
| ) |
Definition at line 1350 of file PclTools.cpp.
References CreateTexturingMesh(), cloudViewer::camera::PinholeCameraTrajectory::parameters_, and CVLog::Print().
|
inline |
Definition at line 73 of file PclTools.h.
References data.
Referenced by CreateActorFromVTKDataSet().
| bool PclTools::GetVtkPointsAndLinesFromLineSet | ( | const cloudViewer::geometry::LineSet & | lineset, |
| vtkSmartPointer< vtkPoints > | points, | ||
| vtkSmartPointer< vtkCellArray > | lines, | ||
| vtkSmartPointer< vtkUnsignedCharArray > | colors | ||
| ) |
Definition at line 276 of file PclTools.cpp.
References color, colors, cloudViewer::geometry::LineSet::colors_, ecvColor::RgbTpl< Type >::FromEigen(), ccDrawableObject::hasColors(), cloudViewer::geometry::LineSet::lines_, points, and cloudViewer::geometry::LineSet::points_.
Referenced by CreatePolyDataFromLineSet().
| vtkSmartPointer< vtkPoints > PclTools::GetVtkPointsFromLineSet | ( | const cloudViewer::geometry::LineSet & | lineset | ) |
Definition at line 260 of file PclTools.cpp.
References cloudViewer::geometry::LineSet::GetLineCoordinate(), and cloudViewer::geometry::LineSet::lines_.
Referenced by CreatePolyDataFromLineSet().
| void PclTools::SetPolyDataColor | ( | vtkSmartPointer< vtkPolyData > | polyData, |
| const ecvColor::Rgb & | color, | ||
| bool | is_cell = false |
||
| ) |
Definition at line 347 of file PclTools.cpp.
Referenced by CreateCameraSensor(), and CreateCoordinateFromLineSet().
| bool PclTools::TransformPolyData | ( | vtkSmartPointer< vtkPolyData > | polyData, |
| const ccGLMatrixd & | trans | ||
| ) |
Definition at line 1074 of file PclTools.cpp.
References points, and TransformVtkPoints().
Referenced by CreateCube().
| bool PclTools::TransformVtkPoints | ( | vtkSmartPointer< vtkPoints > | points, |
| const ccGLMatrixd & | trans | ||
| ) |
Definition at line 1087 of file PclTools.cpp.
References ccGLMatrixTpl< T >::apply(), and points.
Referenced by TransformPolyData().
| bool PclTools::UpdateScalarBar | ( | vtkAbstractWidget * | widget, |
| const CC_DRAW_CONTEXT & | CONTEXT | ||
| ) |
Definition at line 719 of file PclTools.cpp.
References ccScalarField::areNaNValuesShownInGrey(), c_log10, ecvGui::ParamStruct::colorScaleRampWidth, ecvGui::ParamStruct::colorScaleShowHistogram, ConvertToLogScale(), ecvGui::ParamStruct::defaultFontSize, ecvGui::ParamStruct::displayedNumPrecision, ccScalarField::displayRange(), format, CVTools::FromQString(), ccScalarField::getColor(), ccScalarField::getColorScale(), ecvDisplayTools::GetDisplayParameters(), ccScalarField::getGlobalShift(), ccScalarField::getHistogram(), cloudViewer::ScalarField::getName(), vtkScalarBarWidgetCustom::GetScalarBarActor(), ecvDisplayTools::GetTextDisplayFont(), GetVLabelsAround(), ccGLDrawContext::glH, ccScalarField::Range::isInRange(), ccScalarField::isZeroAlwaysShown(), ecvColor::lightGrey(), ccScalarField::logScale(), vtkScalarBarRepresentationCustom::LowerRightCorner, ccScalarField::Range::max(), ccScalarField::Histogram::maxValue, ccScalarField::Range::min(), ccGLDrawContext::renderZoom, rgb, ccScalarField::saturationRange(), vtkScalarBarWidgetCustom::SetScalarBarActor(), ccGLDrawContext::sfColorScaleToDisplay, ccScalarField::Range::start(), ccScalarField::Range::stop(), ccScalarField::symmetricalScale(), ecvGui::ParamStruct::textDefaultCol, ecvColor::RgbTpl< Type >::ToEigen(), ccGLDrawContext::viewID, and VTK_CREATE.
Referenced by PclUtils::PCLVis::updateScalarBar().