22 #ifndef GLObjectValuePassConnector_h 23 #define GLObjectValuePassConnector_h 83 typename std::vector< GLObjectValuePassConnector<T>* >::iterator i = std::find(
myContainer.begin(),
myContainer.end(),
this);
122 if ((*i)->myObject.getGlID() == o.
getGlID()) {
virtual ~GLObjectValuePassConnector()
Destructor.
GUIGlObject & myObject
The object to get the values of (the object that must be active)
static void clear()
Deletes all instances.
GLObjectValuePassConnector(GUIGlObject &o, ValueSource< T > *source, ValueRetriever< T > *retriever)
Constructor.
GLObjectValuePassConnector< T > & operator=(const GLObjectValuePassConnector< T > &)
Invalidated assignment operator.
static std::vector< GLObjectValuePassConnector< T > *> myContainer
The container of items that shall be updated.
virtual bool passValue()
Passes the value to the retriever.
static MFXMutex myLock
The mutex used to avoid concurrent updates of the connectors container.
static void removeObject(GUIGlObject &o)
Removes all instances that pass values from the object with the given id.
void unlock()
release mutex lock
ValueSource< T > * mySource
The source for values.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
ValueRetriever< T > * myRetriever
The destination for values.
GUIGlID getGlID() const
Returns the numerical id of the object.
static void updateAll()
Updates all instances (passes values)
Class passing values from a GUIGlObject to another object.