![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Useful class to (try to) statically cast a basic ccHObject to a given type. More...
#include <ecvHObjectCaster.h>
Static Public Member Functions | |
| static ccPointCloud * | ToPointCloud (ccHObject *obj, bool *isLockedVertices=nullptr) |
| Converts current object to 'equivalent' ccPointCloud. More... | |
| static ccGenericPointCloud * | ToGenericPointCloud (ccHObject *obj, bool *isLockedVertices=nullptr) |
| Converts current object to 'equivalent' ccGenericPointCloud. More... | |
| static ccShiftedObject * | ToShifted (ccHObject *obj, bool *isLockedVertices=nullptr) |
| Converts current object to 'equivalent' ccShiftedObject. More... | |
| static ccGenericMesh * | ToGenericMesh (ccHObject *obj) |
| Converts current object to ccGenericMesh (if possible) More... | |
| static ccMesh * | ToMesh (ccHObject *obj) |
| Converts current object to ccMesh (if possible) More... | |
| static ccSubMesh * | ToSubMesh (ccHObject *obj) |
| Converts current object to ccSubMesh (if possible) More... | |
| static ccPolyline * | ToPolyline (ccHObject *obj) |
| Converts current object to ccPolyline (if possible) More... | |
| static ccCircle * | ToCircle (ccHObject *obj) |
| Converts current object to ccCircle (if possible) More... | |
| static ccFacet * | ToFacet (ccHObject *obj) |
| Converts current object to ccFacet (if possible) More... | |
| static ccPlanarEntityInterface * | ToPlanarEntity (ccHObject *obj) |
| Converts current object to ccPlanarEntityInterface (if possible) More... | |
| static ccGenericPrimitive * | ToPrimitive (ccHObject *obj) |
| Converts current object to ccGenericPrimitive (if possible) More... | |
| static ccSphere * | ToSphere (ccHObject *obj) |
| Converts current object to ccSphere (if possible) More... | |
| static ccCylinder * | ToCylinder (ccHObject *obj) |
| Converts current object to ccCylinder (if possible) More... | |
| static ccCone * | ToCone (ccHObject *obj) |
| Converts current object to ccCone (if possible) More... | |
| static ccPlane * | ToPlane (ccHObject *obj) |
| Converts current object to ccPlane (if possible) More... | |
| static ccQuadric * | ToQuadric (ccHObject *obj) |
| Converts current object to ccQuadric (if possible) More... | |
| static ccBox * | ToBox (ccHObject *obj) |
| Converts current object to ccBox (if possible) More... | |
| static ccDisc * | ToDisc (ccHObject *obj) |
| Converts current object to ccDisc (if possible) More... | |
| static ccDish * | ToDish (ccHObject *obj) |
| Converts current object to ccDish (if possible) More... | |
| static ccExtru * | ToExtru (ccHObject *obj) |
| Converts current object to ccExtru (if possible) More... | |
| static ccTorus * | ToTorus (ccHObject *obj) |
| Converts current object to ccTorus (if possible) More... | |
| static ccOctreeProxy * | ToOctreeProxy (ccHObject *obj) |
| Converts current object to ccOctreeProxy (if possible) More... | |
| static ccOctree * | ToOctree (ccHObject *obj) |
| Converts current object to ccOctree (if possible) More... | |
| static ccKdTree * | ToKdTree (ccHObject *obj) |
| Converts current object to ccKdTree (if possible) More... | |
| static ccSensor * | ToSensor (ccHObject *obj) |
| Converts current object to ccSensor (if possible) More... | |
| static ccGBLSensor * | ToGBLSensor (ccHObject *obj) |
| static ccCameraSensor * | ToCameraSensor (ccHObject *obj) |
| static ccImage * | ToImage (ccHObject *obj) |
| static cc2DLabel * | To2DLabel (ccHObject *obj) |
| Converts current object to cc2DLabel (if possible) More... | |
| static cc2DViewportLabel * | To2DViewportLabel (ccHObject *obj) |
| Converts current object to cc2DViewportLabel (if possible) More... | |
| static cc2DViewportObject * | To2DViewportObject (ccHObject *obj) |
| Converts current object to cc2DViewportObject (if possible) More... | |
| static ccIndexedTransformationBuffer * | ToTransBuffer (ccHObject *obj) |
| Converts current object to ccIndexedTransformationBuffer (if possible) More... | |
| static cloudViewer::geometry::Image * | ToImage2 (ccHObject *obj) |
| static cloudViewer::geometry::RGBDImage * | ToRGBDImage (ccHObject *obj) |
| static cloudViewer::geometry::VoxelGrid * | ToVoxelGrid (ccHObject *obj) |
| static cloudViewer::geometry::LineSet * | ToLineSet (ccHObject *obj) |
| static cloudViewer::geometry::Octree * | ToOctree2 (ccHObject *obj) |
| static ccBBox * | ToBBox (ccHObject *obj) |
| static ecvOrientedBBox * | ToOrientedBBox (ccHObject *obj) |
| static ccCoordinateSystem * | ToCoordinateSystem (ccHObject *obj) |
| Converts current object to ccCoordinateSystem (if possible) More... | |
| static bool | CloneChildren (const ccHObject *sourceEntity, ccHObject *destEntity, std::vector< int > *newPointOrTriangleIndex=nullptr, const ccHObject *sourceEntityProxy=nullptr, ccHObject *destEntityProxy=nullptr) |
Useful class to (try to) statically cast a basic ccHObject to a given type.
Definition at line 63 of file ecvHObjectCaster.h.
|
static |
Helper: clones the children of sourceEntity and set the resulting entities as children of destEntity
| sourceEntity | source entity |
| destEntity | destination entity (can be the same as the source entity) |
| newPointOrTriangleIndex | optional: provides a mapping of the entity elements (points or triangles) between the source and the destination (-1 means no correspondance) |
| sourceEntityProxy | for internal use |
| destEntityProxy | for internal use \return success |
Definition at line 334 of file ecvHObjectCaster.cpp.
References ccHObject::addChild(), cc2DLabel::addPickedPoint(), CV_TYPES::CAMERA_SENSOR, cc2DLabel::PickedPoint::cloud, cc2DLabel::PickedPoint::entity(), CV_TYPES::GBL_SENSOR, ccHObject::getChild(), ccHObject::getChildrenNumber(), ccHObject::getClassID(), cc2DLabel::getName(), cc2DLabel::getPickedPoint(), CV_TYPES::HIERARCHY_OBJECT, CV_TYPES::IMAGE, image, cc2DLabel::PickedPoint::index, ccObject::isKindOf(), CV_TYPES::LABEL_2D, CV_TYPES::MESH, cc2DLabel::PickedPoint::mesh, CV_TYPES::POINT_CLOUD, ccImage::setAssociatedSensor(), ccObject::setName(), size, cc2DLabel::size(), CV_TYPES::VIEWPORT_2D_LABEL, CV_TYPES::VIEWPORT_2D_OBJECT, and CVLog::Warning().
Referenced by ccMesh::createNewMeshFromSelection(), and ccPointCloud::partialClone().
Converts current object to cc2DLabel (if possible)
Definition at line 262 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::LABEL_2D.
Referenced by PclUtils::PCLVis::addCaption(), ccPointListPickingDlg::cancelAndExit(), ccPointPairRegistrationDlg::clear(), ccDBRoot::editLabelScalarValue(), ccPropertiesTreeDelegate::fillModel(), ccHObject::getTypeID_recursive(), ccHObject::hideObject_recursive(), ccPointPairRegistrationDlg::label2DMove(), ecvDisplayTools::Pick2DLabel(), ccPointListPickingDlg::removeEntity(), ccDBRoot::setData(), ccPointPairRegistrationDlg::showAlignedEntities(), ccDBRoot::showContextMenu(), ccPointPairRegistrationDlg::showReferenceEntities(), ecvDisplayTools::Update2DLabel(), ccPointPairRegistrationDlg::updateAlignedMarkers(), and ccPointPairRegistrationDlg::updateRefMarkers().
|
static |
Converts current object to cc2DViewportLabel (if possible)
Definition at line 267 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::VIEWPORT_2D_LABEL.
Referenced by ccHObject::getTypeID_recursive(), ccHObject::hideObject_recursive(), ccDBRoot::setData(), and ecvDisplayTools::Update2DLabel().
|
static |
Converts current object to cc2DViewportObject (if possible)
Definition at line 273 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::VIEWPORT_2D_OBJECT.
Referenced by ccPropertiesTreeDelegate::fillModel().
Definition at line 317 of file ecvHObjectCaster.cpp.
References CV_TYPES::BBOX, and ccObject::isKindOf().
Converts current object to ccBox (if possible)
Definition at line 194 of file ecvHObjectCaster.cpp.
References CV_TYPES::BOX, and ccObject::isKindOf().
|
static |
Definition at line 251 of file ecvHObjectCaster.cpp.
References CV_TYPES::CAMERA_SENSOR, and ccObject::isA().
Referenced by ccPropertiesTreeDelegate::fillModel(), and cloudViewer::ModelViewerWidget::SelectObject().
Converts current object to ccCircle (if possible)
Definition at line 146 of file ecvHObjectCaster.cpp.
References CV_TYPES::CIRCLE, and ccObject::isKindOf().
Referenced by ccPropertiesTreeDelegate::setEditorData().
Converts current object to ccCone (if possible)
Definition at line 183 of file ecvHObjectCaster.cpp.
References CV_TYPES::CONE, and ccObject::isKindOf().
Referenced by ccPropertiesTreeDelegate::setEditorData().
|
static |
Converts current object to ccCoordinateSystem (if possible)
Definition at line 328 of file ecvHObjectCaster.cpp.
References CV_TYPES::COORDINATESYSTEM, and ccObject::isKindOf().
Referenced by ccPropertiesTreeDelegate::createEditor(), and ccPropertiesTreeDelegate::fillModel().
|
static |
Converts current object to ccCylinder (if possible)
Definition at line 178 of file ecvHObjectCaster.cpp.
References CV_TYPES::CYLINDER, and ccObject::isA().
Converts current object to ccDisc (if possible)
Definition at line 204 of file ecvHObjectCaster.cpp.
References CV_TYPES::DISC, and ccObject::isA().
Referenced by ccPropertiesTreeDelegate::setEditorData().
Converts current object to ccDish (if possible)
Definition at line 209 of file ecvHObjectCaster.cpp.
References CV_TYPES::DISH, and ccObject::isA().
Converts current object to ccExtru (if possible)
Definition at line 214 of file ecvHObjectCaster.cpp.
References CV_TYPES::EXTRU, and ccObject::isA().
Converts current object to ccFacet (if possible)
Definition at line 151 of file ecvHObjectCaster.cpp.
References CV_TYPES::FACET, and ccObject::isA().
Referenced by ccPropertiesTreeDelegate::fillModel(), and ccEntityAction::setColor().
|
static |
Definition at line 245 of file ecvHObjectCaster.cpp.
References CV_TYPES::GBL_SENSOR, and ccObject::isA().
Referenced by ccGraphicalSegmentationTool::applySegmentation(), ccPropertiesTreeDelegate::fillModel(), and ccPropertiesTreeDelegate::setEditorData().
|
static |
Converts current object to ccGenericMesh (if possible)
Definition at line 123 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::MESH.
Referenced by ccGraphicalSegmentationTool::addEntity(), ccGraphicalSegmentationTool::applySegmentation(), CanDetachCloud(), ccDBRoot::deleteSelectedEntities(), qPCV::doAction(), PCLDisplayTools::draw(), ccDBRoot::dropMimeData(), ccPropertiesTreeDelegate::fillModel(), ccGenericMesh::handleColorRamp(), ccRegistrationTools::ICP(), ccCommandLineParser::importFile(), ccComparisonDlg::prepareEntitiesForComparison(), PCVCommand::Process(), ecvDisplayTools::ProcessPickingResult(), ObjFilter::saveToFile(), OFFFilter::saveToFile(), STLFilter::saveToFile(), MAFilter::saveToFile(), ccPropertiesTreeDelegate::setEditorData(), and ecvDisplayTools::StartCPUBasedPointPicking().
|
static |
Converts current object to 'equivalent' ccGenericPointCloud.
Warning: if a mesh is passed, this method returns its vertices.
Definition at line 81 of file ecvHObjectCaster.cpp.
References ccObject::isA(), ccObject::isKindOf(), ccObject::isLocked(), CV_TYPES::MESH, and CV_TYPES::POINT_CLOUD.
Referenced by ccPointPairRegistrationDlg::addAlignedPoint(), ccGraphicalSegmentationTool::addEntity(), ccPointPairRegistrationDlg::addReferencePoint(), MainWindow::addToDB(), ccPointPairRegistrationDlg::apply(), ccLibAlgorithms::ApplyCCLibAlgorithm(), ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), ccGraphicalSegmentationTool::applySegmentation(), ccEntityAction::clearProperty(), ccLibAlgorithms::ComputeGeomCharacteristic(), ccEntityAction::computeOctree(), ccEntityAction::convertNormalsTo(), qPCV::doAction(), cc2DLabel::drawMeOnly3D(), ccPropertiesTreeDelegate::fillModel(), ccDBRoot::getSelectedEntities(), ccRegistrationTools::ICP(), ccEntityAction::interpolateColors(), PcdFilter::loadFile(), PovFilter::loadFile(), ccTracePolylineTool::onItemPicked(), ccComparisonDlg::prepareEntitiesForComparison(), ccGraphicalSegmentationTool::prepareEntityForRemoval(), ecvDisplayTools::ProcessPickingResult(), ccGraphicalSegmentationTool::reset(), ccEntityAction::rgbToGreyScale(), AsciiFilter::saveToFile(), VTKFilter::saveToFile(), PNFilter::saveToFile(), PovFilter::saveToFile(), PVFilter::saveToFile(), LASFilter::saveToFile(), DepthMapFileFilter::saveToFile(), ccGraphicalSegmentationTool::segment(), ccEntityAction::setColorGradient(), ccPropertiesTreeDelegate::setEditorData(), ecvFilterByLabelDlg::setInputEntity(), ccHObject::setPointSizeRecursive(), ccEntityAction::sfSetAsCoord(), ecvDisplayTools::StartCPUBasedPointPicking(), ecvDisplayTools::StartOpenGLPicking(), ToShifted(), and VtkUtils::TableModel::updateData().
Definition at line 257 of file ecvHObjectCaster.cpp.
References CV_TYPES::IMAGE, and ccObject::isKindOf().
Referenced by PCLDisplayTools::draw(), ccDBRoot::exportImages(), ccPropertiesTreeDelegate::fillModel(), ImageFileFilter::saveToFile(), and ccPropertiesTreeDelegate::setEditorData().
|
static |
Definition at line 287 of file ecvHObjectCaster.cpp.
References CV_TYPES::IMAGE2, and ccObject::isKindOf().
Converts current object to ccKdTree (if possible)
Definition at line 235 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::POINT_KDTREE.
Referenced by ccPropertiesTreeDelegate::fillModel(), and ccHObject::getTypeID_recursive().
|
static |
Definition at line 305 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::LINESET.
Referenced by PCLDisplayTools::draw().
Converts current object to ccMesh (if possible)
Definition at line 129 of file ecvHObjectCaster.cpp.
References ccObject::isA(), ccObject::isKindOf(), CV_TYPES::MESH, and CV_TYPES::PRIMITIVE.
Referenced by ecvFilterByLabelDlg::apply(), ccGraphicalSegmentationTool::applySegmentation(), cloudViewer::io::AutoReadEntity(), ccEntityAction::clearProperty(), ccEntityAction::computeNormals(), ccEntityAction::convertTextureToColor(), cvIsoSurfaceFilter::getOutput(), cvSliceFilter::getOutput(), ccEntityAction::invertNormals(), CommandClearNormals::process(), CommandInvertNormal::process(), CommandRANSAC::process(), ccEntityAction::processMeshSF(), and VTKFilter::saveToFile().
Converts current object to ccOctree (if possible)
Definition at line 230 of file ecvHObjectCaster.cpp.
References ccOctreeProxy::getOctree(), and ToOctreeProxy().
Referenced by ccPropertiesTreeDelegate::fillModel(), ccHObject::getTypeID_recursive(), and ccPropertiesTreeDelegate::setEditorData().
|
static |
Definition at line 311 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::POINT_OCTREE2.
|
static |
Converts current object to ccOctreeProxy (if possible)
Definition at line 224 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::POINT_OCTREE.
Referenced by ToOctree().
|
static |
Definition at line 322 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::ORIENTED_BBOX.
|
static |
Converts current object to ccPlanarEntityInterface (if possible)
Definition at line 156 of file ecvHObjectCaster.cpp.
References CV_TYPES::FACET, ccObject::isA(), and CV_TYPES::PLANE.
Referenced by ccHObject::getTypeID_recursive(), and ccHObject::removeFromRenderScreen().
Converts current object to ccPlane (if possible)
Definition at line 199 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::PLANE.
|
static |
Converts current object to 'equivalent' ccPointCloud.
Warning: if a mesh is passed, this method returns its vertices.
| obj | ccHObject to dynamically cast to a ccPointCloud object |
| isLockedVertices | the caller can be warned if the returned cloud corresponds to locked vertices |
Definition at line 54 of file ecvHObjectCaster.cpp.
References ccObject::isA(), ccObject::isKindOf(), ccObject::isLocked(), CV_TYPES::MESH, and CV_TYPES::POINT_CLOUD.
Referenced by ccMesh::addEigenVertices(), PclUtils::PCLVis::addTextureMeshFromCCMesh(), ccMesh::addVertexColor(), ccMesh::addVertexColors(), ccMesh::addVertexNormal(), ccMesh::addVertexNormals(), ccMesh::addVertice(), PclUtils::renders::MeshTextureApplier::ApplyTexturesFromCCMesh(), cloudViewer::io::AutoReadEntity(), ccMesh::ccMesh(), ccEntityAction::changeColorLevels(), PCLDisplayTools::checkEntityNeedUpdate(), ccMesh::clear(), ccEntityAction::computeStatParams(), vtk2cc::ConvertToPolyline(), ccEntityAction::ConvexHull(), G3Point::G3PointAction::createAction(), ccPropertiesTreeDelegate::createEditor(), ccMesh::Crop(), ccEntityAction::DBScanCluster(), qPCV::doAction(), PCLDisplayTools::draw(), ccEntityAction::enhanceRGBWithIntensities(), ccEntityAction::exportCoordToSF(), ccEntityAction::exportNormalToSF(), qFacets::extractFacets(), poisson::ExtractMesh(), cloudViewer::pipelines::integration::UniformTSDFVolume::ExtractTriangleMesh(), ccPropertiesTreeDelegate::fillSFWithPointCloud(), ccMesh::FilterSharpen(), ccMesh::FilterSmoothLaplacian(), ccMesh::FilterSmoothLaplacianHelper(), ccMesh::FilterSmoothSimple(), ccMesh::FilterSmoothTaubin(), ccMesh::GetCenter(), ccLibAlgorithms::GetDefaultCloudKernelSize(), ccMesh::getEigenVertices(), ccMesh::GetMaxBound(), ccMesh::GetMinBound(), cvIsoSurfaceFilter::getOutput(), cvSliceFilter::getOutput(), cvDistanceTool::getOutput(), cvProtractorTool::getOutput(), FastGlobalRegistrationFilter::getParametersFromDialog(), ccDBRoot::getSelectedEntities(), BasePclModule::getSelectedEntityAsCCPointCloud(), ccMesh::getVertexColor(), ccMesh::getVertexColors(), ccMesh::getVertexColorsPtr(), ccMesh::getVertexNormal(), ccMesh::getVertexNormals(), ccMesh::getVertice(), ccMesh::getVertices(), ccMesh::getVerticesPtr(), cc2smReader::getVtkPolyDataFromMeshCloud(), ccRegistrationTools::ICP(), ccEntityAction::importToSF(), ccEntityAction::interpolateSFs(), ccEntityAction::invertNormals(), ccMesh::MergeCloseVertices(), ccMesh::NormalizeNormals(), ccColorLevelsDlg::onApply(), ccMesh::operator=(), ccMesh::PaintUniformColor(), BasePclModule::performAction(), CommandExtractVertices::process(), CommandColorBanding::process(), CommandSFArithmetic::process(), CommandSFOperation::process(), CommandSFRename::process(), CommandICP::process(), CommandM3C2::process(), CommandRANSAC::process(), PCVCommand::Process(), ccEntityAction::RansacSegmentation(), cloudViewer::io::ReadTriangleMeshFromOBJ(), cloudViewer::io::ReadTriangleMeshFromPLY(), ccMesh::RemoveDuplicatedVertices(), ccMesh::RemoveUnreferencedVertices(), ccMesh::RemoveVerticesByMask(), ccMesh::reserveAssociatedCloud(), ccMesh::resizeAssociatedCloud(), ccEntityAction::rgbGaussianFilter(), ccMesh::Rotate(), PcdFilter::saveToFile(), SimpleBinFilter::saveToFile(), LASFWFFilter::saveToFile(), ccMesh::Scale(), ccPropertiesTreeDelegate::setEditorData(), ccMesh::setEigenVertices(), cloudViewer::pipelines::color_map::SetGeometryColorAverage(), cloudViewer::io::rpc::SetTriangleMesh(), ccMesh::setVertexColor(), ccMesh::setVertexColors(), ccMesh::setVertexNormal(), ccMesh::setVertexNormals(), ccMesh::setVertice(), ccEntityAction::sfAddIdField(), ccEntityAction::sfArithmetic(), ccEntityAction::sfConvertToRandomRGB(), ccEntityAction::sfConvertToRGB(), ccEntityAction::sfFromColor(), ccEntityAction::sfGaussianFilter(), ccEntityAction::sfRename(), ccMesh::shrinkVertexToFit(), ccMesh::SimplifyQuadricDecimation(), ccMesh::SimplifyVertexClustering(), ecvPoissonReconDlg::start(), ecvAnnotationsTool::start(), ccEntityAction::statisticalTest(), ccMesh::SubdivideLoop(), ccMesh::SubdivideMidpoint(), colmap::mvs::MvsTexturing::TextureMesh(), ccMesh::Transform(), ccMesh::Translate(), cloudViewer::visualization::VisualizerWithVertexSelection::UpdateGeometry(), and ccEntityAction::VoxelSampling().
|
static |
Converts current object to ccPolyline (if possible)
Definition at line 141 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::POLY_LINE.
Referenced by ccGraphicalSegmentationTool::addEntity(), CanDetachCloud(), PCLDisplayTools::draw(), PCLDisplayTools::drawWidgets(), ecvDisplayTools::DrawWidgets(), ccPropertiesTreeDelegate::fillModel(), ccPropertiesTreeDelegate::fillWithViewProperties(), cvIsoSurfaceFilter::getOutput(), cvSliceFilter::getOutput(), ccEntityAction::setColor(), ccPropertiesTreeDelegate::setEditorData(), and ccHObject::setLineWidthRecursive().
|
static |
Converts current object to ccGenericPrimitive (if possible)
Definition at line 167 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::PRIMITIVE.
Referenced by ccPropertiesTreeDelegate::fillModel(), ccHObject::getTypeID_recursive(), ccHObject::hideObject_recursive(), ccHObject::removeFromRenderScreen(), ccEntityAction::setColor(), ccDBRoot::setData(), and ccPropertiesTreeDelegate::setEditorData().
Converts current object to ccQuadric (if possible)
Definition at line 188 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::QUADRIC.
|
static |
Definition at line 293 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::RGBD_IMAGE.
Converts current object to ccSensor (if possible)
Definition at line 240 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::SENSOR.
Referenced by ccEntityAction::computeNormals(), ccPropertiesTreeDelegate::createEditor(), PCLDisplayTools::draw(), ccHObject::getTypeID_recursive(), ccHObject::hideObject_recursive(), ccHObject::removeFromRenderScreen(), PcdFilter::saveToFile(), ccDBRoot::setData(), ccPropertiesTreeDelegate::setEditorData(), and ccNormalVectors::UpdateNormalOrientations().
|
static |
Converts current object to 'equivalent' ccShiftedObject.
Warning: if a mesh is passed, this method returns its vertices.
Definition at line 108 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), CV_TYPES::POLY_LINE, and ToGenericPointCloud().
Referenced by ccGraphicalSegmentationTool::doExportSegmentationPolyline(), ccPointPairRegistrationDlg::EntityContexts::fill(), ccPropertiesTreeDelegate::fillWithHObject(), and CommandDropGlobalShift::process().
Converts current object to ccSphere (if possible)
Definition at line 173 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::SPHERE.
Referenced by ccPropertiesTreeDelegate::setEditorData().
Converts current object to ccSubMesh (if possible)
Definition at line 136 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::SUB_MESH.
Referenced by ecvFilterByLabelDlg::apply().
Converts current object to ccTorus (if possible)
Definition at line 219 of file ecvHObjectCaster.cpp.
References ccObject::isA(), and CV_TYPES::TORUS.
|
static |
Converts current object to ccIndexedTransformationBuffer (if possible)
Definition at line 279 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::TRANS_BUFFER.
Referenced by ccPropertiesTreeDelegate::setEditorData().
|
static |
Definition at line 299 of file ecvHObjectCaster.cpp.
References ccObject::isKindOf(), and CV_TYPES::VOXEL_GRID.