26 QString
name = QString(
"Sphere"),
27 unsigned precision = 24);
40 virtual QString
getTypeName()
const override {
return "Sphere"; }
54 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
59 LoadedIDMap& oldToNewIDMap)
override;
60 virtual bool buildUp()
override;
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Float version of ccGLMatrixTpl.
Generic primitive interface.
virtual ccGenericPrimitive * clone() const =0
Clones primitive.
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
virtual bool buildUp()=0
Builds primitive.
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
short minimumFileVersion_MeOnly() const override
virtual void drawNameIn3D()
Draws the entity name in 3D.
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
PointCoordinateType getRadius() const
Returns radius.
virtual bool hasDrawingPrecision() const override
Whether drawing is dependent on 'precision' parameter.
PointCoordinateType m_radius
Radius.