Segment< DataType, dim > Class Template Reference

#include <Connection.h>

Inheritance diagram for Segment< DataType, dim >:
Connection Curve< DataType, dim > SplineCurve< DataType, dim >

List of all members.

Public Member Functions

 Segment ()
 Segment (int v0, int v1)
 ~Segment ()
virtual void measure ()
virtual DataType Length () const
virtual void setLength (DataType val)
virtual PType Normal () const
virtual void setNormal (PType val)
virtual PType Centroid () const
virtual void setCentroid (PType val)
virtual DataType Area () const
virtual void setArea (DataType val)
virtual void ConArea ()
virtual void setNthCon (int i, int val)
virtual int getNthCon (int i) const

Public Attributes

DataType length
int cPid [2]

Friends

class Connection

Detailed Description

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

2D/3D polyline connectivity class.


Constructor & Destructor Documentation

template<class DataType , int dim>
Segment< DataType, dim >::Segment (  )  [inline]
template<class DataType , int dim>
Segment< DataType, dim >::Segment ( int  v0,
int  v1 
) [inline]
template<class DataType , int dim>
Segment< DataType, dim >::~Segment (  )  [inline]

Member Function Documentation

template<class DataType , int dim>
virtual DataType Segment< DataType, dim >::Area (  )  const [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

template<class DataType , int dim>
virtual PType Segment< DataType, dim >::Centroid (  )  const [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

References Connection::centroid.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::ConArea (  )  [inline, virtual]
template<class DataType , int dim>
virtual int Segment< DataType, dim >::getNthCon ( int  i  )  const [inline, virtual]
template<class DataType , int dim>
virtual DataType Segment< DataType, dim >::Length (  )  const [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

References Segment< DataType, dim >::length.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::measure (  )  [inline, virtual]
template<class DataType , int dim>
virtual PType Segment< DataType, dim >::Normal (  )  const [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::setArea ( DataType  val  )  [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::setCentroid ( PType  val  )  [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

References Connection::centroid.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::setLength ( DataType  val  )  [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

References Segment< DataType, dim >::length.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::setNormal ( PType  val  )  [inline, virtual]

Implements Connection.

Reimplemented in Curve< DataType, dim >.

template<class DataType , int dim>
virtual void Segment< DataType, dim >::setNthCon ( int  i,
int  val 
) [inline, virtual]

Friends And Related Function Documentation

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

Member Data Documentation


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