Registrar.h 1.37 KB
Newer Older
David Thompson's avatar
David Thompson committed
1
2
3
4
5
6
7
8
9
//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================
10
11
#ifndef smtk_session_polygon_Registrar_h
#define smtk_session_polygon_Registrar_h
David Thompson's avatar
David Thompson committed
12

13
#include "smtk/session/polygon/Exports.h"
David Thompson's avatar
David Thompson committed
14

15
16
#include "smtk/attribute/Registrar.h"
#include "smtk/mesh/resource/Registrar.h"
17
#include "smtk/model/Registrar.h"
T.J. Corona's avatar
T.J. Corona committed
18
#include "smtk/operation/Manager.h"
19
#include "smtk/operation/Registrar.h"
T.J. Corona's avatar
T.J. Corona committed
20
#include "smtk/resource/Manager.h"
David Thompson's avatar
David Thompson committed
21
#include "smtk/view/Manager.h"
David Thompson's avatar
David Thompson committed
22
23

namespace smtk
T.J. Corona's avatar
T.J. Corona committed
24
{
25
namespace session
26
{
T.J. Corona's avatar
T.J. Corona committed
27
namespace polygon
28
{
T.J. Corona's avatar
T.J. Corona committed
29

30
31
32
class SMTKPOLYGONSESSION_EXPORT Registrar
{
public:
33
34
  using Dependencies =
    std::tuple<operation::Registrar, model::Registrar, attribute::Registrar, mesh::Registrar>;
35
36
37

  static void registerTo(const smtk::operation::Manager::Ptr&);
  static void unregisterFrom(const smtk::operation::Manager::Ptr&);
38

39
40
41
  static void registerTo(const smtk::resource::Manager::Ptr&);
  static void unregisterFrom(const smtk::resource::Manager::Ptr&);
};
42
43
44
} // namespace polygon
} // namespace session
} // namespace smtk
T.J. Corona's avatar
T.J. Corona committed
45

David Thompson's avatar
David Thompson committed
46
#endif