opensurgsim
FixedRepresentation.h
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_FIXEDREPRESENTATION_H
17 #define SURGSIM_PHYSICS_FIXEDREPRESENTATION_H
18 
19 #include "SurgSim/Framework/ObjectFactory.h"
20 #include "SurgSim/Physics/RigidRepresentationBase.h"
21 
22 namespace SurgSim
23 {
24 
25 namespace Physics
26 {
27 class RigidState;
28 
29 typedef RigidLocalization FixedLocalization;
30 
31 SURGSIM_STATIC_REGISTRATION(FixedRepresentation);
32 
36 {
37 public:
40  explicit FixedRepresentation(const std::string& name);
41 
43  virtual ~FixedRepresentation();
44 
45  SURGSIM_CLASSNAME(SurgSim::Physics::FixedRepresentation);
46 
47  void updateGlobalInertiaMatrices(const RigidState& state) override;
48 
49  void update(double dt) override;
50 };
51 
52 }; // Physics
53 }; // SurgSim
54 
55 #endif // SURGSIM_PHYSICS_FIXEDREPRESENTATION_H
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
The FixedRepresentation class represents a physics entity without any motion nor compliance against w...
Definition: FixedRepresentation.h:35
The RigidRepresentationBase class defines the base class for all rigid motion based representations (...
Definition: RigidRepresentationBase.h:38
The RigidState class describes a state (position and velocity information).
Definition: RigidState.h:31
void update(double dt) override
Update the representation state to the current time step.
Definition: FixedRepresentation.cpp:38
virtual ~FixedRepresentation()
Destructor.
Definition: FixedRepresentation.cpp:29
FixedRepresentation(const std::string &name)
Constructor.
Definition: FixedRepresentation.cpp:24