SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Information.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 
11 #ifndef smtk_view_Information_h
12 #define smtk_view_Information_h
13 
14 #include "smtk/common/TypeContainer.h"
15 
16 #include "smtk/CoreExports.h"
17 #include "smtk/SharedFromThis.h"
18 #include "smtk/view/Configuration.h"
19 
20 namespace smtk
21 {
22 namespace view
23 {
24 
32 class SMTKCORE_EXPORT Information
34  , public std::enable_shared_from_this<Information>
35 {
36 public:
37  typedef TypeContainer Container;
38 
41 
42  Information() = default;
43  ~Information() override;
44 
45  virtual const Configuration* configuration() const
46  {
47  return this->get<smtk::view::ConfigurationPtr>().get();
48  }
49 
50 protected:
51 };
52 
53 } // namespace view
54 } // namespace smtk
55 
56 #endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::view::Information
A class for information passed to views during initialization.
Definition: Information.h:32
smtkCreateMacro
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:113
smtk::view::Configuration
Configure a view, specifying types and attributes, without specifying a UI library.
Definition: Configuration.h:28
SharedFromThis.h
Macros for dealing with shared-pointer classes.
smtkTypeMacroBase
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:55
smtk::common::TypeContainer
A container for caching and retrieving instances of types.
Definition: TypeContainer.h:35