![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ecvDisplayTools.h>
Classes | |
| struct | CaptureModeOptions |
| Display capturing mode options. More... | |
| struct | ClickableItem |
| Clickable item. More... | |
| struct | HotZone |
| Precomputed stuff for the 'hot zone'. More... | |
| struct | MessageToDisplay |
| Temporary Message to display in the lower-left corner. More... | |
| struct | PickingParameters |
| Picking parameters. More... | |
| struct | ProjectionMetrics |
| Optional output metrics (from computeProjectionMatrix) More... | |
Public Slots | |
| void | onItemPickedFast (ccHObject *pickedEntity, int pickedItemIndex, int x, int y) |
| Reacts to the itemPickedFast signal. More... | |
| void | onPointPicking (const CCVector3 &p, int index, const std::string &id) |
| void | checkScheduledRedraw () |
| Checks for scheduled redraw. More... | |
| void | doPicking () |
| void | onWheelEvent (float wheelDelta_deg) |
Signals | |
| void | entitySelectionChanged (ccHObject *entity) |
| Signal emitted when an entity is selected in the 3D view. More... | |
| void | entitiesSelectionChanged (std::unordered_set< int > entIDs) |
| Signal emitted when multiple entities are selected in the 3D view. More... | |
| void | itemPicked (ccHObject *entity, unsigned subEntityID, int x, int y, const CCVector3 &P) |
| Signal emitted when a point (or a triangle) is picked. More... | |
| void | itemPickedFast (ccHObject *entity, int subEntityID, int x, int y) |
| Signal emitted when an item is picked (FAST_PICKING mode only) More... | |
| void | fastPickingFinished () |
| Signal emitted when fast picking is finished (FAST_PICKING mode only) More... | |
| void | viewMatRotated (const ccGLMatrixd &rotMat) |
| void | cameraDisplaced (float ddx, float ddy) |
| Signal emitted when the camera is interactively displaced. More... | |
| void | mouseWheelRotated (float wheelDelta_deg) |
| Signal emitted when the mouse wheel is rotated. More... | |
| void | mouseWheelChanged (QWheelEvent *event) |
| void | perspectiveStateChanged () |
| void | baseViewMatChanged (const ccGLMatrixd &newViewMat) |
| Signal emitted when the window 'base view' matrix is changed. More... | |
| void | pixelSizeChanged (float pixelSize) |
| Signal emitted when the pixel size is changed. More... | |
| void | fovChanged (float fov) |
| Signal emitted when the f.o.v. changes. More... | |
| void | zNearCoefChanged (float coef) |
| Signal emitted when the zNear coef changes. More... | |
| void | pivotPointChanged (const CCVector3d &) |
| Signal emitted when the pivot point is changed. More... | |
| void | cameraPosChanged (const CCVector3d &) |
| Signal emitted when the camera position is changed. More... | |
| void | translation (const CCVector3d &t) |
| Signal emitted when the selected object is translated by the user. More... | |
| void | rotation (const ccGLMatrixd &rotMat) |
| Signal emitted when the selected object is rotated by the user. More... | |
| void | leftButtonClicked (int x, int y) |
| Signal emitted when the left mouse button is cliked on the window. More... | |
| void | rightButtonClicked (int x, int y) |
| Signal emitted when the right mouse button is cliked on the window. More... | |
| void | doubleButtonClicked (int x, int y) |
| Signal emitted when the double mouse button is cliked on the window. More... | |
| void | mouseMoved (int x, int y, Qt::MouseButtons buttons) |
| Signal emitted when the mouse is moved. More... | |
| void | buttonReleased () |
| Signal emitted when a mouse button is released (cursor on the window) More... | |
| void | drawing3D () |
| Signal emitted during 3D pass of OpenGL display process. More... | |
| void | filesDropped (const QStringList &filenames, bool displayDialog) |
| Signal emitted when files are dropped on the window. More... | |
| void | newLabel (ccHObject *obj) |
| Signal emitted when a new label is created. More... | |
| void | exclusiveFullScreenToggled (bool exclusive) |
| Signal emitted when the exclusive fullscreen is toggled. More... | |
| void | autoPickPivot (bool state) |
| void | labelmove2D (int x, int y, int dx, int dy) |
| void | mousePosChanged (const QPoint &pos) |
| void | pointPicked (double x, double y, double z) |
| void | cameraParamChanged () |
Public Member Functions | |
| virtual | ~ecvDisplayTools () override |
| Destructor. More... | |
| void | scheduleFullRedraw (unsigned maxDelay_ms) |
| Schedules a full redraw. More... | |
| void | cancelScheduledRedraw () |
| Cancels any scheduled redraw. More... | |
| virtual void | displayText (const CC_DRAW_CONTEXT &CONTEXT) |
| virtual void | draw (const CC_DRAW_CONTEXT &context, const ccHObject *obj) |
| virtual void | updateMeshTextures (const CC_DRAW_CONTEXT &context, const ccGenericMesh *mesh) |
| virtual void | drawBBox (const CC_DRAW_CONTEXT &context, const ccBBox *bbox) |
| virtual void | drawOrientedBBox (const CC_DRAW_CONTEXT &context, const ecvOrientedBBox *obb) |
| virtual void | changeEntityProperties (PROPERTY_PARAM &propertyParam) |
| virtual void | drawWidgets (const WIDGETS_PARAMETER ¶m) |
| virtual void | drawCoordinates (double scale=1.0, const std::string &id="reference", int viewport=0) |
| virtual void | rotateWithAxis (const CCVector2i &pos, const CCVector3d &axis, double angle, int viewport=0) |
| virtual void | toggleOrientationMarker (bool state=true) |
| virtual bool | orientationMarkerShown () |
| virtual void | setDataAxesGridProperties (const QString &viewID, const AxesGridProperties &props, int viewport=0) |
| Set Data Axes Grid properties (Virtual interface for derived classes) More... | |
| virtual void | getDataAxesGridProperties (const QString &viewID, AxesGridProperties &props, int viewport=0) const |
| Get Data Axes Grid properties (Virtual interface for derived classes) More... | |
| virtual void | setViewAxesGridVisible (bool visible, int viewport=0) |
| virtual void | setViewAxesGridProperties (bool visible, const CCVector3 &color, double lineWidth, double spacing, int subdivisions, bool showLabels, double opacity, int viewport=0) |
| virtual void | getViewAxesGridProperties (bool &visible, CCVector3 &color, double &lineWidth, double &spacing, int &subdivisions, bool &showLabels, double &opacity, int viewport=0) const |
| Get view axes grid properties. More... | |
| virtual void | setCenterAxesVisible (bool visible, int viewport=0) |
| virtual void | toggleCameraOrientationWidget (bool show) |
| virtual bool | isCameraOrientationWidgetShown () const |
| virtual void | setLightIntensity (double intensity) |
| virtual double | getLightIntensity () const |
| virtual ecvGenericVisualizer3D * | getVisualizer3D () |
| virtual ecvGenericVisualizer2D * | getVisualizer2D () |
| virtual void | transformCameraView (const ccGLMatrixd &viewMat) |
| virtual void | transformCameraProjection (const ccGLMatrixd &projMat) |
| virtual void | setRenderWindowSize (int xw, int yw) |
| virtual void | fullScreen (bool state) |
| virtual void | zoomCamera (double zoomFactor, int viewport=0) |
| virtual double | getCameraFocalDistance (int viewport=0) |
| virtual void | setCameraFocalDistance (double focal_distance, int viewport=0) |
| virtual void | getCameraPos (double *pos, int viewport=0) |
| virtual void | getCameraFocal (double *focal, int viewport=0) |
| virtual void | getCameraUp (double *up, int viewport=0) |
| virtual void | setCameraPosition (const CCVector3d &pos, int viewport=0) |
| virtual void | setCameraPosition (const double *pos, const double *focal, const double *up, int viewport=0) |
| virtual void | setCameraPosition (const double *pos, const double *up, int viewport=0) |
| virtual void | setCameraPosition (double pos_x, double pos_y, double pos_z, double view_x, double view_y, double view_z, double up_x, double up_y, double up_z, int viewport=0) |
| virtual void | getCameraClip (double *clipPlanes, int viewport=0) |
| virtual void | setCameraClip (double znear, double zfar, int viewport=0) |
| virtual void | resetCameraClippingRange (int viewport=0) |
| virtual double | getCameraFovy (int viewport=0) |
| virtual void | setCameraFovy (double fovy, int viewport=0) |
| virtual void | saveScreenshot (const std::string &file) |
| virtual void | saveCameraParameters (const std::string &file) |
| virtual void | loadCameraParameters (const std::string &file) |
| virtual void | showOrientationMarker () |
| virtual void | setOrthoProjection (int viewport=0) |
| virtual void | setPerspectiveProjection (int viewport=0) |
| virtual void | setUseVbos (bool useVbos) |
| virtual void | setLookUpTableID (const std::string &viewID) |
| virtual void | getProjectionMatrix (double *projArray, int viewport=0) |
| virtual void | getViewMatrix (double *viewArray, int viewport=0) |
| virtual void | setViewMatrix (const ccGLMatrixd &viewMat, int viewport=0) |
| virtual bool | hideShowEntities (const CC_DRAW_CONTEXT &CONTEXT) |
| virtual void | removeEntities (const CC_DRAW_CONTEXT &CONTEXT) |
| virtual QString | pick2DLabel (int x, int y) |
| virtual QString | pick3DItem (int x=-1, int y=-1) |
| virtual QString | pickObject (double x=-1, double y=-1) |
| virtual void | setBackgroundColor (const CC_DRAW_CONTEXT &CONTEXT) |
| virtual void | createViewPort (double xmin, double ymin, double xmax, double ymax, int &viewport) |
| virtual void | resetCameraViewpoint (const std::string &viewID) |
| virtual void | toggle2Dviewer (bool state) |
| virtual void | resetCamera (const ccBBox *bbox) |
| virtual void | resetCamera () |
| virtual void | updateCamera () |
| virtual void | updateScene () |
| virtual void | setAutoUpateCameraPos (bool state) |
| virtual void | getCenterOfRotation (double center[3]) |
| virtual void | resetCenterOfRotation (int viewport=0) |
| virtual void | setCenterOfRotation (double x, double y, double z) |
| virtual double | getGLDepth (int x, int y) |
| virtual void | changeOpacity (double opacity, const std::string &viewID, int viewport=0) |
| virtual QImage | renderToImage (int zoomFactor=1, bool renderOverlayItems=false, bool silent=false, int viewport=0) |
| virtual void | setScaleBarVisible (bool visible) |
| virtual void | toggleExclusiveFullScreen (bool state) |
| virtual bool | getPerspectiveState (int viewport=0) const override |
| virtual void | setPivotVisibility (bool state) |
| virtual double | getParallelScale (int viewport=0) |
| virtual void | setParallelScale (double scale, int viewport=0) |
Public Member Functions inherited from ecvGenericDisplayTools | |
| virtual | ~ecvGenericDisplayTools () |
| Default destructor. More... | |
| virtual void | toWorldPoint (const CCVector3d &input2D, CCVector3d &output3D) |
| virtual void | toWorldPoint (const CCVector3 &input2D, CCVector3d &output3D) |
| virtual void | toDisplayPoint (const CCVector3d &input3D, CCVector3d &output2D) |
| virtual void | toDisplayPoint (const CCVector3 &input3D, CCVector3d &output2D) |
Static Public Member Functions | |
| static void | Init (ecvDisplayTools *displayTools, QMainWindow *win, bool stereoMode=false) |
| static ecvDisplayTools * | TheInstance () |
| static void | ReleaseInstance () |
| static INTERACTION_FLAGS | PAN_ONLY () |
| static INTERACTION_FLAGS | TRANSFORM_CAMERA () |
| static INTERACTION_FLAGS | TRANSFORM_ENTITIES () |
| static void | DisplayText (const QString &text, int x, int y, unsigned char align=ALIGN_DEFAULT, float bkgAlpha=0.0f, const unsigned char *rgbColor=nullptr, const QFont *font=nullptr, const QString &id="") |
| Displays a string at a given 2D position. More... | |
| static void | DisplayText (const CC_DRAW_CONTEXT &CONTEXT) |
| static void | Display3DLabel (const QString &str, const CCVector3 &pos3D, const ecvColor::Rgbub *color=nullptr, const QFont &font=QFont()) |
| Displays a string at a given 3D position. More... | |
| static void | SetFocusToScreen () |
| Draws the main 3D layer. More... | |
| static void | ToBeRefreshed () |
| static void | RefreshDisplay (bool only2D=false, bool forceRedraw=true) |
| static void | RedrawDisplay (bool only2D=false, bool forceRedraw=true) |
| static void | CheckIfRemove () |
| static void | Draw (const CC_DRAW_CONTEXT &context, const ccHObject *obj) |
| static void | UpdateMeshTextures (const CC_DRAW_CONTEXT &context, const ccGenericMesh *mesh) |
| static void | DrawBBox (const CC_DRAW_CONTEXT &context, const ccBBox *bbox) |
| static void | DrawOrientedBBox (const CC_DRAW_CONTEXT &context, const ecvOrientedBBox *obb) |
| static void | RemoveBB (CC_DRAW_CONTEXT context) |
| static void | RemoveBB (const QString &viewId) |
| static void | ChangeEntityProperties (PROPERTY_PARAM &propertyParam, bool autoUpdate=true) |
| static void | DrawWidgets (const WIDGETS_PARAMETER ¶m, bool update=false) |
| static void | RemoveWidgets (const WIDGETS_PARAMETER ¶m, bool update=false) |
| static void | RemoveAllWidgets (bool update=true) |
| static void | Remove3DLabel (const QString &view_id) |
| static void | DrawCoordinates (double scale=1.0, const std::string &id="reference", int viewport=0) |
| static void | RotateWithAxis (const CCVector2i &pos, const CCVector3d &axis, double angle, int viewport=0) |
| static void | ToggleOrientationMarker (bool state=true) |
| static bool | OrientationMarkerShown () |
| static void | SetDataAxesGridProperties (const QString &viewID, const AxesGridProperties &props, int viewport=0) |
| Set Data Axes Grid properties (Unified Interface) Each ccHObject has its own Data Axes Grid bound to its viewID. More... | |
| static void | GetDataAxesGridProperties (const QString &viewID, AxesGridProperties &props, int viewport=0) |
| Get Data Axes Grid properties (Unified Interface) More... | |
| static void | SetViewAxesGridVisible (bool visible, int viewport=0) |
| Enable/disable view axes grid (aligned with camera/view) More... | |
| static void | SetViewAxesGridProperties (bool visible, const CCVector3 &color, double lineWidth, double spacing, int subdivisions, bool showLabels, double opacity, int viewport=0) |
| Configure view axes grid properties. More... | |
| static void | SetCenterAxesVisible (bool visible, int viewport=0) |
| Enable/disable center axes visualization. More... | |
| static void | ToggleCameraOrientationWidget (bool show) |
| static bool | IsCameraOrientationWidgetShown () |
| Check if Camera Orientation Widget is shown. More... | |
| static void | SetLightIntensity (double intensity) |
| static double | GetLightIntensity () |
| static ecvGenericVisualizer3D * | GetVisualizer3D () |
| static ecvGenericVisualizer2D * | GetVisualizer2D () |
| static QWidget * | GetCurrentScreen () |
| static void | SetCurrentScreen (QWidget *widget) |
| static QWidget * | GetMainScreen () |
| static void | SetMainScreen (QWidget *widget) |
| static QMainWindow * | GetMainWindow () |
| static void | SetMainWindow (QMainWindow *win) |
| static QPointF | ToCenteredGLCoordinates (int x, int y) |
| static CCVector3d | ToVtkCoordinates (int x, int y, int z=0) |
| static void | ToVtkCoordinates (CCVector3d &sP) |
| static void | ToVtkCoordinates (CCVector2i &sP) |
| static ccHObject * | GetOwnDB () |
| Returns window own DB. More... | |
| static void | AddToOwnDB (ccHObject *obj, bool noDependency=true) |
| Adds an entity to window own DB. More... | |
| static void | RemoveFromOwnDB (ccHObject *obj) |
| Removes an entity from window own DB. More... | |
| static void | SetSceneDB (ccHObject *root) |
| static ccHObject * | GetSceneDB () |
| static void | UpdateNamePoseRecursive () |
| static void | SetRedrawRecursive (bool redraw=false) |
| static void | SetRedrawRecursive (ccHObject *obj, bool redraw=false) |
| static void | GetVisibleObjectsBB (ccBBox &box) |
| Returns the visible objects bounding-box. More... | |
| static void | RotateBaseViewMat (const ccGLMatrixd &rotMat) |
| Rotates the base view matrix. More... | |
| static ccGLMatrixd & | GetBaseViewMat () |
| static void | SetBaseViewMat (ccGLMatrixd &mat) |
| static void | SetRemoveViewIDs (std::vector< removeInfo > &removeinfos) |
| static void | SetRemoveAllFlag (bool state) |
| static void | TransformCameraView (const ccGLMatrixd &viewMat) |
| static void | TransformCameraProjection (const ccGLMatrixd &projMat) |
| static int | GetDevicePixelRatio () |
| static int | GetOptimizedFontSize (int baseFontSize=12) |
| static double | GetPlatformAwareDPIScale () |
| static QRect | GetScreenRect () |
| static void | SetScreenSize (int xw, int yw) |
| static void | DoResize (int xw, int yw) |
| static void | DoResize (const QSize &size) |
| static QSize | GetScreenSize () |
| static void | SetRenderWindowSize (int xw, int yw) |
| static void | FullScreen (bool state) |
| static void | ZoomCamera (double zoomFactor, int viewport=0) |
| static double | GetCameraFocalDistance (int viewport=0) |
| static void | SetCameraFocalDistance (double focal_distance, int viewport=0) |
| static void | GetCameraPos (double *pos, int viewport=0) |
| static void | GetCameraFocal (double *focal, int viewport=0) |
| static void | GetCameraUp (double *up, int viewport=0) |
| static void | SetCameraPosition (const CCVector3d &pos, int viewport=0) |
| static void | SetCameraPosition (const double *pos, const double *focal, const double *up, int viewport=0) |
| static void | SetCameraPosition (const double *pos, const double *up, int viewport=0) |
| static void | SetCameraPosition (double pos_x, double pos_y, double pos_z, double view_x, double view_y, double view_z, double up_x, double up_y, double up_z, int viewport=0) |
| static void | GetCameraClip (double *clipPlanes, int viewport=0) |
| static void | SetCameraClip (double znear, double zfar, int viewport=0) |
| static void | ResetCameraClippingRange (int viewport=0) |
| static double | GetCameraFovy (int viewport=0) |
| static void | SetCameraFovy (double fovy, int viewport=0) |
| static void | GetViewerPos (int *viewPos, int viewport=0) |
| static void | SaveScreenshot (const std::string &file) |
| Save the current rendered image to disk, as a PNG screenshot. More... | |
| static void | SaveCameraParameters (const std::string &file) |
| Save or Load the current rendered camera parameters to disk or current camera. More... | |
| static void | LoadCameraParameters (const std::string &file) |
| static void | ShowOrientationMarker () |
| static void | SetOrthoProjection (int viewport=0) |
| static void | SetPerspectiveProjection (int viewport=0) |
| static void | SetUseVbos (bool useVbos) |
| Use Vertex Buffer Objects renderers. This is an optimization for the obsolete OpenGL backend. Modern OpenGL2 backend (VTK \A1\DD 6.3) uses vertex buffer objects by default, transparently for the user. More... | |
| static void | SetLookUpTableID (const std::string &viewID) |
| Set the ID of a cloud or shape to be used for LUT display. More... | |
| static void | GetProjectionMatrix (double *projArray, int viewport=0) |
| static void | GetViewMatrix (double *viewArray, int viewport=0) |
| static void | SetViewMatrix (const ccGLMatrixd &viewMat, int viewport=0) |
| static bool | HideShowEntities (const ccHObject *obj, bool visible) |
| static bool | HideShowEntities (const CC_DRAW_CONTEXT &CONTEXT) |
| static void | HideShowEntities (const QStringList &viewIDs, ENTITY_TYPE hideShowEntityType, bool visibility=false) |
| static void | RemoveEntities (const ccHObject *obj) |
| static void | RemoveEntities (const QStringList &viewIDs, ENTITY_TYPE removeEntityType) |
| static void | RemoveEntities (const CC_DRAW_CONTEXT &CONTEXT) |
| static void | DrawBackground (CC_DRAW_CONTEXT &CONTEXT) |
| static void | DrawForeground (CC_DRAW_CONTEXT &CONTEXT) |
| static void | Update2DLabel (bool immediateUpdate=false) |
| static void | Pick2DLabel (int x, int y) |
| static void | Redraw2DLabel () |
| static QString | Pick3DItem (int x=-1, int y=-1) |
| static QString | PickObject (double x=-1, double y=-1) |
| static void | FilterByEntityType (ccHObject::Container &labels, CV_CLASS_ENUM type) |
| static void | CreateViewPort (double xmin, double ymin, double xmax, double ymax, int &viewport) |
| Create a new viewport from [xmin,ymin] -> [xmax,ymax]. More... | |
| static void | ResetCameraViewpoint (const std::string &viewID) |
| static void | SetPointSize (float size, bool silent=false, int viewport=0) |
| static void | SetPointSizeRecursive (int size) |
| static void | SetLineWidth (float width, bool silent=false, int viewport=0) |
| Sets line width. More... | |
| static void | SetLineWithRecursive (PointCoordinateType with) |
| static void | Toggle2Dviewer (bool state) |
| static void | DisplayNewMessage (const QString &message, MessagePosition pos, bool append=false, int displayMaxDelay_sec=2, MessageType type=CUSTOM_MESSAGE) |
| Displays a status message in the bottom-left corner. More... | |
| static const ecvGui::ParamStruct & | GetDisplayParameters () |
| Returns current parameters for this display (const version) More... | |
| static void | SetDisplayParameters (const ecvGui::ParamStruct ¶ms) |
| Sets current parameters for this display. More... | |
| static void | UpdateDisplayParameters () |
| static void | SetupProjectiveViewport (const ccGLMatrixd &cameraMatrix, float fov_deg=0.0f, float ar=1.0f, bool viewerBasedPerspective=true, bool bubbleViewMode=false) |
| static void | SetAspectRatio (float ar) |
| Sets current camera aspect ratio (width/height) More... | |
| static void | ResizeGL (int w, int h) |
| Sets current zoom. More... | |
| static void | UpdateScreenSize () |
| static void | Update () |
| static void | UpdateScreen () |
| static void | ResetCamera (const ccBBox *bbox) |
| static void | ResetCamera () |
| static void | UpdateCamera () |
| static void | UpdateScene () |
| static void | SetAutoUpateCameraPos (bool state) |
| static void | GetCenterOfRotation (double center[3]) |
| static void | GetCenterOfRotation (CCVector3d ¢er) |
| static void | ResetCenterOfRotation (int viewport=0) |
| static void | SetCenterOfRotation (double x, double y, double z) |
| static void | SetCenterOfRotation (const double xyz[3]) |
| static void | SetCenterOfRotation (const CCVector3d ¢er) |
| static double | GetGLDepth (int x, int y) |
| static void | ChangeOpacity (double opacity, const std::string &viewID, int viewport=0) |
| static CCVector3d | ConvertMousePositionToOrientation (int x, int y) |
| Converts a given (mouse) position in pixels to an orientation. More... | |
| static void | UpdateActiveItemsList (int x, int y, bool extendToSelectedLabels=false) |
| Updates currently active items list (m_activeItems) More... | |
| static void | SetGLViewport (int x, int y, int w, int h) |
| Sets the OpenGL viewport (shortut) More... | |
| static void | SetGLViewport (const QRect &rect) |
| Sets the OpenGL viewport. More... | |
| static void | drawCross () |
| static void | drawTrihedron () |
| static bool | RenderToFile (QString filename, float zoomFactor=1.0f, bool dontScaleFeatures=false, bool renderOverlayItems=false) |
| Renders screen to a file. More... | |
| static QImage | RenderToImage (int zoomFactor=1, bool renderOverlayItems=false, bool silent=false, int viewport=0) |
| static void | SetScaleBarVisible (bool visible) |
| static void | DisplayTexture2DPosition (QImage image, const QString &id, int x, int y, int w, int h, unsigned char alpha=255) |
| static void | DrawClickableItems (int xStart, int &yStart) |
| static void | RenderText (int x, int y, const QString &str, const QFont &font=QFont(), const ecvColor::Rgbub &color=ecvColor::defaultLabelBkgColor, const QString &id="") |
| static void | RenderText (double x, double y, double z, const QString &str, const QFont &font=QFont(), const ecvColor::Rgbub &color=ecvColor::defaultLabelBkgColor, const QString &id="") |
| static void | ToggleExclusiveFullScreen (bool state) |
| Toggles (exclusive) full-screen mode. More... | |
| static bool | ExclusiveFullScreen () |
| Returns whether the window is in exclusive full screen mode or not. More... | |
| static void | SetExclusiveFullScreenFlage (bool state) |
| static void | SetPixelSize (float pixelSize) |
| Sets pixel size (i.e. zoom base) More... | |
| static void | UpdateConstellationCenterAndZoom (const ccBBox *aBox=nullptr, bool redraw=true) |
| Center and zoom on a given bounding box. More... | |
| static void | GetContext (CC_DRAW_CONTEXT &CONTEXT) |
| Returns context information. More... | |
| static void | GetGLCameraParameters (ccGLCameraParameters ¶ms) |
| Returns the current OpenGL camera parameters. More... | |
| static void | SetInteractionMode (INTERACTION_FLAGS flags) |
| static INTERACTION_FLAGS | GetInteractionMode () |
| Returns the current interaction flags. More... | |
| static void | SetView (CC_VIEW_ORIENTATION orientation, ccBBox *bbox) |
| static void | SetView (CC_VIEW_ORIENTATION orientation, bool forceRedraw=false) |
| static ccGLMatrixd | GenerateViewMat (CC_VIEW_ORIENTATION orientation) |
| static void | SetPerspectiveState (bool state, bool objectCenteredView) |
| Set perspective state/mode. More... | |
| static bool | GetPerspectiveState (int viewport=0) |
| static bool | ObjectPerspectiveEnabled () |
| Shortcut: returns whether object-based perspective mode is enabled. More... | |
| static bool | ViewerPerspectiveEnabled () |
| Shortcut: returns whether viewer-based perspective mode is enabled. More... | |
| static float | ComputePerspectiveZoom () |
| static void | SetFov (float fov) |
| Sets current camera f.o.v. (field of view) in degrees. More... | |
| static float | GetFov () |
| Returns the current f.o.v. (field of view) in degrees. More... | |
| static void | ZoomGlobal () |
| static CCVector3d | GetCurrentViewDir () |
| Returns current viewing direction. More... | |
| static CCVector3d | GetCurrentUpDir () |
| Returns current up direction. More... | |
| static void | SetCameraPos (const CCVector3d &P) |
| Sets camera position. More... | |
| static void | MoveCamera (float dx, float dy, float dz) |
| Displaces camera. More... | |
| static void | MoveCamera (const CCVector3d &v) |
| Displaces camera. More... | |
| static void | SetPickingMode (PICKING_MODE mode=DEFAULT_PICKING) |
| static PICKING_MODE | GetPickingMode () |
| static void | LockPickingMode (bool state) |
| Locks picking mode. More... | |
| static bool | IsPickingModeLocked () |
| Returns whether picking mode is locked or not. More... | |
| static void | SetZoom (float value) |
| Sets current zoom. More... | |
| static void | UpdateZoom (float zoomFactor) |
| Updates current zoom. More... | |
| static void | SetPivotPoint (const CCVector3d &P, bool autoUpdateCameraPos=false, bool verbose=false) |
| Sets pivot point. More... | |
| static void | SetPivotVisibility (PivotVisibility vis) |
| Sets pivot visibility. More... | |
| static void | SetPivotVisibility (bool state) |
| static PivotVisibility | GetPivotVisibility () |
| Returns pivot visibility. More... | |
| static void | ShowPivotSymbol (bool state) |
| Shows or hide the pivot symbol. More... | |
| static void | SetViewportParameters (const ecvViewportParameters ¶ms) |
| static const ecvViewportParameters & | GetViewportParameters () |
| static double | GetParallelScale (int viewport=0) |
| static void | SetParallelScale (double scale, int viewport=0) |
| static ccGLMatrixd & | GetModelViewMatrix () |
| static ccGLMatrixd & | GetProjectionMatrix () |
| static void | UpdateModelViewMatrix () |
| static void | UpdateProjectionMatrix () |
| static ccGLMatrixd | ComputeModelViewMatrix () |
| Computes the model view matrix. More... | |
| static ccGLMatrixd | ComputeProjectionMatrix (bool withGLfeatures, ProjectionMetrics *metrics=nullptr, double *eyeOffset=nullptr) |
| Computes the projection matrix. More... | |
| static void | Deprecate3DLayer () |
| static void | InvalidateViewport () |
| static void | InvalidateVisualization () |
| static CCVector3d | GetRealCameraCenter () |
| static double | ComputeActualPixelSize () |
| static bool | IsRectangularPickingAllowed () |
| Returns whether rectangular picking is allowed or not. More... | |
| static void | SetRectangularPickingAllowed (bool state) |
| Sets whether rectangular picking is allowed or not. More... | |
| static void | SetBubbleViewMode (bool state) |
| Sets bubble-view mode state. More... | |
| static bool | BubbleViewModeEnabled () |
| Returns whether bubble-view mode is enabled or no. More... | |
| static void | SetBubbleViewFov (float fov_deg) |
| Set bubble-view f.o.v. (in degrees) More... | |
| static void | ShowCursorCoordinates (bool state) |
| static bool | CursorCoordinatesShown () |
| static void | SetAutoPickPivotAtCenter (bool state) |
| static void | SendAutoPickPivotAtCenter (bool state) |
| static bool | AutoPickPivotAtCenter () |
| Whether the pivot point is automatically set at the center of the screen. More... | |
| static void | LockRotationAxis (bool state, const CCVector3d &axis) |
| Lock the rotation axis. More... | |
| static bool | IsRotationAxisLocked () |
| Returns whether the rotation axis is locaked or not. More... | |
| static bool | GetClick3DPos (int x, int y, CCVector3d &P3D) |
| Returns the approximate 3D position of the clicked pixel. More... | |
| static void | DrawPivot () |
| static void | EnableDebugTrace (bool state) |
| Shows debug info on screen. More... | |
| static void | ToggleDebugTrace () |
| Toggles debug info on screen. More... | |
| static bool | ProcessClickableItems (int x, int y) |
| Processes the clickable items. More... | |
| static void | SetZNearCoef (double coef) |
| Sets current camera 'zNear' coefficient. More... | |
| static void | StartPicking (PickingParameters ¶ms) |
| Starts picking process. More... | |
| static ccHObject * | GetPickedEntity (const PickingParameters ¶ms) |
| static void | StartOpenGLPicking (const PickingParameters ¶ms) |
| Performs the picking with OpenGL. More... | |
| static void | StartCPUBasedPointPicking (const PickingParameters ¶ms) |
| Starts OpenGL picking process. More... | |
| static void | ProcessPickingResult (const PickingParameters ¶ms, ccHObject *pickedEntity, int pickedItemIndex, const CCVector3 *nearestPoint=nullptr, const std::unordered_set< int > *selectedIDs=nullptr) |
| Processes the picking process result and sends the corresponding signal. More... | |
| static void | SetFontPointSize (int pixelSize) |
| Sets current font size. More... | |
| static int | GetFontPointSize () |
| Returns current font size. More... | |
| static int | GetLabelFontPointSize () |
| Returns current font size for labels. More... | |
| static void | SetClickableItemsVisible (bool state) |
| static bool | GetClickableItemsVisible () |
| static QFont | GetLabelDisplayFont () |
| static QFont | GetTextDisplayFont () |
| static ENTITY_TYPE | ConvertToEntityType (const CV_CLASS_ENUM &type) |
| static void | SetPickingRadius (int radius) |
| Sets picking radius. More... | |
| static int | GetPickingRadius () |
| Returns the current picking radius. More... | |
| static void | DisplayOverlayEntities (bool state) |
| static bool | OverlayEntitiesAreDisplayed () |
| static int | Width () |
| static int | Height () |
| static QSize | size () |
| static int | GlWidth () |
| Returns the OpenGL context width. More... | |
| static int | GlHeight () |
| Returns the OpenGL context height. More... | |
| static QSize | GlSize () |
| Returns the OpenGL context size. More... | |
| static void | ClearBubbleView () |
Static Public Member Functions inherited from ecvGenericDisplayTools | |
| static ecvGenericDisplayTools * | GetInstance () |
| static void | SetInstance (ecvGenericDisplayTools *tool) |
| static int | FontSizeModifier (int fontSize, float zoomFactor) |
| static bool | GetPerspectiveState () |
| Returns perspective mode. More... | |
| template<typename iType , typename oType > | |
| static void | ToWorldPoint (const Vector3Tpl< iType > &input2D, Vector3Tpl< oType > &output3D) |
| template<typename iType , typename oType > | |
| static void | ToDisplayPoint (const Vector3Tpl< iType > &input3D, Vector3Tpl< oType > &output2D) |
| static ccGLMatrixd | Frustum (double left, double right, double bottom, double top, double znear, double zfar) |
| static ccGLMatrixd | Perspective (double fovyInDegrees, double aspectRatio, double znear, double zfar) |
| static ccGLMatrixd | Ortho (double left, double right, double bottom, double top, double nearVal, double farVal) |
| static ccGLMatrixd | Ortho (double w, double h, double d) |
| template<typename iType , typename oType > | |
| static bool | Project (const Vector3Tpl< iType > &input3D, const oType *modelview, const oType *projection, const int *viewport, Vector3Tpl< oType > &output2D, bool *inFrustum=nullptr) |
| static double | MAT (const double *m, int r, int c) |
| static float | MAT (const float *m, int r, int c) |
| static double & | MAT (double *m, int r, int c) |
| static float & | MAT (float *m, int r, int c) |
| template<typename Type > | |
| static bool | InvertMatrix (const Type *m, Type *out) |
| template<typename iType , typename oType > | |
| static bool | Unproject (const Vector3Tpl< iType > &input2D, const oType *modelview, const oType *projection, const int *viewport, Vector3Tpl< oType > &output3D) |
| static void | PickMatrix (double x, double y, double width, double height, int viewport[4], double m[16]) |
Public Attributes | |
| std::list< MessageToDisplay > | m_messagesToDisplay |
| List of messages to display. More... | |
| std::list< ccInteractor * > | m_activeItems |
| Currently active items. More... | |
| ecvViewportParameters | m_viewportParams |
| Viewport parameters (zoom, etc.) More... | |
| std::vector< ClickableItem > | m_clickableItems |
| Currently displayed clickable items. More... | |
| bool | m_clickableItemsVisible |
| Whether clickable items are visible (= mouse over) or not. More... | |
| INTERACTION_FLAGS | m_interactionFlags |
| Current intercation flags. More... | |
| PICKING_MODE | m_pickingMode |
| bool | m_pickingModeLocked |
| Whether picking mode is locked or not. More... | |
| QElapsedTimer | m_timer |
| Internal timer. More... | |
| bool | m_touchInProgress |
| Touch event in progress. More... | |
| qreal | m_touchBaseDist |
| Touch gesture initial distance. More... | |
| QTimer | m_scheduleTimer |
| Scheduler timer. More... | |
| qint64 | m_scheduledFullRedrawTime |
| Scheduled full redraw (no LOD) More... | |
| ecvGui::ParamStruct | m_overridenDisplayParameters |
| Overridden display parameter. More... | |
| bool | m_displayOverlayEntities |
| Whether to display overlay entities or not (scale, tetrahedron, etc.) More... | |
| bool | m_overridenDisplayParametersEnabled |
| Whether display parameters are overidden for this window. More... | |
| bool | m_exclusiveFullscreen |
| Wether exclusive full screen is enabled or not. More... | |
| bool | m_showCursorCoordinates |
| bool | m_autoPickPivotAtCenter |
| bool | m_shouldBeRefreshed |
| Whether the display should be refreshed on next call to 'refresh'. More... | |
| CCVector3d | m_autoPivotCandidate |
| Candidate pivot point (will be used when the mouse is released) More... | |
| QRect | m_glViewport |
| viewport More... | |
| bool | m_showDebugTraces |
| Debug traces visibility. More... | |
| int | m_pickRadius |
| Picking radius (pixels) More... | |
| bool | m_autoRefresh |
| Auto-refresh mode. More... | |
| bool | m_rotationAxisLocked |
| Wheter the rotation axis is locked or not. More... | |
| CCVector3d | m_lockedRotationAxis |
| Locked rotation axis. More... | |
| ccGLMatrixd | m_viewMatd |
| Complete visualization matrix (GL style - double version) More... | |
| bool | m_validModelviewMatrix |
| Whether the model veiw matrix is valid (or need to be recomputed) More... | |
| ccGLMatrixd | m_projMatd |
| Projection matrix (GL style - double version) More... | |
| bool | m_validProjectionMatrix |
| Whether the projection matrix is valid (or need to be recomputed) More... | |
| double | m_cameraToBBCenterDist |
| Distance between the camera and the displayed objects bounding-box. More... | |
| double | m_bbHalfDiag |
| Half size of the displayed objects bounding-box. More... | |
| PivotVisibility | m_pivotVisibility |
| Pivot symbol visibility. More... | |
| bool | m_pivotSymbolShown |
| Whether pivot symbol should be shown or not. More... | |
| bool | m_allowRectangularEntityPicking |
| Whether rectangular picking is allowed or not. More... | |
| ccPolyline * | m_rectPickingPoly |
| Rectangular picking polyline. More... | |
| cloudViewer::geometry::LineSet * | m_scale_lineset |
| ccHObject * | m_winDBRoot |
| Window own DB. More... | |
| ccHObject * | m_globalDBRoot |
| CV main DB. More... | |
| bool | m_removeFlag |
| bool | m_removeAllFlag |
| std::vector< removeInfo > | m_removeInfos |
| bool | m_alwaysUseFBO |
| Whether to always use FBO or only for GL filters. More... | |
| bool | m_updateFBO |
| float | m_sunLightPos [4] |
| Sun light position. More... | |
| bool | m_sunLightEnabled |
| Whether sun light is enabled or not. More... | |
| float | m_customLightPos [4] |
| Custom light position. More... | |
| bool | m_customLightEnabled |
| Whether custom light is enabled or not. More... | |
| bool | m_bubbleViewModeEnabled |
| Bubble-view mode state. More... | |
| float | m_bubbleViewFov_deg |
| Bubble-view mode f.o.v. (degrees) More... | |
| ecvViewportParameters | m_preBubbleViewParameters |
| Pre-bubble-view camera parameters (backup) More... | |
| int | m_uniqueID |
| Unique ID. More... | |
| QFont | m_font |
| Default font. More... | |
| CaptureModeOptions | m_captureMode |
| Display capturing mode options. More... | |
| QTimer | m_deferredPickingTimer |
| Deferred picking. More... | |
| CCVector3 | m_last_picked_point |
| int | m_last_point_index = -1 |
| QString | m_last_picked_id = QString() |
| qint64 | m_lastClickTime_ticks |
| Last click time (msec) More... | |
| HotZone * | m_hotZone |
| Hot zone. More... | |
| QPoint | m_lastMousePos |
| Last mouse position. More... | |
| QPoint | m_lastMouseMovePos |
| QStringList | m_diagStrings |
| bool | m_mouseMoved |
| Whether the mouse (cursor) has moved after being pressed or not. More... | |
| bool | m_mouseButtonPressed |
| Whether the mouse is currently pressed or not. More... | |
| bool | m_ignoreMouseReleaseEvent |
| Ignore next mouse release event. More... | |
| bool | m_widgetClicked |
Static Public Attributes | |
| static const int | DefaultPickRadius = 5 |
| Default picking radius value. More... | |
| static bool | USE_2D = true |
| static bool | USE_VTK_PICK = false |
Protected Member Functions | |
| ecvDisplayTools ()=default | |
| virtual void | registerVisualizer (QMainWindow *win, bool stereoMode=false)=0 |
| register visualizer callback function More... | |
Protected Member Functions inherited from ecvGenericDisplayTools | |
| ecvGenericDisplayTools () | |
| Default constructor. More... | |
Protected Attributes | |
| QWidget * | m_currentScreen |
| QWidget * | m_mainScreen |
| QMainWindow * | m_win |
Interaction flags (mostly with the mouse)
Message type.
|
overridevirtual |
Destructor.
References cancelScheduledRedraw(), m_hotZone, m_rectPickingPoly, and m_winDBRoot.
|
protecteddefault |
|
static |
Adds an entity to window own DB.
By default no dependency link is established between the entity and the window (DB).
References ccHObject::DP_NONE, ccHObject::DP_PARENT_OF_OTHER, CVLog::Error(), and s_tools.
Referenced by ccRasterizeTool::addNewContour(), ccContourExtractorDlg::addToDisplay(), ccMouseCircle::ccMouseCircle(), define_ccDisplayTools(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccPointPropertiesDlg::exportCurrentLabel(), ccPointPropertiesDlg::linkWith(), DistanceMapGenerationDlg::loadOverlaySymbols(), QVTKWidgetCustom::mouseMoveEvent(), DistanceMapGenerationDlg::toggleOverlayGrid(), DistanceMapGenerationDlg::update(), ccRasterizeTool::updateGridAndDisplay(), and ccVolumeCalcTool::updateGridAndDisplay().
|
signal |
|
inlinestatic |
Whether the pivot point is automatically set at the center of the screen.
References m_autoPickPivotAtCenter.
Referenced by ecvCameraParamEditDlg::ecvCameraParamEditDlg().
|
signal |
Signal emitted when the window 'base view' matrix is changed.
|
inlinestatic |
Returns whether bubble-view mode is enabled or no.
References m_bubbleViewModeEnabled.
|
signal |
Signal emitted when a mouse button is released (cursor on the window)
See INTERACT_SIG_BUTTON_RELEASED.
Referenced by ccPointPropertiesDlg::linkWith(), and QVTKWidgetCustom::mouseReleaseEvent().
Signal emitted when the camera is interactively displaced.
|
signal |
|
signal |
Signal emitted when the camera position is changed.
| void ecvDisplayTools::cancelScheduledRedraw | ( | ) |
Cancels any scheduled redraw.
References m_scheduledFullRedrawTime, and m_scheduleTimer.
Referenced by ~ecvDisplayTools().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
static |
|
inlinestatic |
References changeOpacity().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ChangeOpacity().
|
static |
References context, ECV_2DLABLE, ECV_ALL, ECV_KDTREE, ECV_NONE, ECV_OCTREE, ECV_SENSOR, RemoveBB(), RemoveEntities(), removeInfo::removeId, removeInfo::removeType, s_tools, and SetRemoveAllFlag().
Referenced by RedrawDisplay().
|
slot |
Checks for scheduled redraw.
References m_messagesToDisplay, m_scheduledFullRedrawTime, m_timer, RemoveWidgets(), and WIDGET_T2D.
Referenced by Init().
|
static |
References RemoveWidgets(), s_tools, and WIDGET_T2D.
Referenced by DisplayOverlayEntities(), and DrawClickableItems().
|
static |
Returns the actual pixel size on screen (taking zoom or perspective parameters into account) In perspective mode, this value is approximate.
References cloudViewer::DegreesToRadians(), GetFov(), and s_tools.
Referenced by qCanupo2DViewDialog::addOrSelectPoint(), ComputeProjectionMatrix(), define_ccDisplayTools(), GetContext(), QVTKWidgetCustom::mouseMoveEvent(), qCanupo2DViewDialog::removePoint(), and QVTKWidgetCustom::updateActivateditems().
|
static |
|
static |
Returns the zoom value equivalent to the current camera position (perspective only)
References cloudViewer::DegreesToRadians(), GetFov(), cloudViewer::LessThanEpsilon(), and s_tools.
Referenced by SetPerspectiveState(), and UpdateDisplayParameters().
|
static |
Computes the projection matrix.
| [in] | withGLfeatures | whether to take additional elements (pivot symbol, custom light, etc.) into account or not |
| [out] | metrics | [optional] output other metrics (Znear and Zfar, etc.) |
| [out] | eyeOffset | [optional] eye offset (for stereo display) |
References ecvDisplayTools::ProjectionMetrics::bbHalfDiag, ecvDisplayTools::ProjectionMetrics::cameraToBBCenterDist, CC_DISPLAYED_PIVOT_RADIUS_PERCENT, ComputeActualPixelSize(), Vector3Tpl< double >::fromArray(), ecvGenericDisplayTools::Frustum(), cloudViewer::BoundingBoxTpl< T >::getCenter(), cloudViewer::BoundingBoxTpl< T >::getDiagNormd(), GetVisibleObjectsBB(), cloudViewer::BoundingBoxTpl< T >::isValid(), Vector3Tpl< Type >::normd(), ecvGenericDisplayTools::Ortho(), PIVOT_HIDE, s_tools, Tuple3Tpl< Type >::u, and ZERO_TOLERANCE_D.
Referenced by UpdateProjectionMatrix().
|
static |
Converts a given (mouse) position in pixels to an orientation.
The orientation vector origin is the current pivot point!
References GetGLCameraParameters(), Height(), ccGLCameraParameters::project(), s_tools, Width(), Tuple3Tpl< Type >::x, x, Tuple3Tpl< Type >::y, y, and Tuple3Tpl< Type >::z.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
static |
References CV_TYPES::BOX, CV_TYPES::CAMERA_SENSOR, CV_TYPES::CONE, CV_TYPES::COORDINATESYSTEM, CV_TYPES::CYLINDER, CV_TYPES::DISC, CV_TYPES::DISH, ECV_2DLABLE, ECV_2DLABLE_VIEWPORT, ECV_HIERARCHY_OBJECT, ECV_IMAGE, ECV_KDTREE, ECV_MESH, ECV_NONE, ECV_OCTREE, ECV_POINT_CLOUD, ECV_SENSOR, ECV_SHAPE, CV_TYPES::EXTRU, CV_TYPES::FACET, CV_TYPES::GBL_SENSOR, CV_TYPES::HIERARCHY_OBJECT, CV_TYPES::IMAGE, CV_TYPES::LABEL_2D, CV_TYPES::LINESET, CV_TYPES::MESH, CV_TYPES::PLANE, CV_TYPES::POINT_CLOUD, CV_TYPES::POINT_KDTREE, CV_TYPES::POINT_OCTREE, CV_TYPES::POLY_LINE, CV_TYPES::PRIMITIVE, CV_TYPES::QUADRIC, CV_TYPES::SENSOR, CV_TYPES::SPHERE, CV_TYPES::SUB_MESH, CV_TYPES::TORUS, type, and CV_TYPES::VIEWPORT_2D_LABEL.
Referenced by ChangeEntityProperties(), ccHObject::getEntityType(), ccHObject::setHideShowType(), and ccHObject::setRemoveType().
|
inlinestatic |
Create a new viewport from [xmin,ymin] -> [xmax,ymax].
| [in] | xmin | the minimum X coordinate for the viewport (0.0 <= 1.0) |
| [in] | ymin | the minimum Y coordinate for the viewport (0.0 <= 1.0) |
| [in] | xmax | the maximum X coordinate for the viewport (0.0 <= 1.0) |
| [in] | ymax | the maximum Y coordinate for the viewport (0.0 <= 1.0) |
| [in] | viewport | the id of the new viewport |
References createViewPort().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by CreateViewPort().
|
inlinestatic |
Whether the coordinates of the point below the cursor position are displayed or not
References m_showCursorCoordinates.
|
inlinestatic |
References m_updateFBO.
Referenced by define_ccDisplayTools(), QVTKWidgetCustom::mouseMoveEvent(), ccHObject::notifyGeometryUpdate(), RedrawDisplay(), ResizeGL(), SetAspectRatio(), SetBubbleViewFov(), SetCameraPos(), SetFov(), SetPerspectiveState(), SetPixelSize(), SetView(), SetViewportParameters(), SetZNearCoef(), ShowPivotSymbol(), cc2Point5DimEditor::update2DDisplayZoom(), QVTKWidgetCustom::updateActivateditems(), UpdateConstellationCenterAndZoom(), and DistanceMapGenerationDlg::updateZoom().
|
static |
Displays a string at a given 3D position.
This method should be called solely during 3D pass rendering (see paintGL).
| str | string |
| pos3D | 3D position of string origin |
| rgbColor | color (optional: if let to 0, default text rendering color is used) |
| font | font (optional) |
References color, GetDisplayParameters(), RenderText(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by define_ccDisplayTools().
|
static |
Displays a status message in the bottom-left corner.
WARNING: currently, 'append' is not supported for SCREEN_CENTER_MESSAGE
| message | message (if message is empty and append is 'false', all messages will be cleared) |
| pos | message position on screen |
| append | whether to append the message or to replace existing one(s) (only messages of the same type are impacted) |
| displayMaxDelay_sec | minimum display duration |
| type | message type (if not custom, only one message of this type at a time is accepted) |
References CUSTOM_MESSAGE, ecvDisplayTools::MessageToDisplay::message, ecvDisplayTools::MessageToDisplay::messageValidity_sec, ecvDisplayTools::MessageToDisplay::position, RemoveWidgets(), s_tools, SCREEN_CENTER_MESSAGE, type, ecvDisplayTools::MessageToDisplay::type, CVLog::Warning(), and WIDGET_T2D.
Referenced by ccPointPairRegistrationDlg::align(), MainWindow::cancelPreviousPickingOperation(), ccGraphicalTransformationTool::clear(), define_ccDisplayTools(), ccGraphicalSegmentationTool::doSetPolylineSelection(), ccGraphicalSegmentationTool::doSetRectangularSelection(), MainWindow::enablePickingOperation(), ccPointPairRegistrationDlg::init(), QVTKWidgetCustom::mouseMoveEvent(), MainWindow::onItemPicked(), ccThicknessTool::onNewSelection(), ccTopologyTool::onNewSelection(), ccGraphicalTransformationTool::pause(), ccGraphicalSegmentationTool::pauseSegmentationMode(), ccThicknessTool::pointPicked(), ccPointPairRegistrationDlg::resetTitle(), ResizeGL(), SetFov(), SetLineWidth(), SetPerspectiveState(), SetPivotPoint(), SetPointSize(), SetZNearCoef(), ccTracePolylineTool::stop(), ccPointPairRegistrationDlg::stop(), ccGraphicalSegmentationTool::stop(), MainWindow::toggleExclusiveFullScreen(), ccThicknessTool::toolActivated(), ccTopologyTool::toolActivated(), and ccPointPairRegistrationDlg::updateAlignInfo().
|
static |
Sets whether overlay entities (scale, tetrahedron, etc.) should be displayed or not
References ClearBubbleView(), and s_tools.
Referenced by cc2Point5DimEditor::create2DView(), define_ccDisplayTools(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccContourExtractorDlg::init(), and PclUtils::PCLVis::renderToImage().
|
inlinestatic |
References displayText().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by DisplayText().
|
static |
Displays a string at a given 2D position.
This method should be called solely during 2D pass rendering. The coordinates are expressed relatively to the current viewport (y = 0 at the top!).
| text | string |
| x | horizontal position of string origin |
| y | vertical position of string origin |
| align | alignment position flags |
| bkgAlpha | background transparency (0 by default) |
| rgbColor | text color (optional) |
| font | optional font (otherwise default one will be used) |
References ecvColor::RgbaTpl< Type >::a, ecvGenericDisplayTools::ALIGN_DEFAULT, ecvGenericDisplayTools::ALIGN_HMIDDLE, ecvGenericDisplayTools::ALIGN_HRIGHT, ecvGenericDisplayTools::ALIGN_VBOTTOM, ecvGenericDisplayTools::ALIGN_VMIDDLE, ecvColor::RgbaTpl< Type >::b, WIDGETS_PARAMETER::color, DrawWidgets(), ecvColor::RgbaTpl< Type >::g, GetDisplayParameters(), ecvColor::RgbaTpl< Type >::r, WIDGETS_PARAMETER::rect, RemoveWidgets(), RenderText(), ecvColor::RgbTpl< Type >::rgb, s_tools, WIDGETS_PARAMETER::text, ecvGui::ParamStruct::textDefaultCol, WIDGETS_PARAMETER::viewID, WIDGET_RECTANGLE_2D, x, and y.
Referenced by define_ccDisplayTools(), cc2DViewportLabel::drawMeOnly(), ccSymbolCloud::drawMeOnly(), cc2DLabel::drawMeOnly2D(), ccSphere::drawNameIn3D(), ccHObject::drawNameIn3D(), and RenderText().
|
static |
References DrawWidgets(), image, WIDGETS_PARAMETER::image, WIDGETS_PARAMETER::opacity, WIDGETS_PARAMETER::rect, WIDGET_IMAGE, x, and y.
|
slot |
Performs standard picking at the last clicked mouse position (see m_lastMousePos)
References ENTITY_PICKING, INTERACT_2D_ITEMS, ccDrawableObject::isSelected(), LABEL_PICKING, m_activeItems, m_interactionFlags, m_lastMousePos, m_pickingMode, m_pickRadius, m_widgetClicked, NO_PICKING, POINT_OR_TRIANGLE_PICKING, CVLog::PrintVerbose(), s_tools, StartPicking(), UpdateActiveItemsList(), x, and y.
Referenced by Init(), and onPointPicking().
|
inlinestatic |
References size.
|
inlinestatic |
Referenced by define_ccDisplayTools().
|
signal |
Signal emitted when the double mouse button is cliked on the window.
See INTERACT_SIG_LB_CLICKED. Arguments correspond to the clicked point coordinates (x,y) in pixels relative to the window corner!
Referenced by cvGenericFilter::cvGenericFilter(), and QVTKWidgetCustom::mouseDoubleClickEvent().
|
inlinestatic |
References context, and draw().
Referenced by cloudViewer::geometry::LineSet::drawMeOnly(), ccImage::drawMeOnly(), ccCoordinateSystem::drawMeOnly(), ccGBLSensor::drawMeOnly(), ccPolyline::drawMeOnly(), ccGenericMesh::drawMeOnly(), ccCameraSensor::drawMeOnly(), ccPointCloud::drawMeOnly(), and ccMesh::drawMeOnly().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by Draw().
|
static |
References ecvColor::RgbTpl< Type >::b, ecvGui::ParamStruct::backgroundCol, ccGLDrawContext::backgroundCol, ccGLDrawContext::backgroundCol2, CC_DRAW_2D, CC_VIRTUAL_TRANS_ENABLED, ccGLDrawContext::clearColorLayer, ccGLDrawContext::clearDepthLayer, ecvGui::ParamStruct::drawBackgroundGradient, ccGLDrawContext::drawBackgroundGradient, ccGLDrawContext::drawingFlags, ecvColor::RgbTpl< Type >::g, GetDisplayParameters(), INTERACT_TRANSFORM_ENTITIES, ecvColor::RgbTpl< Type >::r, s_tools, and ecvGui::ParamStruct::textDefaultCol.
Referenced by RedrawDisplay().
|
inlinestatic |
References context, and drawBBox().
Referenced by ccBBox::draw(), ccOctree::DrawCellAsABox(), and DrawMeOnlyVisitor::visit().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by DrawBBox().
|
static |
Draws the 'hot zone' (+/- icons for point size), 'leave bubble-view' button, etc.
References ecvColor::RgbaTpl< Type >::a, ecvColor::bright(), ClearBubbleView(), WIDGETS_PARAMETER::color, ecvDisplayTools::ClickableItem::DECREASE_LINE_WIDTH, ecvDisplayTools::ClickableItem::DECREASE_POINT_SIZE, ecvColor::defaultLabelBkgColor(), DrawWidgets(), ExclusiveFullScreen(), WIDGETS_PARAMETER::fontSize, ecvColor::FromRgba(), GetCurrentScreen(), GetPlatformAwareDPIScale(), ecvDisplayTools::ClickableItem::INCREASE_LINE_WIDTH, ecvDisplayTools::ClickableItem::INCREASE_POINT_SIZE, ecvDisplayTools::ClickableItem::LEAVE_BUBBLE_VIEW_MODE, ecvDisplayTools::ClickableItem::LEAVE_FULLSCREEN_MODE, ecvColor::odarkGrey(), offset, ecvColor::ogreen(), ecvColor::ored(), WIDGETS_PARAMETER::radius, WIDGETS_PARAMETER::rect, RemoveWidgets(), RenderText(), s_tools, WIDGETS_PARAMETER::text, WIDGET_POINTS_2D, WIDGET_RECTANGLE_2D, and WIDGET_T2D.
|
inlinestatic |
References drawCoordinates().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by DrawCoordinates().
|
static |
|
static |
References CC_DRAW_2D, CC_DRAW_FOREGROUND, CC_VIRTUAL_TRANS_ENABLED, ccRenderingTools::DrawColorRamp(), ccGLDrawContext::drawingFlags, GetOptimizedFontSize(), INTERACT_TRANSFORM_ENTITIES, LOWER_LEFT_MESSAGE, RenderText(), s_tools, SCREEN_CENTER_MESSAGE, SetScaleBarVisible(), UpdateScreen(), UPPER_CENTER_MESSAGE, x, and y.
Referenced by RedrawDisplay().
|
signal |
Signal emitted during 3D pass of OpenGL display process.
Any object connected to this slot can draw additional stuff in 3D. Depth buffering, lights and shaders are enabled by default.
|
inlinestatic |
References context, and drawOrientedBBox().
Referenced by ecvOrientedBBox::draw().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by DrawOrientedBBox().
|
static |
References CC_DISPLAYED_PIVOT_RADIUS_PERCENT, CC_DRAW_3D, CC_DRAW_FOREGROUND, CC_LIGHT_ENABLED, ccHObject::draw(), ccGLDrawContext::drawingFlags, GetContext(), PIVOT_HIDE, PIVOT_SHOW_ON_MOVE, s_tools, ccGenericPrimitive::setColor(), ccObject::setEnabled(), ccDrawableObject::setVisible(), ccDrawableObject::showColors(), and ecvColor::yellow().
|
static |
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
static |
References CC_DRAW_2D, CC_DRAW_3D, CC_DRAW_FOREGROUND, CC_VIRTUAL_TRANS_ENABLED, ccGLDrawContext::defaultViewPort, ccHObject::draw(), ccGLDrawContext::drawingFlags, WIDGETS_PARAMETER::entity, GetContext(), INTERACT_TRANSFORM_ENTITIES, ccPolyline::is2DMode(), WIDGETS_PARAMETER::lineWidget, s_tools, ShowOrientationMarker(), ccHObjectCaster::ToPolyline(), WIDGETS_PARAMETER::type, UpdateScreen(), LineWidget::valid, WIDGETS_PARAMETER::viewport, WIDGET_BBOX, WIDGET_CAPTION, WIDGET_CIRCLE_2D, WIDGET_COORDINATE, WIDGET_IMAGE, WIDGET_LINE_2D, WIDGET_LINE_3D, WIDGET_POINTS_2D, WIDGET_POLYLINE, WIDGET_POLYLINE_2D, WIDGET_RECTANGLE_2D, WIDGET_SCALAR_BAR, WIDGET_SPHERE, WIDGET_T2D, WIDGET_T3D, and WIDGET_TRIANGLE_2D.
Referenced by DisplayText(), DisplayTexture2DPosition(), DrawClickableItems(), ccRenderingTools::DrawColorRamp(), cc2DViewportLabel::drawMeOnly(), cc2DLabel::drawMeOnly2D(), cc2DLabel::drawMeOnly3D(), PCLDisplayTools::drawWidgets(), RedrawDisplay(), ccTracePolylineTool::updatePoly3D(), ccGraphicalSegmentationTool::updateSegmentation(), and ccTracePolylineTool::updateTip().
|
inlinestatic |
Shows debug info on screen.
References m_showDebugTraces.
|
signal |
Signal emitted when multiple entities are selected in the 3D view.
|
signal |
Signal emitted when an entity is selected in the 3D view.
|
inlinestatic |
Returns whether the window is in exclusive full screen mode or not.
References m_exclusiveFullscreen.
Referenced by DrawClickableItems(), and QVTKWidgetCustom::mouseMoveEvent().
|
signal |
Signal emitted when the exclusive fullscreen is toggled.
Referenced by QVTKWidgetCustom::event().
|
signal |
Signal emitted when fast picking is finished (FAST_PICKING mode only)
Referenced by onItemPickedFast().
|
signal |
Signal emitted when files are dropped on the window.
Referenced by QVTKWidgetCustom::dropEvent().
|
static |
Referenced by Pick2DLabel(), Redraw2DLabel(), and Update2DLabel().
|
signal |
Signal emitted when the f.o.v. changes.
|
inlinestatic |
References fullScreen().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by FullScreen().
|
static |
Returns a 4x4 'OpenGL' matrix corresponding to a default 'view' orientation
| orientation | view orientation |
References CC_BACK_VIEW, CC_BOTTOM_VIEW, CC_FRONT_VIEW, CC_ISO_VIEW_1, CC_ISO_VIEW_2, CC_LEFT_VIEW, CC_RIGHT_VIEW, CC_TOP_VIEW, ccGLMatrixTpl< double >::FromViewDirAndUpDir(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by SetView().
|
inlinestatic |
References m_viewportParams, and ecvViewportParameters::viewMat.
|
inlinestatic |
References getCameraClip().
Referenced by GetGLCameraParameters(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraClip().
|
inlinestatic |
References getCameraFocal().
Referenced by SetView(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraFocal().
|
inlinestatic |
References getCameraFocalDistance().
Referenced by cloudViewer::ModelViewerWidget::ChangeFocusDistance(), and cloudViewer::ModelViewerWidget::ZoomScale().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraFocalDistance().
|
inlinestatic |
References getCameraFovy().
Referenced by GetGLCameraParameters(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraFovy().
|
inlinestatic |
References getCameraPos().
Referenced by SetView(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraPos().
|
inlinestatic |
References getCameraUp().
Referenced by UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCameraUp().
|
inlinestatic |
References getCenterOfRotation(), and Tuple3Tpl< Type >::u.
|
inlinestatic |
Get the current center of rotation
References getCenterOfRotation().
Referenced by GetGLCameraParameters(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetCenterOfRotation().
|
static |
Returns the approximate 3D position of the clicked pixel.
References GetGLCameraParameters(), GetGLDepth(), s_tools, ccGLCameraParameters::unproject(), x, and y.
Referenced by ccGraphicalSegmentationTool::doExportSegmentationPolyline(), QVTKWidgetCustom::mouseDoubleClickEvent(), QVTKWidgetCustom::mouseMoveEvent(), and QVTKWidgetCustom::mousePressEvent().
|
inlinestatic |
References m_clickableItemsVisible.
|
static |
Returns context information.
References ecvGui::ParamStruct::bbDefaultCol, ccGLDrawContext::bbDefaultCol, ecvColor::bright(), ComputeActualPixelSize(), ccGLDrawContext::currentLODLevel, ecvGui::ParamStruct::decimateCloudOnMove, ccGLDrawContext::decimateCloudOnMove, ccGLDrawContext::defaultMat, ccGLDrawContext::devicePixelRatio, ecvGui::ParamStruct::displayedNumPrecision, ccGLDrawContext::dispNumberPrecision, ccGLDrawContext::drawingFlags, ecvGui::ParamStruct::drawRoundedPoints, ccGLDrawContext::drawRoundedPoints, GetDevicePixelRatio(), GetDisplayParameters(), ccGLDrawContext::glH, ccGLDrawContext::glW, ccGLDrawContext::higherLODLevelsAvailable, ecvGui::ParamStruct::labelBackgroundCol, ccGLDrawContext::labelDefaultBkgCol, ccGLDrawContext::labelDefaultMarkerCol, ecvGui::ParamStruct::labelMarkerCol, ecvGui::ParamStruct::labelMarkerSize, ccGLDrawContext::labelMarkerSize, ccGLDrawContext::labelMarkerTextShift_pix, ecvGui::ParamStruct::labelOpacity, ccGLDrawContext::labelOpacity, ecvGui::ParamStruct::meshBackDiff, ecvGui::ParamStruct::meshFrontDiff, ecvGui::ParamStruct::meshSpecular, ecvGui::ParamStruct::minLoDCloudSize, ecvGui::ParamStruct::minLoDMeshSize, ccGLDrawContext::minLODPointCount, ccGLDrawContext::minLODTriangleCount, ccGLDrawContext::moreLODPointsAvailable, ecvColor::night(), ecvGui::ParamStruct::pointsDefaultCol, ccGLDrawContext::pointsDefaultCol, s_tools, ccGLDrawContext::sfColorScaleToDisplay, ecvGui::ParamStruct::textDefaultCol, ccGLDrawContext::textDefaultCol, ecvGui::ParamStruct::useVBOs, and ccGLDrawContext::useVBOs.
Referenced by cc2DLabel::acceptClick(), define_ccDisplayTools(), DrawPivot(), PCLDisplayTools::drawWidgets(), DrawWidgets(), ccMapWindow::getContext(), ccPointPairRegistrationDlg::label2DMove(), Redraw2DLabel(), RedrawDisplay(), Update2DLabel(), cc2DViewportLabel::updateLabel(), and cc2DLabel::updateLabel().
|
inlinestatic |
References m_currentScreen.
Referenced by ccPointPropertiesDlg::activatePointPropertiesDisplay(), qCanupo2DViewDialog::addOrSelectPoint(), ccPointPairRegistrationDlg::align(), ecvCustomViewpointsToolbar::ApplyCustomViewpoint(), ccGBLSensor::applyViewport(), ccCameraSensor::applyViewport(), ccPointPairRegistrationDlg::clear(), cc2DViewportLabel::clear2Dviews(), ccPointPropertiesDlg::close2DZone(), CC_ITEM_TREE::createPointLabel2D(), ecvCustomViewpointsToolbar::DeleteCustomViewpoint(), ccCompass::doAction(), MainWindow::doActionOrthogonalProjection(), MainWindow::doActionPerspectiveProjection(), ccOctree::draw(), DrawClickableItems(), ccRenderingTools::DrawColorRamp(), ccSNECloud::drawMeOnly(), ccPointPair::drawMeOnly(), cc2DViewportLabel::drawMeOnly(), ccKdTree::drawMeOnly(), ccSymbolCloud::drawMeOnly(), ccCoordinateSystem::drawMeOnly(), ccTrace::drawMeOnly(), ccGBLSensor::drawMeOnly(), ccCameraSensor::drawMeOnly(), cc2DLabel::drawMeOnly2D(), cc2DLabel::drawMeOnly3D(), ccPointPropertiesDlg::exportCurrentLabel(), qCanupo2DViewDialog::getClickPos(), qCanupo2DViewDialog::getClosestVertex(), cvProbeFilter::getOutput(), ccPlanarEntityInterface::glDrawNormal(), HideShowEntities(), ccPointPairRegistrationDlg::init(), ccTool::initializeTool(), ccPointPairRegistrationDlg::label2DMove(), ccPointPropertiesDlg::linkWith(), MainWindow::MainWindow(), qCanupo2DViewDialog::moveSelectedPoint(), ccHObject::notifyGeometryUpdate(), ccTracePolylineTool::onItemPicked(), ccPointPairRegistrationDlg::onItemPicked(), ccTracePolylineTool::onWidthSizeChanged(), ccGraphicalTransformationTool::pause(), ccGraphicalSegmentationTool::pauseSegmentationMode(), ccTracePolylineTool::polylineOverSampling(), ccPointPropertiesDlg::processClickedPoint(), ccPointPropertiesDlg::processPickedPoint(), ccPointListPickingDlg::processPickedPoint(), RemoveEntities(), qCanupo2DViewDialog::removePoint(), ccGraphicalSegmentationTool::reset(), ccPointPairRegistrationDlg::reset(), qCanupo2DViewDialog::resetBoundary(), ccTracePolylineTool::resetPoly3D(), ccGraphicalSegmentationTool::resetSegmentation(), ccTracePolylineTool::resetTip(), ccPointPairRegistrationDlg::resetTitle(), ccGraphicalSegmentationTool::segment(), ccTracePolylineTool::SegmentGLParams::SegmentGLParams(), cvRenderViewSelectionReaction::setCursor(), SetFocusToScreen(), MainWindow::setGlobalZoom(), SetInteractionMode(), MainWindow::setOrthoView(), MainWindow::setPerspectiveView(), SetPickingMode(), ecvCustomViewpointsToolbar::SetToCurrentViewpoint(), ecvFilterByLabelDlg::start(), ccGraphicalTransformationTool::start(), ccTracePolylineTool::start(), ccPointPairRegistrationDlg::start(), StartCPUBasedPointPicking(), ccPointPropertiesDlg::stop(), ccTracePolylineTool::stop(), ccGraphicalSegmentationTool::stop(), MainWindow::toggle3DView(), ccFitPlaneTool::toolActivated(), cvRenderViewSelectionReaction::unsetCursor(), ccPointPropertiesDlg::update2DZone(), ccPointPairRegistrationDlg::updateAlignedMarkers(), ccPointPairRegistrationDlg::updateAlignInfo(), ecvCustomViewpointsToolbar::updateEnabledState(), ccPointListPickingDlg::updateList(), ccTracePolylineTool::updatePoly3D(), ccTracePolylineTool::updatePolyLineTip(), ccPointPairRegistrationDlg::updateRefMarkers(), ccGraphicalSegmentationTool::updateSegmentation(), ccTracePolylineTool::updateTip(), cvRenderViewSelectionReaction::updateTooltip(), MainWindow::updateViewModePopUpMenu(), and qCanupo2DViewDialog::~qCanupo2DViewDialog().
|
static |
Returns current up direction.
This is the vertical direction of the screen (pointing 'upward') in world base.
References Vector3Tpl< Type >::normalize(), and s_tools.
|
static |
Returns current viewing direction.
This is the direction normal to the screen (pointing 'inside') in world base.
References Vector3Tpl< Type >::normalize(), and s_tools.
Referenced by MainWindow::onItemPicked().
|
inlinestatic |
Get Data Axes Grid properties (Unified Interface)
| viewID | The view ID of the ccHObject |
| props | Output: current axes grid properties |
| viewport | Viewport ID (default: 0) |
References getDataAxesGridProperties().
|
inlinevirtual |
Get Data Axes Grid properties (Virtual interface for derived classes)
Reimplemented in PCLDisplayTools.
Referenced by ccHObject::draw(), ccPropertiesTreeDelegate::fillWithViewProperties(), GetDataAxesGridProperties(), ccDBRoot::setData(), and ccPropertiesTreeDelegate::setEditorData().
|
inlinestatic |
|
static |
Returns current parameters for this display (const version)
Warning: may return overridden parameters!
References ecvGui::Parameters(), s_tools, and ecvGui::UpdateParameters().
Referenced by ccVolumeCalcTool::ccVolumeCalcTool(), cc2Point5DimEditor::create2DView(), Display3DLabel(), DisplayText(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), DrawBackground(), GetContext(), GetFontPointSize(), GetLabelFontPointSize(), ccContourExtractorDlg::init(), DistanceMapGenerationDlg::labelFontSizeChanged(), DistanceMapGenerationDlg::labelPrecisionChanged(), ccPointListPickingDlg::markerSizeChanged(), MainWindow::onItemPicked(), onWheelEvent(), ccPointListPickingDlg::processPickedPoint(), RedrawDisplay(), RenderToFile(), ccVolumeCalcTool::setDisplayedNumberPrecision(), SetPivotPoint(), StartCPUBasedPointPicking(), ccPointListPickingDlg::updateList(), PclTools::UpdateScalarBar(), and DistanceMapGenerationDlg::updateZoom().
|
static |
Returns current font size.
References ecvGenericDisplayTools::FontSizeModifier(), GetDisplayParameters(), GetOptimizedFontSize(), and s_tools.
Referenced by define_ccDisplayTools(), and RedrawDisplay().
|
static |
Returns the current f.o.v. (field of view) in degrees.
References s_tools.
Referenced by ComputeActualPixelSize(), ComputePerspectiveZoom(), define_ccDisplayTools(), SetPerspectiveState(), and cloudViewer::ModelViewerWidget::ZoomScale().
|
static |
Returns the current OpenGL camera parameters.
References ccGLMatrixTpl< T >::data(), ccGLCameraParameters::fov_deg, GetCameraClip(), GetCameraFovy(), GetCenterOfRotation(), GetDevicePixelRatio(), GetProjectionMatrix(), GetViewMatrix(), Height(), ccGLCameraParameters::modelViewMat, ccGLCameraParameters::perspective, ccGLCameraParameters::pixelSize, ccGLCameraParameters::projectionMat, s_tools, SetGLViewport(), ccGLMatrixTpl< T >::setRotation(), ccGLMatrixTpl< double >::ToEigenMatrix3(), ccGLCameraParameters::viewport, and Width().
Referenced by ConvertMousePositionToOrientation(), define_ccDisplayTools(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccGraphicalSegmentationTool::doExportSegmentationPolyline(), ccHObject::draw(), ccSNECloud::drawMeOnly(), ccPointPair::drawMeOnly(), ccSymbolCloud::drawMeOnly(), ccTrace::drawMeOnly(), cc2DLabel::drawMeOnly2D(), cc2DLabel::drawMeOnly3D(), ccSphere::drawNameIn3D(), GetClick3DPos(), qCanupo2DViewDialog::getClickPos(), QVTKWidgetCustom::mouseMoveEvent(), ccCompassExport::saveSVG(), ccGraphicalSegmentationTool::segment(), ccTracePolylineTool::SegmentGLParams::SegmentGLParams(), StartCPUBasedPointPicking(), ccHObject::updateNameIn3DRecursive(), and ccTracePolylineTool::updatePolyLineTip().
|
inlinestatic |
References getGLDepth(), x, and y.
Referenced by GetClick3DPos().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetGLDepth().
|
static |
|
static |
References GetLabelFontPointSize(), and s_tools.
Referenced by define_ccDisplayTools(), cc2DLabel::drawMeOnly2D(), and PCLDisplayTools::drawWidgets().
|
static |
Returns current font size for labels.
References ecvGenericDisplayTools::FontSizeModifier(), GetDisplayParameters(), GetOptimizedFontSize(), and s_tools.
Referenced by define_ccDisplayTools(), and GetLabelDisplayFont().
|
inlinestatic |
Get current global light intensity
References getLightIntensity().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetLightIntensity(), and ccPropertiesTreeDelegate::setEditorData().
|
inlinestatic |
References m_mainScreen.
Referenced by cloudViewer::geometry::LineSet::drawMeOnly(), and ccPointPairRegistrationDlg::EntityContext::restore().
|
inlinestatic |
References m_win.
Referenced by ccRasterizeTool::activeLayerChanged(), ccRasterizeTool::addNewContour(), ccVolumeCalcTool::ccVolumeCalcTool(), define_ccDisplayTools(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ecvOrientedBBox::draw(), ccBBox::draw(), ccHObject::drawBB(), ccOctreeProxy::drawMeOnly(), ccPolyline::drawMeOnly(), ccGenericMesh::drawMeOnly(), ccMesh::drawMeOnly(), cc2DLabel::drawMeOnly2D(), ccRasterizeTool::exportContourLines(), ccRasterizeTool::generateContours(), ccRasterizeTool::generateHillshade(), ccContourExtractorDlg::init(), ccGraphicalSegmentationTool::pauseSegmentationMode(), ccGenericPointCloud::pointPicking(), ccRasterizeTool::removeContourLines(), ccVolumeCalcTool::setDisplayedNumberPrecision(), cc2Point5DimEditor::update2DDisplayZoom(), ccRasterizeTool::updateGridAndDisplay(), ccVolumeCalcTool::updateGridAndDisplay(), ccContourExtractorDlg::win(), and cc2Point5DimEditor::~cc2Point5DimEditor().
|
static |
References s_tools, and UpdateModelViewMatrix().
|
inlinestatic |
|
inlinestatic |
Returns window own DB.
References m_winDBRoot.
Referenced by DistanceMapGenerationDlg::clearOverlaySymbols(), DistanceMapGenerationDlg::clearView(), define_ccDisplayTools(), DistanceMapGenerationDlg::labelFontSizeChanged(), DistanceMapGenerationDlg::overlayGridColorChanged(), DistanceMapGenerationDlg::overlaySymbolsColorChanged(), DistanceMapGenerationDlg::overlaySymbolsSizeChanged(), SetRedrawRecursive(), DistanceMapGenerationDlg::toggleOverlayGrid(), DistanceMapGenerationDlg::update(), DistanceMapGenerationDlg::updateMapTexture(), UpdateNamePoseRecursive(), and qCanupo2DViewDialog::updateZoom().
|
inlinestatic |
References getParallelScale().
Referenced by UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetParallelScale().
|
inlinestatic |
References getPerspectiveState().
|
inlineoverridevirtual |
Reimplemented from ecvGenericDisplayTools.
References m_viewportParams, and ecvViewportParameters::perspectiveView.
Referenced by GetPerspectiveState().
|
static |
References ecvDisplayTools::PickingParameters::pickInLocalDB, ecvDisplayTools::PickingParameters::pickInSceneDB, and s_tools.
Referenced by StartCPUBasedPointPicking(), and StartOpenGLPicking().
|
static |
References s_tools.
Referenced by define_ccDisplayTools().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Referenced by DrawClickableItems(), and RenderText().
|
static |
References s_tools, and UpdateProjectionMatrix().
Referenced by GetGLCameraParameters(), and RenderText().
|
inlinestatic |
References getProjectionMatrix().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetProjectionMatrix().
|
static |
|
inlinestatic |
References m_globalDBRoot.
Referenced by PclUtils::PCLVis::addCaption(), ccDisplayOptionsDlg::apply(), define_ccDisplayTools(), ccDisplayOptionsDlg::doReject(), ccTracePolylineTool::polylineOverSampling(), PclUtils::PCLVis::SetDataAxesGridProperties(), SetRedrawRecursive(), and UpdateNamePoseRecursive().
|
inlinestatic |
Referenced by SetFocusToScreen(), and ccContourExtractorDlg::zoomOn().
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Get view axes grid properties.
References color.
|
inlinestatic |
Referenced by RenderText().
|
inlinestatic |
References getViewMatrix().
Referenced by GetGLCameraParameters(), cloudViewer::ModelViewerWidget::ModelViewMatrix(), RenderText(), and UpdateDisplayParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetViewMatrix().
|
static |
References s_tools, and UpdateDisplayParameters().
Referenced by ccCameraSensor::applyViewport(), DistanceMapGenerationDlg::baseRadiusChanged(), MainWindow::decreasePointSize(), define_ccDisplayTools(), MainWindow::doActionSaveViewportAsCamera(), ccGraphicalSegmentationTool::doExportSegmentationPolyline(), ccMouseCircle::draw(), ccSNECloud::drawMeOnly(), ccPointPair::drawMeOnly(), cc2DViewportLabel::drawMeOnly(), ccTrace::drawMeOnly(), cc2DLabel::drawMeOnly3D(), ccSphere::drawNameIn3D(), MainWindow::increasePointSize(), ccPointPairRegistrationDlg::init(), MainWindow::onItemPicked(), ccPointPropertiesDlg::processClickedPoint(), RotateBaseViewMat(), ecvAnimationParamDlg::start(), GamepadInput::update(), cc2Point5DimEditor::update2DDisplayZoom(), and DistanceMapGenerationDlg::updateZoom().
|
static |
Returns the visible objects bounding-box.
References cloudViewer::BoundingBoxTpl< T >::isValid(), and s_tools.
Referenced by ComputeProjectionMatrix(), define_ccDisplayTools(), GetRealCameraCenter(), qAnimationDlg::init(), and UpdateConstellationCenterAndZoom().
|
inlinestatic |
References getVisualizer2D().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetVisualizer2D().
|
inlinestatic |
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by GetVisualizer3D().
|
inlinestatic |
Returns the OpenGL context height.
References m_glViewport.
Referenced by cloudViewer::ModelViewerWidget::AspectRatio(), DistanceMapGenerationDlg::exportMapAsImage(), ccCompass::exportToSVG(), ccPointPairRegistrationDlg::label2DMove(), qAnimationDlg::render(), ccCompassExport::saveSVG(), ecvAnimationParamDlg::startAnimation(), QVTKWidgetCustom::updateActivateditems(), DistanceMapGenerationDlg::updateZoom(), and cloudViewer::ModelViewerWidget::ZoomScale().
|
inlinestatic |
Returns the OpenGL context size.
References m_glViewport.
|
inlinestatic |
Returns the OpenGL context width.
References m_glViewport.
Referenced by cloudViewer::ModelViewerWidget::AspectRatio(), DistanceMapGenerationDlg::exportMapAsImage(), ccCompass::exportToSVG(), ccPointPairRegistrationDlg::label2DMove(), ccPointPropertiesDlg::processPickedPoint(), qAnimationDlg::render(), ccCompassExport::saveSVG(), ecvAnimationParamDlg::startAnimation(), QVTKWidgetCustom::updateActivateditems(), and DistanceMapGenerationDlg::updateZoom().
|
inlinestatic |
|
inlinestatic |
References hideShowEntities().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by HideShowEntities().
|
static |
References context, GetCurrentScreen(), ccHObject::getEntityType(), and ccHObject::getViewId().
Referenced by ccHObject::draw(), ccCameraSensor::drawMeOnly(), ccHObject::hideBB(), ccHObject::hideObject_recursive(), ccClipBox::hideShowAllInterators(), ccSensor::hideShowDrawings(), ccGBLSensor::hideShowDrawings(), ccCoordinateSystem::hideShowDrawings(), ccGenericPrimitive::hideShowDrawings(), ccCameraSensor::hideShowDrawings(), HideShowEntities(), and ccHObject::showBB().
|
static |
References context, and HideShowEntities().
|
static |
| mainWidget | MainWindow widget (optional) |
References c_ps_groupName, c_ps_perspectiveView, c_ps_pivotVisibility, checkScheduledRedraw(), DEFAULT_PICKING, DefaultPickRadius, doPicking(), GetVisualizer3D(), ecvGenericVisualizer3D::interactorPointPickedEvent(), itemPickedFast(), NO_PICKING, onItemPickedFast(), onPointPicking(), PIVOT_ALWAYS_SHOW, PIVOT_HIDE, PIVOT_SHOW_ON_MOVE, s_GlWindowNumber, s_tools, ecvGenericDisplayTools::SetInstance(), SetInteractionMode(), SetMainWindow(), SetPerspectiveState(), SetPickingMode(), SetPivotVisibility(), and TRANSFORM_CAMERA().
|
inlinestatic |
References m_validProjectionMatrix.
Referenced by define_ccDisplayTools(), QVTKWidgetCustom::mouseMoveEvent(), ccHObject::notifyGeometryUpdate(), SetAspectRatio(), SetBubbleViewFov(), SetCameraPos(), SetFov(), SetGLViewport(), SetPerspectiveState(), SetPivotPoint(), SetPixelSize(), SetView(), SetViewportParameters(), SetZoom(), ShowPivotSymbol(), ToBeRefreshed(), cc2Point5DimEditor::update2DDisplayZoom(), QVTKWidgetCustom::updateActivateditems(), UpdateConstellationCenterAndZoom(), and DistanceMapGenerationDlg::updateZoom().
|
inlinestatic |
References m_validModelviewMatrix.
Referenced by define_ccDisplayTools(), ResizeGL(), SetAspectRatio(), SetBaseViewMat(), SetBubbleViewFov(), SetCameraPos(), SetFov(), SetPerspectiveState(), SetPivotPoint(), SetPixelSize(), SetView(), SetViewportParameters(), SetZoom(), ToBeRefreshed(), cc2Point5DimEditor::update2DDisplayZoom(), UpdateConstellationCenterAndZoom(), and DistanceMapGenerationDlg::updateZoom().
|
inlinestatic |
Check if Camera Orientation Widget is shown.
References isCameraOrientationWidgetShown().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by IsCameraOrientationWidgetShown().
|
static |
Returns whether picking mode is locked or not.
References s_tools.
Referenced by define_ccDisplayTools().
|
static |
Returns whether rectangular picking is allowed or not.
References s_tools.
Referenced by define_ccDisplayTools().
|
inlinestatic |
Returns whether the rotation axis is locaked or not.
References m_rotationAxisLocked.
|
signal |
Signal emitted when a point (or a triangle) is picked.
| entity | 'picked' entity |
| subEntityID | point or triangle index in entity |
| x | mouse cursor x position |
| y | mouse cursor y position |
| P | the picked point |
Referenced by ecvAnimationParamDlg::enableListener(), ccPickingHub::onActiveWindowChanged(), and ecvCameraParamEditDlg::pickPointAsPivot().
|
signal |
Signal emitted when an item is picked (FAST_PICKING mode only)
| entity | entity |
| subEntityID | point or triangle index in entity |
| x | mouse cursor x position |
| y | mouse cursor y position |
Referenced by Init().
|
signal |
|
signal |
Signal emitted when the left mouse button is cliked on the window.
See INTERACT_SIG_LB_CLICKED. Arguments correspond to the clicked point coordinates (x,y) in pixels relative to the window corner!
Referenced by ccPointPropertiesDlg::linkWith(), and QVTKWidgetCustom::mousePressEvent().
|
inlinestatic |
References loadCameraParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by LoadCameraParameters().
|
static |
Locks picking mode.
References s_tools.
Referenced by define_ccDisplayTools().
|
static |
Lock the rotation axis.
References s_tools.
|
signal |
Signal emitted when the mouse is moved.
See INTERACT_SIG_MOUSE_MOVED. The two first arguments correspond to the current cursor coordinates (x,y) relative to the window corner!
Referenced by ccPointPropertiesDlg::linkWith(), ccTracePolylineTool::linkWith(), QVTKWidgetCustom::mouseMoveEvent(), and ccCloudLayersDlg::start().
|
signal |
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
signal |
Referenced by QVTKWidgetCustom::wheelEvent().
|
signal |
Signal emitted when the mouse wheel is rotated.
Referenced by QVTKWidgetCustom::wheelEvent().
|
inlinestatic |
Displaces camera.
Values are given in objects world along the current camera viewing directions (we use the right hand rule): X: horizontal axis (right) Y: vertical axis (up) Z: depth axis (pointing out of the screen)
| v | displacement vector |
References Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Displaces camera.
Values are given in objects world along the current camera viewing directions (we use the right hand rule): X: horizontal axis (right) Y: vertical axis (up) Z: depth axis (pointing out of the screen)
References s_tools, and SetCameraPos().
Referenced by define_ccDisplayTools(), QVTKWidgetCustom::mouseMoveEvent(), and GamepadInput::update().
|
signal |
Signal emitted when a new label is created.
|
static |
Shortcut: returns whether object-based perspective mode is enabled.
References s_tools.
Referenced by define_ccDisplayTools().
|
slot |
Reacts to the itemPickedFast signal.
References CV_TYPES::CLIPPING_BOX, fastPickingFinished(), Height(), ccObject::isA(), CV_TYPES::LABEL_2D, m_activeItems, m_viewportParams, ccClipBox::setActiveComponent(), ccClipBox::setClickedPoint(), ecvViewportParameters::viewMat, Width(), x, and y.
Referenced by Init().
|
slot |
References doPicking(), m_last_picked_id, m_last_picked_point, m_last_point_index, m_pickRadius, CVLog::Print(), ProcessPickingResult(), USE_VTK_PICK, Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by Init().
|
slot |
References GetDisplayParameters(), m_bbHalfDiag, m_bubbleViewFov_deg, m_bubbleViewModeEnabled, m_cameraToBBCenterDist, m_viewportParams, ecvViewportParameters::perspectiveView, ecvViewportParameters::pixelSize, SetBubbleViewFov(), UpdateDisplayParameters(), UpdateZoom(), and ecvGui::ParamStruct::zoomSpeed.
Referenced by QVTKWidgetCustom::wheelEvent().
|
inlinestatic |
References orientationMarkerShown().
Referenced by PclUtils::PCLVis::renderToImage().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by OrientationMarkerShown().
|
inlinestatic |
Returns whether overlay entities (scale, tetrahedron, etc.) are displayed or not
References m_displayOverlayEntities.
Referenced by PclUtils::PCLVis::renderToImage().
|
static |
References INTERACT_2D_ITEMS, INTERACT_CLICKABLE_ITEMS, INTERACT_PAN, and INTERACT_ZOOM_CAMERA.
Referenced by qCanupo2DViewDialog::deselectPoint(), and TRANSFORM_CAMERA().
|
signal |
Signal emitted when the perspective state changes (see setPerspectiveState)
Referenced by ecvCameraParamEditDlg::linkWith().
|
static |
References FilterByEntityType(), ccHObject::getViewId(), CV_TYPES::LABEL_2D, s_tools, ccHObjectCaster::To2DLabel(), x, and y.
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
inlinestatic |
References pick3DItem(), x, and y.
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by Pick3DItem().
|
inlinestatic |
References pickObject(), x, and y.
Referenced by StartCPUBasedPointPicking().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by PickObject().
|
signal |
Signal emitted when the pivot point is changed.
Referenced by ecvCameraParamEditDlg::linkWith().
|
signal |
Signal emitted when the pixel size is changed.
|
signal |
|
static |
Processes the clickable items.
References ecvDisplayTools::ClickableItem::DECREASE_LINE_WIDTH, ecvDisplayTools::ClickableItem::DECREASE_POINT_SIZE, GetDevicePixelRatio(), ecvDisplayTools::ClickableItem::INCREASE_LINE_WIDTH, ecvDisplayTools::ClickableItem::INCREASE_POINT_SIZE, ecvDisplayTools::ClickableItem::LEAVE_BUBBLE_VIEW_MODE, ecvDisplayTools::ClickableItem::LEAVE_FULLSCREEN_MODE, ecvDisplayTools::ClickableItem::NO_ROLE, RedrawDisplay(), s_tools, SetBubbleViewMode(), SetLineWidth(), SetPointSize(), SetRedrawRecursive(), x, and y.
Referenced by QVTKWidgetCustom::mouseReleaseEvent().
|
static |
Processes the picking process result and sends the corresponding signal.
References ccHObject::addChild(), cc2DLabel::addPickedPoint(), ecvDisplayTools::PickingParameters::centerX, ecvDisplayTools::PickingParameters::centerY, ENTITY_PICKING, ENTITY_RECT_PICKING, FAST_PICKING, ccGenericMesh::getAssociatedCloud(), cloudViewer::GenericIndexedMesh::getTriangleVertIndexes(), cloudViewer::VerticesIndexes::i1, cloudViewer::VerticesIndexes::i2, cloudViewer::VerticesIndexes::i3, ccObject::isEnabled(), ccObject::isKindOf(), LABEL_PICKING, CV_TYPES::MESH, ecvDisplayTools::PickingParameters::mode, CV_TYPES::POINT_CLOUD, POINT_OR_TRIANGLE_PICKING, POINT_PICKING, s_tools, ccObject::setEnabled(), cc2DLabel::setPosition(), ccDrawableObject::setVisible(), ccHObjectCaster::ToGenericMesh(), ccHObjectCaster::ToGenericPointCloud(), and TRIANGLE_PICKING.
Referenced by onPointPicking(), StartCPUBasedPointPicking(), StartOpenGLPicking(), and StartPicking().
|
static |
|
static |
References ecvColor::RgbaTpl< Type >::a, CheckIfRemove(), ccGLDrawContext::clearColorLayer, ccGLDrawContext::clearDepthLayer, WIDGETS_PARAMETER::color, ecvColor::dark(), DEBUG_LAYER_ID, Deprecate3DLayer(), ecvGui::ParamStruct::displayCross, DrawBackground(), DrawForeground(), DrawWidgets(), ccGLDrawContext::forceRedraw, GetContext(), GetDisplayParameters(), GetFontPointSize(), GetTextDisplayFont(), ccGLDrawContext::glH, ccGLDrawContext::glW, height, WIDGETS_PARAMETER::rect, RemoveWidgets(), RenderText(), s_tools, SetFontPointSize(), SetGLViewport(), SetPivotPoint(), Update(), UpdateScreen(), WIDGET_RECTANGLE_2D, WIDGET_T2D, x, y, and ecvColor::yellow().
Referenced by ccRasterizeTool::activeLayerChanged(), qCanupo2DViewDialog::addOrSelectPoint(), ccCompass::addPinchNode(), ccPointPairRegistrationDlg::align(), ccGraphicalTransformationTool::apply(), ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), DistanceMapGenerationDlg::baseRadiusChanged(), ccPointPairRegistrationDlg::cancel(), MainWindow::cancelPreviousPickingOperation(), masc::Classifier::classify(), ccCompass::cleanupBeforeToolChange(), DistanceMapGenerationDlg::clearOverlaySymbols(), DistanceMapGenerationDlg::colorScaleChanged(), define_ccDisplayTools(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccGraphicalSegmentationTool::doSetPolylineSelection(), ccGraphicalSegmentationTool::doSetRectangularSelection(), ccCompass::enableMapMode(), ccCompass::enableMeasureMode(), MainWindow::enablePickingOperation(), cloudViewer::ModelViewerWidget::EndRender(), masc::Classifier::evaluate(), JsonRPCPlugin::execute(), ccPointPropertiesDlg::exportCurrentLabel(), ccTraceTool::finishCurrentTrace(), ccRasterizeTool::generateContours(), ccRasterizeTool::generateHillshade(), ccPointPairRegistrationDlg::init(), DistanceMapGenerationDlg::labelFontSizeChanged(), DistanceMapGenerationDlg::labelPrecisionChanged(), DistanceMapGenerationDlg::loadOverlaySymbols(), ccPointListPickingDlg::markerSizeChanged(), QVTKWidgetCustom::mouseMoveEvent(), qCanupo2DViewDialog::moveSelectedPoint(), ccColorLevelsDlg::onApply(), ccThicknessTool::onNewSelection(), DistanceMapGenerationDlg::overlayGridColorChanged(), DistanceMapGenerationDlg::overlaySymbolsColorChanged(), DistanceMapGenerationDlg::overlaySymbolsSizeChanged(), ccGraphicalTransformationTool::pause(), ccGraphicalSegmentationTool::pauseSegmentationMode(), BasePclModule::performAction(), ccCompass::pointPicked(), ProcessClickableItems(), ccCompass::recalculateSelectedTraces(), ccHObject::redrawDisplay(), ccContourExtractorDlg::refresh(), MainWindow::refreshAll(), RefreshDisplay(), MainWindow::refreshObject(), MainWindow::refreshObjects(), MainWindow::refreshSelected(), ccRasterizeTool::removeContourLines(), ccGraphicalSegmentationTool::reset(), ccPointPairRegistrationDlg::reset(), qCanupo2DViewDialog::resetBoundary(), ccPointPairRegistrationDlg::EntityContext::restore(), ccGraphicalSegmentationTool::segment(), cloudViewer::ModelViewerWidget::SetBackgroundColor(), ccEntityAction::setColor(), ccAlignDlg::setColorsAndLabels(), ccVolumeCalcTool::setDisplayedNumberPrecision(), ccCompass::setLineation(), ccCompass::setNote(), ccCompass::setPick(), SetPivotPoint(), ccCompass::setPlane(), ccCompass::setThickness(), ccCompass::setTrace(), SetView(), ccCompass::setYoungerThan(), ccPointPairRegistrationDlg::showAlignedEntities(), ccPointPairRegistrationDlg::showReferenceEntities(), ccCompass::startMeasuring(), ccGraphicalSegmentationTool::stop(), DistanceMapGenerationDlg::toggleColorScaleDisplay(), MainWindow::toggleExclusiveFullScreen(), ccCompass::toggleLabels(), ccCompass::toggleNormals(), DistanceMapGenerationDlg::toggleOverlayGrid(), ccCompass::toggleStipple(), ccThicknessTool::toolActivated(), ccThicknessTool::toolDisactivated(), ccTraceTool::undo(), GamepadInput::update(), cc2Point5DimEditor::update2DDisplayZoom(), ccPointPairRegistrationDlg::updateAlignInfo(), UpdateConstellationCenterAndZoom(), ccComparisonDlg::updateDisplay(), ccRasterizeTool::updateGridAndDisplay(), ccVolumeCalcTool::updateGridAndDisplay(), FastGlobalRegistrationDialog::updateGUI(), ccRegistrationDlg::updateGUI(), DistanceMapGenerationDlg::updateMapTexture(), qCanupo2DViewDialog::updateZoom(), DistanceMapGenerationDlg::updateZoom(), QVTKWidgetCustom::wheelEvent(), ccRegistrationDlg::~ccRegistrationDlg(), and FastGlobalRegistrationDialog::~FastGlobalRegistrationDialog().
|
static |
References RedrawDisplay(), and s_tools.
Referenced by define_ccDisplayTools(), and QVTKWidgetCustom::mouseReleaseEvent().
|
protectedpure virtual |
register visualizer callback function
Implemented in PCLDisplayTools.
|
static |
References s_tools.
Referenced by MainWindow::~MainWindow().
|
static |
References context, ECV_TEXT2D, RemoveEntities(), and UpdateScreen().
Referenced by define_ccDisplayTools().
|
static |
References context, ECV_ALL, RemoveEntities(), and UpdateScreen().
Referenced by define_ccDisplayTools().
|
static |
References context, ECV_SHAPE, and RemoveEntities().
Referenced by ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), CheckIfRemove(), ccHObject::notifyGeometryUpdate(), BasePclModule::performAction(), RemoveBB(), MainWindow::resetSelectedBBox(), and ccPointPairRegistrationDlg::transformAlignedEntity().
|
static |
References context, and RemoveBB().
|
inlinestatic |
References removeEntities().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by RemoveEntities().
|
static |
References context, GetCurrentScreen(), ccHObject::getEntityType(), and ccHObject::getViewId().
Referenced by CheckIfRemove(), ccSensor::clearDrawings(), ccGBLSensor::clearDrawings(), ccCoordinateSystem::clearDrawings(), ccGenericPrimitive::clearDrawings(), ccCameraSensor::clearDrawings(), ccPlanarEntityInterface::clearNormalVector(), ccHObject::draw(), ccOctree::DrawCellAsABox(), ccCoordinateSystem::drawMeOnly(), ccClipBox::drawMeOnly(), ccClipBox::releaseAllInterators(), Remove3DLabel(), RemoveAllWidgets(), RemoveBB(), RemoveEntities(), ccHObject::removeFromRenderScreen(), RemoveWidgets(), ccPointPairRegistrationDlg::updateSphereMarks(), and DrawMeOnlyVisitor::visit().
|
static |
References context, and RemoveEntities().
|
static |
Removes an entity from window own DB.
References s_tools.
Referenced by MainWindow::cancelPreviousPickingOperation(), DistanceMapGenerationDlg::clearOverlaySymbols(), DistanceMapGenerationDlg::clearView(), define_ccDisplayTools(), ccRasterizeTool::exportContourLines(), ccPointPropertiesDlg::exportCurrentLabel(), ccPointPropertiesDlg::linkWith(), QVTKWidgetCustom::mouseReleaseEvent(), ccRasterizeTool::removeContourLines(), ccContourExtractorDlg::removFromDisplay(), DistanceMapGenerationDlg::toggleOverlayGrid(), ccRasterizeTool::updateGridAndDisplay(), ccVolumeCalcTool::updateGridAndDisplay(), cc2Point5DimEditor::~cc2Point5DimEditor(), and ccMouseCircle::~ccMouseCircle().
|
static |
References context, ECV_CAPTION, ECV_CIRCLE_2D, ECV_IMAGE, ECV_LINES_2D, ECV_LINES_3D, ECV_MARK_POINT, ECV_MESH, ECV_POLYLINE_2D, ECV_RECTANGLE_2D, ECV_SCALAR_BAR, ECV_SHAPE, ECV_TEXT2D, ECV_TEXT3D, ECV_TRIANGLE_2D, RemoveEntities(), WIDGETS_PARAMETER::type, UpdateScreen(), WIDGETS_PARAMETER::viewID, WIDGETS_PARAMETER::viewport, WIDGET_BBOX, WIDGET_CAPTION, WIDGET_CIRCLE_2D, WIDGET_COORDINATE, WIDGET_IMAGE, WIDGET_LINE_2D, WIDGET_LINE_3D, WIDGET_POINTS_2D, WIDGET_POLYGONMESH, WIDGET_POLYLINE, WIDGET_POLYLINE_2D, WIDGET_RECTANGLE_2D, WIDGET_SCALAR_BAR, WIDGET_SPHERE, WIDGET_T2D, WIDGET_T3D, and WIDGET_TRIANGLE_2D.
Referenced by checkScheduledRedraw(), cc2DViewportLabel::clear2Dviews(), cc2DLabel::clear2Dviews(), cc2DLabel::clear3Dviews(), ClearBubbleView(), cc2DLabel::clearLabel(), DisplayNewMessage(), DisplayText(), ccHObject::draw(), DrawClickableItems(), ccRenderingTools::DrawColorRamp(), cc2DLabel::drawMeOnly2D(), ccHObject::getTypeID_recursive(), RedrawDisplay(), ccTracePolylineTool::resetPoly3D(), ccGraphicalSegmentationTool::resetSegmentation(), ccTracePolylineTool::resetTip(), ccDBRoot::setData(), and ccHObject::updateNameIn3DRecursive().
|
static |
References color, ccGLMatrixTpl< T >::data(), GetProjectionMatrix(), GetViewerPos(), GetViewMatrix(), ccGLCameraParameters::modelViewMat, ccGLCameraParameters::project(), ccGLCameraParameters::projectionMat, RenderText(), s_tools, ccGLCameraParameters::viewport, Tuple3Tpl< Type >::x, x, Tuple3Tpl< Type >::y, y, and z.
|
static |
References color, context, DisplayText(), GetPlatformAwareDPIScale(), s_tools, ecvGenericDisplayTools::ToWorldPoint(), Tuple3Tpl< Type >::x, x, Tuple3Tpl< Type >::y, y, and Tuple3Tpl< Type >::z.
Referenced by define_ccDisplayTools(), Display3DLabel(), DisplayText(), DrawClickableItems(), DrawForeground(), RedrawDisplay(), and RenderText().
|
static |
Renders screen to a file.
References filename, GetDisplayParameters(), CVLog::Print(), and RenderToImage().
Referenced by define_ccDisplayTools(), DistanceMapGenerationDlg::exportMapAsImage(), and ccCompassExport::saveSVG().
|
inlinestatic |
References renderToImage().
Referenced by cloudViewer::ModelViewerWidget::GrabImage(), qAnimationDlg::render(), RenderToFile(), and qAnimationDlg::textureAnimationRender().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by RenderToImage().
|
inlinestatic |
References resetCamera().
Referenced by UpdateConstellationCenterAndZoom().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
inlinestatic |
References resetCamera().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ResetCamera().
|
inlinestatic |
References resetCameraClippingRange().
Referenced by ecvPrimitiveFactoryDlg::createPrimitive(), and SetupProjectiveViewport().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ResetCameraClippingRange().
|
inlinestatic |
References resetCameraViewpoint().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ResetCameraViewpoint().
|
inlinestatic |
Resets the center of rotation to the focal point.
References resetCenterOfRotation().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ResetCenterOfRotation().
|
static |
Sets current zoom.
Warning: has no effect in viewer-centered perspective mode
References Deprecate3DLayer(), DisplayNewMessage(), InvalidateVisualization(), LOWER_LEFT_MESSAGE, s_tools, SCREEN_SIZE_MESSAGE, and SetGLViewport().
Referenced by QVTKWidgetCustom::event(), and UpdateScreenSize().
|
signal |
Signal emitted when the right mouse button is cliked on the window.
See INTERACT_SIG_RB_CLICKED. Arguments correspond to the clicked point coordinates (x,y) in pixels relative to the window corner!
Referenced by ccTracePolylineTool::linkWith(), and QVTKWidgetCustom::mousePressEvent().
|
static |
Rotates the base view matrix.
Warning: 'base view' marix is either:
References ecvViewportParameters::focal, ccGLMatrixTpl< T >::getColumnAsVec3D(), ccGLMatrixTpl< T >::getTranslationAsVec3D(), GetViewportParameters(), Vector3Tpl< Type >::normalize(), s_tools, ecvViewportParameters::setCameraCenter(), ecvViewportParameters::setPivotPoint(), SetViewportParameters(), ecvViewportParameters::up, and ecvViewportParameters::viewMat.
Referenced by GamepadInput::update().
|
inlinestatic |
Rotate camera with axis given about angle.
| pos | The mouse position on screen. |
| axis | The rotation axis. |
| angle | The ration angle in degrees. notify the external memory manager that the memory is no longer needed. It's up to the external manager to free the memory. |
References rotateWithAxis().
Referenced by QVTKWidgetCustom::mouseMoveEvent(), and ecvAnimationParamDlg::startAnimation().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by RotateWithAxis().
|
signal |
Signal emitted when the selected object is rotated by the user.
| rotMat | rotation applied to current viewport (4x4 OpenGL matrix) |
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
inlinestatic |
Save or Load the current rendered camera parameters to disk or current camera.
| [in] | file | the name of the param file |
References saveCameraParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SaveCameraParameters().
|
inlinestatic |
Save the current rendered image to disk, as a PNG screenshot.
| [in] | file | the name of the PNG file |
References saveScreenshot().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SaveScreenshot().
| void ecvDisplayTools::scheduleFullRedraw | ( | unsigned | maxDelay_ms | ) |
Schedules a full redraw.
Any previously scheduled redraw will be cancelled.
| maxDelay_ms | the maximum delay for the call to redraw (in ms) |
References m_scheduledFullRedrawTime, m_scheduleTimer, and m_timer.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
inlinestatic |
|
static |
Sets current camera aspect ratio (width/height)
AR is only used in perspective mode.
References Deprecate3DLayer(), InvalidateViewport(), InvalidateVisualization(), s_tools, and CVLog::Warning().
Referenced by SetupProjectiveViewport().
|
static |
Toggles the automatic setting of the pivot point at the center of the screen
References s_tools.
Referenced by ecvGenericCameraTool::setAutoPickPivotAtCenter().
|
inlinestatic |
References setAutoUpateCameraPos().
Referenced by SetPivotPoint().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetAutoUpateCameraPos().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
static |
References InvalidateVisualization(), and s_tools.
Referenced by SetupProjectiveViewport().
|
static |
Set bubble-view f.o.v. (in degrees)
References Deprecate3DLayer(), InvalidateViewport(), InvalidateVisualization(), and s_tools.
Referenced by onWheelEvent(), SetBubbleViewMode(), and SetFov().
|
static |
Sets bubble-view mode state.
Bubble-view is a kind of viewer-based perspective mode where the user can't displace the camera (apart from up-down or left-right rotations). The f.o.v. is also maximized.
References s_tools, SetBubbleViewFov(), SetPerspectiveState(), and SetViewportParameters().
Referenced by ProcessClickableItems(), and SetupProjectiveViewport().
|
inlinestatic |
References m_viewportParams, setCameraClip(), ecvViewportParameters::zFar, and ecvViewportParameters::zNear.
Referenced by SetViewportParameters(), and SetZNearCoef().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetCameraClip().
|
inlinestatic |
References setCameraFocalDistance().
Referenced by cloudViewer::ModelViewerWidget::ChangeFocusDistance().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetCameraFocalDistance().
|
inlinestatic |
References cloudViewer::DegreesToRadians(), ecvViewportParameters::fov_deg, m_viewportParams, and setCameraFovy().
Referenced by SetFov().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetCameraFovy().
|
static |
Sets camera position.
Emits the 'cameraPosChanged' signal.
References Deprecate3DLayer(), InvalidateViewport(), InvalidateVisualization(), s_tools, and SetCameraPosition().
Referenced by define_ccDisplayTools(), MoveCamera(), SetPerspectiveState(), SetPivotPoint(), SetupProjectiveViewport(), cc2Point5DimEditor::update2DDisplayZoom(), DistanceMapGenerationDlg::updateZoom(), and ccContourExtractorDlg::zoomOn().
|
inlinestatic |
References setCameraPosition().
Referenced by SetCameraPos(), SetupProjectiveViewport(), SetView(), and SetViewportParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetCameraPosition().
|
inlinestatic |
References setCameraPosition().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
inlinestatic |
References setCameraPosition().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
inlinestatic |
References setCameraPosition().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
|
inlinestatic |
Enable/disable center axes visualization.
References setCenterAxesVisible().
|
inlinevirtual |
Referenced by SetCenterAxesVisible().
|
inlinestatic |
References Tuple3Tpl< Type >::u.
|
inlinestatic |
|
inlinestatic |
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 setCenterOfRotation(), x, y, and z.
Referenced by SetPivotPoint().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by PCLDisplayTools::setCenterOfRotation(), and SetCenterOfRotation().
|
inlinestatic |
References m_clickableItemsVisible.
|
static |
References s_tools.
Referenced by PCLDisplayTools::registerVisualizer().
|
inlinestatic |
Set Data Axes Grid properties (Unified Interface) Each ccHObject has its own Data Axes Grid bound to its viewID.
| viewID | The view ID of the ccHObject (empty string for current selected object) |
| props | All axes grid properties encapsulated in AxesGridProperties struct |
| viewport | Viewport ID (default: 0) |
References setDataAxesGridProperties().
|
inlinevirtual |
Set Data Axes Grid properties (Virtual interface for derived classes)
Reimplemented in PCLDisplayTools.
Referenced by SetDataAxesGridProperties(), and ccPropertiesTreeDelegate::setEditorData().
|
static |
Sets current parameters for this display.
References s_tools, and ecvGui::Set().
Referenced by ccVolumeCalcTool::ccVolumeCalcTool(), cc2Point5DimEditor::create2DView(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccContourExtractorDlg::init(), DistanceMapGenerationDlg::labelFontSizeChanged(), DistanceMapGenerationDlg::labelPrecisionChanged(), ccPointListPickingDlg::markerSizeChanged(), cloudViewer::ModelViewerWidget::SetBackgroundColor(), and ccVolumeCalcTool::setDisplayedNumberPrecision().
|
inlinestatic |
References m_exclusiveFullscreen.
|
static |
Draws the main 3D layer.
References GetCurrentScreen(), GetScreenRect(), cloudViewer::utility::Sleep(), and CVLog::Warning().
|
inlinestatic |
Sets current font size.
Warning: only used internally. Change 'defaultFontSize' with setDisplayParameters instead!
References m_font.
Referenced by RedrawDisplay().
|
static |
Sets current camera f.o.v. (field of view) in degrees.
FOV is only used in perspective mode.
References Deprecate3DLayer(), DisplayNewMessage(), InvalidateViewport(), InvalidateVisualization(), cloudViewer::LessThanEpsilon(), LOWER_LEFT_MESSAGE, s_tools, SCREEN_SIZE_MESSAGE, SetBubbleViewFov(), SetCameraFovy(), and CVLog::Warning().
Referenced by define_ccDisplayTools(), SetupProjectiveViewport(), SetViewportParameters(), and QVTKWidgetCustom::wheelEvent().
|
static |
Sets the OpenGL viewport.
References GetDevicePixelRatio(), InvalidateViewport(), and s_tools.
|
inlinestatic |
Sets the OpenGL viewport (shortut)
Referenced by GetGLCameraParameters(), RedrawDisplay(), and ResizeGL().
|
static |
References GetCurrentScreen(), INTERACT_CLICKABLE_ITEMS, INTERACT_SIG_MOUSE_MOVED, and s_tools.
Referenced by ccPointPropertiesDlg::activate2DZonePicking(), ccPointPropertiesDlg::activateAngleDisplay(), ccPointPropertiesDlg::activateDistanceDisplay(), ccPointPropertiesDlg::activatePointPropertiesDisplay(), qCanupo2DViewDialog::addOrSelectPoint(), cc2Point5DimEditor::create2DView(), define_ccDisplayTools(), qCanupo2DViewDialog::deselectPoint(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccContourExtractorDlg::init(), Init(), ccPointPropertiesDlg::linkWith(), ccGraphicalSegmentationTool::pauseSegmentationMode(), ccTracePolylineTool::start(), ccPointPropertiesDlg::stop(), ccTracePolylineTool::stop(), and ccGraphicalSegmentationTool::stop().
|
inlinestatic |
Set global light intensity (ParaView-style, affects all scene objects) Directly modifies the renderer's default light intensity
| intensity | Light intensity (0.0-1.0, default 1.0) |
References setLightIntensity().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetLightIntensity().
|
static |
Sets line width.
| width | lines width (between MIN_LINE_WIDTH_F and MAX_LINE_WIDTH_F) |
References DisplayNewMessage(), LOWER_LEFT_MESSAGE, MAX_LINE_WIDTH_F, MIN_LINE_WIDTH_F, CVLog::Print(), s_tools, SCREEN_SIZE_MESSAGE, SetLineWithRecursive(), and width.
Referenced by define_ccDisplayTools(), and ProcessClickableItems().
|
static |
References s_tools.
Referenced by SetLineWidth().
|
inlinestatic |
Set the ID of a cloud or shape to be used for LUT display.
| [in] | id | The id of the cloud/shape look up table to be displayed The look up table is displayed by pressing 'u' in the PCLVisualizer |
References setLookUpTableID().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetLookUpTableID().
|
inlinestatic |
References m_mainScreen.
Referenced by PCLDisplayTools::registerVisualizer().
|
inlinestatic |
|
inlinestatic |
References setOrthoProjection().
Referenced by MainWindow::doActionOrthogonalProjection().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetOrthoProjection().
|
inlinestatic |
References setParallelScale().
Referenced by SetupProjectiveViewport(), and SetViewportParameters().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetParallelScale().
|
inlinestatic |
References setPerspectiveProjection().
Referenced by MainWindow::doActionPerspectiveProjection().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetPerspectiveProjection().
|
static |
Set perspective state/mode.
Persepctive mode can be:
| state | whether perspective mode is enabled or not |
| objectCenteredView | whether view is object- or viewer-centered (forced to true in ortho. mode) |
References c_ps_groupName, c_ps_objectMode, c_ps_perspectiveView, ComputePerspectiveZoom(), cloudViewer::DegreesToRadians(), Deprecate3DLayer(), DisplayNewMessage(), GetFov(), cloudViewer::GreaterThanEpsilon(), InvalidateViewport(), InvalidateVisualization(), LOWER_LEFT_MESSAGE, PERSPECTIVE_STATE_MESSAGE, s_tools, SetCameraPos(), SetZoom(), and Tuple3Tpl< Type >::z.
Referenced by cc2Point5DimEditor::create2DView(), define_ccDisplayTools(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), ccContourExtractorDlg::init(), Init(), ccCompassExport::saveSVG(), SetBubbleViewMode(), MainWindow::setOrthoView(), MainWindow::setPerspectiveView(), SetupProjectiveViewport(), SetView(), and ccFitPlaneTool::toolActivated().
|
static |
References DEFAULT_PICKING, ENTITY_PICKING, GetCurrentScreen(), NO_PICKING, POINT_OR_TRIANGLE_OR_LABEL_PICKING, POINT_OR_TRIANGLE_PICKING, POINT_PICKING, s_tools, TRIANGLE_PICKING, and CVLog::Warning().
Referenced by ccTracePolylineTool::closePolyLine(), cc2Point5DimEditor::create2DView(), define_ccDisplayTools(), ecvAnimationParamDlg::enableListener(), ccContourExtractorDlg::init(), Init(), ecvCameraParamEditDlg::pickPointAsPivot(), ccTracePolylineTool::start(), ccGraphicalSegmentationTool::start(), ccGraphicalSegmentationTool::stop(), and ccPickingHub::togglePickingMode().
|
inlinestatic |
|
static |
Sets pivot point.
Emits the 'pivotPointChanged' signal.
References ecvGui::ParamStruct::displayedNumPrecision, DisplayNewMessage(), GetDisplayParameters(), InvalidateViewport(), InvalidateVisualization(), LOWER_LEFT_MESSAGE, RedrawDisplay(), s_tools, SetAutoUpateCameraPos(), SetCameraPos(), SetCenterOfRotation(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by define_ccDisplayTools(), QVTKWidgetCustom::mouseDoubleClickEvent(), QVTKWidgetCustom::mousePressEvent(), ecvCameraParamEditDlg::onItemPicked(), MainWindow::onItemPicked(), ecvCameraParamEditDlg::processPickedItem(), RedrawDisplay(), SetupProjectiveViewport(), SetViewportParameters(), cc2Point5DimEditor::update2DDisplayZoom(), UpdateConstellationCenterAndZoom(), and DistanceMapGenerationDlg::updateZoom().
|
inlinestatic |
References setPivotVisibility().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetPivotVisibility().
|
static |
Sets pivot visibility.
References c_ps_groupName, c_ps_pivotVisibility, s_tools, and UpdateScreen().
Referenced by define_ccDisplayTools(), and Init().
|
static |
Sets pixel size (i.e. zoom base)
Emits the 'pixelSizeChanged' signal.
References Deprecate3DLayer(), InvalidateViewport(), InvalidateVisualization(), and s_tools.
Referenced by UpdateConstellationCenterAndZoom(), and ccContourExtractorDlg::zoomOn().
|
static |
References DisplayNewMessage(), LOWER_LEFT_MESSAGE, MAX_POINT_SIZE_F, MIN_POINT_SIZE_F, CVLog::Print(), s_tools, SCREEN_SIZE_MESSAGE, SetPointSizeRecursive(), and size().
Referenced by MainWindow::decreasePointSize(), define_ccDisplayTools(), MainWindow::increasePointSize(), ProcessClickableItems(), cc2Point5DimEditor::update2DDisplayZoom(), and QVTKWidgetCustom::wheelEvent().
|
static |
References s_tools, and size().
Referenced by SetPointSize().
|
static |
Sets whether rectangular picking is allowed or not.
References s_tools.
Referenced by define_ccDisplayTools().
|
static |
References GetOwnDB(), GetSceneDB(), and ccHObject::setRedrawFlagRecursive().
Referenced by MainWindow::addToDB(), ccPointPairRegistrationDlg::align(), ccGraphicalTransformationTool::apply(), ccLibAlgorithms::ApplyScaleMatchingAlgorithm(), ccPointPairRegistrationDlg::cancel(), MainWindow::cancelPreviousPickingOperation(), ccDBRoot::changeSelection(), masc::Classifier::classify(), ccEntityAction::computeOctree(), ccDBRoot::deleteSelectedEntities(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), qCanupoPlugin::doClassifyAction(), qSRA::doComputeRadialDists(), ccGraphicalSegmentationTool::doSetPolylineSelection(), ccGraphicalSegmentationTool::doSetRectangularSelection(), masc::Classifier::evaluate(), ccPointPropertiesDlg::exportCurrentLabel(), ccPointPairRegistrationDlg::init(), ccMPlaneDlgController::onNormalCheckBoxClicked(), ccGraphicalTransformationTool::pause(), ccGraphicalSegmentationTool::pauseSegmentationMode(), BasePclModule::performAction(), ProcessClickableItems(), MainWindow::refreshObject(), MainWindow::refreshObjects(), MainWindow::refreshSelected(), ccGraphicalSegmentationTool::reset(), ccPointPairRegistrationDlg::reset(), ccPointPairRegistrationDlg::EntityContext::restore(), ccGraphicalSegmentationTool::segment(), ccEntityAction::setColor(), ccOrderChoiceDlg::setColorsAndLabels(), ccDBRoot::setData(), MainWindow::setGlobalZoom(), qVoxFallDialog::setMesh1Visibility(), qVoxFallDialog::setMesh2Visibility(), ccPointPairRegistrationDlg::showAlignedEntities(), ccPointPairRegistrationDlg::showReferenceEntities(), cloudViewer::ModelViewerWidget::StartRender(), ccGraphicalSegmentationTool::stop(), MainWindow::toggleExclusiveFullScreen(), ccPointPairRegistrationDlg::updateAlignInfo(), ccComparisonDlg::updateDisplay(), StereogramDialog::updateFacetsFilter(), FastGlobalRegistrationDialog::updateGUI(), ccRegistrationDlg::updateGUI(), QVTKWidgetCustom::wheelEvent(), ccOrderChoiceDlg::~ccOrderChoiceDlg(), ccRegistrationDlg::~ccRegistrationDlg(), and FastGlobalRegistrationDialog::~FastGlobalRegistrationDialog().
|
static |
References ccHObject::setRedrawFlagRecursive().
|
inlinestatic |
References m_removeAllFlag.
Referenced by CheckIfRemove(), and ccDBRoot::unloadAll().
|
static |
References s_tools.
Referenced by ccDBRoot::deleteSelectedEntities().
|
inlinestatic |
References setRenderWindowSize().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetRenderWindowSize().
|
inlinestatic |
References setScaleBarVisible().
Referenced by DrawForeground().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetScaleBarVisible().
|
static |
References s_tools, and ZoomGlobal().
Referenced by define_ccDisplayTools(), and MainWindow::~MainWindow().
|
inlinestatic |
|
static |
References ccGLMatrixTpl< T >::applyRotation(), ccGLMatrixTpl< T >::clearTranslation(), Tuple3Tpl< Type >::data(), cloudViewer::DegreesToRadians(), ccGLMatrixTpl< T >::getColumnAsVec3D(), ccGLMatrixTpl< T >::getTranslationAsVec3D(), ccGLMatrixTpl< T >::invert(), ResetCameraClippingRange(), s_tools, SetAspectRatio(), SetBaseViewMat(), SetBubbleViewMode(), SetCameraPos(), SetCameraPosition(), SetFov(), SetParallelScale(), SetPerspectiveState(), SetPivotPoint(), and UpdateScreen().
Referenced by ccGBLSensor::applyViewport(), and define_ccDisplayTools().
|
inlinestatic |
Use Vertex Buffer Objects renderers. This is an optimization for the obsolete OpenGL backend. Modern OpenGL2 backend (VTK \A1\DD 6.3) uses vertex buffer objects by default, transparently for the user.
| [in] | use_vbos | set to true to use VBOs |
References setUseVbos().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetUseVbos().
|
static |
References CC_BACK_VIEW, CC_BOTTOM_VIEW, CC_FRONT_VIEW, CC_ISO_VIEW_1, CC_ISO_VIEW_2, CC_LEFT_VIEW, CC_RIGHT_VIEW, CC_TOP_VIEW, Deprecate3DLayer(), e, GenerateViewMat(), GetCameraFocal(), GetCameraPos(), InvalidateViewport(), InvalidateVisualization(), Vector3Tpl< Type >::norm(), Vector3Tpl< Type >::normalize(), RedrawDisplay(), s_tools, SetCameraPosition(), SetPerspectiveState(), UpdateScreen(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
|
static |
References CC_BACK_VIEW, CC_BOTTOM_VIEW, CC_FRONT_VIEW, CC_ISO_VIEW_1, CC_ISO_VIEW_2, CC_LEFT_VIEW, CC_RIGHT_VIEW, CC_TOP_VIEW, SetCameraPosition(), and UpdateConstellationCenterAndZoom().
Referenced by define_ccDisplayTools(), MainWindow::onItemPicked(), ecvFilterTool::setView(), ecvAnnotationsTool::setView(), and MainWindow::setView().
|
inlinestatic |
Configure view axes grid properties.
References color, and setViewAxesGridProperties().
|
inlinevirtual |
Referenced by SetViewAxesGridProperties().
|
inlinestatic |
Enable/disable view axes grid (aligned with camera/view)
References setViewAxesGridVisible().
|
inlinevirtual |
Referenced by SetViewAxesGridVisible().
|
inlinestatic |
References setViewMatrix().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by SetViewMatrix().
|
static |
References cloudViewer::DegreesToRadians(), Deprecate3DLayer(), ecvViewportParameters::focal, ecvViewportParameters::fov_deg, ecvViewportParameters::getCameraCenter(), ecvViewportParameters::getPivotPoint(), InvalidateViewport(), InvalidateVisualization(), ecvViewportParameters::perspectiveView, s_tools, SetCameraClip(), SetCameraPosition(), SetFov(), SetParallelScale(), SetPivotPoint(), Tuple3Tpl< Type >::u, ecvViewportParameters::up, ecvViewportParameters::zFar, and ecvViewportParameters::zNear.
Referenced by qAnimationDlg::applyViewport(), ccCameraSensor::applyViewport(), DistanceMapGenerationDlg::baseRadiusChanged(), define_ccDisplayTools(), ccGraphicalSegmentationTool::doActionUseExistingPolyline(), ccPointPairRegistrationDlg::init(), RotateBaseViewMat(), SetBubbleViewMode(), cc2Point5DimEditor::update2DDisplayZoom(), and DistanceMapGenerationDlg::updateZoom().
|
static |
Sets current camera 'zNear' coefficient.
zNear coef. is only used in perspective mode.
References Deprecate3DLayer(), DisplayNewMessage(), LOWER_LEFT_MESSAGE, s_tools, SCREEN_SIZE_MESSAGE, SetCameraClip(), UpdateProjectionMatrix(), and CVLog::Warning().
Referenced by QVTKWidgetCustom::wheelEvent().
|
static |
Sets current zoom.
Warning: has no effect in viewer-centered perspective mode
References CC_GL_MAX_ZOOM_RATIO, CC_GL_MIN_ZOOM_RATIO, InvalidateViewport(), InvalidateVisualization(), and s_tools.
Referenced by SetPerspectiveState(), UpdateConstellationCenterAndZoom(), and UpdateZoom().
|
inlinestatic |
Sets whether to display the coordinates of the point below the cursor position
References m_showCursorCoordinates.
|
inlinestatic |
References showOrientationMarker().
Referenced by DrawWidgets().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ShowOrientationMarker().
|
static |
Shows or hide the pivot symbol.
Warnings:
References Deprecate3DLayer(), InvalidateViewport(), PIVOT_HIDE, and s_tools.
Referenced by define_ccDisplayTools(), QVTKWidgetCustom::mouseMoveEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
|
inlinestatic |
Referenced by SetPointSize(), and SetPointSizeRecursive().
|
static |
Starts OpenGL picking process.
References ecvGui::ParamStruct::ALWAYS, ecvGui::ParamStruct::ASK_USER, ecvGui::ParamStruct::autoComputeOctree, CV_TYPES::CAMERA_SENSOR, ecvDisplayTools::PickingParameters::centerX, ecvDisplayTools::PickingParameters::centerY, CV_TYPES::COORDINATESYSTEM, Vector3Tpl< PointCoordinateType >::fromArray(), ccGenericMesh::getAssociatedCloud(), ccSubMesh::getAssociatedMesh(), ccHObject::getChild(), ccHObject::getChildrenNumber(), GetCurrentScreen(), GetDisplayParameters(), GetGLCameraParameters(), ccCameraSensor::getNearPlane(), ccGenericPointCloud::getOctree(), GetPickedEntity(), cc2DLabel::getPickedPoint(), cloudViewer::GenericIndexedCloud::getPoint(), cc2DLabel::PickedPoint::getPointPosition(), ccObject::getUniqueID(), ccHObject::getViewId(), ccObject::isA(), cloudViewer::geometry::LineSet::IsEmpty(), ccObject::isEnabled(), ccObject::isKindOf(), ccGenericMesh::isShownAsWire(), CV_TYPES::LABEL_2D, CV_TYPES::MESH, CV_TYPES::MESH_GROUP, ecvDisplayTools::PickingParameters::mode, ecvGui::ParamStruct::NEVER, Vector3Tpl< Type >::norm(), ecvGui::Parameters(), ecvDisplayTools::PickingParameters::pickHeight, PickObject(), ecvDisplayTools::PickingParameters::pickWidth, CV_TYPES::POINT_CLOUD, POINT_OR_TRIANGLE_OR_LABEL_PICKING, POINT_OR_TRIANGLE_PICKING, cc2DLabel::pointPicking(), ccGenericPointCloud::pointPicking(), ProcessPickingResult(), s_tools, CV_TYPES::SENSOR, ecvGui::Set(), cloudViewer::GenericCloud::size(), cc2DLabel::size(), CV_TYPES::SUB_MESH, ccHObjectCaster::ToGenericMesh(), ccHObjectCaster::ToGenericPointCloud(), ecvGui::ParamStruct::toPersistentSettings(), ccGenericMesh::trianglePicking(), Tuple3Tpl< Type >::u, USE_VTK_PICK, CVLog::Warning(), Vector2Tpl< Type >::x, Tuple3Tpl< Type >::x, Vector2Tpl< Type >::y, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by StartPicking().
|
static |
Performs the picking with OpenGL.
References CC_DRAW_FOREGROUND, CC_ENTITY_PICKING, CC_FAST_ENTITY_PICKING, ENTITY_PICKING, ENTITY_RECT_PICKING, FAST_PICKING, GetPickedEntity(), ccObject::getUniqueID(), ccObject::isKindOf(), ecvDisplayTools::PickingParameters::mode, Vector3Tpl< Type >::norm(), ecvDisplayTools::PickingParameters::pickInLocalDB, ecvDisplayTools::PickingParameters::pickInSceneDB, CV_TYPES::POINT_CLOUD, ProcessPickingResult(), s_tools, cloudViewer::GenericCloud::size(), ccHObjectCaster::ToGenericPointCloud(), CVLog::Warning(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by StartPicking().
|
static |
Starts picking process.
| params | picking parameters |
References ecvDisplayTools::PickingParameters::centerX, ecvDisplayTools::PickingParameters::centerY, GetDevicePixelRatio(), LABEL_PICKING, ecvDisplayTools::PickingParameters::mode, POINT_OR_TRIANGLE_PICKING, POINT_PICKING, ProcessPickingResult(), s_tools, StartCPUBasedPointPicking(), StartOpenGLPicking(), and TRIANGLE_PICKING.
Referenced by doPicking(), QVTKWidgetCustom::mouseReleaseEvent(), and UpdateActiveItemsList().
|
static |
References s_tools, and CVLog::Warning().
Referenced by cvGenericFilter::cvGenericFilter(), ccHObject::draw(), ecvCameraParamEditDlg::ecvCameraParamEditDlg(), ecvAnimationParamDlg::enableListener(), ccPropertiesTreeDelegate::fillWithViewProperties(), cc2smReader::getPclPolygon(), ccPointPropertiesDlg::linkWith(), ccTracePolylineTool::linkWith(), ecvCameraParamEditDlg::linkWith(), ecvAnimationParamDlg::linkWith(), ccGraphicalSegmentationTool::linkWith(), ccHObject::notifyGeometryUpdate(), ccPickingHub::onActiveWindowChanged(), CustomVtkCaptionWidget::OnWidgetInteraction(), ecvCameraParamEditDlg::pickPointAsPivot(), ccDBRoot::setData(), ccPropertiesTreeDelegate::setEditorData(), ccPointPairRegistrationDlg::start(), ccCloudLayersDlg::start(), ccPointPairRegistrationDlg::stop(), and ZoomCamera().
|
static |
References InvalidateViewport(), InvalidateVisualization(), and s_tools.
Referenced by define_ccDisplayTools(), and QVTKWidgetCustom::mouseReleaseEvent().
|
static |
References Height(), Width(), x, and y.
Referenced by define_ccDisplayTools().
|
inlinestatic |
References toggle2Dviewer().
Referenced by MainWindow::toggle3DView().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by Toggle2Dviewer().
|
inlinestatic |
Toggle Camera Orientation Widget visibility (ParaView-style interactive widget)
References toggleCameraOrientationWidget().
Referenced by MainWindow::MainWindow().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ToggleCameraOrientationWidget().
|
inlinestatic |
Toggles debug info on screen.
References m_showDebugTraces.
|
inlinestatic |
Toggles (exclusive) full-screen mode.
References toggleExclusiveFullScreen().
|
inlinevirtual |
Referenced by ToggleExclusiveFullScreen().
|
inlinestatic |
References toggleOrientationMarker().
Referenced by PclUtils::PCLVis::renderToImage().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ToggleOrientationMarker().
|
static |
References GetDevicePixelRatio(), Height(), and Vector2Tpl< Type >::y.
|
static |
References GetDevicePixelRatio(), Height(), and Tuple3Tpl< Type >::y.
|
static |
Referenced by ccGraphicalSegmentationTool::addPointToPolyline(), qCanupo2DViewDialog::getClickPos(), QVTKWidgetCustom::mouseMoveEvent(), ccTracePolylineTool::onItemPicked(), ccPointPropertiesDlg::processClickedPoint(), ccTracePolylineTool::SegmentGLParams::SegmentGLParams(), ccPointPropertiesDlg::update2DZone(), ccGraphicalSegmentationTool::updatePolyLine(), and ccTracePolylineTool::updatePolyLineTip().
|
static |
References INTERACT_ROTATE, and PAN_ONLY().
Referenced by ccPointPropertiesDlg::activateAngleDisplay(), ccPointPropertiesDlg::activateDistanceDisplay(), ccPointPropertiesDlg::activatePointPropertiesDisplay(), Init(), ccPointPropertiesDlg::linkWith(), QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mouseReleaseEvent(), ccGraphicalSegmentationTool::pauseSegmentationMode(), ccTracePolylineTool::start(), ccPointPropertiesDlg::stop(), ccTracePolylineTool::stop(), and ccGraphicalSegmentationTool::stop().
|
static |
|
inlinestatic |
References transformCameraProjection().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by TransformCameraProjection().
|
inlinestatic |
References transformCameraView().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by TransformCameraView().
|
signal |
Signal emitted when the selected object is translated by the user.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
inlinestatic |
|
static |
References cc2DViewportLabel::clear2Dviews(), context, FilterByEntityType(), GetContext(), cc2DLabel::isDisplayedIn2D(), cc2DLabel::isPointLegendDisplayed(), CV_TYPES::LABEL_2D, s_tools, ccHObjectCaster::To2DLabel(), ccHObjectCaster::To2DViewportLabel(), cc2DLabel::update2DLabelView(), and CV_TYPES::VIEWPORT_2D_LABEL.
Referenced by QVTKWidgetCustom::mouseReleaseEvent(), and QVTKWidgetCustom::QVTKWidgetCustom().
|
static |
Updates currently active items list (m_activeItems)
The items must be currently displayed in this context AND at least one of them must be under the mouse cursor.
References FAST_PICKING, ccObject::isA(), ccDrawableObject::isSelected(), ccDrawableObject::isVisible(), CV_TYPES::LABEL_2D, s_tools, StartPicking(), x, and y.
Referenced by doPicking(), QVTKWidgetCustom::mouseMoveEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
|
inlinestatic |
References updateCamera().
Referenced by cvGenericFilter::modelReady().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by UpdateCamera().
|
static |
Center and zoom on a given bounding box.
If no bounding box is defined, the current displayed 'scene graph' bounding box is taken.
References Deprecate3DLayer(), Vector3Tpl< double >::fromArray(), cloudViewer::BoundingBoxTpl< T >::getCenter(), cloudViewer::BoundingBoxTpl< T >::getDiagNorm(), GetVisibleObjectsBB(), InvalidateViewport(), InvalidateVisualization(), cloudViewer::BoundingBoxTpl< T >::isValid(), cloudViewer::LessThanEpsilon(), RedrawDisplay(), ResetCamera(), s_tools, ccBBox::Scale(), SetPivotPoint(), SetPixelSize(), SetZoom(), Tuple3Tpl< Type >::u, UpdateScreen(), CVLog::Warning(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by define_ccDisplayTools(), cloudViewer::ModelViewerWidget::EndRender(), SetView(), qCanupo2DViewDialog::updateZoom(), ccPointPairRegistrationDlg::zoomGlobalOnRegistrationEntities(), MainWindow::zoomOnEntities(), and MainWindow::zoomOnSelectedEntities().
|
static |
References ComputePerspectiveZoom(), data, ccGLMatrixTpl< T >::data(), Vector3Tpl< double >::fromArray(), GetCameraClip(), GetCameraFocal(), GetCameraFovy(), GetCameraPos(), GetCameraUp(), GetCenterOfRotation(), GetParallelScale(), GetViewMatrix(), cloudViewer::RadiansToDegrees(), s_tools, ccGLMatrixTpl< T >::setRotation(), and ccGLMatrixTpl< double >::ToEigenMatrix3().
Referenced by GetViewportParameters(), QVTKWidgetCustom::mouseMoveEvent(), onWheelEvent(), and ZoomCamera().
|
inlinestatic |
References context, and updateMeshTextures().
Referenced by ccGenericMesh::updateTextures().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by UpdateMeshTextures().
|
static |
References ComputeModelViewMatrix(), and s_tools.
Referenced by GetModelViewMatrix().
|
static |
References GetOwnDB(), GetSceneDB(), and ccHObject::updateNameIn3DRecursive().
Referenced by QVTKWidgetCustom::mouseMoveEvent(), and QVTKWidgetCustom::wheelEvent().
|
static |
|
inlinestatic |
References updateScene().
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by UpdateScene().
|
inlinestatic |
Referenced by qAnimationDlg::applyViewport(), ccCameraSensor::applyViewport(), ChangeEntityProperties(), cc2DLabel::clear(), ecvCustomViewpointsToolbar::DeleteCustomViewpoint(), DrawForeground(), DrawWidgets(), ecvCameraParamEditDlg::onItemPicked(), ecvCameraParamEditDlg::processPickedItem(), RedrawDisplay(), Remove3DLabel(), RemoveAllWidgets(), ecvMeasurementTool::removeInstance(), RemoveWidgets(), PclTransformTool::reset(), ccDBRoot::setData(), ccPropertiesTreeDelegate::setEditorData(), SetPivotVisibility(), ecvCustomViewpointsToolbar::SetToCurrentViewpoint(), SetupProjectiveViewport(), SetView(), qAnimationDlg::textureAnimationPreview(), qAnimationDlg::textureAnimationRender(), ecvAnnotationsTool::toggleBox(), ecvAnnotationsTool::toggleOrigin(), ecvGenericMeasurementTools::update(), cvGenericFilter::update(), ecvGenericFiltersTool::update(), cloudViewer::ModelViewerWidget::update(), cc2DViewportLabel::update2DLabelView(), cc2DLabel::update2DLabelView(), cc2DLabel::update3DLabelView(), PclAnnotationTool::updateCloud(), UpdateConstellationCenterAndZoom(), and cc2DLabel::updateLabel().
|
static |
References Height(), ResizeGL(), and Width().
|
static |
Updates current zoom.
Warning: has no effect in viewer-centered perspective mode
References s_tools, and SetZoom().
Referenced by QVTKWidgetCustom::event(), onWheelEvent(), and ZoomCamera().
|
static |
Shortcut: returns whether viewer-based perspective mode is enabled.
References s_tools.
Referenced by define_ccDisplayTools().
|
signal |
Signal emitted when the window 'model view' matrix is interactively changed
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
inlinestatic |
|
signal |
Signal emitted when the zNear coef changes.
|
static |
|
inlinevirtual |
Reimplemented in PCLDisplayTools.
Referenced by ZoomCamera().
|
inlinestatic |
|
static |
Default picking radius value.
Referenced by Init().
| std::list<ccInteractor*> ecvDisplayTools::m_activeItems |
Currently active items.
Active items can be moved with mouse, etc.
Referenced by doPicking(), QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mouseReleaseEvent(), onItemPickedFast(), and QVTKWidgetCustom::updateActivateditems().
| bool ecvDisplayTools::m_allowRectangularEntityPicking |
Whether rectangular picking is allowed or not.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
| bool ecvDisplayTools::m_alwaysUseFBO |
Whether to always use FBO or only for GL filters.
| bool ecvDisplayTools::m_autoPickPivotAtCenter |
Whether the pivot point is automatically picked at the center of the screen (when possible)
Referenced by AutoPickPivotAtCenter(), and QVTKWidgetCustom::mousePressEvent().
| CCVector3d ecvDisplayTools::m_autoPivotCandidate |
Candidate pivot point (will be used when the mouse is released)
| bool ecvDisplayTools::m_autoRefresh |
Auto-refresh mode.
| double ecvDisplayTools::m_bbHalfDiag |
Half size of the displayed objects bounding-box.
Referenced by onWheelEvent().
| float ecvDisplayTools::m_bubbleViewFov_deg |
Bubble-view mode f.o.v. (degrees)
Referenced by QVTKWidgetCustom::mouseMoveEvent(), and onWheelEvent().
| bool ecvDisplayTools::m_bubbleViewModeEnabled |
Bubble-view mode state.
Referenced by BubbleViewModeEnabled(), QVTKWidgetCustom::mouseMoveEvent(), and onWheelEvent().
| double ecvDisplayTools::m_cameraToBBCenterDist |
Distance between the camera and the displayed objects bounding-box.
Referenced by onWheelEvent().
| CaptureModeOptions ecvDisplayTools::m_captureMode |
Display capturing mode options.
| std::vector<ClickableItem> ecvDisplayTools::m_clickableItems |
Currently displayed clickable items.
| bool ecvDisplayTools::m_clickableItemsVisible |
Whether clickable items are visible (= mouse over) or not.
Referenced by GetClickableItemsVisible(), QVTKWidgetCustom::mouseMoveEvent(), and SetClickableItemsVisible().
|
protected |
Referenced by GetCurrentScreen().
| bool ecvDisplayTools::m_customLightEnabled |
Whether custom light is enabled or not.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
| float ecvDisplayTools::m_customLightPos[4] |
| QTimer ecvDisplayTools::m_deferredPickingTimer |
Deferred picking.
Referenced by QVTKWidgetCustom::mouseDoubleClickEvent(), QVTKWidgetCustom::mouseReleaseEvent(), and CustomVtkCaptionWidget::OnWidgetInteraction().
| QStringList ecvDisplayTools::m_diagStrings |
| bool ecvDisplayTools::m_displayOverlayEntities |
Whether to display overlay entities or not (scale, tetrahedron, etc.)
Referenced by OverlayEntitiesAreDisplayed().
| bool ecvDisplayTools::m_exclusiveFullscreen |
Wether exclusive full screen is enabled or not.
Referenced by ExclusiveFullScreen(), and SetExclusiveFullScreenFlage().
| QFont ecvDisplayTools::m_font |
Default font.
Referenced by GetTextDisplayFont(), and SetFontPointSize().
| ccHObject* ecvDisplayTools::m_globalDBRoot |
CV main DB.
Referenced by GetSceneDB().
| QRect ecvDisplayTools::m_glViewport |
viewport
Referenced by GlHeight(), GlSize(), and GlWidth().
| HotZone* ecvDisplayTools::m_hotZone |
Hot zone.
Referenced by QVTKWidgetCustom::mouseMoveEvent(), and ~ecvDisplayTools().
| bool ecvDisplayTools::m_ignoreMouseReleaseEvent |
Ignore next mouse release event.
Referenced by QVTKWidgetCustom::mouseDoubleClickEvent(), QVTKWidgetCustom::mousePressEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
| INTERACTION_FLAGS ecvDisplayTools::m_interactionFlags |
Current intercation flags.
Referenced by doPicking(), QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mousePressEvent(), QVTKWidgetCustom::mouseReleaseEvent(), and QVTKWidgetCustom::wheelEvent().
| QString ecvDisplayTools::m_last_picked_id = QString() |
Referenced by QVTKWidgetCustom::mousePressEvent(), and onPointPicking().
| CCVector3 ecvDisplayTools::m_last_picked_point |
Referenced by onPointPicking().
| int ecvDisplayTools::m_last_point_index = -1 |
Referenced by QVTKWidgetCustom::mousePressEvent(), and onPointPicking().
| qint64 ecvDisplayTools::m_lastClickTime_ticks |
Last click time (msec)
Referenced by QVTKWidgetCustom::mousePressEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
| QPoint ecvDisplayTools::m_lastMouseMovePos |
Referenced by QVTKWidgetCustom::mouseMoveEvent().
| QPoint ecvDisplayTools::m_lastMousePos |
Last mouse position.
Referenced by doPicking(), QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mousePressEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
| CCVector3d ecvDisplayTools::m_lockedRotationAxis |
Locked rotation axis.
Referenced by QVTKWidgetCustom::mouseMoveEvent().
|
protected |
Referenced by GetMainScreen(), and SetMainScreen().
| std::list<MessageToDisplay> ecvDisplayTools::m_messagesToDisplay |
List of messages to display.
Referenced by checkScheduledRedraw().
| bool ecvDisplayTools::m_mouseButtonPressed |
Whether the mouse is currently pressed or not.
Referenced by QVTKWidgetCustom::mousePressEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
| bool ecvDisplayTools::m_mouseMoved |
Whether the mouse (cursor) has moved after being pressed or not.
Referenced by QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mousePressEvent(), and QVTKWidgetCustom::mouseReleaseEvent().
| ecvGui::ParamStruct ecvDisplayTools::m_overridenDisplayParameters |
Overridden display parameter.
| bool ecvDisplayTools::m_overridenDisplayParametersEnabled |
Whether display parameters are overidden for this window.
| PICKING_MODE ecvDisplayTools::m_pickingMode |
Referenced by doPicking(), and QVTKWidgetCustom::mouseMoveEvent().
| bool ecvDisplayTools::m_pickingModeLocked |
Whether picking mode is locked or not.
| int ecvDisplayTools::m_pickRadius |
Picking radius (pixels)
Referenced by doPicking(), GetPickingRadius(), onPointPicking(), and SetPickingRadius().
| bool ecvDisplayTools::m_pivotSymbolShown |
Whether pivot symbol should be shown or not.
Referenced by QVTKWidgetCustom::mouseReleaseEvent().
| PivotVisibility ecvDisplayTools::m_pivotVisibility |
Pivot symbol visibility.
Referenced by GetPivotVisibility(), and QVTKWidgetCustom::mouseReleaseEvent().
| ecvViewportParameters ecvDisplayTools::m_preBubbleViewParameters |
Pre-bubble-view camera parameters (backup)
| ccGLMatrixd ecvDisplayTools::m_projMatd |
Projection matrix (GL style - double version)
| ccPolyline* ecvDisplayTools::m_rectPickingPoly |
Rectangular picking polyline.
Referenced by QVTKWidgetCustom::mouseMoveEvent(), QVTKWidgetCustom::mouseReleaseEvent(), and ~ecvDisplayTools().
| bool ecvDisplayTools::m_removeAllFlag |
Referenced by SetRemoveAllFlag().
| bool ecvDisplayTools::m_removeFlag |
| std::vector<removeInfo> ecvDisplayTools::m_removeInfos |
| bool ecvDisplayTools::m_rotationAxisLocked |
Wheter the rotation axis is locked or not.
Referenced by IsRotationAxisLocked(), and QVTKWidgetCustom::mouseMoveEvent().
| cloudViewer::geometry::LineSet* ecvDisplayTools::m_scale_lineset |
| qint64 ecvDisplayTools::m_scheduledFullRedrawTime |
Scheduled full redraw (no LOD)
Referenced by cancelScheduledRedraw(), checkScheduledRedraw(), and scheduleFullRedraw().
| QTimer ecvDisplayTools::m_scheduleTimer |
Scheduler timer.
Referenced by cancelScheduledRedraw(), and scheduleFullRedraw().
| bool ecvDisplayTools::m_shouldBeRefreshed |
Whether the display should be refreshed on next call to 'refresh'.
| bool ecvDisplayTools::m_showCursorCoordinates |
Whether to display the coordinates of the point below the cursor position
Referenced by CursorCoordinatesShown(), QVTKWidgetCustom::mouseMoveEvent(), and ShowCursorCoordinates().
| bool ecvDisplayTools::m_showDebugTraces |
Debug traces visibility.
Referenced by EnableDebugTrace(), and ToggleDebugTrace().
| bool ecvDisplayTools::m_sunLightEnabled |
Whether sun light is enabled or not.
| float ecvDisplayTools::m_sunLightPos[4] |
Sun light position.
Relative to screen.
| QElapsedTimer ecvDisplayTools::m_timer |
Internal timer.
Referenced by checkScheduledRedraw(), QVTKWidgetCustom::mousePressEvent(), QVTKWidgetCustom::mouseReleaseEvent(), and scheduleFullRedraw().
| qreal ecvDisplayTools::m_touchBaseDist |
Touch gesture initial distance.
Referenced by QVTKWidgetCustom::event().
| bool ecvDisplayTools::m_touchInProgress |
Touch event in progress.
Referenced by QVTKWidgetCustom::event().
| int ecvDisplayTools::m_uniqueID |
Unique ID.
| bool ecvDisplayTools::m_updateFBO |
Whether FBO should be updated (or simply displayed as a texture = faster!)
Referenced by Deprecate3DLayer().
| bool ecvDisplayTools::m_validModelviewMatrix |
Whether the model veiw matrix is valid (or need to be recomputed)
Referenced by InvalidateVisualization().
| bool ecvDisplayTools::m_validProjectionMatrix |
Whether the projection matrix is valid (or need to be recomputed)
Referenced by InvalidateViewport().
| ccGLMatrixd ecvDisplayTools::m_viewMatd |
Complete visualization matrix (GL style - double version)
| ecvViewportParameters ecvDisplayTools::m_viewportParams |
Viewport parameters (zoom, etc.)
Referenced by QVTKWidgetCustom::event(), GetBaseViewMat(), getPerspectiveState(), QVTKWidgetCustom::mouseMoveEvent(), onItemPickedFast(), onWheelEvent(), SetCameraClip(), SetCameraFovy(), QVTKWidgetCustom::updateActivateditems(), QVTKWidgetCustom::wheelEvent(), and ZoomCamera().
| bool ecvDisplayTools::m_widgetClicked |
Flag to indicate that a VTK widget was clicked (to prevent deferred picking)
Referenced by doPicking(), QVTKWidgetCustom::mouseReleaseEvent(), and CustomVtkCaptionWidget::OnWidgetInteraction().
|
protected |
Referenced by GetMainWindow(), and SetMainWindow().
| ccHObject* ecvDisplayTools::m_winDBRoot |
Window own DB.
Referenced by GetOwnDB(), and ~ecvDisplayTools().
|
static |
|
static |
Referenced by QVTKWidgetCustom::mousePressEvent(), onPointPicking(), and StartCPUBasedPointPicking().