SceneBase< DataType, dim > Class Template Reference

#include <Scene.h>

Inheritance diagram for SceneBase< DataType, dim >:
Scene< DataType, dim >

List of all members.

Public Types

typedef Assembly< DataType, dim > AssemblyType
typedef Part< DataType, dim > PartType
typedef Curve< DataType, dim > CurveType
typedef Surface< DataTypeSurfaceType
typedef Loft< DataTypeLoftType
typedef Segment< DataType, dim > SegmentType
typedef Facet< DataTypeFacetType
typedef Joint< DataType, dim > JointType
typedef DH_Link< DataType, dim > LinkType
typedef DH_Chain< DataType, dim > ChainType
typedef ads::FixedArray< dim,
DataType
point_type
typedef ads::FixedArray< dim, int > multi_index_type

Public Member Functions

 SceneBase ()
 ~SceneBase ()
virtual std::string Name ()
virtual void setName (std::string val)
virtual std::vector< int > & IdTag ()
virtual void AddSurface (SurfaceType &v)
virtual int GetNumSurfaces ()
virtual SurfaceTypeGetNthSurface (int n)
virtual void AddAssembly (AssemblyType *v)
virtual void AddAssembly (AssemblyType &v)
virtual int GetNumAssemblies ()
virtual AssemblyTypeGetNthSceneAssembly (int n)
virtual AssemblyTypeGetNthAssembly (int n)
virtual void addJoint (JointType *joint)
virtual void addJoint (JointType &joint)
virtual int GetNumJoints ()
virtual JointTypeGetNthJoint (int n)
JointTypeGetCoordFrame ()
virtual void addLink (LinkType *cLink)
virtual void addLink (LinkType &cLink)
virtual int GetNumLinks ()
virtual LinkTypeGetNthLink (int n)
virtual void AddChain (ChainType *chain)
virtual void AddChain (ChainType &chain)
virtual int GetNumChains ()
virtual ChainTypeGetNthChain (int n)
void updateScene (DataType dt, DataType time)
void resetScene ()
int GetNumPoints ()
void GetNumPC (int &pcount, int &ccount)
virtual AssemblyTypeGetAssembly (std::vector< int > AidTag)
virtual PartTypeGetPart (std::vector< int > PidTag)
void poseChain (int n)
virtual void outputScene (int type, DataType time, std::string file)
void partPressureForces (multi_index_type *cons, DataType *press, DataType scale)
void send2CPT_4 (point_type *vertices, multi_index_type *connections, DataType scale)
void vel2CPT_2 (point_type *velocities, DataType scale)
virtual void Restart (std::ifstream &ifs, int &pos, double &t, double &dt)
virtual void Checkpointing (std::ofstream &ofs)
virtual void logPartLoads (std::ofstream &ofs, DataType time_, int steps)
virtual void printSummary ()

Protected Attributes

std::vector< int > idTag
std::string name
std::vector< CurveTypecurves
std::vector< SurfaceTypesurfaces
std::vector< LoftTypelofts
std::vector< AssemblyTypeassemblies
int num_curves
int num_surfaces
int num_lofts
int num_assemblies
int num_joints
int num_links
int num_chains
std::vector< JointTypeDH_Joints
std::vector< LinkTypeDH_Links
std::vector< ChainTypeDH_Chains
JointType CoordFrame
std::vector< int > edges
int component
int backedge
int gdistance
int name_size
int idTag_size

Friends

class DH_Link< DataType, dim >

template<class DataType, int dim>
class SceneBase< DataType, dim >


Member Typedef Documentation

template<class DataType, int dim>
typedef Assembly<DataType,dim> SceneBase< DataType, dim >::AssemblyType
template<class DataType, int dim>
typedef DH_Chain<DataType,dim> SceneBase< DataType, dim >::ChainType
template<class DataType, int dim>
typedef Curve<DataType,dim> SceneBase< DataType, dim >::CurveType
template<class DataType, int dim>
typedef Facet<DataType> SceneBase< DataType, dim >::FacetType
template<class DataType, int dim>
typedef Joint<DataType,dim> SceneBase< DataType, dim >::JointType
template<class DataType, int dim>
typedef DH_Link<DataType,dim> SceneBase< DataType, dim >::LinkType
template<class DataType, int dim>
typedef Loft<DataType> SceneBase< DataType, dim >::LoftType
template<class DataType, int dim>
typedef ads::FixedArray<dim,int> SceneBase< DataType, dim >::multi_index_type
template<class DataType, int dim>
typedef Part<DataType,dim> SceneBase< DataType, dim >::PartType
template<class DataType, int dim>
typedef ads::FixedArray<dim,DataType> SceneBase< DataType, dim >::point_type
template<class DataType, int dim>
typedef Segment<DataType,dim> SceneBase< DataType, dim >::SegmentType
template<class DataType, int dim>
typedef Surface<DataType> SceneBase< DataType, dim >::SurfaceType

Constructor & Destructor Documentation

template<class DataType, int dim>
SceneBase< DataType, dim >::SceneBase (  )  [inline]
template<class DataType, int dim>
SceneBase< DataType, dim >::~SceneBase (  )  [inline]

