SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_session_vtk_Geometry_h
11 #define smtk_session_vtk_Geometry_h
13 #include "smtk/session/vtk/Exports.h"
15 #include "smtk/extension/vtk/geometry/Geometry.h"
17 #include "smtk/geometry/Cache.h"
40 using DataType = Superclass::DataType;
42 Geometry(
const std::shared_ptr<smtk::session::vtk::Resource>& parent);
45 smtk::geometry::Resource::Ptr resource()
const override;
46 void queryGeometry(
const smtk::resource::PersistentObject::Ptr& obj, CacheEntry& entry)
48 int dimension(
const smtk::resource::PersistentObject::Ptr& obj)
const override;
49 Purpose purpose(
const smtk::resource::PersistentObject::Ptr& obj)
const override;
50 void update()
const override;
52 void geometricBounds(
const DataType&,
BoundingBox& bbox)
const override;
59 std::weak_ptr<smtk::session::vtk::Resource> m_parent;
66 #endif // smtk_session_vtk_Geometry_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
A base class for geometry providers that will supply VTK data.
Definition: Geometry.h:51
smtk::shared_ptr< smtk::model::Entity > EntityPtr
Definition: PublicPointerDefs.h:430
std::array< double, 6 > BoundingBox
A bounding box is represented as an array of 6 numbers, ordered xmin, xmax, ymin, ymax,...
Definition: Geometry.h:82
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
A geometry provider that uses a cache to answer queries.
Definition: Cache.h:40
Purpose
The contextual purpose of geometry supplied by the provider.
Definition: Geometry.h:62
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
A VTK geometry provider for the VTK session.
Definition: Geometry.h:33