26 QString
name = QString(
"Sphere"),
27 unsigned precision = 24);
40 virtual QString
getTypeName()
const override {
return "Sphere"; }
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.
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
virtual ccGenericPrimitive * clone() const override
Clones primitive.
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
ccSphere(PointCoordinateType radius, const ccGLMatrix *transMat=0, QString name=QString("Sphere"), unsigned precision=24)
Default constructor.
virtual bool buildUp() override
Builds primitive.
virtual void drawNameIn3D() override
Draws the entity name in 3D.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
void setRadius(PointCoordinateType radius)
Sets radius.
PointCoordinateType getRadius() const
Returns radius.
virtual bool hasDrawingPrecision() const override
Whether drawing is dependent on 'precision' parameter.
ccSphere(QString name=QString("Sphere"))
Simplified constructor.
short minimumFileVersion_MeOnly() const override
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
PointCoordinateType m_radius
Radius.