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;
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
void setLabelAlignmentFlags(unsigned char flags)
Sets labels alignment flags.
bool resizeLabelArray(unsigned count)
Resizes memory for storing per-point labels.
int getFontSize() const
Returns label font size.
bool m_showSymbols
Whether symbols are shown or not.
QString getLabel(unsigned index) const
Returns a given label.
void addLabel(QString label)
Adds a label.
virtual void clear() override
Clears the entity from all its points and features.
virtual bool reserve(unsigned numberOfPoints) override
inherited from ccPointCloud
virtual bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
void setLabel(unsigned index, QString label)
Sets a given label.
unsigned char m_labelAlignFlags
Default label alignment flags.
void showLabels(bool state)
Sets whether labels should be displayed or not.
void showSymbols(bool state)
Sets whether symbols should be displayed or not.
void setSymbolSize(double size)
Sets symbol size.
bool m_showLabels
Whether labels are shown or not.
double m_symbolSize
Symbol size (in pixels)
ccGLCameraParameters m_lastCameraParams
Last 3D rendering parameters.
int m_fontSize
Label font size (in points)
bool reserveLabelArray(unsigned count)
Reserves memory for storing per-point labels.
virtual void drawMeOnly(CC_DRAW_CONTEXT &context) override
Draws the entity only (not its children)
void clearLabelArray()
Clears the label array.
std::vector< QString > m_labels
Labels array.
bool labelsShown() const
Returns whether labels are displayed or not.
void setFontSize(int size)
Sets label font size.
double getSymbolSize() const
Returns symbol size.
bool symbolsShown() const
Returns whether symbols are displayed or not.
ccSymbolCloud(QString name=QString())
Default constructor.
unsigned size() const override
Returns the number of points.
OpenGL camera parameters.