30 QString
name = QString(
"Plane"));
43 virtual QString
getTypeName()
const override {
return "Plane"; }
57 return m_transformation.getTranslationAsVec3D();
74 return m_transformation.getColumnAsVec3D(2);
78 bool setAsTexture(QImage
image, QString imageFilename = QString());
81 static bool SetQuadTexture(
ccMesh* quadMesh,
83 QString imageFilename = QString());
116 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
121 LoadedIDMap& oldToNewIDMap)
override;
122 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)
std::shared_ptr< core::Tensor > image
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
virtual ccBBox getOwnFitBB(ccGLMatrix &trans)
Returns best-fit bounding-box (if available)
void drawMeOnly(CC_DRAW_CONTEXT &context) override
Enables (OpenGL) stipple mask.
Interface for a planar entity.
PointCoordinateType m_yWidth
Width along 'Y' dimension.
CCVector3 getCenter() const
Returns the center.
CCVector3 getNormal() const override
Returns the entity normal.
virtual QString getTypeName() const override
Returns type name (sphere, cylinder, etc.)
void setXWidth(PointCoordinateType w, bool autoUpdate=true)
Sets 'X' width.
PointCoordinateType m_xWidth
Width along 'X' dimension.
PointCoordinateType getXWidth() const
Returns 'X' width.
PointCoordinateType getYWidth() const
Returns 'Y' width.
void setYWidth(PointCoordinateType h, bool autoUpdate=true)
Sets 'Y' width.
virtual CV_CLASS_ENUM getClassID() const override
Returns class ID.
A generic 3D point cloud with index-based and presistent access to points.