26 QString
name = QString(
"Box"));
37 virtual QString
getTypeName()
const override {
return "Box"; }
51 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
56 LoadedIDMap& oldToNewIDMap)
override;
57 virtual bool buildUp()
override;
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
CCVector3 m_dims
Box dimensions.
const CCVector3 & getDimensions() const
Returns box dimensions.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
void setDimensions(CCVector3 &dims)
Sets box dimensions.
Float version of ccGLMatrixTpl.
Generic primitive interface.
virtual bool updateRepresentation()
Updates internal representation (as a mesh)
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