#include <Loft.h>
Public Member Functions | |
Loft () | |
~Loft () | |
virtual void | read (const int type, std::string file) |
void | GenLoft () |
virtual void | makeFacets (int flip) |
virtual void | makeUnique () |
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 std::string | Name () const |
virtual void | setName (std::string val) |
virtual DataType | conArea () const |
void | setConArea (DataType 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 (const PType v) |
virtual int | GetNumPoints () const |
virtual PType | GetNthPoint (int n) const |
virtual PType * | GetNthPointA (int n) |
virtual std::vector< PType > & | GetCPoints () |
virtual std::vector< PType > & | GetCPoints_org () |
virtual int | GetNumCons () const |
virtual int | GetConnectivity () |
virtual void | AddConnection (ConBase *v) |
virtual void | AddConnection (SegType *v) |
virtual void | AddConnection (FacetType v) |
virtual int | GetNumConnections () const |
virtual ConBase * | GetNthConnection (int n) const |
virtual 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 std::string | getNthProfileName (int i) |
virtual void | AddProfileName (std::string val) |
virtual int | getNProfiles () |
virtual void | setNProfiles (int val) |
virtual int | getNChords () |
virtual void | setNChords (int val) |
virtual int | getNSpans () |
virtual void | setNSpans (int val) |
virtual void | AddProfileType (int val) |
virtual int | getNthProfileType (int i) |
virtual void | AddPosition (PType val) |
virtual void | AddOrientation (PType val) |
virtual void | AddReflection (PType val) |
virtual void | AddScale (PType val) |
virtual void | AddProfileSpline (SplineCurveType *val) |
virtual SplineCurveType * | GetNthProfileSpline (int i) |
virtual void | AddSpanSpline (SplineCurveType *val) |
virtual SplineCurveType * | GetNthSpanSpline (int i) |
virtual void | AddTransform (MType val) |
virtual MType | GetNthTransform (int i) |
virtual void | SetNthTransform (int i, MType val) |
virtual void | updatePart (DataType dt, DataType time) |
virtual void | deformPart (DataType dt, DataType time) |
virtual void | setLoftProfileTransform (int n, PType ptemp, PType translate1, PType scale1, PType rotate1, int invert) |
virtual void | Restart (std::ifstream &ifs, int &pos, double &t, double &dt) |
virtual void | Checkpointing (std::ofstream &ofs) |
virtual PType | GetNetP () |
virtual void | addIntType (int val) |
Protected Attributes | |
int | NProfiles |
int | NChords |
int | NSpans |
std::vector< int > | profileTypes |
std::vector< int > | intType |
std::vector< std::string > | profileNames |
std::vector< PType > | positions |
std::vector< PType > | orientations |
std::vector< PType > | scales |
std::vector< PType > | reflections |
std::vector< SplineCurveType * > | profileSplines |
std::vector< SplineCurveType * > | spanSplines |
std::vector< MType > | transformList |
int | profileName_size |
int | num_transforms |
int | num_spanSplines |
int | spline_intType |
References Surface< DataType >::loft.
virtual void Loft< DataType >::AddConnection | ( | FacetType | v | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::connectivity.
virtual void Loft< DataType >::AddConnection | ( | SegType * | v | ) | [inline, virtual] |
virtual void Loft< DataType >::AddConnection | ( | ConBase * | v | ) | [inline, virtual] |
Referenced by Loft< DataType >::makeFacets(), and Loft< DataType >::read().
References Loft< DataType >::intType.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddOrientation | ( | PType | val | ) | [inline, virtual] |
References Loft< DataType >::orientations.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddPoint | ( | const PType | v | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints.
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::read().
virtual void Loft< DataType >::AddPosition | ( | PType | val | ) | [inline, virtual] |
References Loft< DataType >::positions.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddProfileName | ( | std::string | val | ) | [inline, virtual] |
References Loft< DataType >::profileNames.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddProfileSpline | ( | SplineCurveType * | val | ) | [inline, virtual] |
References Loft< DataType >::profileSplines.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddProfileType | ( | int | val | ) | [inline, virtual] |
References Loft< DataType >::profileTypes.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddReflection | ( | PType | val | ) | [inline, virtual] |
References Loft< DataType >::reflections.
Referenced by Loft< DataType >::read().
References Loft< DataType >::scales.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::AddSpanSpline | ( | SplineCurveType * | val | ) | [inline, virtual] |
References Loft< DataType >::spanSplines.
Referenced by Loft< DataType >::GenLoft().
virtual void Loft< DataType >::AddTransform | ( | MType | val | ) | [inline, virtual] |
References Loft< DataType >::transformList.
Referenced by Loft< DataType >::read().
Reimplemented from Surface< DataType >.
References Surface< DataType >::area.
Reimplemented from Surface< DataType >.
References Surface< DataType >::centroid.
Referenced by Loft< DataType >::GenLoft().
virtual void Loft< DataType >::Checkpointing | ( | std::ofstream & | ofs | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::Checkpointing(), Loft< DataType >::Name(), Loft< DataType >::NProfiles, Loft< DataType >::num_spanSplines, Loft< DataType >::num_transforms, Loft< DataType >::orientations, Loft< DataType >::positions, Loft< DataType >::profileSplines, Loft< DataType >::profileTypes, Loft< DataType >::scales, Loft< DataType >::spanSplines, and Loft< DataType >::transformList.
Reimplemented from Surface< DataType >.
References Surface< DataType >::closed.
Reimplemented from Surface< DataType >.
References Surface< DataType >::area.
virtual void Loft< DataType >::deformPart | ( | DataType | dt, | |
DataType | time | |||
) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Loft< DataType >::AddPoint(), Loft< DataType >::AddSpanSpline(), Spline< DataType, dim >::AddSplineNode(), Loft< DataType >::Centroid(), Surface< DataType >::cPoints, Surface< DataType >::cPoints_org, Loft< DataType >::GetCPoints(), Loft< DataType >::GetCPoints_org(), Loft< DataType >::getNChords(), Loft< DataType >::getNProfiles(), Loft< DataType >::getNSpans(), Loft< DataType >::GetNthPoint(), Curve< DataType, dim >::GetNthPoint(), Loft< DataType >::GetNthProfileSpline(), Loft< DataType >::GetNthTransform(), Loft< DataType >::GetNumPoints(), Curve< DataType, dim >::GetNumPoints(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Curve< DataType, dim >::Name(), Loft< DataType >::Name(), Loft< DataType >::orientations, Loft< DataType >::positions, prodMP(), prodMVP(), rotMat3D(), Loft< DataType >::scales, scalMat3D(), Curve< DataType, dim >::setClosure(), Loft< DataType >::SetNthTransform(), Loft< DataType >::spanSplines, Loft< DataType >::spline_intType, tranMat3D(), and Surface< DataType >::velocities_loc.
Referenced by Loft< DataType >::read(), and Loft< DataType >::updatePart().
Reimplemented from Surface< DataType >.
virtual std::vector<PType>& Loft< DataType >::GetCPoints | ( | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints.
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::updatePart().
virtual std::vector<PType>& Loft< DataType >::GetCPoints_org | ( | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints_org.
Referenced by Loft< DataType >::GenLoft(), Loft< DataType >::read(), and Loft< DataType >::updatePart().
References Loft< DataType >::NChords.
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::makeFacets().
Reimplemented from Surface< DataType >.
References Surface< DataType >::GetNetP().
References Loft< DataType >::NProfiles.
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::read().
References Loft< DataType >::NSpans.
Referenced by Loft< DataType >::GenLoft(), Loft< DataType >::makeFacets(), and Loft< DataType >::read().
Reimplemented from Surface< DataType >.
virtual ConBase* Loft< DataType >::GetNthConnection | ( | int | n | ) | const [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::connectivity.
virtual const FacetType* Loft< DataType >::GetNthFacet | ( | int | n | ) | const [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::connectivity.
Referenced by Loft< DataType >::makeUnique(), and Loft< DataType >::read().
virtual PType Loft< DataType >::GetNthPoint | ( | int | n | ) | const [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints.
Referenced by Loft< DataType >::GenLoft(), Loft< DataType >::makeFacets(), Loft< DataType >::makeUnique(), and Loft< DataType >::read().
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints.
virtual std::string Loft< DataType >::getNthProfileName | ( | int | i | ) | [inline, virtual] |
References Loft< DataType >::profileNames.
virtual SplineCurveType* Loft< DataType >::GetNthProfileSpline | ( | int | i | ) | [inline, virtual] |
References Loft< DataType >::profileSplines.
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::read().
virtual int Loft< DataType >::getNthProfileType | ( | int | i | ) | [inline, virtual] |
References Loft< DataType >::profileTypes.
virtual SegType* Loft< DataType >::GetNthSegment | ( | int | n | ) | const [inline, virtual] |
Reimplemented from Surface< DataType >.
virtual SplineCurveType* Loft< DataType >::GetNthSpanSpline | ( | int | i | ) | [inline, virtual] |
References Loft< DataType >::spanSplines.
virtual MType Loft< DataType >::GetNthTransform | ( | int | i | ) | [inline, virtual] |
References Loft< DataType >::transformList.
Referenced by Loft< DataType >::GenLoft().
virtual int Loft< DataType >::GetNumConnections | ( | ) | const [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::connectivity.
Referenced by Loft< DataType >::makeUnique().
Reimplemented from Surface< DataType >.
References Surface< DataType >::connectivity.
Reimplemented from Surface< DataType >.
References Surface< DataType >::cPoints.
Referenced by Loft< DataType >::GenLoft(), Loft< DataType >::makeFacets(), Loft< DataType >::makeUnique(), and Loft< DataType >::read().
Reimplemented from Surface< DataType >.
References Loft< DataType >::AddConnection(), Loft< DataType >::getNChords(), Loft< DataType >::getNSpans(), Loft< DataType >::GetNthPoint(), Loft< DataType >::GetNumPoints(), Loft< DataType >::makeUnique(), Surface< DataType >::measure(), Loft< DataType >::Name(), and Surface< DataType >::validFacet().
Referenced by Loft< DataType >::read().
References Surface< DataType >::connectivity, Surface< DataType >::cPoints, Surface< DataType >::cPoints_org, Facet< DataType >::getNthCon(), Loft< DataType >::GetNthFacet(), Loft< DataType >::GetNthPoint(), Loft< DataType >::GetNumConnections(), Loft< DataType >::GetNumPoints(), mypredicate(), norm_2(), and TOL.
Referenced by Loft< DataType >::makeFacets(), and Loft< DataType >::updatePart().
Reimplemented from PartBase< DataType, 3 >.
References PartBase< DataType, 3 >::name.
Referenced by Loft< DataType >::Checkpointing(), Loft< DataType >::GenLoft(), Loft< DataType >::makeFacets(), Loft< DataType >::read(), Loft< DataType >::Restart(), and Loft< DataType >::updatePart().
Reimplemented from Surface< DataType >.
virtual PType Loft< DataType >::operator[] | ( | int | i | ) | const [inline, virtual] |
References Surface< DataType >::cPoints.
virtual void Loft< DataType >::read | ( | const int | type, | |
std::string | file | |||
) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Loft< DataType >::AddConnection(), Loft< DataType >::addIntType(), Loft< DataType >::AddOrientation(), Loft< DataType >::AddPoint(), Loft< DataType >::AddPosition(), Loft< DataType >::AddProfileName(), Loft< DataType >::AddProfileSpline(), Loft< DataType >::AddProfileType(), Loft< DataType >::AddReflection(), Loft< DataType >::AddScale(), Loft< DataType >::AddTransform(), PartBase< DataType, 3 >::Brep2D, PartBase< DataType, 3 >::Brep3D, Surface< DataType >::connectivity, Loft< DataType >::GenLoft(), Curve< DataType, dim >::GetCPoints(), Loft< DataType >::GetCPoints_org(), Curve< DataType, dim >::GetCPoints_org(), SplineCurve< DataType, dim >::GetNodes(), Loft< DataType >::getNProfiles(), Loft< DataType >::getNSpans(), Facet< DataType >::getNthCon(), Loft< DataType >::GetNthFacet(), Loft< DataType >::GetNthPoint(), Loft< DataType >::GetNthProfileSpline(), Loft< DataType >::GetNumPoints(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Loft< DataType >::intType, PartBase< DataType, 3 >::loft, Loft< DataType >::makeFacets(), SplineCurve< DataType, dim >::measure(), Surface< DataType >::measure(), Loft< DataType >::Name(), norm_2(), PartBase< DataType, 3 >::pointList, prodMVP(), Loft< DataType >::profileNames, Loft< DataType >::profileTypes, SplineCurve< DataType, dim >::read(), Loft< DataType >::reflections, reflMat3D(), Loft< DataType >::setClosure(), Loft< DataType >::setName(), Loft< DataType >::setNChords(), Loft< DataType >::setNProfiles(), Loft< DataType >::setNSpans(), Facet< DataType >::setNthCon(), Loft< DataType >::spline_intType, PartBase< DataType, 3 >::STL, TOL, and PartBase< DataType, 3 >::VTK_curve.
virtual void Loft< DataType >::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Loft< DataType >::Name(), Loft< DataType >::NProfiles, Loft< DataType >::num_spanSplines, Loft< DataType >::num_transforms, Loft< DataType >::orientations, Loft< DataType >::positions, Loft< DataType >::profileSplines, Loft< DataType >::profileTypes, Surface< DataType >::Restart(), Loft< DataType >::scales, Loft< DataType >::spanSplines, and Loft< DataType >::transformList.
Reimplemented from Surface< DataType >.
References Surface< DataType >::area.
virtual void Loft< DataType >::setCentroid | ( | PType | val | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::centroid.
Reimplemented from Surface< DataType >.
References Surface< DataType >::closed.
Referenced by Loft< DataType >::read().
Reimplemented from Surface< DataType >.
References Surface< DataType >::area.
virtual void Loft< DataType >::setLength | ( | DataType | val | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
virtual void Loft< DataType >::setName | ( | std::string | val | ) | [inline, virtual] |
Reimplemented from PartBase< DataType, 3 >.
References PartBase< DataType, 3 >::name.
Referenced by Loft< DataType >::read().
References Loft< DataType >::NChords.
Referenced by Loft< DataType >::read().
Reimplemented from Surface< DataType >.
References Loft< DataType >::NProfiles.
Referenced by Loft< DataType >::read().
References Loft< DataType >::NSpans.
Referenced by Loft< DataType >::read().
virtual void Loft< DataType >::setNthCon | ( | int | i, | |
int | val | |||
) | [inline, virtual] |
Reimplemented from Surface< DataType >.
virtual void Loft< DataType >::SetNthTransform | ( | int | i, | |
MType | val | |||
) | [inline, virtual] |
References Loft< DataType >::transformList.
Referenced by Loft< DataType >::GenLoft().
virtual void Loft< DataType >::setVolume | ( | DataType | val | ) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References Surface< DataType >::volume.
virtual void Loft< DataType >::updatePart | ( | DataType | dt, | |
DataType | time | |||
) | [inline, virtual] |
Reimplemented from Surface< DataType >.
References PartBase< DataType, 3 >::DHMat, PartBase< DataType, 3 >::DHMat_old, Loft< DataType >::GenLoft(), Loft< DataType >::GetCPoints(), Loft< DataType >::GetCPoints_org(), Surface< DataType >::GetDeformation(), PartBase< DataType, 3 >::GetDHMat(), PartBase< DataType, 3 >::GetDHMat_old(), PartBase< DataType, 3 >::GetMobility(), Surface< DataType >::GetVelocities(), Loft< DataType >::makeUnique(), Surface< DataType >::measure(), Loft< DataType >::Name(), numVelMVP(), prodMVP(), and PartBase< DataType, 3 >::setDHMat_old().
Reimplemented from Surface< DataType >.
References Surface< DataType >::volume.
Referenced by Loft< DataType >::addIntType(), and Loft< DataType >::read().
Referenced by Loft< DataType >::getNChords(), and Loft< DataType >::setNChords().
Referenced by Loft< DataType >::getNSpans(), and Loft< DataType >::setNSpans().
int Loft< DataType >::num_spanSplines [protected] |
Referenced by Loft< DataType >::Checkpointing(), and Loft< DataType >::Restart().
int Loft< DataType >::num_transforms [protected] |
Referenced by Loft< DataType >::Checkpointing(), and Loft< DataType >::Restart().
std::vector<PType> Loft< DataType >::orientations [protected] |
int Loft< DataType >::profileName_size [protected] |
std::vector<std::string> Loft< DataType >::profileNames [protected] |
std::vector<SplineCurveType *> Loft< DataType >::profileSplines [protected] |
std::vector<int> Loft< DataType >::profileTypes [protected] |
std::vector<PType> Loft< DataType >::reflections [protected] |
Referenced by Loft< DataType >::AddReflection(), and Loft< DataType >::read().
std::vector<SplineCurveType *> Loft< DataType >::spanSplines [protected] |
int Loft< DataType >::spline_intType [protected] |
Referenced by Loft< DataType >::GenLoft(), and Loft< DataType >::read().
std::vector<MType> Loft< DataType >::transformList [protected] |