Simbody
3.4 (development)
|
00001 #ifndef SimTK_SIMBODY_DECORATION_SUBSYSTEM_H_ 00002 #define SimTK_SIMBODY_DECORATION_SUBSYSTEM_H_ 00003 00004 /* -------------------------------------------------------------------------- * 00005 * Simbody(tm) * 00006 * -------------------------------------------------------------------------- * 00007 * This is part of the SimTK biosimulation toolkit originating from * 00008 * Simbios, the NIH National Center for Physics-Based Simulation of * 00009 * Biological Structures at Stanford, funded under the NIH Roadmap for * 00010 * Medical Research, grant U54 GM072970. See https://simtk.org/home/simbody. * 00011 * * 00012 * Portions copyright (c) 2007-12 Stanford University and the Authors. * 00013 * Authors: Michael Sherman * 00014 * Contributors: * 00015 * * 00016 * Licensed under the Apache License, Version 2.0 (the "License"); you may * 00017 * not use this file except in compliance with the License. You may obtain a * 00018 * copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * 00019 * * 00020 * Unless required by applicable law or agreed to in writing, software * 00021 * distributed under the License is distributed on an "AS IS" BASIS, * 00022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 00023 * See the License for the specific language governing permissions and * 00024 * limitations under the License. * 00025 * -------------------------------------------------------------------------- */ 00026 00034 #include "SimTKcommon.h" 00035 #include "simbody/internal/common.h" 00036 00037 #include <cassert> 00038 00039 namespace SimTK { 00040 00041 class DecorationGenerator; 00042 class DecorativeGeometry; 00043 class DecorativeLine; 00044 class MultibodySystem; 00045 00054 class SimTK_SIMBODY_EXPORT DecorationSubsystem : public Subsystem { 00055 public: 00056 DecorationSubsystem(); 00057 explicit DecorationSubsystem(MultibodySystem&); 00058 00059 void addBodyFixedDecoration(MobilizedBodyIndex bodyNum, 00060 const Transform& X_GD, 00061 const DecorativeGeometry&); 00062 00063 void addRubberBandLine(MobilizedBodyIndex b1, const Vec3& station1, 00064 MobilizedBodyIndex b2, const Vec3& station2, 00065 const DecorativeLine&); 00074 void addDecorationGenerator(Stage stage, DecorationGenerator* generator); 00075 00076 SimTK_PIMPL_DOWNCAST(DecorationSubsystem, Subsystem); 00077 class DecorationSubsystemGuts& updGuts(); 00078 const DecorationSubsystemGuts& getGuts() const; 00079 }; 00080 00081 } // namespace SimTK 00082 00083 #endif // SimTK_SIMBODY_DECORATION_SUBSYSTEM_H_