Member Function Documentation

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::AddAssembly ( AssemblyType v  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::AddAssembly ( AssemblyType v  )  [inline, virtual]

Referenced by main().

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::AddChain ( ChainType chain  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::AddChain ( ChainType chain  )  [inline, virtual]

Referenced by main().

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::addJoint ( JointType joint  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::addJoint ( JointType joint  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::addLink ( LinkType cLink  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::addLink ( LinkType cLink  )  [inline, virtual]

Referenced by main().

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::AddSurface ( SurfaceType v  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::Checkpointing ( std::ofstream &  ofs  )  [inline, virtual]
template<class DataType, int dim>
virtual AssemblyType* SceneBase< DataType, dim >::GetAssembly ( std::vector< int >  AidTag  )  [inline, virtual]
template<class DataType, int dim>
JointType* SceneBase< DataType, dim >::GetCoordFrame (  )  [inline]
template<class DataType, int dim>
virtual AssemblyType* SceneBase< DataType, dim >::GetNthAssembly ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual ChainType* SceneBase< DataType, dim >::GetNthChain ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual JointType* SceneBase< DataType, dim >::GetNthJoint ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual LinkType* SceneBase< DataType, dim >::GetNthLink ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual AssemblyType& SceneBase< DataType, dim >::GetNthSceneAssembly ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual SurfaceType* SceneBase< DataType, dim >::GetNthSurface ( int  n  )  [inline, virtual]
template<class DataType, int dim>
virtual int SceneBase< DataType, dim >::GetNumAssemblies (  )  [inline, virtual]
template<class DataType, int dim>
virtual int SceneBase< DataType, dim >::GetNumChains (  )  [inline, virtual]
template<class DataType, int dim>
virtual int SceneBase< DataType, dim >::GetNumJoints (  )  [inline, virtual]
template<class DataType, int dim>
virtual int SceneBase< DataType, dim >::GetNumLinks (  )  [inline, virtual]
template<class DataType, int dim>
void SceneBase< DataType, dim >::GetNumPC ( int &  pcount,
int &  ccount 
) [inline]
template<class DataType, int dim>
int SceneBase< DataType, dim >::GetNumPoints (  )  [inline]
template<class DataType, int dim>
virtual int SceneBase< DataType, dim >::GetNumSurfaces (  )  [inline, virtual]
template<class DataType, int dim>
virtual PartType* SceneBase< DataType, dim >::GetPart ( std::vector< int >  PidTag  )  [inline, virtual]
template<class DataType, int dim>
virtual std::vector<int>& SceneBase< DataType, dim >::IdTag (  )  [inline, virtual]

Referenced by main().

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::logPartLoads ( std::ofstream &  ofs,
DataType  time_,
int  steps 
) [inline, virtual]
template<class DataType, int dim>
virtual std::string SceneBase< DataType, dim >::Name (  )  [inline, virtual]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::outputScene ( int  type,
DataType  time,
std::string  file 
) [inline, virtual]
template<class DataType, int dim>
void SceneBase< DataType, dim >::partPressureForces ( multi_index_type cons,
DataType press,
DataType  scale 
) [inline]
template<class DataType, int dim>
void SceneBase< DataType, dim >::poseChain ( int  n  )  [inline]

iterate through links

iterate through native links to form ternary links

if ternary link

if child joint attaches to a part or assembly

not a ternary link

if child joint attaches to a part or assembly

Referenced by MotionSolver< DataType, dim >::Advance(), main(), and MotionSolver< DataType, dim >::setup().

template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::printSummary (  )  [inline, virtual]
template<class DataType, int dim>
void SceneBase< DataType, dim >::resetScene (  )  [inline]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::Restart ( std::ifstream &  ifs,
int &  pos,
double &  t,
double &  dt 
) [inline, virtual]
template<class DataType, int dim>
void SceneBase< DataType, dim >::send2CPT_4 ( point_type vertices,
multi_index_type connections,
DataType  scale 
) [inline]
template<class DataType, int dim>
virtual void SceneBase< DataType, dim >::setName ( std::string  val  )  [inline, virtual]
template<class DataType, int dim>
void SceneBase< DataType, dim >::updateScene ( DataType  dt,
DataType  time 
) [inline]
template<class DataType, int dim>
void SceneBase< DataType, dim >::vel2CPT_2 ( point_type velocities,
DataType  scale 
) [inline]

Friends And Related Function Documentation

template<class DataType, int dim>
friend class DH_Link< DataType, dim > [friend]

Member Data Documentation

template<class DataType, int dim>
std::vector<AssemblyType > SceneBase< DataType, dim >::assemblies [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::backedge [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::component [protected]
template<class DataType, int dim>
JointType SceneBase< DataType, dim >::CoordFrame [protected]
template<class DataType, int dim>
std::vector<CurveType > SceneBase< DataType, dim >::curves [protected]
template<class DataType, int dim>
std::vector<ChainType > SceneBase< DataType, dim >::DH_Chains [protected]
template<class DataType, int dim>
std::vector<JointType > SceneBase< DataType, dim >::DH_Joints [protected]
template<class DataType, int dim>
std::vector<LinkType > SceneBase< DataType, dim >::DH_Links [protected]
template<class DataType, int dim>
std::vector<int> SceneBase< DataType, dim >::edges [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::gdistance [protected]
template<class DataType, int dim>
std::vector<int> SceneBase< DataType, dim >::idTag [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::idTag_size [protected]
template<class DataType, int dim>
std::vector<LoftType > SceneBase< DataType, dim >::lofts [protected]
template<class DataType, int dim>
std::string SceneBase< DataType, dim >::name [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::name_size [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_assemblies [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_chains [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_curves [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_joints [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_links [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_lofts [protected]
template<class DataType, int dim>
int SceneBase< DataType, dim >::num_surfaces [protected]
template<class DataType, int dim>
std::vector<SurfaceType > SceneBase< DataType, dim >::surfaces [protected]

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:18:58 2016 for Motion - rigid body dynamics solver by  doxygen 1.6.3