21 static const unsigned DEFAULT_DRAWING_PRECISION = 72;
32 QString
name = QString(
"Disc"),
33 unsigned precision = DEFAULT_DRAWING_PRECISION);
61 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
66 LoadedIDMap& oldToNewIDMap)
override;
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
PointCoordinateType getRadius() const
Returns radius.
QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
PointCoordinateType m_radius
Radius.
bool hasDrawingPrecision() const override
Whether drawing is dependent on 'precision' parameter.
CV_CLASS_ENUM getClassID() const override
Returns class ID.
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 ccBBox getOwnFitBB(ccGLMatrix &trans)
Returns best-fit bounding-box (if available)