PushResults.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_PHYSICS_PUSHRESULTS_H
17 #define SURGSIM_PHYSICS_PUSHRESULTS_H
18 
21 
22 namespace SurgSim
23 {
24 namespace Framework
25 {
26 class Logger;
27 }
28 
29 namespace Physics
30 {
31 
32 class Representation;
33 
35 class PushResults : public Computation
36 {
37 public:
40  explicit PushResults(bool doCopyState = false);
41 
43 
45  virtual ~PushResults();
46 
47 protected:
48 
50  std::shared_ptr<PhysicsManagerState> doUpdate(const double& dt, const std::shared_ptr<PhysicsManagerState>& state)
51  override;
52 
53  std::shared_ptr<SurgSim::Framework::Logger> m_logger;
54 };
55 
56 }; // namespace Physics
57 }; // namespace SurgSim
58 
59 #endif // SURGSIM_PHYSICS_PUSHRESULTS_H
Computation.h
Macros.h
SurgSim::Physics::PushResults::~PushResults
virtual ~PushResults()
Destructor.
Definition: PushResults.cpp:33
SurgSim::Physics::PushResults::m_logger
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Definition: PushResults.h:53
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::Physics::PushResults::doUpdate
std::shared_ptr< PhysicsManagerState > doUpdate(const double &dt, const std::shared_ptr< PhysicsManagerState > &state) override
Override doUpdate from superclass.
Definition: PushResults.cpp:38
SurgSim::Physics::PushResults::PushResults
PushResults(bool doCopyState=false)
Constructor.
Definition: PushResults.cpp:27
SurgSim::Physics::PushResults::SURGSIM_CLASSNAME
SURGSIM_CLASSNAME(SurgSim::Physics::PushResults)
SurgSim::Physics::Computation
Encapsulates a calculation over a selection of objects, needs to be subclassed to be used.
Definition: Computation.h:32
SurgSim::Physics::PushResults
Propagates the Mlcp result to the representations.
Definition: PushResults.h:35