MeshCore::MeshPointArray Class Reference

Stores all data points of the mesh structure. More...

#include <Elements.h>

Inherits vector< MeshPoint >.

List of all members.

Public Types

typedef std::vector< MeshPoint >
::const_iterator 
_TConstIterator
typedef std::vector< MeshPoint >
::iterator 
_TIterator

Public Member Functions

unsigned long Get (const MeshPoint &rclPoint)
 Searches for the first point index Two points are equal if the distance is less than EPSILON.
unsigned long GetOrAddIndex (const MeshPoint &rclPoint)
 Searches for the first point index Two points are equal if the distance is less than EPSILON.
MeshPointArrayoperator= (const MeshPointArray &rclPAry)
Construction



 MeshPointArray (unsigned long ulSize)
 MeshPointArray (void)
 ~MeshPointArray (void)
Flag state

Note:
All flag methods are const as they do NOT change the actual properties of the object


void ResetFlag (MeshPoint::TFlagType tF) const
 Resets the flag for all points.
void ResetInvalid (void) const
 Sets all points invalid.
void SetFlag (MeshPoint::TFlagType tF) const
 Sets the flag for all points.
void SetProperty (unsigned long ulVal) const
 Sets the property for all points.

Detailed Description

Stores all data points of the mesh structure.

Definition at line 482 of file Elements.h.


Member Typedef Documentation

typedef std::vector<MeshPoint>::const_iterator MeshCore::MeshPointArray::_TConstIterator

Definition at line 487 of file Elements.h.

typedef std::vector<MeshPoint>::iterator MeshCore::MeshPointArray::_TIterator

Definition at line 486 of file Elements.h.


Constructor & Destructor Documentation

MeshCore::MeshPointArray::MeshPointArray ( void   )  [inline]

Definition at line 492 of file Elements.h.

MeshCore::MeshPointArray::MeshPointArray ( unsigned long  ulSize  )  [inline]

Definition at line 494 of file Elements.h.

MeshCore::MeshPointArray::~MeshPointArray ( void   )  [inline]

Definition at line 496 of file Elements.h.


Member Function Documentation

unsigned long MeshPointArray::Get ( const MeshPoint rclPoint  ) 

Searches for the first point index Two points are equal if the distance is less than EPSILON.

If no such points is found ULONG_MAX is returned.

Definition at line 41 of file Elements.cpp.

References Sketcher::end, and draftlibs::fcvec::find().

Referenced by GetOrAddIndex().

unsigned long MeshPointArray::GetOrAddIndex ( const MeshPoint rclPoint  ) 

Searches for the first point index Two points are equal if the distance is less than EPSILON.

If no such points is found the point is added to the array at end and its index is returned.

Definition at line 52 of file Elements.cpp.

References Get().

Referenced by MeshCore::MeshKernel::AddFacet().

MeshPointArray & MeshPointArray::operator= ( const MeshPointArray rclPAry  ) 

Definition at line 85 of file Elements.cpp.

void MeshPointArray::ResetFlag ( MeshPoint::TFlagType  tF  )  const
void MeshPointArray::ResetInvalid ( void   )  const
void MeshPointArray::SetFlag ( MeshPoint::TFlagType  tF  )  const
void MeshPointArray::SetProperty ( unsigned long  ulVal  )  const

Sets the property for all points.

Definition at line 75 of file Elements.cpp.

References Sketcher::end.

Referenced by MeshCore::MeshKernel::DeleteFacets(), MeshCore::MeshKernel::DeletePoints(), and SpringbackCorrection::GetBoundary().


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

Generated on Wed Nov 23 19:02:25 2011 for FreeCAD by  doxygen 1.6.1