#include <Curve.h>
Public Types | |
typedef Part< DataType, dim > | PartType |
typedef Connection | ConBase |
typedef Segment< DataType, dim > | SegType |
typedef Facet< DataType > | FacetType |
Public Member Functions | |
Curve () | |
~Curve () | |
virtual void | read (const int type, std::string file) |
virtual void | measure () |
virtual DataType | Length () const |
virtual DataType | Area () const |
virtual DataType | Volume () const |
virtual void | setLength (DataType val) |
virtual void | setArea (DataType val) |
virtual void | setVolume (DataType val) |
virtual void | output (int type, DataType time, FILE *fout) |
virtual void | output (int type, DataType time, std::string file) |
virtual std::string | Name () const |
virtual void | setName (std::string val) |
virtual bool | closure () const |
virtual void | setClosure (bool val) |
virtual PType | Centroid () const |
virtual void | setCentroid (PType val) |
virtual PType | operator[] (int i) const |
virtual void | AddPoint (PType v) |
virtual int | GetNumPoints () const |
virtual PType | GetNthPoint (int n) const |
virtual PType | GetNthPoint_org (int n) const |
virtual PType * | GetNthPointA (int n) |
virtual PType * | GetNthPointAddress (int n) |
virtual PType * | GetNthVelocityAddress (int n) |
virtual std::vector< PType > & | GetCPoints () |
virtual std::vector< PType > & | GetCPoints_org () |
virtual std::vector< PType > & | GetVelocities () |
virtual int | GetNumCons () |
virtual int | GetConnectivity () |
virtual void | AddConnection (SegType v) |
virtual void | AddConnection (FacetType v) |
virtual int | GetNumConnections () const |
virtual ConBase * | GetNthConnection (int n) const |
virtual const SegType * | GetNthSegment (int n) const |
virtual const FacetType * | GetNthFacet (int n) const |
virtual void | setNthCon (int i, int val) |
virtual int | getNthCon (int i) const |
virtual PType | Normal () const |
virtual void | setNormal (PType val) |
virtual void | makeConnections () |
virtual void | makeUnique () |
virtual void | updatePart (DataType dt, DataType time) |
virtual void | deformPart (PType conPoint, DataType dt, DataType time) |
virtual void | deformPart (DataType dt, DataType time) |
virtual void | resetPart () |
virtual PType | setNthCPoint (int n) |
virtual void | setDeformation (bool val) |
virtual bool | GetDeformation () const |
virtual FacetType * | EditNthFacet (int n) |
virtual SegType * | EditNthSegment (int n) |
virtual void | Restart (std::ifstream &ifs, int &pos, double &t, double &dt) |
virtual void | Checkpointing (std::ofstream &ofs) |
virtual void | pressureForce (multi_index_type *cons, DataType *press, DataType scale) |
virtual void | logLoad (std::ofstream &ofs, DataType time_, int step) |
Protected Attributes | |
DataType | Clength |
std::string | name |
bool | closed |
PType | centroid |
std::vector< PType > | cPoints_org |
std::vector< PType > | cPoints |
std::vector< SegType > | connectivity |
std::vector< PType > | velocities_loc |
int | num_cPoints_org |
int | num_cPoints |
int | num_connections |
int | num_velocities |
2D/3D Curves are Part point sets with Segment Connections.
typedef Connection Curve< DataType, dim >::ConBase |
Reimplemented from PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
Reimplemented from PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
Reimplemented from PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References Curve< DataType, dim >::centroid, and Curve< DataType, dim >::Clength.
virtual void Curve< DataType, dim >::AddConnection | ( | FacetType | v | ) | [inline, virtual] |
virtual void Curve< DataType, dim >::AddConnection | ( | SegType | v | ) | [inline, virtual] |
References Curve< DataType, dim >::connectivity.
Referenced by Curve< DataType, dim >::makeConnections().
virtual DataType Curve< DataType, dim >::Area | ( | ) | const [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
virtual PType Curve< DataType, dim >::Centroid | ( | ) | const [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
References Curve< DataType, dim >::centroid.
Referenced by Curve< DataType, dim >::measure().
virtual void Curve< DataType, dim >::Checkpointing | ( | std::ofstream & | ofs | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References Curve< DataType, dim >::connectivity, Segment< DataType, dim >::cPid, Curve< DataType, dim >::cPoints, Curve< DataType, dim >::cPoints_org, Curve< DataType, dim >::Name(), Curve< DataType, dim >::num_connections, Curve< DataType, dim >::num_cPoints, Curve< DataType, dim >::num_cPoints_org, Curve< DataType, dim >::num_velocities, and Curve< DataType, dim >::velocities_loc.
Referenced by SplineCurve< DataType, dim >::Checkpointing().
virtual bool Curve< DataType, dim >::closure | ( | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::closed.
Referenced by Curve< DataType, dim >::output().
virtual void Curve< DataType, dim >::deformPart | ( | DataType | dt, | |
DataType | time | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
virtual void Curve< DataType, dim >::deformPart | ( | PType | conPoint, | |
DataType | dt, | |||
DataType | time | |||
) | [inline, virtual] |
virtual FacetType* Curve< DataType, dim >::EditNthFacet | ( | int | n | ) | [inline, virtual] |
virtual SegType* Curve< DataType, dim >::EditNthSegment | ( | int | n | ) | [inline, virtual] |
References Curve< DataType, dim >::connectivity.
virtual int Curve< DataType, dim >::GetConnectivity | ( | ) | [inline, virtual] |
virtual std::vector<PType>& Curve< DataType, dim >::GetCPoints | ( | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints.
Referenced by Loft< DataType >::read().
virtual std::vector<PType>& Curve< DataType, dim >::GetCPoints_org | ( | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints_org.
Referenced by Loft< DataType >::read().
virtual bool Curve< DataType, dim >::GetDeformation | ( | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References PartBase< DataType, dim >::deformable.
virtual int Curve< DataType, dim >::getNthCon | ( | int | i | ) | const [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
Referenced by Curve< DataType, dim >::makeConnections(), Curve< DataType, dim >::measure(), and Curve< DataType, dim >::output().
virtual ConBase* Curve< DataType, dim >::GetNthConnection | ( | int | n | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::connectivity.
virtual const FacetType* Curve< DataType, dim >::GetNthFacet | ( | int | n | ) | const [inline, virtual] |
virtual PType Curve< DataType, dim >::GetNthPoint | ( | int | n | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints.
Referenced by Loft< DataType >::GenLoft(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::output(), SplineCurve< DataType, dim >::read(), and Curve< DataType, dim >::read().
virtual PType Curve< DataType, dim >::GetNthPoint_org | ( | int | n | ) | const [inline, virtual] |
References Curve< DataType, dim >::cPoints_org.
virtual PType* Curve< DataType, dim >::GetNthPointA | ( | int | n | ) | [inline, virtual] |
References Curve< DataType, dim >::cPoints.
virtual PType* Curve< DataType, dim >::GetNthPointAddress | ( | int | n | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints.
virtual const SegType* Curve< DataType, dim >::GetNthSegment | ( | int | n | ) | const [inline, virtual] |
References Curve< DataType, dim >::connectivity.
Referenced by Curve< DataType, dim >::makeUnique(), and Curve< DataType, dim >::output().
virtual PType* Curve< DataType, dim >::GetNthVelocityAddress | ( | int | n | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::velocities_loc.
virtual int Curve< DataType, dim >::GetNumConnections | ( | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::connectivity.
Referenced by Curve< DataType, dim >::makeUnique(), and Curve< DataType, dim >::output().
virtual int Curve< DataType, dim >::GetNumCons | ( | ) | [inline, virtual] |
References Curve< DataType, dim >::connectivity.
Referenced by Curve< DataType, dim >::measure().
virtual int Curve< DataType, dim >::GetNumPoints | ( | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints.
Referenced by Loft< DataType >::GenLoft(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::makeConnections(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::output(), and SplineCurve< DataType, dim >::read().
virtual std::vector<PType>& Curve< DataType, dim >::GetVelocities | ( | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::velocities_loc.
virtual DataType Curve< DataType, dim >::Length | ( | ) | const [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
References Curve< DataType, dim >::Clength.
Referenced by Curve< DataType, dim >::measure().
virtual void Curve< DataType, dim >::logLoad | ( | std::ofstream & | ofs, | |
DataType | time_, | |||
int | step | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
virtual void Curve< DataType, dim >::makeConnections | ( | ) | [inline, virtual] |
References Curve< DataType, dim >::AddConnection(), Curve< DataType, dim >::connectivity, Segment< DataType, dim >::cPid, Curve< DataType, dim >::getNthCon(), Curve< DataType, dim >::GetNumPoints(), and Segment< DataType, dim >::setNthCon().
Referenced by SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), and Curve< DataType, dim >::read().
virtual void Curve< DataType, dim >::makeUnique | ( | ) | [inline, virtual] |
References Curve< DataType, dim >::connectivity, Curve< DataType, dim >::cPoints, Curve< DataType, dim >::cPoints_org, Segment< DataType, dim >::getNthCon(), Curve< DataType, dim >::GetNthPoint(), Curve< DataType, dim >::GetNthSegment(), Curve< DataType, dim >::GetNumConnections(), Curve< DataType, dim >::GetNumPoints(), norm_2(), and TOL.
Referenced by Curve< DataType, dim >::read().
virtual void Curve< DataType, dim >::measure | ( | ) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References Curve< DataType, dim >::Centroid(), Curve< DataType, dim >::centroid, Curve< DataType, dim >::Clength, Curve< DataType, dim >::connectivity, Curve< DataType, dim >::cPoints, Curve< DataType, dim >::getNthCon(), Curve< DataType, dim >::GetNumCons(), Curve< DataType, dim >::Length(), Curve< DataType, dim >::Name(), and norm_2().
Referenced by SplineCurve< DataType, dim >::measure(), and Curve< DataType, dim >::read().
virtual std::string Curve< DataType, dim >::Name | ( | ) | const [inline, virtual] |
Reimplemented from PartBase< DataType, dim >.
References Curve< DataType, dim >::name.
Referenced by Curve< DataType, dim >::Checkpointing(), Loft< DataType >::GenLoft(), Curve< DataType, dim >::measure(), Curve< DataType, dim >::output(), and Curve< DataType, dim >::resetPart().
virtual PType Curve< DataType, dim >::Normal | ( | ) | const [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
virtual PType Curve< DataType, dim >::operator[] | ( | int | i | ) | const [inline, virtual] |
References Curve< DataType, dim >::cPoints.
virtual void Curve< DataType, dim >::output | ( | int | type, | |
DataType | time, | |||
std::string | file | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References PartBase< DataType, dim >::Brep2D, PartBase< DataType, dim >::Brep3D, Curve< DataType, dim >::closure(), Curve< DataType, dim >::getNthCon(), Curve< DataType, dim >::GetNthPoint(), Curve< DataType, dim >::GetNthSegment(), Curve< DataType, dim >::GetNumConnections(), Curve< DataType, dim >::GetNumPoints(), Curve< DataType, dim >::Name(), PartBase< DataType, dim >::pointList, PartBase< DataType, dim >::STL, PartBase< DataType, dim >::VTK_curve, and PartBase< DataType, dim >::VTK_PL.
virtual void Curve< DataType, dim >::output | ( | int | type, | |
DataType | time, | |||
FILE * | fout | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
virtual void Curve< DataType, dim >::pressureForce | ( | multi_index_type * | cons, | |
DataType * | press, | |||
DataType | scale | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References PartBase< DataType, dim >::Name().
virtual void Curve< DataType, dim >::read | ( | const int | type, | |
std::string | file | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References Curve< DataType, dim >::AddPoint(), PartBase< DataType, dim >::Brep2D, PartBase< DataType, dim >::Brep3D, Curve< DataType, dim >::GetNthPoint(), Curve< DataType, dim >::makeConnections(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::measure(), norm_2(), PartBase< DataType, dim >::pointList, Curve< DataType, dim >::setClosure(), Curve< DataType, dim >::setName(), PartBase< DataType, dim >::STL, TOL, PartBase< DataType, dim >::VTK_curve, and PartBase< DataType, dim >::VTK_PL.
virtual void Curve< DataType, dim >::resetPart | ( | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::cPoints, Curve< DataType, dim >::cPoints_org, and Curve< DataType, dim >::Name().
virtual void Curve< DataType, dim >::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References Curve< DataType, dim >::connectivity, Segment< DataType, dim >::cPid, Curve< DataType, dim >::cPoints, Curve< DataType, dim >::cPoints_org, Curve< DataType, dim >::name, Curve< DataType, dim >::num_connections, Curve< DataType, dim >::num_cPoints, Curve< DataType, dim >::num_cPoints_org, Curve< DataType, dim >::num_velocities, and Curve< DataType, dim >::velocities_loc.
Referenced by SplineCurve< DataType, dim >::Restart().
virtual void Curve< DataType, dim >::setArea | ( | DataType | val | ) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
virtual void Curve< DataType, dim >::setCentroid | ( | PType | val | ) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
References Curve< DataType, dim >::centroid.
virtual void Curve< DataType, dim >::setClosure | ( | bool | val | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
References Curve< DataType, dim >::closed.
Referenced by Loft< DataType >::GenLoft(), SplineCurve< DataType, dim >::read(), and Curve< DataType, dim >::read().
virtual void Curve< DataType, dim >::setDeformation | ( | bool | val | ) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
References PartBase< DataType, dim >::deformable.
virtual void Curve< DataType, dim >::setLength | ( | DataType | val | ) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
References Curve< DataType, dim >::Clength.
virtual void Curve< DataType, dim >::setName | ( | std::string | val | ) | [inline, virtual] |
Reimplemented from PartBase< DataType, dim >.
References Curve< DataType, dim >::name.
Referenced by SplineCurve< DataType, dim >::read(), Curve< DataType, dim >::read(), and SplineCurve< DataType, dim >::SplineCurve().
virtual void Curve< DataType, dim >::setNormal | ( | PType | val | ) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
virtual void Curve< DataType, dim >::setNthCon | ( | int | i, | |
int | val | |||
) | [inline, virtual] |
Reimplemented from Segment< DataType, dim >.
virtual PType Curve< DataType, dim >::setNthCPoint | ( | int | n | ) | [inline, virtual] |
References Curve< DataType, dim >::cPoints.
virtual void Curve< DataType, dim >::setVolume | ( | DataType | val | ) | [inline, virtual] |
virtual void Curve< DataType, dim >::updatePart | ( | DataType | dt, | |
DataType | time | |||
) | [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented in SplineCurve< DataType, dim >.
virtual DataType Curve< DataType, dim >::Volume | ( | ) | const [inline, virtual] |
Implements PartBase< DataType, dim >.
Reimplemented from Connection.
Referenced by Curve< DataType, dim >::Centroid(), Curve< DataType, dim >::Curve(), Curve< DataType, dim >::measure(), Curve< DataType, dim >::setCentroid(), and SplineCurve< DataType, dim >::SplineCurve().
Referenced by Curve< DataType, dim >::closure(), and Curve< DataType, dim >::setClosure().
std::vector<SegType> Curve< DataType, dim >::connectivity [protected] |
Referenced by Curve< DataType, dim >::AddConnection(), Curve< DataType, dim >::Checkpointing(), Curve< DataType, dim >::EditNthSegment(), Curve< DataType, dim >::GetNthConnection(), Curve< DataType, dim >::GetNthSegment(), Curve< DataType, dim >::GetNumConnections(), Curve< DataType, dim >::GetNumCons(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::makeConnections(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::measure(), and Curve< DataType, dim >::Restart().
Referenced by Curve< DataType, dim >::AddPoint(), Curve< DataType, dim >::Checkpointing(), Curve< DataType, dim >::GetCPoints(), Curve< DataType, dim >::GetNthPoint(), Curve< DataType, dim >::GetNthPointA(), Curve< DataType, dim >::GetNthPointAddress(), Curve< DataType, dim >::GetNumPoints(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::measure(), Curve< DataType, dim >::operator[](), Curve< DataType, dim >::resetPart(), Curve< DataType, dim >::Restart(), and Curve< DataType, dim >::setNthCPoint().
std::vector<PType> Curve< DataType, dim >::cPoints_org [protected] |
Referenced by Curve< DataType, dim >::Checkpointing(), Curve< DataType, dim >::GetCPoints_org(), Curve< DataType, dim >::GetNthPoint_org(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::makeUnique(), Curve< DataType, dim >::resetPart(), and Curve< DataType, dim >::Restart().
Reimplemented from PartBase< DataType, dim >.
Referenced by Curve< DataType, dim >::Name(), Curve< DataType, dim >::Restart(), and Curve< DataType, dim >::setName().
int Curve< DataType, dim >::num_connections [protected] |
Referenced by Curve< DataType, dim >::Checkpointing(), and Curve< DataType, dim >::Restart().
int Curve< DataType, dim >::num_cPoints [protected] |
Referenced by Curve< DataType, dim >::Checkpointing(), and Curve< DataType, dim >::Restart().
int Curve< DataType, dim >::num_cPoints_org [protected] |
Referenced by Curve< DataType, dim >::Checkpointing(), and Curve< DataType, dim >::Restart().
int Curve< DataType, dim >::num_velocities [protected] |
Referenced by Curve< DataType, dim >::Checkpointing(), and Curve< DataType, dim >::Restart().
std::vector<PType> Curve< DataType, dim >::velocities_loc [protected] |