Simbody  3.4 (development)
CableTrackerSubsystem.h
Go to the documentation of this file.
00001 #ifndef SimTK_SIMBODY_CABLE_TRACKER_SUBSYSTEM_H_
00002 #define SimTK_SIMBODY_CABLE_TRACKER_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) 2012 Stanford University and the Authors.           *
00013  * Authors: Michael Sherman, Ian Stavness, Andreas Scholz                     *
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 
00027 #include "SimTKmath.h"
00028 #include "simbody/internal/common.h"
00029 
00030 namespace SimTK {
00031 
00035 SimTK_DEFINE_UNIQUE_INDEX_TYPE(CablePathIndex);
00036 
00037 class MultibodySystem;
00038 class CablePath;
00039 
00040 //==============================================================================
00041 //                          CABLE TRACKER SUBSYSTEM
00042 //==============================================================================
00068 class SimTK_SIMBODY_EXPORT CableTrackerSubsystem : public Subsystem {
00069 public:
00070 CableTrackerSubsystem();
00071 explicit CableTrackerSubsystem(MultibodySystem&);
00072 
00076 int getNumCablePaths() const;
00077 
00079 const CablePath& getCablePath(CablePathIndex cableIx) const;
00081 CablePath& updCablePath(CablePathIndex cableIx);
00082  // Hide from Doxygen.
00084 SimTK_PIMPL_DOWNCAST(CableTrackerSubsystem, Subsystem);
00085 class Impl;
00086 Impl& updImpl();
00087 const Impl& getImpl() const;
00089 };
00090 
00091 } // namespace SimTK
00092 
00093 #endif // SimTK_SIMBODY_CABLE_TRACKER_SUBSYSTEM_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines