Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
tlp::PropertyInterface Class Referenceabstract

#include <PropertyInterface.h>

Inheritance diagram for tlp::PropertyInterface:
Collaboration diagram for tlp::PropertyInterface:

Classes

class  edgeStringValueRef
class  MetaValueCalculator
class  nodeStringValueRef

Public Member Functions

virtual PropertyInterface * clonePrototype (Graph *graph, const std::string &name) const =0
virtual int compare (const edge e1, const edge e2) const =0
virtual int compare (const node n1, const node n2) const =0
virtual void computeMetaValue (edge metaEdge, tlp::Iterator< edge > *it, Graph *metaGraph)=0
virtual void computeMetaValue (node metaNode, Graph *subgraph, Graph *metaGraph)=0
virtual bool copy (const edge destination, const edge source, PropertyInterface *property, bool ifNotDefault=false)=0
virtual bool copy (const node destination, const node source, PropertyInterface *property, bool ifNotDefault=false)=0
virtual void copy (PropertyInterface *source)=0
virtual unsigned int edgeValueSize () const =0
virtual void erase (const edge)=0
virtual void erase (const node)=0
virtual const std::string & getCppClassName () const =0
virtual DataMem * getEdgeDataMemValue (const edge e) const =0
virtual DataMem * getEdgeDefaultDataMemValue () const =0
virtual std::string getEdgeDefaultStringValue () const =0
virtual std::string getEdgeStringValue (const edge e) const =0
tlp::Graph * getGraph () const
MetaValueCalculator * getMetaValueCalculator ()
const std::string & getName () const
virtual DataMem * getNodeDataMemValue (const node n) const =0
virtual DataMem * getNodeDefaultDataMemValue () const =0
virtual std::string getNodeDefaultStringValue () const =0
virtual std::string getNodeStringValue (const node n) const =0
virtual DataMem * getNonDefaultDataMemValue (const edge e) const =0
virtual DataMem * getNonDefaultDataMemValue (const node n) const =0
virtual tlp::Iterator< edge > * getNonDefaultValuatedEdges (const Graph *=nullptr) const =0
virtual tlp::Iterator< node > * getNonDefaultValuatedNodes (const Graph *=nullptr) const =0
virtual const std::string & getTypename () const =0
virtual bool hasNonDefaultValuatedEdges (const Graph *=nullptr) const =0
virtual bool hasNonDefaultValuatedNodes (const Graph *=nullptr) const =0
virtual unsigned int nodeValueSize () const =0
virtual unsigned int numberOfNonDefaultValuatedEdges (const Graph *=nullptr) const =0
virtual unsigned int numberOfNonDefaultValuatedNodes (const Graph *=nullptr) const =0
constexpr edgeStringValueRef operator[] (edge e)
std::string operator[] (edge e) const
constexpr nodeStringValueRef operator[] (node n)
virtual bool readEdgeDefaultValue (std::istream &)=0
virtual bool readEdgeValue (std::istream &, edge)=0
virtual bool readNodeDefaultValue (std::istream &)=0
virtual bool readNodeValue (std::istream &, node)=0
bool rename (const std::string &newName)
virtual void setAllEdgeDataMemValue (const DataMem *v)=0
virtual bool setAllEdgeStringValue (const std::string &value)=0
virtual void setAllNodeDataMemValue (const DataMem *value)=0
virtual bool setAllNodeStringValue (const std::string &value)=0
virtual void setEdgeDataMemValue (const edge e, const DataMem *v)=0
virtual bool setEdgeDefaultStringValue (const std::string &value)=0
virtual bool setEdgeStringValue (const edge e, const std::string &value)=0
virtual void setMetaValueCalculator (MetaValueCalculator *calculator)
virtual void setNodeDataMemValue (const node n, const DataMem *value)=0
virtual bool setNodeDefaultStringValue (const std::string &value)=0
virtual bool setNodeStringValue (const node n, const std::string &value)=0
virtual bool setStringValueToGraphEdges (const std::string &value, const Graph *graph)=0
virtual bool setStringValueToGraphNodes (const std::string &value, const Graph *graph)=0
virtual void writeEdgeDefaultValue (std::ostream &) const =0
virtual void writeEdgeValue (std::ostream &, edge) const =0
virtual void writeNodeDefaultValue (std::ostream &) const =0
virtual void writeNodeValue (std::ostream &, node) const =0
Public Member Functions inherited from tlp::Observable
void addListener (Observable &listener) const
void addListener (Observable *const listener) const
void addObserver (Observable &observer) const
void addObserver (Observable *const observer) const
unsigned int countListeners () const
unsigned int countObservers () const
unsigned int getReceived () const
unsigned int getSent () const
void removeListener (Observable &listener) const
void removeListener (Observable *const listener) const
void removeObserver (Observable &observer) const
void removeObserver (Observable *const observer) const

