21 static const unsigned DEFAULT_DRAWING_PRECISION = 24;
38 QString
name = QString(
"Quadric"),
39 unsigned precision = DEFAULT_DRAWING_PRECISION);
52 virtual QString
getTypeName()
const override {
return "Quadric"; }
81 QString getEquationString()
const;
93 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
98 LoadedIDMap& oldToNewIDMap)
override;
99 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 ccBBox getOwnFitBB(ccGLMatrix &trans)
Returns best-fit bounding-box (if available)
CCVector2 m_maxCorner
Max corner.
const Tuple3ub & getEquationDims() const
const CCVector2 & getMaxCorner() const
Returns the quadric max corner.
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
PointCoordinateType m_minZ
Min height.
CCVector2 m_minCorner
Min corner.
Tuple3ub m_dims
Dimension indexes.
const PointCoordinateType * getEquationCoefs() const
Returns the quadric equation coefficients.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
PointCoordinateType m_maxZ
Max height.
const CCVector2 & getMinCorner() const
Returns the quadric min corner.
virtual bool hasDrawingPrecision() const override
Whether drawing is dependent on 'precision' parameter.
A generic 3D point cloud with index-based and presistent access to points.