OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::Line Class Reference

#include <geometry.h>

+ Inheritance diagram for oofem::Line:
+ Collaboration diagram for oofem::Line:

Public Member Functions

 Line ()
 
virtual ~Line ()
 
 Line (const FloatArray &iPointA, const FloatArray &iPointB)
 
virtual BasicGeometryClone ()
 
virtual double computeDistanceTo (const FloatArray *point)
 Computes normal signed distance between this object and a point. More...
 
virtual void computeNormalSignDist (double &oDist, const FloatArray &iPoint) const
 Computes tangential distance to a point. More...
 
double computeTangentialDistanceToEnd (FloatArray *point)
 
virtual void computeTangentialSignDist (double &oDist, const FloatArray &iPoint, double &oMinDistArcPos) const
 
void computeProjection (FloatArray &answer)
 
virtual int computeNumberOfIntersectionPoints (Element *element)
 Gives number of intersection points of Geometry entity with an element, Element reference will be later replaced by Geometry. More...
 
virtual void computeIntersectionPoints (Element *element, std::vector< FloatArray > &oIntersectionPoints)
 Gives intersection points between this Geometry and Element. More...
 
double computeInclinationAngle ()
 
void computeTransformationMatrix (FloatMatrix &answer)
 
void transformIntoPolar (FloatArray *point, FloatArray &answer)
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes the Geometry from the InputRecord. More...
 
bool isPointInside (FloatArray *point)
 
virtual bool intersects (Element *element)
 Checks whether an element is interacted, Element reference will be later replaced by Geometry. More...
 
virtual bool isOutside (BasicGeometry *bg)
 
double giveLength () const
 
- Public Member Functions inherited from oofem::BasicGeometry
 BasicGeometry ()
 Constructor. More...
 
 BasicGeometry (const BasicGeometry &iBasicGeometry)
 Copy constructor: should be implemented when a class deals with pointers. More...
 
virtual ~BasicGeometry ()
 Destructor. More...
 
virtual void printVTK (int iTStepIndex, int iIndex)
 
virtual void computeLocalCoordinates (FloatArray &oLocCoord, const FloatArray &iPoint) const
 
virtual void giveSubPolygon (std::vector< FloatArray > &oPoints, const double &iXiStart, const double &iXiEnd) const
 
virtual void giveGlobalCoordinates (FloatArray &oGlobalCoord, const double &iArcPos) const
 
virtual void giveTangent (FloatArray &oTangent, const double &iArcPosition) const
 Computes tangential direction at given local coordinate (arcPos) More...
 
const FloatArraygiveVertex (int n) const
 
void setVertices (const std::vector< FloatArray > &iVertices)
 
void removeDuplicatePoints (const double &iTolSquare)
 
void insertVertexFront (const FloatArray &iP)
 
void insertVertexBack (const FloatArray &iP)
 
void clear ()
 
void translate (const FloatArray &iTrans)
 
virtual void giveInputRecord (DynamicInputRecord &input)
 
virtual const char * giveClassName () const
 Gives class name. More...
 
std::string errorInfo (const char *func) const
 
int giveNrVertices () const
 Returns number of Geometry vertices. More...
 
virtual bool isInside (Element *el)
 
virtual bool isInside (FloatArray &point)
 
virtual void printYourself ()
 
virtual contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Stores the state of receiver to output stream. More...
 
virtual contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Restores the state of receiver from output stream. More...
 
virtual void draw (oofegGraphicContext &gc)
 
virtual bool giveTips (TipInfo &oStartTipInfo, TipInfo &oEndTipInfo) const
 Returns start and end tip of the geometry, if applicable. More...
 
virtual void giveBoundingSphere (FloatArray &oCenter, double &oRadius)
 

Additional Inherited Members

- Static Public Member Functions inherited from oofem::BasicGeometry
static double computeLineDistance (const FloatArray &iP1, const FloatArray &iP2, const FloatArray &iQ1, const FloatArray &iQ2)
 Computes the distance between two lines. More...
 
- Protected Attributes inherited from oofem::BasicGeometry
std::vector< FloatArraymVertices
 List of geometry vertices. More...
 

Detailed Description

Definition at line 189 of file geometry.h.

Constructor & Destructor Documentation

oofem::Line::Line ( )
inline

Definition at line 192 of file geometry.h.

virtual oofem::Line::~Line ( )
inlinevirtual

Definition at line 193 of file geometry.h.

oofem::Line::Line ( const FloatArray iPointA,
const FloatArray iPointB 
)

Definition at line 225 of file geometry.C.

References oofem::BasicGeometry::mVertices.

Member Function Documentation

virtual BasicGeometry* oofem::Line::Clone ( )
inlinevirtual

Implements oofem::BasicGeometry.

Definition at line 196 of file geometry.h.

double oofem::Line::computeDistanceTo ( const FloatArray point)
virtual

Computes normal signed distance between this object and a point.

Reimplemented from oofem::BasicGeometry.

Definition at line 231 of file geometry.C.

References oofem::FloatArray::at(), oofem::FloatArray::distance(), and oofem::BasicGeometry::mVertices.

Referenced by computeIntersectionPoints(), and isOutside().

double oofem::Line::computeInclinationAngle ( )

Definition at line 328 of file geometry.C.

References oofem::FloatArray::at(), and oofem::BasicGeometry::mVertices.

Referenced by computeTransformationMatrix().

void oofem::Line::computeIntersectionPoints ( Element element,
std::vector< FloatArray > &  oIntersectionPoints 
)
virtual
virtual void oofem::Line::computeNormalSignDist ( double &  oDist,
const FloatArray iPoint 
) const
inlinevirtual

Computes tangential distance to a point.

Implements oofem::BasicGeometry.

Definition at line 201 of file geometry.h.

References OOFEM_ERROR.

void oofem::Line::computeProjection ( FloatArray answer)
double oofem::Line::computeTangentialDistanceToEnd ( FloatArray point)
void oofem::Line::computeTangentialSignDist ( double &  oDist,
const FloatArray iPoint,
double &  oMinDistArcPos 
) const
virtual
void oofem::Line::computeTransformationMatrix ( FloatMatrix answer)
double oofem::Line::giveLength ( ) const
inline

Definition at line 218 of file geometry.h.

Referenced by computeNumberOfIntersectionPoints().

IRResultType oofem::Line::initializeFrom ( InputRecord ir)
virtual

Initializes the Geometry from the InputRecord.

Reimplemented from oofem::BasicGeometry.

Definition at line 360 of file geometry.C.

References _IFT_Line_end, _IFT_Line_start, IR_GIVE_FIELD, oofem::IRRT_OK, and oofem::BasicGeometry::mVertices.

bool oofem::Line::intersects ( Element element)
virtual

Checks whether an element is interacted, Element reference will be later replaced by Geometry.

Reimplemented from oofem::BasicGeometry.

Definition at line 219 of file geometry.C.

References oofem::BasicGeometry::computeNumberOfIntersectionPoints().

bool oofem::Line::isOutside ( BasicGeometry bg)
virtual
bool oofem::Line::isPointInside ( FloatArray point)

The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:37 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011