44 double* errorFactorPtr =
NULL)
override;
48 double* errorFactorPtr =
NULL)
override;
53 double* errorFactorPtr =
NULL)
const override;
58 double* errorFactorPtr =
NULL)
const override;
Definition of a line in 2D-space.
Base class for 2D-objects implementing interface i2d::IObject2d.
Definition of convexes quadrangle object.
virtual void MoveCenterTo(const CVector2d &position) override
Move object to position position.
void SetSecondDiagonal(const CLine2d &secondDiagonal)
virtual int GetSupportedOperations() const override
Get set of flags for supported operations.
virtual bool GetTransformed(const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const override
Calulate transformation of the object into second one.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool operator!=(const CQuadrangle &quadrangle) const
virtual bool GetInvTransformed(const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const override
Calulate inverse transformation of the object into second one.
const CLine2d & GetFirstDiagonal() const
bool operator==(const CQuadrangle &quadrangle) const
void SetFirstDiagonal(const CLine2d &firstDiagonal)
virtual CVector2d GetCenter() const override
Returns center of this 2D-object.
virtual bool Transform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) override
Transform this object using some transformation.
bool IsQuadrangleValid() const
CQuadrangle(const CLine2d &firstDiagonal, const CLine2d &secondDiagonal)
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
bool IsQuadrangleEmpty() const
const CLine2d & GetSecondDiagonal() const
virtual CRectangle GetBoundingBox() const override
Get bounding box of this shape.
virtual bool InvTransform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) override
Do inverse transformation of this object.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
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.
Represents an input/output persistence archive for object serialization.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.