 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
37 void setLabel(
unsigned index, QString label);
40 QString
getLabel(
unsigned index)
const;
46 virtual bool reserve(
unsigned numberOfPoints)
override;
47 virtual bool resize(
unsigned numberOfPoints)
override;
48 virtual void clear()
override;
bool m_showSymbols
Whether symbols are shown or not.
Definition: ccSymbolCloud.h:93
void addLabel(QString label)
Adds a label.
Definition: ccSymbolCloud.cpp:48
unsigned char m_labelAlignFlags
Default label alignment flags.
Definition: ccSymbolCloud.h:99
void setSymbolSize(double size)
Sets symbol size.
Definition: ccSymbolCloud.h:51
bool reserveLabelArray(unsigned count)
Reserves memory for storing per-point labels.
Definition: ccSymbolCloud.cpp:38
ccSymbolCloud(QString name=QString())
Default constructor.
Definition: ccSymbolCloud.cpp:13
std::vector< QString > m_labels
Labels array.
Definition: ccSymbolCloud.h:84
bool symbolsShown() const
Returns whether symbols are displayed or not.
Definition: ccSymbolCloud.h:65
ccGLCameraParameters m_lastCameraParams
Last 3D rendering parameters.
Definition: ccSymbolCloud.h:102
bool labelsShown() const
Returns whether labels are displayed or not.
Definition: ccSymbolCloud.h:70
QString getLabel(unsigned index) const
Returns a given label.
Definition: ccSymbolCloud.cpp:73
virtual void clear() override
Clears the entity from all its points and features.
Definition: ccSymbolCloud.cpp:83
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
double getSymbolSize() const
Returns symbol size.
Definition: ccSymbolCloud.h:54
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
void setFontSize(int size)
Sets label font size.
Definition: ccSymbolCloud.h:57
ImGuiContext * context
Definition: Window.cpp:76
bool m_showLabels
Whether labels are shown or not.
Definition: ccSymbolCloud.h:96
virtual bool reserve(unsigned numberOfPoints) override
inherited from ccPointCloud
Definition: ccSymbolCloud.cpp:22
void setLabelAlignmentFlags(unsigned char flags)
Sets labels alignment flags.
Definition: ccSymbolCloud.h:75
int m_fontSize
Label font size (in points)
Definition: ccSymbolCloud.h:90
void showLabels(bool state)
Sets whether labels should be displayed or not.
Definition: ccSymbolCloud.h:68
double m_symbolSize
Symbol size (in pixels)
Definition: ccSymbolCloud.h:87
void setLabel(unsigned index, QString label)
Sets a given label.
Definition: ccSymbolCloud.cpp:67
Definition: ccSymbolCloud.h:16
void clearLabelArray()
Clears the label array.
Definition: ccSymbolCloud.cpp:81
int count
Definition: FileIOFactory.cpp:132
void showSymbols(bool state)
Sets whether symbols should be displayed or not.
Definition: ccSymbolCloud.h:63
Display context.
Definition: ecvDrawContext.h:365
bool resizeLabelArray(unsigned count)
Resizes memory for storing per-point labels.
Definition: ccSymbolCloud.cpp:57
int getFontSize() const
Returns label font size.
Definition: ccSymbolCloud.h:60
virtual void drawMeOnly(CC_DRAW_CONTEXT &context) override
Draws the entity only (not its children)
Definition: ccSymbolCloud.cpp:105
std::string name
Definition: FileIOFactory.cpp:129
virtual bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ccSymbolCloud.cpp:30