![]() |
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.
Definition at line 132 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 160 of file PCLVis.cpp.
References configCenterAxes(), and configInteractorStyle().
|
virtual |
Definition at line 195 of file PCLVis.cpp.
References getCurrentRenderer(), isActorPickingEnabled(), isAreaPickingEnabled(), isPointPickingEnabled(), m_cameraOrientationWidget, m_centerAxes, m_dataAxesGridMap, removeActorFromRenderer(), setActorPickingEnabled(), setAreaPickingEnabled(), and setPointPickingEnabled().
| void PclUtils::PCLVis::addActorToRenderer | ( | const vtkSmartPointer< vtkProp > & | actor, |
| int | viewport = 0 |
||
| ) |
Definition at line 3137 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 1353 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 1940 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 2021 of file PCLVis.cpp.
References addActorToRenderer(), color, PclTools::CreateActorFromVTKDataSet(), cloudViewer::geometry::LineSet::CreateFromOrientedBoundingBox(), PclTools::CreatePolyDataFromLineSet(), data, CVLog::Error(), and cloudViewer::OrientedBoundingBox::GetColor().
| 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 |
||
| ) |
Definition at line 1980 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 1461 of file PCLVis.cpp.
References addActorToRenderer(), PclTools::CreateActorFromVTKDataSet(), PclTools::CreateLine(), data, size, CVLog::Warning(), and width.
Referenced by draw().
| bool PclUtils::PCLVis::addScalarBar | ( | const CC_DRAW_CONTEXT & | context | ) |
Definition at line 1253 of file PCLVis.cpp.
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 |
Definition at line 2249 of file PCLVis.cpp.
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)
Definition at line 1578 of file PCLVis.cpp.
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) |
Definition at line 1837 of file PCLVis.cpp.
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 | ( | ) |
Definition at line 233 of file PCLVis.cpp.
References addActorToRenderer(), m_centerAxes, and VTKExtensions::vtkPVCenterAxesActor::New().
Referenced by PCLVis().
| void PclUtils::PCLVis::configInteractorStyle | ( | vtkSmartPointer< VTKExtensions::vtkCustomInteractorStyle > | interactor_style | ) |
Definition at line 241 of file PCLVis.cpp.
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 |
Definition at line 600 of file PCLVis.h.
Referenced by addCaption(), and addScalarBar().
| void PclUtils::PCLVis::displayText | ( | const CC_DRAW_CONTEXT & | context | ) |
Definition at line 1509 of file PCLVis.cpp.
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 | ||
| ) |
Definition at line 937 of file PCLVis.cpp.
References addActorToRenderer(), CV_TYPES::CAMERA_SENSOR, context, PclTools::CreateActorFromVTKDataSet(), PclTools::CreateCameraSensor(), PclTools::CreateGBLSensor(), CVLog::Error(), CVTools::FromQString(), CV_TYPES::GBL_SENSOR, and ccObject::isA().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const cloudViewer::geometry::LineSet * | lineset | ||
| ) |
Definition at line 986 of file PCLVis.cpp.
References addActorToRenderer(), context, PclTools::CreateActorFromVTKDataSet(), PclTools::CreatePolyDataFromLineSet(), and CVTools::FromQString().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLCloud::Ptr & | smCloud | ||
| ) |
Definition at line 846 of file PCLVis.cpp.
References ecvColor::RgbTpl< Type >::b, context, FROM_PCL_CLOUD, CVTools::FromQString(), ecvColor::RgbTpl< Type >::g, ecvColor::RgbTpl< Type >::r, and updateShadingMode().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLMesh::Ptr & | pclMesh | ||
| ) |
Definition at line 885 of file PCLVis.cpp.
References context, CVTools::FromQString(), and updateShadingMode().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLPolygon::Ptr & | pclPolygon, | ||
| bool | closed | ||
| ) |
Definition at line 917 of file PCLVis.cpp.
References addPolyline(), context, CVTools::FromQString(), and ecvColor::RgbTpl< Type >::ToEigen().
| void PclUtils::PCLVis::draw | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLTextureMesh::Ptr & | textureMesh | ||
| ) |
Definition at line 907 of file PCLVis.cpp.
References addTextureMesh(), context, and CVTools::FromQString().
| void PclUtils::PCLVis::exitCallbackProcess | ( | ) |
Definition at line 2852 of file PCLVis.cpp.
References getPCLInteractorStyle().
|
static |
Definition at line 329 of file PCLVis.cpp.
References CVLog::Warning().
| void PclUtils::PCLVis::expandBounds | ( | double | bounds[6], |
| vtkMatrix4x4 * | matrix | ||
| ) |
Definition at line 776 of file PCLVis.cpp.
References CVLog::Error().
Referenced by getReasonableClippingRange().
|
inline |
|
inline |
Definition at line 619 of file PCLVis.h.
Referenced by rotateWithAxis().
| vtkActor * PclUtils::PCLVis::getActorById | ( | const std::string & | viewId | ) |
Definition at line 3022 of file PCLVis.cpp.
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().
| pcl::visualization::Camera PclUtils::PCLVis::getCamera | ( | int | viewport = 0 | ) |
Definition at line 2722 of file PCLVis.cpp.
References getRenderWindowInteractor(), getVtkCamera(), and M_PI.
| double PclUtils::PCLVis::getCameraFocalDistance | ( | int | viewport = 0 | ) |
Definition at line 586 of file PCLVis.cpp.
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) |
Definition at line 1317 of file PCLVis.cpp.
References getWidgetById().
| void PclUtils::PCLVis::getCenterOfRotation | ( | double | center[3] | ) |
Get the current center of rotation
Definition at line 323 of file PCLVis.cpp.
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.
Definition at line 2924 of file PCLVis.cpp.
Referenced by addTextureMesh(), addTextureMeshFromCCMesh(), cvSelectionBase::getAllPolyDataFromVisualizer(), cvSelectionBase::getDataActors(), getGLDepth(), getProjectionTransformMatrix(), getReasonableClippingRange(), getVtkCamera(), cvGenericMeasurementTool::initModel(), RemoveDataAxesGrid(), resetCameraClippingRange(), rotateWithAxis(), SetDataAxesGridProperties(), setLightIntensity(), setMeshOpacity(), setOrthoProjection(), setPerspectiveProjection(), cvGenericMeasurementTool::setUpViewer(), cvRenderViewSelectionReaction::setVisualizer(), cvSelectionPipeline::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 |
Definition at line 3811 of file PCLVis.cpp.
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 | ||
| ) |
Definition at line 571 of file PCLVis.cpp.
References getCurrentRenderer(), and getVtkCamera().
| std::string PclUtils::PCLVis::getIdByActor | ( | vtkProp * | actor | ) |
Definition at line 3079 of file PCLVis.cpp.
Referenced by cvRenderViewSelectionReaction::finalizeSelection(), and pickItem().
| double PclUtils::PCLVis::getLightIntensity | ( | ) | const |
Get current global light intensity.
Definition at line 3547 of file PCLVis.cpp.
References m_lightIntensity.
| void PclUtils::PCLVis::getModelViewTransformMatrix | ( | Eigen::Matrix4d & | view | ) |
Definition at line 615 of file PCLVis.cpp.
References getVtkCamera().
| double PclUtils::PCLVis::getParallelScale | ( | int | viewport = 0 | ) |
Definition at line 2790 of file PCLVis.cpp.
References getVtkCamera().
Referenced by getReasonableClippingRange().
| vtkSmartPointer< pcl::visualization::PCLVisualizerInteractorStyle > PclUtils::PCLVis::getPCLInteractorStyle | ( | ) |
Definition at line 2953 of file PCLVis.cpp.
Referenced by exitCallbackProcess().
| bool PclUtils::PCLVis::getPerspectiveState | ( | int | viewport = 0 | ) |
Definition at line 2814 of file PCLVis.cpp.
References getVtkCamera().
| void PclUtils::PCLVis::getProjectionTransformMatrix | ( | Eigen::Matrix4d & | proj | ) |
Definition at line 608 of file PCLVis.cpp.
References getCurrentRenderer(), and getVtkCamera().
|
inline |
| vtkProp * PclUtils::PCLVis::getPropById | ( | const std::string & | viewId | ) |
Definition at line 2957 of file PCLVis.cpp.
References CVLog::Error().
Referenced by getPropCollectionById().
| vtkSmartPointer< vtkPropCollection > PclUtils::PCLVis::getPropCollectionById | ( | const std::string & | viewId | ) |
Definition at line 3009 of file PCLVis.cpp.
References getPropById().
| void PclUtils::PCLVis::getReasonableClippingRange | ( | double | range[2], |
| int | viewport = 0 |
||
| ) |
Definition at line 664 of file PCLVis.cpp.
References a, e, expandBounds(), GeometryBounds, getCurrentRenderer(), getParallelScale(), getVtkCamera(), position, synchronizeGeometryBounds(), and CVLog::Warning().
|
inline |
Get a pointer to the current interactor style used.
Definition at line 148 of file PCLVis.h.
Referenced by addCaption(), addScalarBar(), PclAnnotationTool::areaPickingEventProcess(), PclFiltersTool::areaPickingEventProcess(), getCamera(), PclAnnotationTool::initialize(), PclAnnotationTool::pickedEventProcess(), pickItem(), rotateWithAxis(), cvGenericFilter::setUpViewer(), cvRenderViewSelectionReaction::setVisualizer(), PclMeasurementTools::setVisualizer(), PclMeasurementTools::start(), PclTransformTool::start(), and ToggleCameraOrientationWidget().
| double PclUtils::PCLVis::getRotationFactor | ( | ) |
Definition at line 409 of file PCLVis.cpp.
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 |
Definition at line 2433 of file PCLVis.cpp.
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 |
Definition at line 2443 of file PCLVis.cpp.
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 |
Definition at line 2425 of file PCLVis.cpp.
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 | ||
| ) |
Definition at line 1031 of file PCLVis.cpp.
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 | ) |
Definition at line 2772 of file PCLVis.cpp.
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.
Definition at line 606 of file PCLVis.h.
Referenced by getWidgetById(), and hideShowWidgets().
| vtkAbstractWidget * PclUtils::PCLVis::getWidgetById | ( | const std::string & | viewId | ) |
Definition at line 3072 of file PCLVis.cpp.
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 |
Definition at line 2453 of file PCLVis.cpp.
References m_sourceObjectMap.
| void PclUtils::PCLVis::hideOrientationMarkerWidgetAxes | ( | ) |
Definition at line 2874 of file PCLVis.cpp.
References m_axes_widget, and CVLog::Warning().
Referenced by hidePclMarkerAxes().
| void PclUtils::PCLVis::hidePclMarkerAxes | ( | ) |
Marker Axes.
Definition at line 2864 of file PCLVis.cpp.
References hideOrientationMarkerWidgetAxes(), and CVLog::PrintVerbose().
| void PclUtils::PCLVis::hideShowActors | ( | bool | visibility, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2061 of file PCLVis.cpp.
References getActorById().
| void PclUtils::PCLVis::hideShowWidgets | ( | bool | visibility, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2073 of file PCLVis.cpp.
References getWidgetActorMap().
| void PclUtils::PCLVis::initialize | ( | ) |
Definition at line 254 of file PCLVis.cpp.
|
signal |
|
inline |
|
inline |
|
inline |
Definition at line 675 of file PCLVis.h.
Referenced by toggleAreaPicking(), and ~PCLVis().
| bool PclUtils::PCLVis::IsCameraOrientationWidgetShown | ( | ) | const |
Check if Camera Orientation Widget is shown.
Definition at line 3952 of file PCLVis.cpp.
References m_cameraOrientationWidget.
|
inline |
Definition at line 667 of file PCLVis.h.
Referenced by cvRenderViewSelectionReaction::endSelection(), and ~PCLVis().
| bool PclUtils::PCLVis::pclMarkerAxesShown | ( | ) |
Definition at line 2870 of file PCLVis.cpp.
References m_axes_widget.
| vtkActor * PclUtils::PCLVis::pickActor | ( | double | x, |
| double | y | ||
| ) |
Definition at line 3323 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 3332 of file PCLVis.cpp.
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) |
Definition at line 3105 of file PCLVis.cpp.
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 |
Definition at line 3961 of file PCLVis.cpp.
References getCurrentRenderer(), and m_dataAxesGridMap.
| bool PclUtils::PCLVis::removeEntities | ( | const CC_DRAW_CONTEXT & | context | ) |
Definition at line 2085 of file PCLVis.cpp.
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 |
Definition at line 2421 of file PCLVis.cpp.
References m_sourceObjectMap.
| QImage PclUtils::PCLVis::renderToImage | ( | int | zoomFactor = 1, |
| bool | renderOverlayItems = false, |
||
| bool | silent = false, |
||
| int | viewport = 0 |
||
| ) |
Definition at line 3351 of file PCLVis.cpp.
References ecvDisplayTools::DisplayOverlayEntities(), CVLog::Error(), height, ecvDisplayTools::OrientationMarkerShown(), ecvDisplayTools::OverlayEntitiesAreDisplayed(), ecvDisplayTools::ToggleOrientationMarker(), and width.
|
inline |
Definition at line 263 of file PCLVis.h.
Referenced by resetCamera().
| void PclUtils::PCLVis::resetCamera | ( | const ccBBox * | bbox | ) |
Definition at line 621 of file PCLVis.cpp.
References cloudViewer::BoundingBoxTpl< T >::getBounds(), and resetCamera().
|
inline |
| void PclUtils::PCLVis::resetCamera | ( | double | xMin, |
| double | xMax, | ||
| double | yMin, | ||
| double | yMax, | ||
| double | zMin, | ||
| double | zMax | ||
| ) |
Definition at line 649 of file PCLVis.cpp.
| 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.
Definition at line 628 of file PCLVis.cpp.
References GeometryBounds, getCurrentRenderer(), and synchronizeGeometryBounds().
Referenced by setCameraViewAngle().
| void PclUtils::PCLVis::resetCenterOfRotation | ( | int | viewport = 0 | ) |
Resets the center of rotation to the focal point.
Definition at line 380 of file PCLVis.cpp.
References GeometryBounds, setCenterOfRotation(), and synchronizeGeometryBounds().
| void PclUtils::PCLVis::resetScalarColor | ( | const std::string & | viewID, |
| bool | flag = true, |
||
| int | viewport = 0 |
||
| ) |
Definition at line 2214 of file PCLVis.cpp.
References getActorById().
| void PclUtils::PCLVis::rotateWithAxis | ( | const CCVector2i & | pos, |
| const CCVector3d & | axis, | ||
| double | angle, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 261 of file PCLVis.cpp.
References get3DInteractorStyle(), getCurrentRenderer(), getRenderWindowInteractor(), Vector2Tpl< Type >::x, and Vector2Tpl< Type >::y.
|
inline |
Definition at line 681 of file PCLVis.h.
Referenced by PclAnnotationTool::start(), PclAnnotationTool::stop(), and ~PCLVis().
|
inline |
Definition at line 676 of file PCLVis.h.
Referenced by PclAnnotationTool::start(), PclAnnotationTool::stop(), toggleAreaPicking(), and ~PCLVis().
| void PclUtils::PCLVis::setAreaPickingMode | ( | bool | state | ) |
Definition at line 2822 of file PCLVis.cpp.
References m_area_picker, m_currentMode, m_point_picker, ORIENT_MODE, and SELECT_MODE.
|
inline |
|
virtual |
Definition at line 418 of file PCLVis.cpp.
References setCameraManipulators(), and TwoDInteractorStyle.
|
virtual |
Definition at line 488 of file PCLVis.cpp.
References TwoDInteractorStyle.
|
virtual |
Definition at line 423 of file PCLVis.cpp.
References setCameraManipulators(), and ThreeDInteractorStyle.
|
virtual |
Definition at line 495 of file PCLVis.cpp.
References ThreeDInteractorStyle.
| void PclUtils::PCLVis::setCameraFocalDistance | ( | double | focal_distance, |
| int | viewport = 0 |
||
| ) |
Definition at line 590 of file PCLVis.cpp.
References getVtkCamera().
| void PclUtils::PCLVis::setCameraManipulators | ( | VTKExtensions::vtkCustomInteractorStyle * | style, |
| const int | manipulators[9] | ||
| ) |
Definition at line 428 of file PCLVis.cpp.
References VTKExtensions::vtkCustomInteractorStyle::AddManipulator(), VTKExtensions::vtkCustomInteractorStyle::RemoveAllManipulators(), and ROTATE.
Referenced by setCamera2DManipulators(), and setCamera3DManipulators().
| void PclUtils::PCLVis::setCameraViewAngle | ( | double | viewAngle, |
| int | viewport = 0 |
||
| ) |
Definition at line 827 of file PCLVis.cpp.
References resetCameraClippingRange(), and UpdateScreen().
| void PclUtils::PCLVis::setCenterAxesVisibility | ( | bool | v | ) |
Definition at line 565 of file PCLVis.cpp.
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
Definition at line 389 of file PCLVis.cpp.
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 |
Definition at line 2400 of file PCLVis.cpp.
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 |
Definition at line 3553 of file PCLVis.cpp.
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) |
Definition at line 3448 of file PCLVis.cpp.
References getCurrentRenderer(), ecvColor::light(), m_lightIntensity, and CVLog::Warning().
| void PclUtils::PCLVis::setLightMode | ( | const std::string & | viewID, |
| int | viewport = 0 |
||
| ) |
Definition at line 2699 of file PCLVis.cpp.
References getActorById().
| void PclUtils::PCLVis::setLineWidth | ( | const unsigned char | lineWidth, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2708 of file PCLVis.cpp.
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) |
Definition at line 2541 of file PCLVis.cpp.
References getActorById(), getCurrentRenderer(), CVLog::PrintVerbose(), and CVLog::Warning().
| void PclUtils::PCLVis::setMeshRenderingMode | ( | MESH_RENDERING_MODE | mode, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2672 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 2617 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 2776 of file PCLVis.cpp.
References ccGLMatrixTpl< T >::data(), and getVtkCamera().
| void PclUtils::PCLVis::setOrthoProjection | ( | int | viewport = 0 | ) |
Definition at line 2794 of file PCLVis.cpp.
References getCurrentRenderer(), getVtkCamera(), and UpdateScreen().
| void PclUtils::PCLVis::setParallelScale | ( | double | scale, |
| int | viewport = 0 |
||
| ) |
Definition at line 2781 of file PCLVis.cpp.
References getVtkCamera().
| void PclUtils::PCLVis::setPerspectiveProjection | ( | int | viewport = 0 | ) |
Definition at line 2804 of file PCLVis.cpp.
References getCurrentRenderer(), getVtkCamera(), and UpdateScreen().
| void PclUtils::PCLVis::setPointCloudOpacity | ( | double | opacity, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2514 of file PCLVis.cpp.
| void PclUtils::PCLVis::setPointCloudUniqueColor | ( | double | r, |
| double | g, | ||
| double | b, | ||
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2205 of file PCLVis.cpp.
Referenced by updateNormals().
|
inline |
Definition at line 668 of file PCLVis.h.
Referenced by cvRenderViewSelectionReaction::endSelection(), PclAnnotationTool::start(), PclAnnotationTool::stop(), and ~PCLVis().
| void PclUtils::PCLVis::setPointSize | ( | const unsigned char | pointSize, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2237 of file PCLVis.cpp.
References size.
| void PclUtils::PCLVis::setRotationFactor | ( | double | factor | ) |
Definition at line 400 of file PCLVis.cpp.
References ThreeDInteractorStyle, and TwoDInteractorStyle.
Referenced by EditCameraTool::UpdateCamera().
| void PclUtils::PCLVis::setScalarFieldName | ( | const std::string & | viewID, |
| const std::string & | scalarName, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2457 of file PCLVis.cpp.
References CVLog::PrintDebug().
| void PclUtils::PCLVis::setShapeOpacity | ( | double | opacity, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2531 of file PCLVis.cpp.
| void PclUtils::PCLVis::setShapeShadingMode | ( | SHADING_MODE | mode, |
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2607 of file PCLVis.cpp.
| void PclUtils::PCLVis::setShapeUniqueColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| const std::string & | viewID, | ||
| int | viewport = 0 |
||
| ) |
Definition at line 2229 of file PCLVis.cpp.
| void PclUtils::PCLVis::setupInteractor | ( | vtkRenderWindowInteractor * | iren, |
| vtkRenderWindow * | win | ||
| ) |
setupInteractor override to init interactor_
| iren | |
| win |
Definition at line 3164 of file PCLVis.cpp.
| void PclUtils::PCLVis::showOrientationMarkerWidgetAxes | ( | vtkRenderWindowInteractor * | interactor | ) |
Definition at line 2889 of file PCLVis.cpp.
References PclTools::CreateCoordinate(), m_axes_widget, and CVLog::PrintVerbose().
Referenced by showPclMarkerAxes().
| void PclUtils::PCLVis::showPclMarkerAxes | ( | vtkRenderWindowInteractor * | interactor = nullptr | ) |
Definition at line 2858 of file PCLVis.cpp.
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 |
Definition at line 2377 of file PCLVis.cpp.
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.
Definition at line 525 of file PCLVis.cpp.
References GeometryBounds, getCurrentRenderer(), m_centerAxes, and updateCenterAxes().
Referenced by getReasonableClippingRange(), resetCameraClippingRange(), and resetCenterOfRotation().
| void PclUtils::PCLVis::toggleAreaPicking | ( | ) |
Definition at line 2845 of file PCLVis.cpp.
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 |
Definition at line 3872 of file PCLVis.cpp.
References getCurrentRenderer(), getRenderWindowInteractor(), m_cameraOrientationWidget, CVLog::PrintDebug(), CVLog::PrintVerbose(), and CVLog::Warning().
| void PclUtils::PCLVis::toggleOrientationMarkerWidgetAxes | ( | ) |
Definition at line 2907 of file PCLVis.cpp.
References m_axes_widget, and CVLog::Warning().
| void PclUtils::PCLVis::transformEntities | ( | const CC_DRAW_CONTEXT & | context | ) |
Definition at line 1011 of file PCLVis.cpp.
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 |
||
| ) |
Definition at line 1276 of file PCLVis.cpp.
References a, Vector3Tpl< double >::fromArray(), getWidgetById(), and Tuple3Tpl< Type >::u.
|
virtual |
updateCenterAxes(). updates CenterAxes's scale and position.
Definition at line 502 of file PCLVis.cpp.
References GeometryBounds, and m_centerAxes.
Referenced by synchronizeGeometryBounds().
| void PclUtils::PCLVis::updateNormals | ( | const CC_DRAW_CONTEXT & | context, |
| const PCLCloud::Ptr & | smCloud | ||
| ) |
Definition at line 1074 of file PCLVis.cpp.
References context, FROM_PCL_CLOUD, CVTools::FromQString(), normalScale, setPointCloudUniqueColor(), and updateShadingMode().
| bool PclUtils::PCLVis::updateScalarBar | ( | const CC_DRAW_CONTEXT & | context | ) |
Definition at line 1241 of file PCLVis.cpp.
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.
Definition at line 3156 of file PCLVis.cpp.
Referenced by setCameraViewAngle(), cvSelectionPropertiesWidget::setHighlighter(), setOrthoProjection(), setPerspectiveProjection(), and EditCameraTool::UpdateCamera().
| void PclUtils::PCLVis::updateShadingMode | ( | const CC_DRAW_CONTEXT & | context, |
| PCLCloud & | smCloud | ||
| ) |
Definition at line 1110 of file PCLVis.cpp.
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 | ||
| ) |
Definition at line 1542 of file PCLVis.cpp.
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.
Definition at line 599 of file PCLVis.cpp.
References getVtkCamera().
|
protected |
Definition at line 630 of file PCLVis.h.
Referenced by getReasonableClippingRange(), resetCameraClippingRange(), resetCenterOfRotation(), synchronizeGeometryBounds(), and updateCenterAxes().
|
protected |
Definition at line 786 of file PCLVis.h.
Referenced by pickItem(), and setAreaPickingMode().
|
protected |
Definition at line 784 of file PCLVis.h.
Referenced by hideOrientationMarkerWidgetAxes(), pclMarkerAxesShown(), showOrientationMarkerWidgetAxes(), and toggleOrientationMarkerWidgetAxes().
|
protected |
Definition at line 805 of file PCLVis.h.
Referenced by IsCameraOrientationWidgetShown(), ToggleCameraOrientationWidget(), and ~PCLVis().
|
protected |
Definition at line 631 of file PCLVis.h.
Referenced by configCenterAxes(), setCenterAxesVisibility(), setCenterOfRotation(), synchronizeGeometryBounds(), updateCenterAxes(), and ~PCLVis().
|
protected |
Definition at line 704 of file PCLVis.h.
Referenced by setAreaPickingMode().
|
protected |
Definition at line 802 of file PCLVis.h.
Referenced by GetDataAxesGridProperties(), RemoveDataAxesGrid(), SetDataAxesGridProperties(), and ~PCLVis().
|
protected |
Definition at line 637 of file PCLVis.h.
Referenced by configInteractorStyle().
|
protected |
Definition at line 797 of file PCLVis.h.
Referenced by getLightIntensity(), and setLightIntensity().
|
protected |
Definition at line 785 of file PCLVis.h.
Referenced by setAreaPickingMode().
|
protected |
|
protected |
Definition at line 787 of file PCLVis.h.
Referenced by pickActor().
|
protected |
|
protected |
Definition at line 794 of file PCLVis.h.
Referenced by getSourceObject(), hasSourceObject(), removeSourceObject(), and setCurrentSourceObject().
|
protected |
|
protected |
Definition at line 635 of file PCLVis.h.
Referenced by configInteractorStyle(), getCenterOfRotation(), getRotationFactor(), setCamera3DManipulators(), setCamera3DMouseWheelMotionFactor(), setCenterOfRotation(), setRotationFactor(), and toggleAreaPicking().
|
protected |
Definition at line 633 of file PCLVis.h.
Referenced by configInteractorStyle(), setCamera2DManipulators(), setCamera2DMouseWheelMotionFactor(), setCenterOfRotation(), and setRotationFactor().