![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <PCLVis.h>
Signals | |
| void | interactorPickedEvent (vtkActor *actor) |
Signals inherited from ecvGenericVisualizer3D | |
| void | interactorKeyboardEvent (const std::string &symKey) |
| void | interactorPointPickedEvent (const CCVector3 &p, int index, const std::string &id) |
| void | interactorAreaPickedEvent (const std::vector< int > &selected_slice) |
Public Member Functions | |
| PCLVis (vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > interactor_style, const std::string &viewerName="", bool initIterator=false, int argc=0, char **argv=nullptr) | |
| Default constructor. More... | |
| PCLVis (vtkSmartPointer< vtkRenderer > ren, vtkSmartPointer< vtkRenderWindow > wind, vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > interactor_style, const std::string &viewerName="", bool initIterator=false, int argc=0, char **argv=nullptr) | |
| virtual | ~PCLVis () |
| void | initialize () |
| void | configCenterAxes () |
| void | configInteractorStyle (vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > interactor_style) |
| void | hidePclMarkerAxes () |
| Marker Axes. More... | |
| bool | pclMarkerAxesShown () |
| void | showPclMarkerAxes (vtkRenderWindowInteractor *interactor=nullptr) |
| void | hideOrientationMarkerWidgetAxes () |
| void | showOrientationMarkerWidgetAxes (vtkRenderWindowInteractor *interactor) |
| void | toggleOrientationMarkerWidgetAxes () |
| bool | removeActorFromRenderer (const vtkSmartPointer< vtkProp > &actor, int viewport=0) |
| Internal method. Adds a vtk actor to screen. More... | |
| void | addActorToRenderer (const vtkSmartPointer< vtkProp > &actor, int viewport=0) |
| void | UpdateScreen () |
| UpdateScreen - Updates/refreshes the render window This method forces a render update after actor changes. More... | |
| void | setupInteractor (vtkRenderWindowInteractor *iren, vtkRenderWindow *win) |
| setupInteractor override to init interactor_ More... | |
| vtkSmartPointer< vtkRenderWindowInteractor > | getRenderWindowInteractor () |
| Get a pointer to the current interactor style used. More... | |
| pcl::visualization::Camera | getCamera (int viewport=0) |
| vtkSmartPointer< vtkCamera > | getVtkCamera (int viewport=0) |
| void | setModelViewMatrix (const ccGLMatrixd &viewMat, int viewport=0) |
| double | getParallelScale (int viewport=0) |
| void | setParallelScale (double scale, int viewport=0) |
| void | setOrthoProjection (int viewport=0) |
| void | setPerspectiveProjection (int viewport=0) |
| bool | getPerspectiveState (int viewport=0) |
| bool | getAutoUpateCameraPos () |
| void | setAutoUpateCameraPos (bool state) |
| void | rotateWithAxis (const CCVector2i &pos, const CCVector3d &axis, double angle, int viewport=0) |
| void | getCenterOfRotation (double center[3]) |
| void | resetCenterOfRotation (int viewport=0) |
| void | setCenterOfRotation (double x, double y, double z) |
| void | setCenterOfRotation (double xyz[3]) |
| void | setRotationFactor (double factor) |
| double | getRotationFactor () |
| void | setCenterAxesVisibility (bool) |
| virtual void | setCamera2DManipulators (const int manipulators[9]) |
| virtual void | setCamera3DManipulators (const int manipulators[9]) |
| void | setCameraManipulators (VTKExtensions::vtkCustomInteractorStyle *style, const int manipulators[9]) |
| virtual void | setCamera2DMouseWheelMotionFactor (double factor) |
| virtual void | setCamera3DMouseWheelMotionFactor (double factor) |
| virtual void | updateCenterAxes () |
| void | synchronizeGeometryBounds (int viewport=0) |
| double | getGLDepth (int x, int y) |
| double | getCameraFocalDistance (int viewport=0) |
| void | setCameraFocalDistance (double focal_distance, int viewport=0) |
| void | zoomCamera (double zoomFactor, int viewport=0) |
| void | getProjectionTransformMatrix (Eigen::Matrix4d &proj) |
| void | getModelViewTransformMatrix (Eigen::Matrix4d &view) |
| void | resetCameraClippingRange (int viewport=0) |
| void | internalResetCameraClippingRange () |
| void | resetCamera (const ccBBox *bbox) |
| void | resetCamera (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax) |
| void | resetCamera () |
| void | resetCamera (double bounds[6]) |
| void | getReasonableClippingRange (double range[2], int viewport=0) |
| void | expandBounds (double bounds[6], vtkMatrix4x4 *matrix) |
| void | setCameraViewAngle (double viewAngle, int viewport=0) |
| void | draw (const CC_DRAW_CONTEXT &context, const PCLCloud::Ptr &smCloud) |
| void | draw (const CC_DRAW_CONTEXT &context, const PCLMesh::Ptr &pclMesh) |
| void | draw (const CC_DRAW_CONTEXT &context, const PCLTextureMesh::Ptr &textureMesh) |
| void | draw (const CC_DRAW_CONTEXT &context, const PCLPolygon::Ptr &pclPolygon, bool closed) |
| void | draw (const CC_DRAW_CONTEXT &context, const ccSensor *sensor) |
| void | draw (const CC_DRAW_CONTEXT &context, const cloudViewer::geometry::LineSet *lineset) |
| void | transformEntities (const CC_DRAW_CONTEXT &context) |
| vtkSmartPointer< vtkTransform > | getTransformation (const CC_DRAW_CONTEXT &context, const CCVector3d &origin) |
| void | updateNormals (const CC_DRAW_CONTEXT &context, const PCLCloud::Ptr &smCloud) |
| void | updateShadingMode (const CC_DRAW_CONTEXT &context, PCLCloud &smCloud) |
| bool | removeEntities (const CC_DRAW_CONTEXT &context) |
| void | hideShowActors (bool visibility, const std::string &viewID, int viewport=0) |
| void | hideShowWidgets (bool visibility, const std::string &viewID, int viewport=0) |
| bool | addScalarBar (const CC_DRAW_CONTEXT &context) |
| bool | updateScalarBar (const CC_DRAW_CONTEXT &context) |
| bool | addCaption (const std::string &text, const CCVector2 &pos2D, const CCVector3 &anchorPos, double r, double g, double b, double a, int fontSize=10, const std::string &viewID="caption", bool anchorDragable=false, int viewport=0) |
| bool | updateCaption (const std::string &text, const CCVector2 &pos2D, const CCVector3 &anchorPos, double r, double g, double b, double a, int fontSize=10, const std::string &viewID="caption", int viewport=0) |
| bool | getCaptionPosition (const std::string &viewID, float &posX, float &posY) |
| Get caption widget 2D position (normalized coordinates 0.0-1.0) More... | |
| bool | addPolyline (const PCLPolygon::ConstPtr pclPolygon, double r, double g, double b, float width=1.0f, const std::string &id="multiline", int viewport=0) |
| bool | updateTexture (const CC_DRAW_CONTEXT &context, const ccMaterialSet *materials) |
| bool | addTextureMesh (const PCLTextureMesh &mesh, const std::string &id, int viewport) |
| Add texture mesh from PCLTextureMesh (deprecated) More... | |
| bool | addTextureMeshFromCCMesh (ccGenericMesh *mesh, const std::string &id, int viewport=0) |
| Add texture mesh directly from ccGenericMesh (preferred) More... | |
| bool | addTextureMeshFromOBJ (const std::string &obj_path, const std::string &id, int viewport=0, int quality=2, bool enable_cache=true) |
| Load multi-texture mesh from OBJ file (enhanced version) More... | |
| bool | addTextureMeshFromOBJAdvanced (const std::string &obj_path, const std::string &mtl_path, const std::string &id, int viewport=0, int max_texture_size=4096, bool use_mipmaps=true, bool enable_cache=true) |
| Load multi-texture mesh from OBJ file (advanced options) More... | |
| void | clearTextureCache () |
| Clear texture cache. More... | |
| void | getTextureCacheInfo (size_t &count, size_t &memory_bytes) const |
| Get texture cache information. More... | |
| bool | addOrientedCube (const ccGLMatrixd &trans, double width, double height, double depth, double r=1.0, double g=1.0, double b=1.0, const std::string &id="cube", int viewport=0) |
| bool | addOrientedCube (const Eigen::Vector3f &translation, const Eigen::Quaternionf &rotation, double width, double height, double depth, double r=1.0, double g=1.0, double b=1.0, const std::string &id="cube", int viewport=0) |
| bool | addOrientedCube (const ecvOrientedBBox &obb, const std::string &id="cube", int viewport=0) |
| void | displayText (const CC_DRAW_CONTEXT &context) |
| void | setPointSize (const unsigned char pointSize, const std::string &viewID, int viewport=0) |
| void | setScalarFieldName (const std::string &viewID, const std::string &scalarName, int viewport=0) |
| void | addScalarFieldToVTK (const std::string &viewID, ccPointCloud *cloud, int scalarFieldIndex, int viewport=0) |
| Add scalar field data from ccPointCloud to VTK polydata. More... | |
| void | syncAllScalarFieldsToVTK (const std::string &viewID, ccPointCloud *cloud, int viewport=0) |
| Sync ALL scalar fields from ccPointCloud to VTK polydata. More... | |
| void | setCurrentSourceObject (ccHObject *obj, const std::string &viewID) |
| Set the source object for selection operations. More... | |
| void | removeSourceObject (const std::string &viewID) |
| Remove a source object from the map. More... | |
| ccHObject * | getSourceObject (const std::string &viewID) const |
| Get the source object for a given viewID. More... | |
| ccPointCloud * | getSourceCloud (const std::string &viewID) const |
| Get the source object as ccPointCloud. More... | |
| ccMesh * | getSourceMesh (const std::string &viewID) const |
| Get the source object as ccMesh. More... | |
| bool | hasSourceObject (const std::string &viewID) const |
| Check if a source object exists for the given viewID. More... | |
| void | setPointCloudUniqueColor (double r, double g, double b, const std::string &viewID, int viewport=0) |
| void | resetScalarColor (const std::string &viewID, bool flag=true, int viewport=0) |
| void | setShapeUniqueColor (float r, float g, float b, const std::string &viewID, int viewport=0) |
| void | setLineWidth (const unsigned char lineWidth, const std::string &viewID, int viewport=0) |
| void | setMeshRenderingMode (MESH_RENDERING_MODE mode, const std::string &viewID, int viewport=0) |
| void | setLightMode (const std::string &viewID, int viewport=0) |
| void | setPointCloudOpacity (double opacity, const std::string &viewID, int viewport=0) |
| void | setShapeOpacity (double opacity, const std::string &viewID, int viewport=0) |
| void | setMeshOpacity (double opacity, const std::string &viewID, int viewport=0) |
| Set opacity for mesh (textured or non-textured) More... | |
| void | setShapeShadingMode (SHADING_MODE mode, const std::string &viewID, int viewport=0) |
| void | setMeshShadingMode (SHADING_MODE mode, const std::string &viewID, int viewport=0) |
| vtkSmartPointer< pcl::visualization::PCLVisualizerInteractorStyle > | getPCLInteractorStyle () |
| vtkActor * | getActorById (const std::string &viewId) |
| vtkProp * | getPropById (const std::string &viewId) |
| vtkSmartPointer< vtkPropCollection > | getPropCollectionById (const std::string &viewId) |
| std::string | getIdByActor (vtkProp *actor) |
| vtkAbstractWidget * | getWidgetById (const std::string &viewId) |
| vtkRenderer * | getCurrentRenderer (int viewport=0) |
| bool | containWidget (const std::string &id) const |
| Check if the widgets or props with the given id was already added to this visualizer. More... | |
| WidgetActorMapPtr | getWidgetActorMap () |
| Return a pointer to the WidgetActorMap this visualizer uses. More... | |
| PropActorMapPtr | getPropActorMap () |
| Return a pointer to the PropActorMap this visualizer uses. More... | |
| vtkBoundingBox | getVisibleGeometryBounds () |
| vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | get2DInteractorStyle () |
| vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | get3DInteractorStyle () |
| bool | isPointPickingEnabled () |
| void | setPointPickingEnabled (bool state) |
| void | togglePointPicking () |
| bool | isAreaPickingEnabled () |
| void | setAreaPickingEnabled (bool state) |
| bool | isActorPickingEnabled () |
| void | setActorPickingEnabled (bool state) |
| void | toggleActorPicking () |
| void | toggleAreaPicking () |
| void | exitCallbackProcess () |
| void | setAreaPickingMode (bool state) |
| vtkActor * | pickActor (double x, double y) |
| std::string | pickItem (double x0=-1, double y0=-1, double x1=5.0, double y1=5.0) |
| QImage | renderToImage (int zoomFactor=1, bool renderOverlayItems=false, bool silent=false, int viewport=0) |
| void | setLightIntensity (double intensity) |
| Set global light intensity (ParaView-style) More... | |
| double | getLightIntensity () const |
| Get current global light intensity. More... | |
| void | SetDataAxesGridProperties (const std::string &viewID, const AxesGridProperties &props) |
| Set Data Axes Grid properties (Unified Interface) More... | |
| void | GetDataAxesGridProperties (const std::string &viewID, AxesGridProperties &props) const |
| Get Data Axes Grid properties (Unified Interface) More... | |
| void | RemoveDataAxesGrid (const std::string &viewID) |
| Remove Data Axes Grid for a specific object. More... | |
| void | ToggleCameraOrientationWidget (bool show) |
| Toggle Camera Orientation Widget visibility (ParaView-style) More... | |
| bool | IsCameraOrientationWidgetShown () const |
| Check if Camera Orientation Widget is shown. More... | |
Public Member Functions inherited from ecvGenericVisualizer3D | |
| ecvGenericVisualizer3D ()=default | |
| Default constructor. More... | |
| virtual | ~ecvGenericVisualizer3D ()=default |
| Destructor. More... | |
Public Member Functions inherited from ecvGenericVisualizer | |
| ecvGenericVisualizer ()=default | |
| Default constructor. More... | |
| virtual | ~ecvGenericVisualizer ()=default |
| Destructor. More... | |
Static Public Member Functions | |
| static void | ExpandBounds (double bounds[6], vtkMatrix4x4 *matrix) |
| PclUtils::PCLVis::PCLVis | ( | vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | interactor_style, |
| const std::string & | viewerName = "", |
||
| bool | initIterator = false, |
||
| int | argc = 0, |
||
| char ** | argv = nullptr |
||
| ) |
Default constructor.
References configCenterAxes(), and configInteractorStyle().
| PclUtils::PCLVis::PCLVis | ( | vtkSmartPointer< vtkRenderer > | ren, |
| vtkSmartPointer< vtkRenderWindow > | wind, | ||
| vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | interactor_style, | ||
| const std::string & | viewerName = "", |
||
| bool | initIterator = false, |
||
| int | argc = 0, |
||
| char ** | argv = nullptr |
||
| ) |
References configCenterAxes(), and configInteractorStyle().
|
virtual |
| void PclUtils::PCLVis::addActorToRenderer | ( | const vtkSmartPointer< vtkProp > & | actor, |
| int | viewport = 0 |
||
| ) |
Referenced by cvGenericFilter::addActor(), addOrientedCube(), addPolyline(), addTextureMesh(), addTextureMeshFromCCMesh(), configCenterAxes(), and draw().
| bool PclUtils::PCLVis::addCaption | ( | const std::string & | text, |
| const CCVector2 & | pos2D, | ||
| const CCVector3 & | anchorPos, | ||
| double | r, | ||
| double | g, | ||
| double | b, | ||
| double | a, | ||
| int | fontSize = 10, |
||
| const std::string & | viewID = "caption", |
||
| bool | anchorDragable = false, |
||
| int | viewport = 0 |
||
| ) |
References a, ecvColor::RgbTpl< Type >::b, containWidget(), Vector3Tpl< double >::fromArray(), ecvColor::FromRgb(), ecvColor::RgbTpl< Type >::g, ccHObject::getChild(), ccHObject::getChildrenNumber(), getRenderWindowInteractor(), ecvDisplayTools::GetSceneDB(), ccHObject::getViewId(), ccObject::isA(), CV_TYPES::LABEL_2D, ecvColor::RgbTpl< Type >::r, ecvColor::red(), ccHObjectCaster::To2DLabel(), Tuple3Tpl< Type >::u, CVLog::Warning(), ecvColor::white(), Vector2Tpl< Type >::x, and Vector2Tpl< Type >::y.
| bool PclUtils::PCLVis::addOrientedCube | ( | const ccGLMatrixd & | trans, |
| double | width, | ||
| double | height, | ||
| double | depth, | ||
| double | r = 1.0, |
||
| double | g = 1.0, |
||
| double | b = 1.0, |
||
| const std::string & | id = "cube", |
||
| int | viewport = 0 |
||
| ) |
References addActorToRenderer(), PclTools::CreateActorFromVTKDataSet(), PclTools::CreateCube(), data, CVLog::Error(), height, and width.
| bool PclUtils::PCLVis::addOrientedCube | ( | const ecvOrientedBBox & | obb, |
| const std::string & | id = "cube", |
||
| int | viewport = 0 |
||
| ) |
| bool PclUtils::PCLVis::addOrientedCube | ( | const Eigen::Vector3f & | translation, |
| const Eigen::Quaternionf & | rotation, | ||
| double | width, | ||
| double | height, | ||
| double | depth, | ||
| double | r = 1.0, |
||
| double | g = 1.0, |
||
| double | b = 1.0, |
||
| const std::string & | id = "cube", |
||
| int | viewport = 0 |
||
| ) |
References addActorToRenderer(), PclTools::CreateActorFromVTKDataSet(), data, CVLog::Error(), height, rotation, and width.
| bool PclUtils::PCLVis::addPolyline | ( | const PCLPolygon::ConstPtr | pclPolygon, |
| double | r, | ||
| double | g, | ||
| double | b, | ||
| float | width = 1.0f, |
||
| const std::string & | id = "multiline", |
||
| int | viewport = 0 |
||
| ) |
References addActorToRenderer(), PclTools::CreateActorFromVTKDataSet(), PclTools::CreateLine(), data, size, CVLog::Warning(), and width.
Referenced by draw().
| bool PclUtils::PCLVis::addScalarBar | ( | const CC_DRAW_CONTEXT & | context | ) |
References containWidget(), context, CVTools::FromQString(), getRenderWindowInteractor(), updateScalarBar(), and CVLog::Warning().
| void PclUtils::PCLVis::addScalarFieldToVTK | ( | const std::string & | viewID, |
| ccPointCloud * | cloud, | ||
| int | scalarFieldIndex, | ||
| int | viewport = 0 |
||
| ) |
Add scalar field data from ccPointCloud to VTK polydata.
| viewID | The cloud ID |
| cloud | The ccPointCloud containing scalar field |
| scalarFieldIndex | Index of the scalar field to extract |
| viewport | Viewport ID |
References ccObject::getName(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldName(), cloudViewer::ScalarField::getValue(), CVLog::PrintDebug(), cloudViewer::PointCloudTpl< T >::size(), and CVLog::Warning().
Referenced by syncAllScalarFieldsToVTK().
| bool PclUtils::PCLVis::addTextureMesh | ( | const PCLTextureMesh & | mesh, |
| const std::string & | id, | ||
| int | viewport | ||
| ) |
Add texture mesh from PCLTextureMesh (deprecated)
References addActorToRenderer(), PclUtils::renders::MeshTextureApplier::ApplyPBRTextures(), color, colors, CVLog::Error(), FROM_PCL_CLOUD, getCurrentRenderer(), normal, normals, CVLog::PrintDebug(), CVLog::PrintVerbose(), and CVLog::Warning().
Referenced by draw().
| bool PclUtils::PCLVis::addTextureMeshFromCCMesh | ( | ccGenericMesh * | mesh, |
| const std::string & | id, | ||
| int | viewport = 0 |
||
| ) |
Add texture mesh directly from ccGenericMesh (preferred)
| mesh | ccGenericMesh object containing geometry and materials |
| id | Unique identifier for the mesh |
| viewport | Viewport ID (default: 0) |
References addActorToRenderer(), PclUtils::renders::MeshTextureApplier::ApplyTexturesFromMaterialSet(), CVLog::Error(), ccGenericMesh::getAssociatedCloud(), getCurrentRenderer(), ccGenericMesh::getMaterialSet(), cc2smReader::getVtkPolyDataWithTextures(), CVLog::PrintDebug(), CVLog::PrintVerbose(), removeActorFromRenderer(), and ccHObjectCaster::ToPointCloud().
| bool PclUtils::PCLVis::addTextureMeshFromOBJ | ( | const std::string & | obj_path, |
| const std::string & | id, | ||
| int | viewport = 0, |
||
| int | quality = 2, |
||
| bool | enable_cache = true |
||
| ) |
Load multi-texture mesh from OBJ file (enhanced version)
| obj_path | OBJ file path |
| id | Unique identifier |
| viewport | Viewport ID |
| quality | Texture quality (0=low, 1=medium, 2=high, 3=original) |
| enable_cache | Whether to enable texture cache |
| bool PclUtils::PCLVis::addTextureMeshFromOBJAdvanced | ( | const std::string & | obj_path, |
| const std::string & | mtl_path, | ||
| const std::string & | id, | ||
| int | viewport = 0, |
||
| int | max_texture_size = 4096, |
||
| bool | use_mipmaps = true, |
||
| bool | enable_cache = true |
||
| ) |
Load multi-texture mesh from OBJ file (advanced options)
| obj_path | OBJ file path |
| mtl_path | MTL file path (optional) |
| id | Unique identifier |
| viewport | Viewport ID |
| max_texture_size | Maximum texture size |
| use_mipmaps | Whether to use mipmaps |
| enable_cache | Whether to enable texture cache |
| void PclUtils::PCLVis::clearTextureCache | ( | ) |
Clear texture cache.
| void PclUtils::PCLVis::configCenterAxes | ( | ) |
References addActorToRenderer(), m_centerAxes, and VTKExtensions::vtkPVCenterAxesActor::New().
Referenced by PCLVis().
| void PclUtils::PCLVis::configInteractorStyle | ( | vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | interactor_style | ) |
References m_interactorStyle, ThreeDInteractorStyle, and TwoDInteractorStyle.
Referenced by PCLVis().
|
inline |
Check if the widgets or props with the given id was already added to this visualizer.
| [in] | id | the id of the widgets or props to check |
Referenced by addCaption(), and addScalarBar().
| void PclUtils::PCLVis::displayText | ( | const CC_DRAW_CONTEXT & | context | ) |
References ecvColor::RgbTpl< Type >::b, context, ecvTextParam::display3D, ecvTextParam::font, CVTools::FromQString(), ecvColor::RgbTpl< Type >::g, position, ecvColor::RgbTpl< Type >::r, ecvTextParam::text, ecvTextParam::textPos, ecvTextParam::textScale, ecvTools::TransFormRGB(), CVLog::Warning(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const ccSensor * | sensor | ||
| ) |
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const cloudViewer::geometry::LineSet * | lineset | ||
| ) |
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLCloud::Ptr & | smCloud | ||
| ) |
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLMesh::Ptr & | pclMesh | ||
| ) |
References context, CVTools::FromQString(), and updateShadingMode().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLPolygon::Ptr & | pclPolygon, | ||
| bool | closed | ||
| ) |
References addPolyline(), context, CVTools::FromQString(), and ecvColor::RgbTpl< Type >::ToEigen().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLTextureMesh::Ptr & | textureMesh | ||
| ) |
References addTextureMesh(), context, and CVTools::FromQString().
| void PclUtils::PCLVis::exitCallbackProcess | ( | ) |
References getPCLInteractorStyle().
|
static |
References CVLog::Warning().
| void PclUtils::PCLVis::expandBounds | ( | double | bounds[6], |
| vtkMatrix4x4 * | matrix | ||
| ) |
References CVLog::Error().
Referenced by getReasonableClippingRange().
|
inline |
|
inline |
Referenced by rotateWithAxis().
| vtkActor * PclUtils::PCLVis::getActorById | ( | const std::string & | viewId | ) |
References CVLog::Error().
Referenced by PclTransformTool::addActors(), PclAnnotationTool::clear(), PclAnnotationTool::hideOrigin(), hideShowActors(), cvGenericFilter::initModel(), resetScalarColor(), SetDataAxesGridProperties(), PclAnnotationTool::setInputCloud(), setLightMode(), setLineWidth(), setMeshOpacity(), setMeshRenderingMode(), setMeshShadingMode(), PclAnnotationTool::showOrigin(), transformEntities(), updateShadingMode(), and updateTexture().
|
inline |
| pcl::visualization::Camera PclUtils::PCLVis::getCamera | ( | int | viewport = 0 | ) |
References getRenderWindowInteractor(), getVtkCamera(), and M_PI.
| double PclUtils::PCLVis::getCameraFocalDistance | ( | int | viewport = 0 | ) |
References getVtkCamera().
| bool PclUtils::PCLVis::getCaptionPosition | ( | const std::string & | viewID, |
| float & | posX, | ||
| float & | posY | ||
| ) |
Get caption widget 2D position (normalized coordinates 0.0-1.0)
Returns false if widget not found or invalid
| viewID | widget view ID |
| posX | output X position (0.0-1.0, left to right) |
| posY | output Y position (0.0-1.0, bottom to top in VTK coordinate system) |
References getWidgetById().
| void PclUtils::PCLVis::getCenterOfRotation | ( | double | center[3] | ) |
Get the current center of rotation
References ThreeDInteractorStyle.
Referenced by EditCameraTool::UpdateCameraInfo().
| vtkRenderer * PclUtils::PCLVis::getCurrentRenderer | ( | int | viewport = 0 | ) |
Get the Current Renderer in the list. Return NULL when at the end of the list.
Referenced by addTextureMesh(), addTextureMeshFromCCMesh(), cvSelectionBase::getAllPolyDataFromVisualizer(), cvSelectionBase::getDataActors(), getGLDepth(), getProjectionTransformMatrix(), getReasonableClippingRange(), getVtkCamera(), cvGenericMeasurementTool::initModel(), RemoveDataAxesGrid(), resetCameraClippingRange(), rotateWithAxis(), SetDataAxesGridProperties(), setLightIntensity(), setMeshOpacity(), setOrthoProjection(), setPerspectiveProjection(), cvGenericMeasurementTool::setUpViewer(), cvSelectionPipeline::setVisualizer(), cvRenderViewSelectionReaction::setVisualizer(), synchronizeGeometryBounds(), ToggleCameraOrientationWidget(), EditCameraTool::UpdateCamera(), updateTexture(), and ~PCLVis().
| void PclUtils::PCLVis::GetDataAxesGridProperties | ( | const std::string & | viewID, |
| AxesGridProperties & | props | ||
| ) | const |
Get Data Axes Grid properties (Unified Interface)
| viewID | The view ID of the ccHObject |
| props | Output: current axes grid properties |
References AxesGridProperties::color, AxesGridProperties::lineWidth, m_dataAxesGridMap, AxesGridProperties::opacity, AxesGridProperties::showGrid, AxesGridProperties::showLabels, AxesGridProperties::spacing, AxesGridProperties::subdivisions, AxesGridProperties::useCustomBounds, AxesGridProperties::visible, Utils::vtkColor(), AxesGridProperties::xMax, AxesGridProperties::xMin, AxesGridProperties::xTitle, AxesGridProperties::xUseCustomLabels, AxesGridProperties::yMax, AxesGridProperties::yMin, AxesGridProperties::yTitle, AxesGridProperties::yUseCustomLabels, AxesGridProperties::zMax, AxesGridProperties::zMin, AxesGridProperties::zTitle, and AxesGridProperties::zUseCustomLabels.
| double PclUtils::PCLVis::getGLDepth | ( | int | x, |
| int | y | ||
| ) |
References getCurrentRenderer(), and getVtkCamera().
| std::string PclUtils::PCLVis::getIdByActor | ( | vtkProp * | actor | ) |
Referenced by cvRenderViewSelectionReaction::finalizeSelection(), and pickItem().
| double PclUtils::PCLVis::getLightIntensity | ( | ) | const |
Get current global light intensity.
References m_lightIntensity.
| void PclUtils::PCLVis::getModelViewTransformMatrix | ( | Eigen::Matrix4d & | view | ) |
References getVtkCamera().
| double PclUtils::PCLVis::getParallelScale | ( | int | viewport = 0 | ) |
References getVtkCamera().
Referenced by getReasonableClippingRange().
| vtkSmartPointer< pcl::visualization::PCLVisualizerInteractorStyle > PclUtils::PCLVis::getPCLInteractorStyle | ( | ) |
Referenced by exitCallbackProcess().
| bool PclUtils::PCLVis::getPerspectiveState | ( | int | viewport = 0 | ) |
References getVtkCamera().
| void PclUtils::PCLVis::getProjectionTransformMatrix | ( | Eigen::Matrix4d & | proj | ) |
References getCurrentRenderer(), and getVtkCamera().
|
inline |
Return a pointer to the PropActorMap this visualizer uses.
| vtkProp * PclUtils::PCLVis::getPropById | ( | const std::string & | viewId | ) |
References CVLog::Error().
Referenced by getPropCollectionById().
| vtkSmartPointer< vtkPropCollection > PclUtils::PCLVis::getPropCollectionById | ( | const std::string & | viewId | ) |
References getPropById().
| void PclUtils::PCLVis::getReasonableClippingRange | ( | double | range[2], |
| int | viewport = 0 |
||
| ) |
References a, e, expandBounds(), GeometryBounds, getCurrentRenderer(), getParallelScale(), getVtkCamera(), position, synchronizeGeometryBounds(), and CVLog::Warning().
|
inline |
Get a pointer to the current interactor style used.
Referenced by addCaption(), addScalarBar(), PclFiltersTool::areaPickingEventProcess(), PclAnnotationTool::areaPickingEventProcess(), getCamera(), PclAnnotationTool::initialize(), PclAnnotationTool::pickedEventProcess(), pickItem(), rotateWithAxis(), cvGenericFilter::setUpViewer(), PclMeasurementTools::setVisualizer(), cvRenderViewSelectionReaction::setVisualizer(), PclMeasurementTools::start(), PclTransformTool::start(), and ToggleCameraOrientationWidget().
| double PclUtils::PCLVis::getRotationFactor | ( | ) |
References ThreeDInteractorStyle.
Referenced by EditCameraTool::UpdateCameraInfo().
| ccPointCloud * PclUtils::PCLVis::getSourceCloud | ( | const std::string & | viewID | ) | const |
Get the source object as ccPointCloud.
| viewID | The view ID to look up |
References getSourceObject(), ccObject::isA(), and CV_TYPES::POINT_CLOUD.
Referenced by setCurrentSourceObject().
| ccMesh * PclUtils::PCLVis::getSourceMesh | ( | const std::string & | viewID | ) | const |
Get the source object as ccMesh.
| viewID | The view ID to look up |
References getSourceObject(), ccObject::isKindOf(), and CV_TYPES::MESH.
| ccHObject * PclUtils::PCLVis::getSourceObject | ( | const std::string & | viewID | ) | const |
Get the source object for a given viewID.
| viewID | The view ID to look up |
References m_sourceObjectMap.
Referenced by cvRenderViewSelectionReaction::finalizeSelection(), getSourceCloud(), getSourceMesh(), and SetDataAxesGridProperties().
| void PclUtils::PCLVis::getTextureCacheInfo | ( | size_t & | count, |
| size_t & | memory_bytes | ||
| ) | const |
Get texture cache information.
| count | Output cached texture count |
| memory_bytes | Output cache memory usage (bytes) |
| vtkSmartPointer< vtkTransform > PclUtils::PCLVis::getTransformation | ( | const CC_DRAW_CONTEXT & | context, |
| const CCVector3d & | origin | ||
| ) |
References TransformInfo::RotateParam::angle, TransformInfo::applyEuler, context, TransformInfo::eulerZYX, CVTools::FromQString(), TransformInfo::isRotate, TransformInfo::isScale, TransformInfo::isTranslate, origin, TransformInfo::rotateParam, TransformInfo::RotateParam::rotAxis, TransformInfo::scaleXYZ, TransformInfo::transVecEnd, TransformInfo::transVecStart, and Tuple3Tpl< Type >::u.
Referenced by transformEntities().
|
inline |
| vtkSmartPointer< vtkCamera > PclUtils::PCLVis::getVtkCamera | ( | int | viewport = 0 | ) |
References getCurrentRenderer().
Referenced by getCamera(), getCameraFocalDistance(), getGLDepth(), getModelViewTransformMatrix(), getParallelScale(), getPerspectiveState(), getProjectionTransformMatrix(), getReasonableClippingRange(), setCameraFocalDistance(), setModelViewMatrix(), setOrthoProjection(), setParallelScale(), setPerspectiveProjection(), EditCameraTool::UpdateCamera(), EditCameraTool::UpdateCameraInfo(), and zoomCamera().
|
inline |
Return a pointer to the WidgetActorMap this visualizer uses.
Referenced by getWidgetById(), and hideShowWidgets().
| vtkAbstractWidget * PclUtils::PCLVis::getWidgetById | ( | const std::string & | viewId | ) |
References getWidgetActorMap().
Referenced by getCaptionPosition(), updateCaption(), and updateScalarBar().
| bool PclUtils::PCLVis::hasSourceObject | ( | const std::string & | viewID | ) | const |
Check if a source object exists for the given viewID.
| viewID | The view ID to check |
References m_sourceObjectMap.
| void PclUtils::PCLVis::hideOrientationMarkerWidgetAxes | ( | ) |
References m_axes_widget, and CVLog::Warning().
Referenced by hidePclMarkerAxes().
| void PclUtils::PCLVis::hidePclMarkerAxes | ( | ) |
Marker Axes.
References hideOrientationMarkerWidgetAxes(), and CVLog::PrintVerbose().
| void PclUtils::PCLVis::hideShowActors | ( | bool | visibility, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References getActorById().
| void PclUtils::PCLVis::hideShowWidgets | ( | bool | visibility, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References getWidgetActorMap().
| void PclUtils::PCLVis::initialize | ( | ) |
|
signal |
|
inline |
|
inline |
Referenced by ~PCLVis().
|
inline |
Referenced by toggleAreaPicking(), and ~PCLVis().
| bool PclUtils::PCLVis::IsCameraOrientationWidgetShown | ( | ) | const |
Check if Camera Orientation Widget is shown.
References m_cameraOrientationWidget.
|
inline |
Referenced by cvRenderViewSelectionReaction::endSelection(), and ~PCLVis().
| bool PclUtils::PCLVis::pclMarkerAxesShown | ( | ) |
References m_axes_widget.
| vtkActor * PclUtils::PCLVis::pickActor | ( | double | x, |
| double | y | ||
| ) |
References m_propPicker, x, and y.
| std::string PclUtils::PCLVis::pickItem | ( | double | x0 = -1, |
| double | y0 = -1, |
||
| double | x1 = 5.0, |
||
| double | y1 = 5.0 |
||
| ) |
References getIdByActor(), getRenderWindowInteractor(), and m_area_picker.
| bool PclUtils::PCLVis::removeActorFromRenderer | ( | const vtkSmartPointer< vtkProp > & | actor, |
| int | viewport = 0 |
||
| ) |
Internal method. Adds a vtk actor to screen.
| [in] | actor | a pointer to the vtk actor object |
| [in] | viewport | the view port where the actor should be added to (default: all) |
Referenced by addTextureMeshFromCCMesh(), cvGenericFilter::removeActor(), and ~PCLVis().
| void PclUtils::PCLVis::RemoveDataAxesGrid | ( | const std::string & | viewID | ) |
Remove Data Axes Grid for a specific object.
| viewID | The view ID of the ccHObject |
References getCurrentRenderer(), and m_dataAxesGridMap.
| bool PclUtils::PCLVis::removeEntities | ( | const CC_DRAW_CONTEXT & | context | ) |
References context, ECV_ALL, ECV_CAPTION, ECV_LINES_3D, ECV_MESH, ECV_POINT_CLOUD, ECV_POLYLINE_2D, ECV_SCALAR_BAR, ECV_SENSOR, ECV_SHAPE, ECV_TEXT2D, ECV_TEXT3D, and CVTools::FromQString().
| void PclUtils::PCLVis::removeSourceObject | ( | const std::string & | viewID | ) |
Remove a source object from the map.
| viewID | The view ID of the object to remove |
References m_sourceObjectMap.
| QImage PclUtils::PCLVis::renderToImage | ( | int | zoomFactor = 1, |
| bool | renderOverlayItems = false, |
||
| bool | silent = false, |
||
| int | viewport = 0 |
||
| ) |
|
inline |
Referenced by resetCamera().
| void PclUtils::PCLVis::resetCamera | ( | const ccBBox * | bbox | ) |
References cloudViewer::BoundingBoxTpl< T >::getBounds(), and resetCamera().
|
inline |
| void PclUtils::PCLVis::resetCamera | ( | double | xMin, |
| double | xMax, | ||
| double | yMin, | ||
| double | yMax, | ||
| double | zMin, | ||
| double | zMax | ||
| ) |
| void PclUtils::PCLVis::resetCameraClippingRange | ( | int | viewport = 0 | ) |
Automatically set up the camera based on a specified bounding box (xmin, xmax, ymin, ymax, zmin, zmax). Camera will reposition itself so that its focal point is the center of the bounding box, and adjust its distance and position to preserve its initial view plane normal (i.e., vector defined from camera position to focal point). Note: is the view plane is parallel to the view up axis, the view up axis will be reset to one of the three coordinate axes.
References GeometryBounds, getCurrentRenderer(), and synchronizeGeometryBounds().
Referenced by setCameraViewAngle().
| void PclUtils::PCLVis::resetCenterOfRotation | ( | int | viewport = 0 | ) |
Resets the center of rotation to the focal point.
References GeometryBounds, setCenterOfRotation(), and synchronizeGeometryBounds().
| void PclUtils::PCLVis::resetScalarColor | ( | const std::string & | viewID, |
| bool | flag = true, |
||
| int | viewport = 0 |
||
| ) |
References getActorById().
| void PclUtils::PCLVis::rotateWithAxis | ( | const CCVector2i & | pos, |
| const CCVector3d & | axis, | ||
| double | angle, | ||
| int | viewport = 0 |
||
| ) |
|
inline |
Referenced by PclAnnotationTool::start(), PclAnnotationTool::stop(), and ~PCLVis().
|
inline |
Referenced by PclAnnotationTool::start(), PclAnnotationTool::stop(), toggleAreaPicking(), and ~PCLVis().
| void PclUtils::PCLVis::setAreaPickingMode | ( | bool | state | ) |
References m_area_picker, m_currentMode, m_point_picker, ORIENT_MODE, and SELECT_MODE.
|
inline |
|
virtual |
References setCameraManipulators(), and TwoDInteractorStyle.
|
virtual |
References TwoDInteractorStyle.
|
virtual |
References setCameraManipulators(), and ThreeDInteractorStyle.
|
virtual |
References ThreeDInteractorStyle.
| void PclUtils::PCLVis::setCameraFocalDistance | ( | double | focal_distance, |
| int | viewport = 0 |
||
| ) |
References getVtkCamera().
| void PclUtils::PCLVis::setCameraManipulators | ( | VTKExtensions::vtkCustomInteractorStyle * | style, |
| const int | manipulators[9] | ||
| ) |
| void PclUtils::PCLVis::setCameraViewAngle | ( | double | viewAngle, |
| int | viewport = 0 |
||
| ) |
References resetCameraClippingRange(), and UpdateScreen().
| void PclUtils::PCLVis::setCenterAxesVisibility | ( | bool | v | ) |
References m_centerAxes.
| void PclUtils::PCLVis::setCenterOfRotation | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Set the center of rotation. For this to work, one should have appropriate interaction style and camera manipulators that use the center of rotation They are setup correctly by default
References m_centerAxes, ThreeDInteractorStyle, TwoDInteractorStyle, y, and z.
Referenced by resetCenterOfRotation(), and EditCameraTool::UpdateCamera().
|
inline |
| void PclUtils::PCLVis::setCurrentSourceObject | ( | ccHObject * | obj, |
| const std::string & | viewID | ||
| ) |
Set the source object for selection operations.
This stores a reference to the original ccHObject (ccPointCloud or ccMesh) that is being visualized. Used for direct extraction during selection operations to bypass VTK→ccHObject conversion. Supports multiple objects in the scene via viewID mapping.
| obj | The source object (ccPointCloud or ccMesh) |
| viewID | The view ID for the object |
References ccHObject::getClassID(), ccObject::getName(), getSourceCloud(), m_sourceObjectMap, CVLog::PrintDebug(), and syncAllScalarFieldsToVTK().
| void PclUtils::PCLVis::SetDataAxesGridProperties | ( | const std::string & | viewID, |
| const AxesGridProperties & | props | ||
| ) |
Set Data Axes Grid properties (Unified Interface)
Data Axes Grid shows axes and grid lines around the data bounds. Uses vtkCubeAxesActor with FlyModeToOuterEdges. Each ccHObject has its own Data Axes Grid bound to its viewID.
| viewID | The view ID of the ccHObject to bind the axes grid to |
| props | All axes grid properties encapsulated in AxesGridProperties struct |
References AxesGridProperties::color, getActorById(), ccHObject::getChild(), ccHObject::getChildrenNumber(), getCurrentRenderer(), ccHObject::getDisplayBB_recursive(), ccObject::getName(), ecvDisplayTools::GetSceneDB(), getSourceObject(), ccHObject::getViewId(), cloudViewer::BoundingBoxTpl< T >::isValid(), AxesGridProperties::lineWidth, m_dataAxesGridMap, cloudViewer::BoundingBoxTpl< T >::maxCorner(), cloudViewer::BoundingBoxTpl< T >::minCorner(), AxesGridProperties::opacity, CVLog::PrintVerbose(), AxesGridProperties::showGrid, AxesGridProperties::showLabels, AxesGridProperties::useCustomBounds, AxesGridProperties::visible, CVLog::Warning(), Tuple3Tpl< Type >::x, AxesGridProperties::xCustomLabels, AxesGridProperties::xMax, AxesGridProperties::xMin, AxesGridProperties::xTitle, AxesGridProperties::xUseCustomLabels, Tuple3Tpl< Type >::y, AxesGridProperties::yCustomLabels, AxesGridProperties::yMax, AxesGridProperties::yMin, AxesGridProperties::yTitle, AxesGridProperties::yUseCustomLabels, Tuple3Tpl< Type >::z, AxesGridProperties::zCustomLabels, AxesGridProperties::zMax, AxesGridProperties::zMin, AxesGridProperties::zTitle, and AxesGridProperties::zUseCustomLabels.
| void PclUtils::PCLVis::setLightIntensity | ( | double | intensity | ) |
Set global light intensity (ParaView-style)
Directly modifies the renderer's default light intensity. This affects all objects in the scene uniformly.
| intensity | Light intensity (0.0-1.0, default 1.0) |
References getCurrentRenderer(), ecvColor::light(), m_lightIntensity, and CVLog::Warning().
| void PclUtils::PCLVis::setLightMode | ( | const std::string & | viewID, |
| int | viewport = 0 |
||
| ) |
References getActorById().
| void PclUtils::PCLVis::setLineWidth | ( | const unsigned char | lineWidth, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References getActorById().
| void PclUtils::PCLVis::setMeshOpacity | ( | double | opacity, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Set opacity for mesh (textured or non-textured)
This method properly handles transparency for meshes, including:
| opacity | Opacity value [0.0, 1.0] where 0.0 = fully transparent, 1.0 = opaque |
| viewID | The unique identifier of the mesh |
| viewport | The viewport ID (default: 0) |
References getActorById(), getCurrentRenderer(), CVLog::PrintVerbose(), and CVLog::Warning().
| void PclUtils::PCLVis::setMeshRenderingMode | ( | MESH_RENDERING_MODE | mode, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References ECV_POINTS_MODE, ECV_SURFACE_MODE, ECV_WIREFRAME_MODE, getActorById(), and CVLog::Warning().
| void PclUtils::PCLVis::setMeshShadingMode | ( | SHADING_MODE | mode, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References ECV_SHADING_FLAT, ECV_SHADING_GOURAUD, ECV_SHADING_PHONG, getActorById(), normals, and CVLog::Warning().
Referenced by updateShadingMode().
| void PclUtils::PCLVis::setModelViewMatrix | ( | const ccGLMatrixd & | viewMat, |
| int | viewport = 0 |
||
| ) |
References ccGLMatrixTpl< T >::data(), and getVtkCamera().
| void PclUtils::PCLVis::setOrthoProjection | ( | int | viewport = 0 | ) |
References getCurrentRenderer(), getVtkCamera(), and UpdateScreen().
| void PclUtils::PCLVis::setParallelScale | ( | double | scale, |
| int | viewport = 0 |
||
| ) |
References getVtkCamera().
| void PclUtils::PCLVis::setPerspectiveProjection | ( | int | viewport = 0 | ) |
References getCurrentRenderer(), getVtkCamera(), and UpdateScreen().
| void PclUtils::PCLVis::setPointCloudOpacity | ( | double | opacity, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
| void PclUtils::PCLVis::setPointCloudUniqueColor | ( | double | r, |
| double | g, | ||
| double | b, | ||
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Referenced by updateNormals().
|
inline |
| void PclUtils::PCLVis::setPointSize | ( | const unsigned char | pointSize, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
References size.
| void PclUtils::PCLVis::setRotationFactor | ( | double | factor | ) |
References ThreeDInteractorStyle, and TwoDInteractorStyle.
Referenced by EditCameraTool::UpdateCamera().
| void PclUtils::PCLVis::setScalarFieldName | ( | const std::string & | viewID, |
| const std::string & | scalarName, | ||
| int | viewport = 0 |
||
| ) |
References CVLog::PrintDebug().
| void PclUtils::PCLVis::setShapeOpacity | ( | double | opacity, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
| void PclUtils::PCLVis::setShapeShadingMode | ( | SHADING_MODE | mode, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
| void PclUtils::PCLVis::setShapeUniqueColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
| void PclUtils::PCLVis::setupInteractor | ( | vtkRenderWindowInteractor * | iren, |
| vtkRenderWindow * | win | ||
| ) |
setupInteractor override to init interactor_
| iren | |
| win |
| void PclUtils::PCLVis::showOrientationMarkerWidgetAxes | ( | vtkRenderWindowInteractor * | interactor | ) |
References PclTools::CreateCoordinate(), m_axes_widget, and CVLog::PrintVerbose().
Referenced by showPclMarkerAxes().
| void PclUtils::PCLVis::showPclMarkerAxes | ( | vtkRenderWindowInteractor * | interactor = nullptr | ) |
References CVLog::PrintVerbose(), and showOrientationMarkerWidgetAxes().
| void PclUtils::PCLVis::syncAllScalarFieldsToVTK | ( | const std::string & | viewID, |
| ccPointCloud * | cloud, | ||
| int | viewport = 0 |
||
| ) |
Sync ALL scalar fields from ccPointCloud to VTK polydata.
This method ensures all scalar fields in the ccPointCloud are available in the VTK polydata for selection/extraction operations.
| viewID | The cloud ID |
| cloud | The ccPointCloud containing scalar fields |
| viewport | Viewport ID |
References addScalarFieldToVTK(), cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields(), and CVLog::PrintDebug().
Referenced by setCurrentSourceObject().
| void PclUtils::PCLVis::synchronizeGeometryBounds | ( | int | viewport = 0 | ) |
Synchronizes bounds information on all nodes.
References GeometryBounds, getCurrentRenderer(), m_centerAxes, and updateCenterAxes().
Referenced by getReasonableClippingRange(), resetCameraClippingRange(), and resetCenterOfRotation().
|
inline |
| void PclUtils::PCLVis::toggleAreaPicking | ( | ) |
References isAreaPickingEnabled(), setAreaPickingEnabled(), and ThreeDInteractorStyle.
Referenced by PclAnnotationTool::toggleInteractor().
| void PclUtils::PCLVis::ToggleCameraOrientationWidget | ( | bool | show | ) |
Toggle Camera Orientation Widget visibility (ParaView-style)
The Camera Orientation Widget provides an interactive 3D gizmo for controlling camera orientation. Uses vtkCameraOrientationWidget.
| show | true to show, false to hide |
References getCurrentRenderer(), getRenderWindowInteractor(), m_cameraOrientationWidget, CVLog::PrintDebug(), CVLog::PrintVerbose(), and CVLog::Warning().
| void PclUtils::PCLVis::toggleOrientationMarkerWidgetAxes | ( | ) |
References m_axes_widget, and CVLog::Warning().
|
inline |
| void PclUtils::PCLVis::transformEntities | ( | const CC_DRAW_CONTEXT & | context | ) |
References context, Vector3Tpl< double >::fromArray(), CVTools::FromQString(), getActorById(), getTransformation(), origin, and position.
| bool PclUtils::PCLVis::updateCaption | ( | const std::string & | text, |
| const CCVector2 & | pos2D, | ||
| const CCVector3 & | anchorPos, | ||
| double | r, | ||
| double | g, | ||
| double | b, | ||
| double | a, | ||
| int | fontSize = 10, |
||
| const std::string & | viewID = "caption", |
||
| int | viewport = 0 |
||
| ) |
References a, Vector3Tpl< double >::fromArray(), getWidgetById(), and Tuple3Tpl< Type >::u.
|
virtual |
updateCenterAxes(). updates CenterAxes's scale and position.
References GeometryBounds, and m_centerAxes.
Referenced by synchronizeGeometryBounds().
| void PclUtils::PCLVis::updateNormals | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLCloud::Ptr & | smCloud | ||
| ) |
References context, FROM_PCL_CLOUD, CVTools::FromQString(), normalScale, setPointCloudUniqueColor(), and updateShadingMode().
| bool PclUtils::PCLVis::updateScalarBar | ( | const CC_DRAW_CONTEXT & | context | ) |
References context, CVTools::FromQString(), getWidgetById(), and PclTools::UpdateScalarBar().
Referenced by addScalarBar().
| void PclUtils::PCLVis::UpdateScreen | ( | ) |
UpdateScreen - Updates/refreshes the render window This method forces a render update after actor changes.
Referenced by setCameraViewAngle(), cvSelectionPropertiesWidget::setHighlighter(), setOrthoProjection(), setPerspectiveProjection(), and EditCameraTool::UpdateCamera().
| void PclUtils::PCLVis::updateShadingMode | ( | const CC_DRAW_CONTEXT & | context, |
| PCLCloud & | smCloud | ||
| ) |
References color, colors, context, ECV_SHADING_FLAT, ECV_SHADING_PHONG, CVLog::Error(), FROM_PCL_CLOUD, CVTools::FromQString(), getActorById(), normal, normals, CVLog::PrintDebug(), and setMeshShadingMode().
Referenced by draw(), and updateNormals().
| bool PclUtils::PCLVis::updateTexture | ( | const CC_DRAW_CONTEXT & | context, |
| const ccMaterialSet * | materials | ||
| ) |
References context, CVTools::FromQString(), getActorById(), getCurrentRenderer(), CVLog::PrintDebug(), and CVLog::Warning().
| void PclUtils::PCLVis::zoomCamera | ( | double | zoomFactor, |
| int | viewport = 0 |
||
| ) |
In perspective mode, decrease the view angle by the specified factor. In parallel mode, decrease the parallel scale by the specified factor. A value greater than 1 is a zoom-in, a value less than 1 is a zoom-out.
References getVtkCamera().
|
protected |
|
protected |
|
protected |
Referenced by pickItem(), and setAreaPickingMode().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by IsCameraOrientationWidgetShown(), ToggleCameraOrientationWidget(), and ~PCLVis().
|
protected |
|
protected |
|
protected |
Referenced by setAreaPickingMode().
|
protected |
Referenced by GetDataAxesGridProperties(), RemoveDataAxesGrid(), SetDataAxesGridProperties(), and ~PCLVis().
|
protected |
Referenced by configInteractorStyle().
|
protected |
Referenced by getLightIntensity(), and setLightIntensity().
|
protected |
Referenced by setAreaPickingMode().
|
protected |
|
protected |
Internal list with actor pointers and name IDs for props.
|
protected |
Referenced by pickActor().
|
protected |
|
protected |
Referenced by getSourceObject(), hasSourceObject(), removeSourceObject(), and setCurrentSourceObject().
|
protected |
Internal list with actor pointers and name IDs for widgets.
|
protected |
|
protected |