21 static const unsigned DEFAULT_DRAWING_PRECISION = 24;
35 QString
name = QString(
"Cylinder"),
36 unsigned precision = DEFAULT_DRAWING_PRECISION);
49 virtual QString
getTypeName()
const override {
return "Cylinder"; }
float PointCoordinateType
Type of the coordinates of a (N-D) point.
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
virtual void setBottomRadius(PointCoordinateType radius)
Sets bottom radius.
virtual void setTopRadius(PointCoordinateType radius) override
Sets top radius.
virtual ccGenericPrimitive * clone() const override
Clones primitive.
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
ccCylinder(PointCoordinateType radius, PointCoordinateType height, const ccGLMatrix *transMat=nullptr, QString name=QString("Cylinder"), unsigned precision=DEFAULT_DRAWING_PRECISION)
Default constructor.
ccCylinder(QString name=QString("Cylinder"))
Simplified constructor.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
virtual void setBottomRadius(PointCoordinateType radius) override
Sets bottom radius.
Float version of ccGLMatrixTpl.
Generic primitive interface.