26 QString
name = QString(
"Box"));
37 virtual QString
getTypeName()
const override {
return "Box"; }
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
virtual ccGenericPrimitive * clone() const override
Clones primitive.
ccBox(const CCVector3 &dims, const ccGLMatrix *transMat=nullptr, QString name=QString("Box"))
Default constructor.
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
CCVector3 m_dims
Box dimensions.
const CCVector3 & getDimensions() const
Returns box dimensions.
short minimumFileVersion_MeOnly() const override
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
void setDimensions(CCVector3 &dims)
Sets box dimensions.
virtual bool buildUp() override
Builds primitive.
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
ccBox(QString name=QString("Box"))
Simplified constructor.
Float version of ccGLMatrixTpl.
Generic primitive interface.
virtual bool updateRepresentation()
Updates internal representation (as a mesh)
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)