#include <Part.h>
Public Types | |
enum | IOType { pointList, VTK_curve, Brep2D, VTK_PL, Brep3D, STL, loft, VelDat } |
typedef Connection | ConBase |
typedef Segment< DataType, dim > | SegType |
typedef Facet< DataType > | FacetType |
Public Member Functions | |
PartBase () | |
~PartBase () | |
virtual void | read (const int type, std::string file)=0 |
virtual void | output (int type, DataType time, std::string file)=0 |
virtual void | output (int type, DataType time, FILE *fout)=0 |
virtual std::string | Name () const |
virtual void | setName (std::string val) |
virtual std::vector< int > & | IdTag () |
virtual void | setIdTag (std::vector< int > val) |
virtual void | setDHMat (MType val) |
virtual MType | GetDHMat () |
virtual void | setDHMat_old (MType val) |
virtual MType | GetDHMat_old () |
virtual void | measure ()=0 |
virtual DataType | Length () const =0 |
virtual DataType | Area () const =0 |
virtual DataType | Volume () const =0 |
virtual bool | closure () const =0 |
virtual void | setClosure (bool val)=0 |
virtual PType | Centroid () const =0 |
virtual void | setCentroid (PType val)=0 |
virtual void | AddPoint (PType v)=0 |
virtual int | GetNumPoints () const =0 |
virtual PType | GetNthPoint (int n) const =0 |
virtual PType * | GetNthPointAddress (int n)=0 |
virtual PType * | GetNthVelocityAddress (int n)=0 |
virtual int | GetNumConnections () const =0 |
virtual ConBase * | GetNthConnection (int n) const =0 |
virtual int | getNthCon (int i) const =0 |
virtual std::vector< PType > & | GetCPoints ()=0 |
virtual std::vector< PType > & | GetCPoints_org ()=0 |
virtual std::vector< PType > & | GetVelocities ()=0 |
virtual void | updatePart (DataType dt, DataType time)=0 |
virtual void | resetPart ()=0 |
virtual void | setDeformation (bool val)=0 |
virtual bool | GetDeformation () const =0 |
virtual void | deformPart (DataType dt, DataType time)=0 |
virtual void | setMobility (bool val) |
virtual bool | GetMobility () const |
virtual void | print () |
virtual void | Restart (std::ifstream &ifs, int &pos, double &t, double &dt)=0 |
virtual void | Checkpointing (std::ofstream &ofs)=0 |
virtual void | RestartPart (std::ifstream &ifs, int &pos, double &t, double &dt) |
virtual void | CheckpointPart (std::ofstream &ofs) |
virtual void | setCGS (int val) |
virtual int | GetCGS () const |
virtual void | pressureForce (multi_index_type *cons, DataType *press, DataType scale)=0 |
virtual void | logLoad (std::ofstream &ofs, DataType time_, int step)=0 |
Public Attributes | |
std::string | name |
std::vector< int > | idTag |
Protected Attributes | |
bool | deformable |
bool | mobile |
MType | AssemblyTmatrix |
MType | MotionTmatrix |
MType | DHMat |
MType | DHMat_old |
int | cgs |
Generic geometry object interface.
typedef Connection PartBase< DataType, dim >::ConBase |
Reimplemented in Curve< DataType, dim >, Part< DataType, 2 >, Part< DataType, 3 >, SplineCurve< DataType, dim >, and Surface< DataType >.
Reimplemented in Curve< DataType, dim >, Part< DataType, 2 >, Part< DataType, 3 >, SplineCurve< DataType, dim >, and Surface< DataType >.
Reimplemented in Curve< DataType, dim >, Part< DataType, 2 >, Part< DataType, 3 >, SplineCurve< DataType, dim >, and Surface< DataType >.
enum PartBase::IOType |
virtual void PartBase< DataType, dim >::AddPoint | ( | PType | v | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual DataType PartBase< DataType, dim >::Area | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual PType PartBase< DataType, dim >::Centroid | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::Checkpointing | ( | std::ofstream & | ofs | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::CheckpointPart | ( | std::ofstream & | ofs | ) | [inline, virtual] |
virtual bool PartBase< DataType, dim >::closure | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::deformPart | ( | DataType | dt, | |
DataType | time | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual int PartBase< DataType, dim >::GetCGS | ( | ) | const [inline, virtual] |
virtual std::vector<PType>& PartBase< DataType, dim >::GetCPoints | ( | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual std::vector<PType>& PartBase< DataType, dim >::GetCPoints_org | ( | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual bool PartBase< DataType, dim >::GetDeformation | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, SplineCurve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::print().
virtual MType PartBase< DataType, dim >::GetDHMat | ( | ) | [inline, virtual] |
Referenced by Assembly< DataType, dim >::print().
virtual MType PartBase< DataType, dim >::GetDHMat_old | ( | ) | [inline, virtual] |
virtual bool PartBase< DataType, dim >::GetMobility | ( | ) | const [inline, virtual] |
Referenced by Assembly< DataType, dim >::print().
virtual int PartBase< DataType, dim >::getNthCon | ( | int | i | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual ConBase* PartBase< DataType, dim >::GetNthConnection | ( | int | n | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::send2CPT().
virtual PType PartBase< DataType, dim >::GetNthPoint | ( | int | n | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::outputAssembly_Brep3D().
virtual PType* PartBase< DataType, dim >::GetNthPointAddress | ( | int | n | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::send2CPT().
virtual PType* PartBase< DataType, dim >::GetNthVelocityAddress | ( | int | n | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::vel2CPT().
virtual int PartBase< DataType, dim >::GetNumConnections | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::GetNumPC(), Assembly< DataType, dim >::outputAssembly_Brep3D(), Assembly< DataType, dim >::outputAssembly_STL(), Assembly< DataType, dim >::print(), Assembly< DataType, dim >::send2CPT(), and Assembly< DataType, dim >::updateAssembly().
virtual int PartBase< DataType, dim >::GetNumPoints | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::GetNumPC(), Assembly< DataType, dim >::GetNumPoints(), Assembly< DataType, dim >::outputAssembly_Brep3D(), Assembly< DataType, dim >::send2CPT(), and Assembly< DataType, dim >::vel2CPT().
virtual std::vector<PType>& PartBase< DataType, dim >::GetVelocities | ( | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
virtual std::vector<int>& PartBase< DataType, dim >::IdTag | ( | ) | [inline, virtual] |
Referenced by Assembly< DataType, dim >::AddPart().
virtual DataType PartBase< DataType, dim >::Length | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::logLoad | ( | std::ofstream & | ofs, | |
DataType | time_, | |||
int | step | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::logPartLoads().
virtual void PartBase< DataType, dim >::measure | ( | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual std::string PartBase< DataType, dim >::Name | ( | ) | const [inline, virtual] |
Reimplemented in Curve< DataType, dim >, and Loft< DataType >.
Referenced by Assembly< DataType, dim >::AddPart(), PartBase< DataType, 3 >::CheckpointPart(), Assembly< DataType, dim >::outputAssembly_Brep3D(), Assembly< DataType, dim >::outputAssembly_STL(), Curve< DataType, dim >::pressureForce(), PartBase< DataType, 3 >::print(), Assembly< DataType, dim >::print(), Assembly< DataType, dim >::printSummary(), PartBase< DataType, 3 >::RestartPart(), and Assembly< DataType, dim >::updateAssembly().
virtual void PartBase< DataType, dim >::output | ( | int | type, | |
DataType | time, | |||
FILE * | fout | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::output | ( | int | type, | |
DataType | time, | |||
std::string | file | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::outputAssembly_STL().
virtual void PartBase< DataType, dim >::pressureForce | ( | multi_index_type * | cons, | |
DataType * | press, | |||
DataType | scale | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::partPressureForces().
virtual void PartBase< DataType, dim >::print | ( | ) | [inline, virtual] |
virtual void PartBase< DataType, dim >::read | ( | const int | type, | |
std::string | file | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::resetPart | ( | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::resetAssembly().
virtual void PartBase< DataType, dim >::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::RestartPart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
virtual void PartBase< DataType, dim >::setCentroid | ( | PType | val | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::setCGS | ( | int | val | ) | [inline, virtual] |
Referenced by Assembly< DataType, dim >::send2CPT().
virtual void PartBase< DataType, dim >::setClosure | ( | bool | val | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::setDeformation | ( | bool | val | ) | [pure virtual] |
Implemented in Curve< DataType, dim >, SplineCurve< DataType, dim >, and Surface< DataType >.
virtual void PartBase< DataType, dim >::setDHMat | ( | MType | val | ) | [inline, virtual] |
virtual void PartBase< DataType, dim >::setDHMat_old | ( | MType | val | ) | [inline, virtual] |
virtual void PartBase< DataType, dim >::setIdTag | ( | std::vector< int > | val | ) | [inline, virtual] |
Referenced by Assembly< DataType, dim >::AddPart().
virtual void PartBase< DataType, dim >::setMobility | ( | bool | val | ) | [inline, virtual] |
virtual void PartBase< DataType, dim >::setName | ( | std::string | val | ) | [inline, virtual] |
Reimplemented in Curve< DataType, dim >, and Loft< DataType >.
virtual void PartBase< DataType, dim >::updatePart | ( | DataType | dt, | |
DataType | time | |||
) | [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, SplineCurve< DataType, dim >, and Surface< DataType >.
Referenced by Assembly< DataType, dim >::updateAssembly().
virtual DataType PartBase< DataType, dim >::Volume | ( | ) | const [pure virtual] |
Implemented in Curve< DataType, dim >, Loft< DataType >, and Surface< DataType >.
MType PartBase< DataType, dim >::AssemblyTmatrix [protected] |
index of first part connection in the MotionSolver::connections array
Referenced by PartBase< DataType, 3 >::GetCGS(), and PartBase< DataType, 3 >::setCGS().
bool PartBase< DataType, dim >::deformable [protected] |
A std::vector of integers (+ for assemblies, - for parts) for the assemblies from base assembly to this part. idTag[ ] is the index number of the Assembly in the subAssemblyList of Assembly[]. idTag[] is the index number of the base Assembly in the Scene's assemblyList. Assembly index -1 * Part index
Referenced by PartBase< DataType, 3 >::IdTag(), and PartBase< DataType, 3 >::setIdTag().
MType PartBase< DataType, dim >::MotionTmatrix [protected] |
Reimplemented in Curve< DataType, dim >.
Referenced by PartBase< DataType, 3 >::Name(), and PartBase< DataType, 3 >::setName().