iMSTK
Interactive Medical Simulation Toolkit
imstkTextureDelegate.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkEventObject.h"
10 
11 #include <memory>
12 
13 namespace imstk
14 {
15 class Texture;
16 
22 class TextureDelegate : public EventObject, public std::enable_shared_from_this<TextureDelegate>
23 {
24 public:
25  virtual ~TextureDelegate() = default;
26 
27 protected:
28  TextureDelegate() = default;
29 };
30 } // namespace imstk
Compound Geometry.
EventObject is the base class for all objects in iMSTK that can receive and emit events. It supports direct and queued observer functions. Direct observers receive events immediately on the same thread This can either be posted on an object or be a function pointer Queued observers receive events within their queue which they can process whenever they like. These can be connected with the connect/queuedConnect/disconnect functions Lambda recievers cannot be disconnected unless all receivers to a signal are removed.
iMSTK texture delegate abstract class