Protected Member Functions

void notifyAfterSetAllEdgeValue ()
void notifyAfterSetAllNodeValue ()
void notifyAfterSetEdgeValue (const edge e)
void notifyAfterSetNodeValue (const node n)
void notifyBeforeSetAllEdgeValue ()
void notifyBeforeSetAllNodeValue ()
void notifyBeforeSetEdgeValue (const edge e)
void notifyBeforeSetNodeValue (const node n)
void notifyDestroy ()
void notifyRename (const std::string &newName)
Protected Member Functions inherited from tlp::Observable
 Observable (const Observable &)
bool hasOnlookers () const
void observableDeleted ()
Observable & operator= (const Observable &)
void sendEvent (const Event &message)
virtual void treatEvent (const Event &message)
virtual void treatEvents (const std::vector< Event > &events)

Protected Attributes

Graph * graph
MetaValueCalculator * metaValueCalculator
std::string name

Friends

class PropertyManager

Additional Inherited Members

Static Public Member Functions inherited from tlp::Observable
static void disableEventNotification ()
static void enableEventNotification ()
static tlp::node getNode (const tlp::Observable *obs)
static Observable * getObject (tlp::node n)
static const tlp::VectorGraph & getObservableGraph ()
static unsigned int getScheduled (tlp::node n)
static void holdObservers ()
static bool isAlive (tlp::node n)
static unsigned int observersHoldCounter ()
static void unholdObservers ()

Detailed Description

PropertyInterface describes the interface of a graph property.

The intent of a property is to hold a value for each node and edge (e.g. the degree of the nodes).

A property can be used in two different ways : Either it is attached to a graph; and in this case creating and deleting the property is handled by the graph (

See also
Graph::getProperty()).

Either is is detached from a graph, and you have to handle creation and deletion yourself. This is most useful for some algorithms that need a temporary property, but do not want the property to appear on the graph after the computation.

Definition at line 59 of file PropertyInterface.h.

Member Function Documentation

◆ clonePrototype()

virtual PropertyInterface * tlp::PropertyInterface::clonePrototype ( Graph * graph,
const std::string & name ) const
pure virtual

Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will not contain a copy of this property's values.

Parameters
graphThe Graph in which to create the new property.
nameThe name of the new property.
Returns
The newly created property.

Implemented in tlp::BooleanProperty, tlp::BooleanVectorProperty, tlp::ColorProperty, tlp::ColorVectorProperty, tlp::CoordVectorProperty, tlp::DoubleProperty, tlp::DoubleVectorProperty, tlp::GraphProperty, tlp::IntegerProperty, tlp::IntegerVectorProperty, tlp::LayoutProperty, tlp::SizeProperty, tlp::SizeVectorProperty, tlp::StringProperty, and tlp::StringVectorProperty.

◆ compare() [1/2]

virtual int tlp::PropertyInterface::compare ( const edge e1,
const edge e2 ) const
pure virtual

Compares the value this property holds for the two given edges.

Parameters
e1The first edge to compare the value of.
e2The second edge to compare the value of.
Returns
0 if the values are identical, a positive value if e1 is greater than e2, and a negative value if e1 is less than e2.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::ColorProperty, tlp::IntegerProperty, and tlp::StringProperty.

◆ compare() [2/2]

virtual int tlp::PropertyInterface::compare ( const node n1,
const node n2 ) const
pure virtual

Compares the value this property holds for the two given nodes.

Parameters
n1The first node to compare the value of.
n2The second node to compare the value of.
Returns
0 if the values are identical, a positive value if n1 is greater than n2, and a negative value if n1 is less than n2.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, tlp::ColorProperty, tlp::IntegerProperty, tlp::SizeProperty, and tlp::StringProperty.

◆ computeMetaValue() [1/2]

virtual void tlp::PropertyInterface::computeMetaValue ( edge metaEdge,
tlp::Iterator< edge > * it,
Graph * metaGraph )
pure virtual

Sets the value of the metaedge to a computed value.

Parameters
metaEdgeThe meta edge to compute a value on.
itThe edges represented by the meta edge.
metaGraphThe graph who owns the meta edge.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, and tlp::AbstractProperty< tlp::StringType, tlp::StringType >.

