#include <Scene.h>
Public Types | |
typedef Assembly< DataType, dim > | AssemblyType |
typedef Part< DataType, dim > | PartType |
typedef Curve< DataType, dim > | CurveType |
typedef Surface< DataType > | SurfaceType |
typedef Loft< DataType > | LoftType |
typedef Segment< DataType, dim > | SegmentType |
typedef Facet< DataType > | FacetType |
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 SurfaceType * | GetNthSurface (int n) |
virtual void | AddAssembly (AssemblyType *v) |
virtual void | AddAssembly (AssemblyType &v) |
virtual int | GetNumAssemblies () |
virtual AssemblyType & | GetNthSceneAssembly (int n) |
virtual AssemblyType * | GetNthAssembly (int n) |
virtual void | addJoint (JointType *joint) |
virtual void | addJoint (JointType &joint) |
virtual int | GetNumJoints () |
virtual JointType * | GetNthJoint (int n) |
JointType * | GetCoordFrame () |
virtual void | addLink (LinkType *cLink) |
virtual void | addLink (LinkType &cLink) |
virtual int | GetNumLinks () |
virtual LinkType * | GetNthLink (int n) |
virtual void | AddChain (ChainType *chain) |
virtual void | AddChain (ChainType &chain) |
virtual int | GetNumChains () |
virtual ChainType * | GetNthChain (int n) |
void | updateScene (DataType dt, DataType time) |
void | resetScene () |
int | GetNumPoints () |
void | GetNumPC (int &pcount, int &ccount) |
virtual AssemblyType * | GetAssembly (std::vector< int > AidTag) |
virtual PartType * | GetPart (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< CurveType > | curves |
std::vector< SurfaceType > | surfaces |
std::vector< LoftType > | lofts |
std::vector< AssemblyType > | assemblies |
int | num_curves |
int | num_surfaces |
int | num_lofts |
int | num_assemblies |
int | num_joints |
int | num_links |
int | num_chains |
std::vector< JointType > | DH_Joints |
std::vector< LinkType > | DH_Links |
std::vector< ChainType > | DH_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 > |
typedef Assembly<DataType,dim> SceneBase< DataType, dim >::AssemblyType |
typedef DH_Chain<DataType,dim> SceneBase< DataType, dim >::ChainType |
typedef DH_Link<DataType,dim> SceneBase< DataType, dim >::LinkType |
typedef ads::FixedArray<dim,int> SceneBase< DataType, dim >::multi_index_type |
typedef ads::FixedArray<dim,DataType> SceneBase< DataType, dim >::point_type |
typedef Segment<DataType,dim> SceneBase< DataType, dim >::SegmentType |
typedef Surface<DataType> SceneBase< DataType, dim >::SurfaceType |
virtual void SceneBase< DataType, dim >::AddAssembly | ( | AssemblyType & | v | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::AddAssembly | ( | AssemblyType * | v | ) | [inline, virtual] |
Referenced by main().
virtual void SceneBase< DataType, dim >::AddChain | ( | ChainType & | chain | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::AddChain | ( | ChainType * | chain | ) | [inline, virtual] |
Referenced by main().
virtual void SceneBase< DataType, dim >::addJoint | ( | JointType & | joint | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::addJoint | ( | JointType * | joint | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::addLink | ( | LinkType & | cLink | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::addLink | ( | LinkType * | cLink | ) | [inline, virtual] |
Referenced by main().
virtual void SceneBase< DataType, dim >::AddSurface | ( | SurfaceType & | v | ) | [inline, virtual] |
virtual void SceneBase< DataType, dim >::Checkpointing | ( | std::ofstream & | ofs | ) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Checkpointing().
virtual AssemblyType* SceneBase< DataType, dim >::GetAssembly | ( | std::vector< int > | AidTag | ) | [inline, virtual] |
virtual AssemblyType* SceneBase< DataType, dim >::GetNthAssembly | ( | int | n | ) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Initialize().
virtual ChainType* SceneBase< DataType, dim >::GetNthChain | ( | int | n | ) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Initialize().
virtual JointType* SceneBase< DataType, dim >::GetNthJoint | ( | int | n | ) | [inline, virtual] |
virtual LinkType* SceneBase< DataType, dim >::GetNthLink | ( | int | n | ) | [inline, virtual] |
virtual AssemblyType& SceneBase< DataType, dim >::GetNthSceneAssembly | ( | int | n | ) | [inline, virtual] |
Referenced by SceneBase< DataType, 3 >::Restart().
virtual SurfaceType* SceneBase< DataType, dim >::GetNthSurface | ( | int | n | ) | [inline, virtual] |
virtual int SceneBase< DataType, dim >::GetNumAssemblies | ( | ) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Initialize(), and SceneBase< DataType, 3 >::Restart().
virtual int SceneBase< DataType, dim >::GetNumJoints | ( | ) | [inline, virtual] |
virtual int SceneBase< DataType, dim >::GetNumLinks | ( | ) | [inline, virtual] |
virtual int SceneBase< DataType, dim >::GetNumSurfaces | ( | ) | [inline, virtual] |
virtual std::vector<int>& SceneBase< DataType, dim >::IdTag | ( | ) | [inline, virtual] |
Referenced by main().
virtual void SceneBase< DataType, dim >::logPartLoads | ( | std::ofstream & | ofs, | |
DataType | time_, | |||
int | steps | |||
) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::logLoads().
virtual std::string SceneBase< DataType, dim >::Name | ( | ) | [inline, virtual] |
Referenced by DH_Link< DataType, dim >::print(), and MotionSolver< DataType, dim >::setup().
virtual void SceneBase< DataType, dim >::outputScene | ( | int | type, | |
DataType | time, | |||
std::string | file | |||
) | [inline, virtual] |
Referenced by main(), and MotionSolver< DataType, dim >::setup().
void SceneBase< DataType, dim >::partPressureForces | ( | multi_index_type * | cons, | |
DataType * | press, | |||
DataType | scale | |||
) | [inline] |
Referenced by MotionSolver< DataType, dim >::pressureForce().
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().
virtual void SceneBase< DataType, dim >::printSummary | ( | ) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Advance(), and main().
virtual void SceneBase< DataType, dim >::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
Referenced by MotionSolver< DataType, dim >::Restart().
void SceneBase< DataType, dim >::send2CPT_4 | ( | point_type * | vertices, | |
multi_index_type * | connections, | |||
DataType | scale | |||
) | [inline] |
virtual void SceneBase< DataType, dim >::setName | ( | std::string | val | ) | [inline, virtual] |
Referenced by main(), and MotionSolver< DataType, dim >::setup().
void SceneBase< DataType, dim >::updateScene | ( | DataType | dt, | |
DataType | time | |||
) | [inline] |
Referenced by MotionSolver< DataType, dim >::Advance(), main(), and MotionSolver< DataType, dim >::setup().
void SceneBase< DataType, dim >::vel2CPT_2 | ( | point_type * | velocities, | |
DataType | scale | |||
) | [inline] |
Referenced by MotionSolver< DataType, dim >::UpdateVelocities().
std::vector<AssemblyType > SceneBase< DataType, dim >::assemblies [protected] |
Referenced by SceneBase< DataType, 3 >::addJoint().
JointType SceneBase< DataType, dim >::CoordFrame [protected] |
Referenced by SceneBase< DataType, 3 >::GetNumLinks().
std::vector<CurveType > SceneBase< DataType, dim >::curves [protected] |
std::vector<ChainType > SceneBase< DataType, dim >::DH_Chains [protected] |
Referenced by SceneBase< DataType, 3 >::logPartLoads().
std::vector<JointType > SceneBase< DataType, dim >::DH_Joints [protected] |
Referenced by SceneBase< DataType, 3 >::addLink(), and SceneBase< DataType, 3 >::GetCoordFrame().
std::vector<LinkType > SceneBase< DataType, dim >::DH_Links [protected] |
Referenced by SceneBase< DataType, 3 >::AddChain(), and SceneBase< DataType, 3 >::GetNumChains().
idTag[0] = -1; for Scene
Referenced by DH_Chain< DataType, dim >::calcDHMat(), and DH_Chain< DataType, dim >::calcNativeDHMat().
int SceneBase< DataType, dim >::idTag_size [protected] |
std::vector<LoftType > SceneBase< DataType, dim >::lofts [protected] |
int SceneBase< DataType, dim >::num_assemblies [protected] |
int SceneBase< DataType, dim >::num_chains [protected] |
int SceneBase< DataType, dim >::num_curves [protected] |
int SceneBase< DataType, dim >::num_joints [protected] |
int SceneBase< DataType, dim >::num_surfaces [protected] |
std::vector<SurfaceType > SceneBase< DataType, dim >::surfaces [protected] |
Referenced by SceneBase< DataType, 3 >::AddAssembly().