VPTissue Reference Manual
MeshDrawer.h
Go to the documentation of this file.
1 #ifndef MESH_DRAWER_H_
2 #define MESH_DRAWER_H_
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
23 
24 #include <memory>
25 
26 class QGraphicsScene;
27 namespace SimPT_Sim { class SimInterface; }
28 
29 namespace SimPT_Shell {
30 
35 {
36 public:
38  MeshDrawer();
39 
41  MeshDrawer(const std::shared_ptr<GraphicsPreferences>&);
42 
44  void Draw(std::shared_ptr<SimPT_Sim::SimInterface> sim, QGraphicsScene* scene);
45 
46 private:
48 
49 private:
50  std::shared_ptr<prefs_type> m_preferences;
51 };
52 
53 } // namespace
54 
55 #endif // end-of-include-guard
Class drawing a simulator/mesh onto a QGraphicsScene.
Definition: MeshDrawer.h:34
Namespace for SimPT shell package.
Definition: Client.cpp:50
Namespace for the core simulator.
MeshDrawer()
Constructor.
Definition: MeshDrawer.cpp:60
void Draw(std::shared_ptr< SimPT_Sim::SimInterface > sim, QGraphicsScene *scene)
Draws the mesh to QGraphicsScene.
Definition: MeshDrawer.cpp:64
Interface/Implementation for GraphicsPreferences.
Preferences for graphics viewer.