◆ computeMetaValue() [2/2]

virtual void tlp::PropertyInterface::computeMetaValue ( node metaNode,
Graph * subgraph,
Graph * metaGraph )
pure virtual

◆ copy() [1/3]

virtual bool tlp::PropertyInterface::copy ( const edge destination,
const edge source,
PropertyInterface * property,
bool ifNotDefault = false )
pure virtual

Copies the value of an edge in another property to an edge in this property.

Parameters
destinationThe edge whose value will be set.
sourceThe edge whose value to copy.
propertyThe property from which to copy the source edge value.
ifNotDefaultIf true, the copy will only be performed if the source edge's value is not the default value.
Returns
True if the copy was performed, false otherwise.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, and tlp::AbstractProperty< tlp::StringType, tlp::StringType >.

◆ copy() [2/3]

virtual bool tlp::PropertyInterface::copy ( const node destination,
const node source,
PropertyInterface * property,
bool ifNotDefault = false )
pure virtual

Copies the value of a node in another property to a node in this property.

Parameters
destinationThe node whose value will be set.
sourceThe node whose value to copy.
propertyThe property from which to copy the source node value.
ifNotDefaultIf true, the copy will only be performed if the source node's value is not the default value.
Returns
True if the copy was performed, false otherwise.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, and tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >.

◆ copy() [3/3]

virtual void tlp::PropertyInterface::copy ( PropertyInterface * source)
pure virtual

Copies the values of the source property to this property.

Parameters
sourceThe property from which to copy values.
Warning
Be careful when using this method, if you are interested by observing the updates of the values of the current property, because no event is sent for nodes/edges whose value is the default value of the source property.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, and tlp::AbstractProperty< tlp::StringType, tlp::StringType >.

◆ edgeValueSize()

◆ erase() [1/2]

◆ erase() [2/2]

◆ getCppClassName()

virtual const std::string & tlp::PropertyInterface::getCppClassName ( ) const
pure virtual

Gets a string giving the name of a the PropertyInterface subclass (e.g "tlp::BooleanProperty", "tlp::DoubleProperty", ...).

Returns
The subclass name.

◆ getEdgeDataMemValue()

virtual DataMem * tlp::PropertyInterface::getEdgeDataMemValue ( const edge e) const
pure virtual

◆ getEdgeDefaultDataMemValue()

virtual DataMem * tlp::PropertyInterface::getEdgeDefaultDataMemValue ( ) const
pure virtual

◆ getEdgeDefaultStringValue()

◆ getEdgeStringValue()

◆ getGraph()

tlp::Graph * tlp::PropertyInterface::getGraph ( ) const
inline

Definition at line 193 of file PropertyInterface.h.

◆ getMetaValueCalculator()

MetaValueCalculator * tlp::PropertyInterface::getMetaValueCalculator ( )
inline

Gets the MetaValueCalculator of this property.

Returns
The MetaValueCalculator of this property

Definition at line 672 of file PropertyInterface.h.

◆ getName()

const std::string & tlp::PropertyInterface::getName ( ) const
inline

Gets the name of the property (e.g. viewLayout).

Returns
The name of this property.

Definition at line 158 of file PropertyInterface.h.

◆ getNodeDataMemValue()

virtual DataMem * tlp::PropertyInterface::getNodeDataMemValue ( const node n) const
pure virtual

◆ getNodeDefaultDataMemValue()

virtual DataMem * tlp::PropertyInterface::getNodeDefaultDataMemValue ( ) const
pure virtual

◆ getNodeDefaultStringValue()

◆ getNodeStringValue()

◆ getNonDefaultDataMemValue() [1/2]

virtual DataMem * tlp::PropertyInterface::getNonDefaultDataMemValue ( const edge e) const
pure virtual

Returns the value in a DataMem if it is not default, otherwise returns nullptr.

Parameters
eThe edge to get the value of.
Returns
The value of the edge if it is not default, or nullptr.
Warning
The ownership of this pointer is given to the caller.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, and tlp::AbstractProperty< tlp::StringType, tlp::StringType >.

◆ getNonDefaultDataMemValue() [2/2]

virtual DataMem * tlp::PropertyInterface::getNonDefaultDataMemValue ( const node n) const
pure virtual

◆ getNonDefaultValuatedEdges()

virtual tlp::Iterator< edge > * tlp::PropertyInterface::getNonDefaultValuatedEdges ( const Graph * = nullptr) const
pure virtual

◆ getNonDefaultValuatedNodes()

