 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
33 Q_PLUGIN_METADATA(IID
"ecvcorp.cloudviewer.plugin.qManualSeg" FILE
42 QList<QAction*> getActions()
override;
49 std::vector<int> stIdFromPtId(std::vector<int> pts,
50 std::vector<std::pair<int, int>> pairs);
51 std::vector<int> ptIdFromStId(std::vector<int> pts,
52 std::vector<std::pair<int, int>> pairs);
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
virtual ccPointCloud & Translate(const Eigen::Vector3d &translation, bool relative=true) override
Apply translation to the geometry coordinates.
Definition: ecvPointCloud.cpp:2572
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
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
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
Definition: ecvDefaultPluginInterface.cpp:104
std::string filename
Definition: PointCloudIO.cpp:47
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
@ STD_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:117
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
Definition: ecvDefaultPluginInterface.cpp:100
CLOUDVIEWER_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
normal_z x
Definition: my_point_types.h:165
const ecvColor::Rgb & getPointColor(unsigned pointIndex) const override
Returns color corresponding to a given point.
Definition: ecvPointCloud.cpp:1535
ccPolyline * contourPoly(ccPointCloud *stone)
Definition: qManualSeg.cpp:175
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
Type x
Definition: CVGeom.h:137
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
virtual unsigned size() const =0
Returns the number of points.
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
#define NULL
Definition: UVUnwrapping.cpp:40
void showVertices(bool state)
Sets whether to display or hide the polyline vertices.
Definition: ecvPolyline.h:129
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
virtual QMainWindow * getMainWindow()=0
Returns main window.
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
@ POINT_CLOUD
Definition: CVTypes.h:104
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: ReferenceCloud.h:79
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
bool reserveThePointsTable(unsigned _numberOfPoints)
Reserves memory to store the points coordinates.
Definition: ecvPointCloud.cpp:1191
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
pair< double, double > getCentroid(vector< pair< double, double >> V)
Definition: qManualSeg.cpp:260
ccPolyline * contourPoly2(ccPointCloud *cloud0, vector< int > V, QString name)
Definition: qManualSeg.cpp:455
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
virtual void setView(CC_VIEW_ORIENTATION view)=0
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
int size
Definition: FileIOFactory.cpp:130
@ CC_FRONT_VIEW
Definition: CVConst.h:105
void setPointSize(unsigned size=0)
Sets point size.
Definition: ecvGenericPointCloud.h:275
normal_z y
Definition: my_point_types.h:168
vector< int > setIntersectIdxPixs1D(vector< int > listNew, vector< int > listOld)
Definition: qManualSeg.cpp:437
virtual VisibilityTableType & getTheVisibilityArray()
Returns associated visibility array.
Definition: ecvGenericPointCloud.h:168
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
vector< vector< int > > getCommonPtsIdx(ccPointCloud *Cl1, ccPointCloud *Cl2)
Definition: qManualSeg.cpp:323
const double * e
Definition: essential_matrix_poly.h:10
ccPointCloud * m_polyVertices
Segmentation polyline vertices.
Definition: qManualSeg.h:60
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
ccPointCloud * partialClone(const cloudViewer::ReferenceCloud *selection, int *warnings=nullptr, bool withChildEntities=true) const
Creates a new point cloud object from a ReferenceCloud (selection)
Definition: ecvPointCloud.cpp:290
@ POLY_LINE
Definition: CVTypes.h:112
void cloud2binary(ccPointCloud *cloud, Mat &corrMatS, vector< Point > &idxPxS, vector< int > &idxPx1DS, Mat &imageBWS)
Definition: qManualSeg.cpp:374
constexpr Rgb green(0, MAX, 0)
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
string dateStamp()
Definition: qManualSeg.cpp:514
ccPointCloud * getMortarMaps(ccPointCloud *f_cloudStones, ccPointCloud *f_cloudMortar)
Definition: qManualSeg.cpp:533
int getNCommonPts(vector< pair< double, double >> tar, vector< pair< double, double >> ref)
Definition: qManualSeg.cpp:300
ccPolyline * m_segmentationPoly
Segmentation polyline.
Definition: qManualSeg.h:58
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
a[190]
Definition: essential_matrix_poly.h:19
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
ScalarType getPointScalarValue(unsigned pointIndex) const override
Definition: PointCloudTpl.h:134
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Definition: PointCloudTpl.h:57
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
Type z
Definition: CVGeom.h:137
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
void clear() override
Clears the entity from all its points and features.
Definition: ecvPointCloud.cpp:530
virtual void removeFromDB(ccHObject *obj, bool autoDelete=true)=0
Removes an entity from main db tree.
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
constexpr Rgb cyan(0, MAX, MAX)
bool project(const CCVector3d &input3D, CCVector3d &output2D, bool *inFrustum=nullptr) const
Projects a 3D point in 2D (+ normalized 'z' coordinate)
Definition: ecvGenericDisplayTools.h:561
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
RGB color structure.
Definition: ecvColorTypes.h:49
vector< int > getKNN(pair< double, double > P, vector< pair< double, double >> V, int k=3)
Definition: qManualSeg.cpp:274
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
normal_z z
Definition: my_point_types.h:165
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
unsigned char getPointSize() const
Returns current point size.
Definition: ecvGenericPointCloud.h:283
Mat skeleton(Mat I, bool flagInv)
Definition: qManualSeg.cpp:406
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
bool is2DMode() const
Returns whether the polyline is considered as 2D or 3D.
Definition: ecvPolyline.h:63
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
std::string to_string(const T &n)
Definition: Common.h:20
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
constexpr unsigned char POINT_HIDDEN
Definition: CVConst.h:94
Definition: qManualSeg.h:29
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
virtual void scale(PointCoordinateType fx, PointCoordinateType fy, PointCoordinateType fz, CCVector3 center=CCVector3(0, 0, 0)) override
Multiplies all coordinates by constant factors (one per dimension)
Definition: ecvPointCloud.cpp:2634
virtual bool resetVisibilityArray()
Resets the associated visibility array.
Definition: ecvGenericPointCloud.cpp:47
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
std::string name
Definition: FileIOFactory.cpp:129
Colored polyline.
Definition: ecvPolyline.h:23
void clear(bool unusedParam=true) override
Clears the cloud.
Definition: Polyline.cpp:15
std::vector< unsigned char > VisibilityTableType
Array of "visibility" information for each point.
Definition: ecvGenericPointCloud.h:165