 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #include <ui_pointListPickingDlg.h>
26 public Ui::PointListPickingDlg {
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
Definition: ecv2DLabel.cpp:400
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
void detachChild(ccHObject *child)
Detaches a specific child.
Definition: ecvHObject.cpp:988
std::string filename
Definition: PointCloudIO.cpp:47
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
void exportToASCII(ExportFormat format)
Exports list to an ASCII file.
Definition: ecvPointListPickingDlg.cpp:370
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
Definition: ecv2DLabel.h:114
normal_z x
Definition: my_point_types.h:165
Type x
Definition: CVGeom.h:137
void displayPointLegend(bool state)
Whether to display the point(s) legend (title only)
Definition: ecv2DLabel.h:108
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
void updateLabel()
Definition: ecv2DLabel.cpp:312
void exportToASCII_gxyz()
Exports list to an 'gxyz' ASCII file.
Definition: ecvPointListPickingDlg.h:58
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
@ PLP_ASCII_EXPORT_GXYZ
Definition: ecvPointListPickingDlg.h:92
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
void exportToNewPolyline()
Exports list to a polyline.
Definition: ecvPointListPickingDlg.cpp:240
void linkWithCloud(ccPointCloud *cloud)
Associates dialog with cloud.
Definition: ecvPointListPickingDlg.cpp:134
@ PLP_ASCII_EXPORT_LXYZ
Definition: ecvPointListPickingDlg.h:93
bool isShifted() const
Returns whether the cloud is shifted or not.
Definition: ecvShiftedObject.h:56
virtual void setGlobalScale(double scale)
Definition: ecvShiftedObject.cpp:33
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
ccHObject * m_orderedLabelsContainer
Ordered labels container.
Definition: ecvPointListPickingDlg.h:105
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
void removeLastEntry()
Removes last inserted point from list.
Definition: ecvPointListPickingDlg.cpp:291
unsigned labelMarkerSize
Label marker size.
Definition: ecvGuiParameters.h:84
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
static cc2DLabel * To2DLabel(ccHObject *obj)
Converts current object to cc2DLabel (if possible)
Definition: ecvHObjectCaster.cpp:262
void removeElement(ccHObject *object)
Removes an element from the DB tree.
Definition: ecvDBRoot.cpp:554
void setPosition(float x, float y)
Sets relative position.
Definition: ecv2DLabel.cpp:225
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
static MainWindow * TheInstance()
Returns the unique instance of this object.
Definition: MainWindow.cpp:2037
void addToDB(const QStringList &filenames, QString fileFilter=QString(), bool displayDialog=true)
Definition: MainWindow.cpp:2152
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
ccPointCloud * m_associatedCloud
Associated cloud.
Definition: ecvPointListPickingDlg.h:100
void exportToASCII_ixyz()
Exports list to an 'ixyz' ASCII file.
Definition: ecvPointListPickingDlg.h:54
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
#define slots
Definition: PythonPlugin.cpp:25
int size
Definition: FileIOFactory.cpp:130
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
normal_z y
Definition: my_point_types.h:168
void exportToASCII_xyz()
Exports list to an 'xyz' ASCII file.
Definition: ecvPointListPickingDlg.h:50
static const char s_defaultLabelBaseName[]
Definition: ecvPointListPickingDlg.cpp:42
void setCollapsed(bool state)
Whether to collapse label or not.
Definition: ecv2DLabel.h:102
Definition: sfEditDlg.h:16
ExportFormat
Export format.
Definition: ecvPointListPickingDlg.h:89
void updateList()
Updates point list widget.
Definition: ecvPointListPickingDlg.cpp:451
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
void exportToASCII_lxyz()
Exports list to an 'lxyz' ASCII file.
Definition: ecvPointListPickingDlg.h:62
unsigned size() const
Returns current size.
Definition: ecv2DLabel.h:74
@ LABEL_2D
Definition: CVTypes.h:140
unsigned index
Point/triangle index.
Definition: ecv2DLabel.h:128
static const char s_pickedPointContainerName[]
Definition: ecvPointListPickingDlg.cpp:41
static unsigned s_pickedPointsStartIndex
Definition: ecvPointListPickingDlg.cpp:39
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
unsigned displayedNumPrecision
Displayed numbers precision.
Definition: ecvGuiParameters.h:100
Type z
Definition: CVGeom.h:137
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
CCVector3d toGlobal3d(const Vector3Tpl< T > &Plocal) const
Returns the point back-projected into the original coordinates system.
Definition: ecvShiftedObject.h:64
void clearLastLabel(ccHObject *lastVisibleLabel)
Definition: ecvPointListPickingDlg.cpp:327
ccPointListPickingDlg(ccPickingHub *pickingHub, QWidget *parent)
Default constructor.
Definition: ecvPointListPickingDlg.cpp:44
void startIndexChanged(int)
Redraw window when starting index changes.
Definition: ecvPointListPickingDlg.cpp:347
Picked point descriptor.
Definition: ecv2DLabel.h:122
Dialog/interactor to graphically pick a list of points.
Definition: ecvPointListPickingDlg.h:25
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
static QString GetFileFilter()
Definition: AsciiFilter.h:26
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
void stop(bool state) override
Stops process/dialog.
Definition: ecvPointPickingGenericInterface.cpp:64
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
void applyAndExit()
Applies changes and exit.
Definition: ecvPointListPickingDlg.cpp:274
int count
Definition: FileIOFactory.cpp:132
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
@ PLP_ASCII_EXPORT_IXYZ
Definition: ecvPointListPickingDlg.h:91
virtual void processPickedPoint(ccPointCloud *cloud, unsigned pointIndex, int x, int y) override
Generic method to process picked points.
Definition: ecvPointListPickingDlg.cpp:504
void removeElements(ccHObject::Container &objects)
Removes several elements at once from the DB tree.
Definition: ecvDBRoot.cpp:513
Point/triangle picking hub.
Definition: ecvPickingHub.h:29
unsigned getPickedPoints(std::vector< cc2DLabel * > &pickedPoints)
Gets current (visible) picked points from the associated cloud.
Definition: ecvPointListPickingDlg.cpp:103
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
virtual bool isVisible() const
Returns whether entity is visible or not.
Definition: ecvDrawableObject.h:38
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
static bool s_showGlobalCoordsCheckBoxChecked
Definition: ecvPointListPickingDlg.cpp:40
unsigned m_lastPreviousID
Last existing label unique ID on load.
Definition: ecvPointListPickingDlg.h:103
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual void setGlobalScale(double scale) override
Definition: ecvPolyline.cpp:578
GUI database tree root.
Definition: ecvDBRoot.h:65
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
ccDBRoot * db()
Returns real 'dbRoot' object.
Definition: MainWindow.h:193
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
void cancelAndExit()
Cancels process and exit.
Definition: ecvPointListPickingDlg.cpp:166
void exportToNewCloud()
Exports list to a new cloud.
Definition: ecvPointListPickingDlg.cpp:208
void removeDependencyWith(ccHObject *otherObject)
Removes any dependency flags with a given object.
Definition: ecvHObject.cpp:497
Type u[3]
Definition: CVGeom.h:139
ccGenericPointCloud * cloud
Cloud.
Definition: ecv2DLabel.h:124
ccHObject::Container m_toBeDeleted
Definition: ecvPointListPickingDlg.h:108
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
ccHObject::Container m_toBeAdded
Definition: ecvPointListPickingDlg.h:111
void markerSizeChanged(int)
Redraw window when marker size changes.
Definition: ecvPointListPickingDlg.cpp:357
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
GUI parameters.
Definition: ecvGuiParameters.h:30
void removeEntity(ccHObject *lastVisibleLabel)
Definition: ecvPointListPickingDlg.cpp:339
@ PLP_ASCII_EXPORT_XYZ
Definition: ecvPointListPickingDlg.h:90
Colored polyline.
Definition: ecvPolyline.h:23
Definition: ecvPointPickingGenericInterface.h:28