virtual tlp::Iterator< node > * tlp::PropertyInterface::getNonDefaultValuatedNodes ( const Graph * = nullptr) const
pure virtual

◆ getTypename()

virtual const std::string & tlp::PropertyInterface::getTypename ( ) const
pure virtual

Gets a string describing the type of the property value (e.g. "graph", "double", "layout", "string", "integer", "color", "size").

Returns
The name of this property's type.

Implemented in tlp::BooleanProperty, tlp::BooleanVectorProperty, tlp::ColorProperty, tlp::ColorVectorProperty, tlp::CoordVectorProperty, tlp::DoubleProperty, tlp::DoubleVectorProperty, tlp::GraphProperty, tlp::IntegerProperty, tlp::IntegerVectorProperty, tlp::LayoutProperty, tlp::SizeProperty, tlp::SizeVectorProperty, tlp::StringProperty, and tlp::StringVectorProperty.

Here is the caller graph for this function:

◆ hasNonDefaultValuatedEdges()

virtual bool tlp::PropertyInterface::hasNonDefaultValuatedEdges ( const Graph * = nullptr) const
pure virtual

◆ hasNonDefaultValuatedNodes()

virtual bool tlp::PropertyInterface::hasNonDefaultValuatedNodes ( const Graph * = nullptr) const
pure virtual

◆ nodeValueSize()

◆ numberOfNonDefaultValuatedEdges()

◆ numberOfNonDefaultValuatedNodes()

virtual unsigned int tlp::PropertyInterface::numberOfNonDefaultValuatedNodes ( const Graph * = nullptr) const
pure virtual

◆ operator[]() [1/3]

edgeStringValueRef tlp::PropertyInterface::operator[] ( edge e)
inlineconstexpr

overloading of operator[] to set a edge string value value

Definition at line 337 of file PropertyInterface.h.

◆ operator[]() [2/3]

std::string tlp::PropertyInterface::operator[] ( edge e) const
inline

overloading of operator[] to get the edge string value

Definition at line 344 of file PropertyInterface.h.

Here is the call graph for this function:

◆ operator[]() [3/3]

nodeStringValueRef tlp::PropertyInterface::operator[] ( node n)
inlineconstexpr

overloading of operator[] to set a node string value

Definition at line 265 of file PropertyInterface.h.

◆ readEdgeDefaultValue()

◆ readEdgeValue()

◆ readNodeDefaultValue()

◆ readNodeValue()

◆ rename()

bool tlp::PropertyInterface::rename ( const std::string & newName)

Rename a property.

Parameters
thenew name
Returns
returns true if the renaming succeeded. It may fails if a property with the given name already exists

◆ setAllEdgeDataMemValue()

◆ setAllEdgeStringValue()

virtual bool tlp::PropertyInterface::setAllEdgeStringValue ( const std::string & value)
pure virtual

Sets all the edges value to the value represented by the string. For some types, some parsing will be necessary (e.g. LayoutProperty). All previous values are lost and the represented value is assigned as the default one to the future added edges.

Parameters
valueA string representing the new value to set on all the edges.
Returns
Whether the given string was a correct representation for this property's type. If not, the values are not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ setAllNodeDataMemValue()

◆ setAllNodeStringValue()

virtual bool tlp::PropertyInterface::setAllNodeStringValue ( const std::string & value)
pure virtual

Sets all the nodes value to the value represented by the string. For some types, some parsing will be necessary (e.g. LayoutProperty). All previous values are lost and the represented value is assigned as the default one to the future added nodes.

Parameters
valueA string representing the new value to set on all the nodes.
Returns
Whether the given string was a correct representation for this property's type. If not, the values are not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ setEdgeDataMemValue()

◆ setEdgeDefaultStringValue()

virtual bool tlp::PropertyInterface::setEdgeDefaultStringValue ( const std::string & value)
pure virtual

Sets the value assigned as the default one to the future added edges from a string representation.

Since
Tulip 5.0
Parameters
valueA string representing the new value to set on future added edges.
Returns
Whether the given string was a correct representation for this property's type. If not, the default value is not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, and tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >.

◆ setEdgeStringValue()

virtual bool tlp::PropertyInterface::setEdgeStringValue ( const edge e,
const std::string & value )
pure virtual

Sets a new value on the edge, represented by the string parameter.

Parameters
eThe edge on which to set value on.
valueA string representing the value to set on the edge.
Returns
Whether the string was a correct representation for this property's type. If not, the value is not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ setMetaValueCalculator()

