MCPcopy Create free account
hub / github.com/MITK/MITK / ConnectTimeEvent

Function ConnectTimeEvent

Modules/Core/include/mitkTimeNavigationController.h:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 */
138 template <typename T>
139 void ConnectTimeEvent(T* receiver)
140 {
141 typedef typename itk::ReceptorMemberCommand<T>::Pointer ReceptorMemberCommandPointer;
142 ReceptorMemberCommandPointer eventReceptorCommand = itk::ReceptorMemberCommand<T>::New();
143 eventReceptorCommand->SetCallbackFunction(receiver, &T::SetGeometryTime);
144 unsigned long tag = AddObserver(TimeEvent(0), eventReceptorCommand);
145 m_ReceiverToObserverTagsMap[static_cast<void *>(receiver)].push_back(tag);
146 }
147
148 /**
149 * \brief Disconnect a receiver from TimeEvent notifications.

Callers

nothing calls this directly

Calls 2

TimeEventFunction · 0.85
NewFunction · 0.70

Tested by

no test coverage detected