41 double* errorFactorPtr =
nullptr)
override;
45 double* errorFactorPtr =
nullptr)
override;
50 double* errorFactorPtr =
nullptr)
const override;
55 double* errorFactorPtr =
nullptr)
const override;
94 return translatedPosition;
Base class for 2D-objects implementing interface i2d::IObject2d.
Definition of graphical point object.
QByteArray GetFactoryId() const override
CPosition2d GetTranslated(const i2d::CVector2d &vector) const
void MoveCenterTo(const CVector2d &position) override
Move object to position position.
const CVector2d & GetPosition() const
bool InvTransform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) override
Do inverse transformation of this object.
static QByteArray GetTypeName()
int GetSupportedOperations() const override
Get set of flags for supported operations.
void SetPosition(const CVector2d &position)
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
CVector2d GetCenter() const override
Returns center of this 2D-object.
CRectangle GetBoundingBox() const override
Get bounding box of this shape.
bool Transform(const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) override
Transform this object using some transformation.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool IsEqual(const istd::IChangeable &object) const override
Compare this object with another object.
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.
void Translate(const i2d::CVector2d &vector)
CPosition2d(const CVector2d ¢er)
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.
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.
Common interface for data model objects, which can be changed.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.