![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CVisualRegistryElement.h>
Public Types | |
typedef icomp::CRegistryElement | BaseClass |
![]() | |
enum | ChangeFlags { CF_ATTRIBUTE_CHANGED = 0x29734ba , CF_FLAGS_CHANGED } |
enum | ElementFlags { EF_AUTO_INSTANCE = 0x0001 , EF_IS_DETACHED = 0x0002 } |
typedef std::unique_ptr< iser::IObject > | AttributePtr |
![]() | |
enum | ChangeFlags { CF_RESET = 0xb812936 , CF_ATTR_REMOVED , CF_ATTR_ADDED } |
Data model change notification flags. More... | |
typedef QSet< QByteArray > | AttributeIds |
![]() | |
enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
![]() | |
enum | ChangeFlags { CF_OBJECT_POSITION = 0x6ba340 } |
Public Member Functions | |
CVisualRegistryElement () | |
const icomp::IRegistry * | GetRegistry () const |
const icomp::CComponentAddress & | GetAddress () const |
const QByteArray & | GetName () const |
void | SetName (const QByteArray &name) |
const QString & | GetNote () const |
void | SetNote (const QString ¬e) |
void | Initialize (const icomp::IRegistry *parentPtr, const icomp::CComponentAddress &address) |
virtual i2d::CVector2d | GetCenter () const |
Returns center of this 2D-object. | |
virtual void | MoveCenterTo (const i2d::CVector2d &position) |
Move object to position position . | |
virtual i2d::CRectangle | GetBoundingBox () const |
Get bounding box of this shape. | |
virtual bool | Transform (const i2d::ITransformation2d &transformation, i2d::ITransformation2d::ExactnessMode mode=i2d::ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) |
Transform this object using some transformation. | |
virtual bool | InvTransform (const i2d::ITransformation2d &transformation, i2d::ITransformation2d::ExactnessMode mode=i2d::ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) |
Do inverse transformation of this object. | |
virtual bool | GetTransformed (const i2d::ITransformation2d &transformation, i2d::IObject2d &result, i2d::ITransformation2d::ExactnessMode mode=i2d::ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) const |
Calulate transformation of the object into second one. | |
virtual bool | GetInvTransformed (const i2d::ITransformation2d &transformation, i2d::IObject2d &result, i2d::ITransformation2d::ExactnessMode mode=i2d::ITransformation2d::EM_NONE, double *errorFactorPtr=nullptr) const |
Calulate inverse transformation of the object into second one. | |
![]() | |
CRegistryElement () | |
virtual AttributeInfo * | GetAttributeInfo (const QByteArray &attributeId) |
virtual quint32 | GetElementFlags () const |
Get flags of this registry element. | |
virtual void | SetElementFlags (quint32 flags) |
Set flags of this registry element. | |
virtual AttributeInfo * | InsertAttributeInfo (const QByteArray &attributeId, const QByteArray &attributeType) |
Insert new attribute info object to collection of attributes. | |
virtual std::unique_ptr< iser::IObject > | CreateAttribute (const QByteArray &attributeType) const |
Create attribute object for specified ID. | |
virtual const AttributeInfo * | GetAttributeInfo (const QByteArray &attributeId) const |
Get access to stored attribute info structure. | |
virtual bool | RemoveAttribute (const QByteArray &attributeId) |
Removes attribute info structure from this collection. | |
virtual AttributeIds | GetAttributeIds () const |
Get list of all attribute IDs. | |
virtual iser::IObject * | GetAttribute (const QByteArray &attributeId) const |
Get attribute for the given ID. | |
virtual bool | Serialize (iser::IArchive &archive) |
Load or store state of this object as a archive stream. | |
![]() | |
![]() | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual std::unique_ptr< IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
Make a copy of this object. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
![]() | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
![]() | |
CObject2dBase () | |
CObject2dBase (const CObject2dBase &object2d) | |
CObject2dBase (CObject2dBase &&object2d) | |
const ICalibration2d * | GetCalibration () const override |
Get access to transformation object, which transforms a local logical coordinate system to global one. | |
void | SetCalibration (istd::TOptDelPtr< const ICalibration2d > &&calibrationPtr) override |
Set calibration of this object. | |
bool | CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override |
Copy this object from another one. | |
bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) override |
Reset data to its default state. | |
CObject2dBase & | operator= (const CObject2dBase &object2d) |
CObject2dBase & | operator= (CObject2dBase &&object2d) |
![]() | |
![]() | |
virtual QByteArray | GetFactoryId () const |
![]() |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
std::unique_ptr< iser::IObject > | CreateAttributeIntern (const QByteArray &attributeType) const |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
![]() | |
static const ChangeSet | s_objectMovedChange |
static const ChangeSet | s_objectModifiedChange |
Definition at line 27 of file CVisualRegistryElement.h.
Definition at line 30 of file CVisualRegistryElement.h.
icmpstr::CVisualRegistryElement::CVisualRegistryElement | ( | ) |
|
inline |
Definition at line 86 of file CVisualRegistryElement.h.
|
virtual |
Get bounding box of this shape.
Please note, this bounding box is in logical units, the calibration will not be considered.
Implements i2d::IObject2d.
|
virtual |
Returns center of this 2D-object.
Implements i2d::IObject2d.
|
virtual |
Calulate inverse transformation of the object into second one.
Please note, that this operation transforms logical coordinates, it means that the calibration will be ignored.
mode | controls needed transformation exactness. |
errorFactorPtr | optional output where approximated length of transformation error vector will be stored. Value 0 means that transformation is exactly done. |
result | result object. |
Reimplemented from i2d::CObject2dBase.
|
inline |
Definition at line 92 of file CVisualRegistryElement.h.
const QString & icmpstr::CVisualRegistryElement::GetNote | ( | ) | const |
|
inline |
Definition at line 80 of file CVisualRegistryElement.h.
|
virtual |
Calulate transformation of the object into second one.
Please note, that this operation transforms logical coordinates, it means that the calibration will be ignored.
mode | controls needed transformation exactness. |
errorFactorPtr | optional output where approximated length of transformation error vector will be stored. Value 0 means that transformation is exactly done. |
result | result object. |
Reimplemented from i2d::CObject2dBase.
void icmpstr::CVisualRegistryElement::Initialize | ( | const icomp::IRegistry * | parentPtr, |
const icomp::CComponentAddress & | address ) |
|
virtual |
Do inverse transformation of this object.
Please note, that this operation transforms logical coordinates, it means that the calibration will be ignored.
mode | controls needed transformation exactness. |
errorFactorPtr | optional output where approximated length of transformation error vector will be stored. Value 0 means that transformation is exactly done. |
Reimplemented from i2d::CObject2dBase.
|
virtual |
Move object to position position
.
Implements i2d::IObject2d.
void icmpstr::CVisualRegistryElement::SetName | ( | const QByteArray & | name | ) |
void icmpstr::CVisualRegistryElement::SetNote | ( | const QString & | note | ) |
|
virtual |
Transform this object using some transformation.
Please note, that this operation transforms logical coordinates, it means that the calibration will be ignored.
mode | controls needed transformation exactness. |
errorFactorPtr | optional output where approximated length of transformation error vector will be stored. Value 0 means that transformation is exactly done. |
Reimplemented from i2d::CObject2dBase.
© Witold Gantzke and Kirill Lepskiy