57 static const int MIN_DRAWING_PRECISION = 4;
69 virtual bool setDrawingPrecision(
unsigned steps);
73 return m_drawPrecision;
82 return m_transformation;
88 virtual void clearDrawings();
96 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
101 LoadedIDMap& oldToNewIDMap)
override;
113 virtual bool updateRepresentation();
118 bool init(
unsigned vertCount,
121 unsigned faceNormCount);
126 void applyTransformationToVertices();
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Float version of ccGLMatrixTpl.
Generic primitive interface.
virtual QString getTypeName() const =0
Returns type name (sphere, cylinder, etc.)
unsigned m_drawPrecision
Drawing precision (for primitives that support this feature)
virtual unsigned getDrawingPrecision() const
Returns drawing precision (or 0 if feature is not supported)
virtual bool hasDrawingPrecision() const
Whether drawing is dependent on 'precision' parameter.
CV_CLASS_ENUM getClassID() const override
Returns class ID.
virtual const ccGLMatrix & getTransformation() const
virtual ccGenericPrimitive * clone() const =0
Clones primitive.
virtual bool buildUp()=0
Builds primitive.
ccGLMatrix m_transformation
Associated transformation (applied to vertices)
virtual ccGLMatrix & getTransformation()
Returns the transformation that is currently applied to the vertices.
void applyGLTransformation(const ccGLMatrix &trans) override
Applies a GL transformation to the entity.
short minimumFileVersion_MeOnly() const override
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
const ccGLMatrix & getGLTransformationHistory() const override
Returns the transformation 'history' matrix.
ccMesh & operator+=(const ccMesh &mesh)
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
bool setColor(ccHObject::Container selectedEntities, bool colorize, QWidget *parent)