 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
29 explicit ccPolyline(GenericIndexedCloudPersist* associatedCloud);
60 void set2DMode(
bool state);
63 inline bool is2DMode()
const {
return m_mode2D; }
76 void setForeground(
bool state);
116 std::vector<ccPolyline*>& parts);
150 void importParametersFrom(
const ccPolyline& poly);
156 unsigned segmentCount()
const;
160 double samplingParameter,
169 unsigned iterationCount)
const;
177 bool createNewPolylinesFromSelection(std::vector<ccPolyline*>& output);
186 unsigned resolution = 48);
189 virtual Eigen::Vector3d
GetMinBound()
const override;
190 virtual Eigen::Vector3d
GetMaxBound()
const override;
191 virtual Eigen::Vector3d
GetCenter()
const override;
195 const Eigen::Matrix4d& transformation)
override;
197 bool relative =
true)
override;
199 const Eigen::Vector3d& center)
override;
201 const Eigen::Vector3d& center)
override;
242 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
247 LoadedIDMap& oldToNewIDMap)
override;
bool m_mode2D
Whether polyline should be considered as 2D (true) or 3D (false)
Definition: ecvPolyline.h:259
void setTransformFlag(bool state)
Defines if the polyline is considered as processed polyline.
Definition: ecvPolyline.h:68
virtual bool toFile_MeOnly(QFile &out, short dataVersion) const
Save own object data.
Definition: ecvHObject.cpp:1302
virtual void drawBB(CC_DRAW_CONTEXT &context, const ecvColor::Rgb &col) override
Draws the entity (and its children) bounding-box.
Definition: ecvPolyline.h:103
virtual short minimumFileVersion_MeOnly() const
Definition: ecvHObject.cpp:1364
virtual void applyGLTransformation(const ccGLMatrix &trans)
Applies a GL transformation to the entity.
Definition: ecvHObject.cpp:944
bool verticesShown() const
Whether the polyline vertices should be displayed or not.
Definition: ecvPolyline.h:131
void showVertices(bool state)
Sets whether to display or hide the polyline vertices.
Definition: ecvPolyline.h:129
bool needTransform() const
Returns whether the polyline is considered as 2D or 3D.
Definition: ecvPolyline.h:71
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
Definition: ecvPolyline.h:41
Bounding box structure.
Definition: ecvBBox.h:25
virtual void setGlobalScale(double scale)
Definition: ecvShiftedObject.cpp:33
bool m_needTransform
Whether polyline should be considered as processed polyline.
Definition: ecvPolyline.h:262
PointCoordinateType m_arrowLength
Arrow length.
Definition: ecvPolyline.h:277
static QString MetaKeyUpDir()
Definition: ecvPolyline.h:220
virtual Eigen::Vector3d GetCenter() const
Returns the center of the geometry coordinates.
Definition: ecvHObject.h:150
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
math::float4 color
Definition: LineSetBuffers.cpp:46
PointCoordinateType getArrowLength() const
Definition: ecvPolyline.h:134
virtual ccHObject & Rotate(const Eigen::Matrix3d &R, const Eigen::Vector3d ¢er)
Apply rotation to the geometry coordinates and normals. Given a rotation matrix , and center ,...
Definition: ecvHObject.h:186
int width
Definition: FileIOFactory.cpp:142
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
ImGuiContext * context
Definition: Window.cpp:76
virtual bool IsEmpty() const override
Definition: ecvPolyline.h:188
PointCoordinateType m_width
Width of the line.
Definition: ecvPolyline.h:256
static QString MetaKeyAbscissa()
Meta data key: profile abscissa along generatrix.
Definition: ecvPolyline.h:226
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
const ecvColor::Rgb & getColor() const
Returns the polyline color.
Definition: ecvPolyline.h:99
virtual ecvOrientedBBox GetOrientedBoundingBox() const
Definition: ecvHObject.cpp:449
ccPolyline & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each line in the LineSet the same color.
Definition: ecvPolyline.h:210
int m_vertMarkWidth
Vertex marker width.
Definition: ecvPolyline.h:272
@ POLY_LINE
Definition: CVTypes.h:112
virtual bool isSerializable() const override
Returns whether object is serializable of not.
Definition: ecvPolyline.h:46
bool m_foreground
Definition: ecvPolyline.h:266
ecvColor::Rgb m_rgbColor
Unique RGB color.
Definition: ecvPolyline.h:253
Tensor operator+(T scalar_lhs, const Tensor &rhs)
Definition: Tensor.h:1417
virtual bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Loads own object data.
Definition: ecvHObject.cpp:1371
virtual Eigen::Vector3d GetMaxBound() const
Returns max bounds for geometry coordinates.
Definition: ecvHObject.h:147
Shifted entity interface.
Definition: ecvShiftedObject.h:18
static QString MetaKeyPrefixCenter()
Definition: ecvPolyline.h:232
unsigned getArrowIndex() const
Definition: ecvPolyline.h:133
virtual ccHObject & Transform(const Eigen::Matrix4d &transformation)
Apply transformation (4x4 matrix) to the geometry coordinates.
Definition: ecvHObject.h:157
bool m_showVertices
Whether vertices should be displayed or not.
Definition: ecvPolyline.h:269
virtual unsigned getUniqueIDForDisplay() const
Returns object unqiue ID used for display.
Definition: ecvHObject.h:626
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
static QString MetaKeyConstAltitude()
Meta data key: contour plot constant altitude (for contour plots, etc.)
Definition: ecvPolyline.h:224
virtual void enableTempColor(bool state)
Set temporary color activation state.
Definition: ecvDrawableObject.h:155
PointCoordinateType getWidth() const
Returns the width of the line.
Definition: ecvPolyline.h:94
static QString MetaKeyPrefixDirection()
Definition: ecvPolyline.h:238
FN_SPECIFIERS void operator+=(MiniVec< T, N > &a, const MiniVec< T, N > &b)
Definition: MiniVec.h:150
virtual ccBBox GetAxisAlignedBoundingBox() const
Returns an axis-aligned bounding box of the geometry.
Definition: ecvHObject.cpp:447
RGB color structure.
Definition: ecvColorTypes.h:49
bool arrowShown() const
Definition: ecvPolyline.h:132
virtual Eigen::Vector3d GetMinBound() const
Returns min bounds for geometry coordinates.
Definition: ecvHObject.h:144
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
Definition: ecvOrientedBBox.h:29
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
Unit circle.
Definition: ccMouseCircle.cpp:17
A simple polyline class.
Definition: Polyline.h:20
virtual ccBBox getOwnBB(bool withGLFeatures=false)
Returns the entity's own bounding-box.
Definition: ecvHObject.cpp:757
bool m_showArrow
Whether to show an arrow or not.
Definition: ecvPolyline.h:275
int getVertexMarkerWidth() const
Returns the width of vertex markers.
Definition: ecvPolyline.h:139
#define CV_DB_LIB_API
Definition: CV_db.h:15
Display context.
Definition: ecvDrawContext.h:365
virtual bool hasPoints() const
Definition: GenericCloud.h:37
virtual ccHObject & Translate(const Eigen::Vector3d &translation, bool relative=true)
Apply translation to the geometry coordinates.
Definition: ecvHObject.h:165
unsigned m_arrowIndex
Arrow index.
Definition: ecvPolyline.h:279
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
constexpr static RgbTpl FromEigen(const Eigen::Vector3d &t)
Definition: ecvColorTypes.h:86
virtual void drawBB(CC_DRAW_CONTEXT &context, const ecvColor::Rgb &col)
Draws the entity (and its children) bounding-box.
Definition: ecvHObject.cpp:1014
virtual ccHObject & Scale(const double s, const Eigen::Vector3d ¢er)
Apply scaling to the geometry coordinates. Given a scaling factor , and center , a given point is tr...
Definition: ecvHObject.h:176
bool setColor(ccHObject::Container selectedEntities, bool colorize, QWidget *parent)
Definition: ecvEntityAction.cpp:89
bool is2DMode() const
Returns whether the polyline is considered as 2D or 3D.
Definition: ecvPolyline.h:63
virtual void drawMeOnly(CC_DRAW_CONTEXT &context)
Draws the entity only (not its children)
Definition: ecvHObject.h:655
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
bool add(const ReferenceCloud &cloud)
Add another reference cloud.
Definition: ReferenceCloud.cpp:166
Colored polyline.
Definition: ecvPolyline.h:23
void setVertexMarkerWidth(int width)
Sets the width of vertex markers.
Definition: ecvPolyline.h:137