SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_session_polygon_Resource_h
11 #define smtk_session_polygon_Resource_h
13 #include "smtk/session/polygon/Exports.h"
14 #include "smtk/session/polygon/Session.h"
16 #include "smtk/resource/DerivedFrom.h"
20 #include "smtk/resource/Manager.h"
31 typedef smtk::shared_ptr<const Session> ConstSessionPtr;
42 void setSession(
const Session::Ptr&);
44 SessionPtr polygonSession();
45 ConstSessionPtr polygonSession()
const;
49 smtk::session::polygon::internal::entity::Ptr storage);
54 return this->polygonSession()->findStorage<T>(uid);
59 return this->polygonSession()->findOrAddStorage<T>(uid);
61 int nextModelNumber() {
return this->polygonSession()->m_nextModelNumber++; }
67 Session::Ptr m_session;
74 #endif // smtk_session_polygon_Resource_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Derived resources are subclassed from smtk::resource::Resource.
Definition: DerivedFrom.h:32
smtk::shared_ptr< smtk::model::Session > SessionPtr
Definition: PublicPointerDefs.h:398
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
Definition: Resource.h:33
#define smtkSharedPtrCreateMacro(...)
A convenience macro for declaring shared_from_this and create methods.
Definition: SharedFromThis.h:267
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:39
smtk::shared_ptr< smtk::resource::Manager > ManagerPtr
Definition: PublicPointerDefs.h:288