18 m_older_id = older_id;
19 m_younger_id = younger_id;
36 m_older_id = obj->
getMetaData(
"Younger_ID").toInt();
45 QVariantMap* map =
new QVariantMap();
46 map->insert(
"ccCompassType",
"TopologyRelation");
47 map->insert(
"RelationType", m_type);
48 map->insert(
"Older_ID", m_older_id);
49 map->insert(
"Younger_ID", m_younger_id);
153 return object->getMetaData(
"ccCompassType")
155 .contains(
"TopologyRelation");
virtual void setVisible(bool state)
Sets entity visibility.
virtual void showNameIn3D(bool state)
Sets whether name should be displayed in 3D.
Hierarchical CLOUDVIEWER Object.
virtual ccBBox getBB_recursive(bool withGLFeatures=false, bool onlyEnabledChildren=true)
Returns the bounding-box of this entity and it's children.
virtual QString getName() const
Returns object name.
void setMetaData(const QString &key, const QVariant &data)
Sets a meta-data element.
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
bool hasMetaData(const QString &key) const
Returns whether a meta-data element with the given key exists or not.
virtual void setName(const QString &name)
Sets object name.
virtual void setEnabled(bool state)
Sets the "enabled" property.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
void clear() override
Clears the entity from all its points and features.
static int invertType(int type)
static const int NOT_OLDER_THAN
static const int EQUIVALENCE
static const int IMMEDIATELY_PRECEDES
static const int OLDER_THAN
void updateMetadata() override
static const int YOUNGER_THAN
static const int IMMEDIATELY_FOLLOWS
void constructGraphic(ccGeoObject *older, ccGeoObject *younger)
static const int NOT_YOUNGER_THAN
ccTopologyRelation(ccPointCloud *associatedCloud, int older_id, int younger_id, int type)
static bool isTopologyRelation(ccHObject *obj)
void setType(int topologyType)
Vector3Tpl< T > getCenter() const
Returns center.
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
void clear(bool unusedParam=true) override
Clears the cloud.
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.