48 double* errorFactorPtr =
nullptr)
override;
52 double* errorFactorPtr =
nullptr)
override;
57 double* errorFactorPtr =
nullptr)
const override;
62 double* errorFactorPtr =
nullptr)
const override;
Definition of a line in 2D-space.
Base class for 2D-objects implementing interface i2d::IObject2d.
Definition of convexes quadrangle object.
void SetSecondDiagonal(const CLine2d &secondDiagonal)
bool operator!=(const CQuadrangle &quadrangle) const
CVector2d GetCenter() const override
Returns center of this 2D-object.
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
bool GetTransformed(const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) const override
Calulate transformation of the object into second one.
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
const CLine2d & GetFirstDiagonal() const
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool operator==(const CQuadrangle &quadrangle) const
int GetSupportedOperations() const override
Get set of flags for supported operations.
void SetFirstDiagonal(const CLine2d &firstDiagonal)
bool IsQuadrangleValid() const
bool Transform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) override
Transform this object using some transformation.
CQuadrangle(const CLine2d &firstDiagonal, const CLine2d &secondDiagonal)
bool IsQuadrangleEmpty() const
bool InvTransform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) override
Do inverse transformation of this object.
void MoveCenterTo(const CVector2d &position) override
Move object to position position.
const CLine2d & GetSecondDiagonal() const
bool GetInvTransformed(const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) const override
Calulate inverse transformation of the object into second one.
CRectangle GetBoundingBox() const override
Get bounding box of this shape.
CQuadrangle(const CRectangle &rectangle)
Definition of rectangle area orthogonal to axis of coordination system.
Definition of position or mathematical vector on 2D plane.
Common interface for describing the 2D-objects.
Represent input/output persistence archive.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.