virtual void tlp::PropertyInterface::setMetaValueCalculator ( MetaValueCalculator * calculator)
inlinevirtual

Sets the Calculator for meta nodes and edges.

Parameters
calculatorThe object containing the logic for computing the meta values for the nodes and edges.
Warning
The ownership of the MetaValueCalculator is not taken by the property.

Reimplemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::DoubleProperty.

Definition at line 683 of file PropertyInterface.h.

◆ setNodeDataMemValue()

◆ setNodeDefaultStringValue()

virtual bool tlp::PropertyInterface::setNodeDefaultStringValue ( const std::string & value)
pure virtual

Sets the value assigned as the default one to the future added nodes from a string representation.

Since
Tulip 5.0
Parameters
valueA string representing the new value to set on future added nodes.
Returns
Whether the given string was a correct representation for this property's type. If not, the default value is not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, and tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >.

◆ setNodeStringValue()

virtual bool tlp::PropertyInterface::setNodeStringValue ( const node n,
const std::string & value )
pure virtual

Sets a new value on the node, represented by the string parameter.

Parameters
nThe node on which to set the new value.
valueA string representing the value to set on the node.
Returns
Whether the string was a correct representation for this property's type. If not, the value is not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ setStringValueToGraphEdges()

virtual bool tlp::PropertyInterface::setStringValueToGraphEdges ( const std::string & value,
const Graph * graph )
pure virtual

Sets all the edges value to the value represented by the string for a graph. For some types, some parsing will be necessary (e.g. LayoutProperty). Only the edges from that graph will have their value modified in the property and the default edge value will not be modified.

Since
Tulip 5.0
Parameters
valueA string representing the new value to set on all the edges.
graphA graph that defines the set of edges.
Warning
If the provided graph is not a descendant of the one associated to that property (including itself), no edge value will be modified in it.
Returns
Whether the given string was a correct representation for this property's type. If not, the values are not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ setStringValueToGraphNodes()

virtual bool tlp::PropertyInterface::setStringValueToGraphNodes ( const std::string & value,
const Graph * graph )
pure virtual

Sets all the nodes value to the value represented by the string for a graph. For some types, some parsing will be necessary (e.g. LayoutProperty). Only the nodes from that graph will have their value modified in the property and the default node value will not be modified.

Since
Tulip 5.0
Parameters
valueA string representing the new value to set on all the nodes.
graphA graph that defines the set of nodes.
Warning
If the provided graph is not a descendant of the one associated to that property (including itself), no node value will be modified in it.
Returns
Whether the given string was a correct representation for this property's type. If not, the values are not set.

Implemented in tlp::AbstractProperty< Tnode, Tedge, Tprop >, tlp::AbstractProperty< nodeType, edgeType, PropertyInterface >, tlp::AbstractProperty< tlp::BooleanType, tlp::BooleanType >, tlp::AbstractProperty< tlp::BooleanVectorType, tlp::BooleanVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::ColorType, tlp::ColorType >, tlp::AbstractProperty< tlp::ColorVectorType, tlp::ColorVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::CoordVectorType, tlp::CoordVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::DoubleVectorType, tlp::DoubleVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::GraphType, tlp::EdgeSetType >, tlp::AbstractProperty< tlp::IntegerVectorType, tlp::IntegerVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::PointType, tlp::LineType >, tlp::AbstractProperty< tlp::SizeType, tlp::SizeType >, tlp::AbstractProperty< tlp::SizeVectorType, tlp::SizeVectorType, VectorPropertyInterface >, tlp::AbstractProperty< tlp::StringType, tlp::StringType >, tlp::AbstractProperty< tlp::StringVectorType, tlp::StringVectorType, VectorPropertyInterface >, tlp::AbstractProperty< vectType, vectType, VectorPropertyInterface >, and tlp::GraphProperty.

◆ writeEdgeDefaultValue()

◆ writeEdgeValue()

◆ writeNodeDefaultValue()

◆ writeNodeValue()

◆ PropertyManager

friend class PropertyManager
friend

Definition at line 60 of file PropertyInterface.h.

Member Data Documentation

◆ graph

Graph* tlp::PropertyInterface::graph
protected

Definition at line 66 of file PropertyInterface.h.

◆ metaValueCalculator

MetaValueCalculator* tlp::PropertyInterface::metaValueCalculator
protected

Definition at line 706 of file PropertyInterface.h.

◆ name

std::string tlp::PropertyInterface::name
protected

Definition at line 64 of file PropertyInterface.h.