MeshCore::MeshPointIterator Class Reference

The MeshPointIterator allows to iterate over the vertices of the mesh and provides access to their geometric information. More...

#include <Iterator.h>

List of all members.

Public Member Functions

Access methods



void Begin (void)
 Sets the iterator to the beginning of the array.
void End (void)
 Sets the iterator to the end of the array.
bool EndReached (void) const
 Checks if the end is already reached.
void Init (void)
 Sets the iterator to the beginning of the array.
bool IsValid (void) const
 Checks if the iterator points to a valid element inside the array.
bool More (void) const
 Checks if the end is not yet reached.
void Next (void)
 Increments the iterator.
const MeshPointoperator* (void) const
 Access to the element the iterator points to.
const MeshPointIteratoroperator++ (void)
 Increments the iterator.
const MeshPointIteratoroperator-- (void)
 Decrements the iterator.
const MeshPointoperator-> (void) const
 Access to the element the iterator points to.
bool operator< (const MeshPointIterator &rclI) const
 Compares if this iterator points to a lower element than the other one.
MeshPointIteratoroperator= (const MeshPointIterator &rpI)
 Assignment.
bool operator== (const MeshPointIterator &rclI) const
 Checks if the iterators points to the same element.
bool operator> (const MeshPointIterator &rclI) const
 Compares if this iterator points to a higher element than the other one.
unsigned long Position (void) const
 Returns the current position of the iterator in the array.
bool Set (unsigned long ulIndex)
 Sets the iterator to a given position.
Flag state



bool IsFlag (MeshPoint::TFlagType tF) const
void ResetFlag (MeshPoint::TFlagType tF) const
void SetFlag (MeshPoint::TFlagType tF) const
void SetProperty (unsigned long uP) const
Construction



 MeshPointIterator (const MeshPointIterator &rclI)
 MeshPointIterator (const MeshKernel &rclM, unsigned long ulPos)
 MeshPointIterator (const MeshKernel &rclM)
Transformation



void Transform (const Base::Matrix4D &rclTrf)
 Transforms the returned points with the current tranformation.

Protected Member Functions

const MeshPointDereference (void) const

Protected Attributes

bool _bApply
MeshPointArray::_TConstIterator _clIter
MeshPoint _clPoint
Base::Matrix4D _clTrf
const MeshKernel_rclMesh
const MeshPointArray_rclPAry

Friends

class MeshKernel

Detailed Description

The MeshPointIterator allows to iterate over the vertices of the mesh and provides access to their geometric information.

Definition at line 171 of file Iterator.h.


Constructor & Destructor Documentation

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshKernel rclM  )  [inline]

Definition at line 420 of file Iterator.h.

References _clIter, and _rclPAry.

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshKernel rclM,
unsigned long  ulPos 
) [inline]

Definition at line 426 of file Iterator.h.

References _clIter, and _rclPAry.

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshPointIterator rclI  )  [inline]

Definition at line 432 of file Iterator.h.


Member Function Documentation

void MeshCore::MeshPointIterator::Begin ( void   )  [inline]
const MeshPoint & MeshCore::MeshPointIterator::Dereference ( void   )  const [inline, protected]

Definition at line 445 of file Iterator.h.

References _bApply, _clIter, _clPoint, and _clTrf.

void MeshCore::MeshPointIterator::End ( void   )  [inline]

Sets the iterator to the end of the array.

Definition at line 218 of file Iterator.h.

Referenced by MeshCore::MeshInfo::DetailedPointInfo(), MeshCore::MeshInfo::InternalPointInfo(), and MeshCore::MeshOutput::SaveInventor().

bool MeshCore::MeshPointIterator::EndReached ( void   )  const [inline]

Checks if the end is already reached.

Definition at line 224 of file Iterator.h.

Referenced by Approximate::ParameterBoundary(), Approximate::ParameterInnerPoints(), and Approximate::Reparam().

void MeshCore::MeshPointIterator::Init ( void   )  [inline]
bool MeshCore::MeshPointIterator::IsFlag ( MeshPoint::TFlagType  tF  )  const [inline]

Definition at line 248 of file Iterator.h.

bool MeshCore::MeshPointIterator::IsValid ( void   )  const [inline]

Checks if the iterator points to a valid element inside the array.

Definition at line 238 of file Iterator.h.

bool MeshCore::MeshPointIterator::More ( void   )  const [inline]
void MeshCore::MeshPointIterator::Next ( void   )  [inline]
const MeshPoint& MeshCore::MeshPointIterator::operator* ( void   )  const [inline]

Access to the element the iterator points to.

Definition at line 190 of file Iterator.h.

const MeshPointIterator& MeshCore::MeshPointIterator::operator++ ( void   )  [inline]

Increments the iterator.

It points then to the next element if the end is not reached.

Definition at line 197 of file Iterator.h.

const MeshPointIterator& MeshCore::MeshPointIterator::operator-- ( void   )  [inline]

Decrements the iterator.

It points then to the previous element if the beginning is not reached.

Definition at line 201 of file Iterator.h.

const MeshPoint* MeshCore::MeshPointIterator::operator-> ( void   )  const [inline]

Access to the element the iterator points to.

Definition at line 193 of file Iterator.h.

bool MeshCore::MeshPointIterator::operator< ( const MeshPointIterator rclI  )  const [inline]

Compares if this iterator points to a lower element than the other one.

Definition at line 206 of file Iterator.h.

References _clIter.

MeshPointIterator & MeshCore::MeshPointIterator::operator= ( const MeshPointIterator rpI  )  [inline]

Assignment.

Definition at line 467 of file Iterator.h.

References _bApply, _clIter, _clTrf, and _rclMesh.

bool MeshCore::MeshPointIterator::operator== ( const MeshPointIterator rclI  )  const [inline]

Checks if the iterators points to the same element.

Definition at line 212 of file Iterator.h.

References _clIter.

bool MeshCore::MeshPointIterator::operator> ( const MeshPointIterator rclI  )  const [inline]

Compares if this iterator points to a higher element than the other one.

Definition at line 209 of file Iterator.h.

References _clIter.

unsigned long MeshCore::MeshPointIterator::Position ( void   )  const [inline]
void MeshCore::MeshPointIterator::ResetFlag ( MeshPoint::TFlagType  tF  )  const [inline]

Definition at line 246 of file Iterator.h.

bool MeshCore::MeshPointIterator::Set ( unsigned long  ulIndex  )  [inline]
void MeshCore::MeshPointIterator::SetFlag ( MeshPoint::TFlagType  tF  )  const [inline]

Definition at line 244 of file Iterator.h.

void MeshCore::MeshPointIterator::SetProperty ( unsigned long  uP  )  const [inline]

Definition at line 250 of file Iterator.h.

void MeshCore::MeshPointIterator::Transform ( const Base::Matrix4D rclTrf  )  [inline]

Transforms the returned points with the current tranformation.

Definition at line 437 of file Iterator.h.

References _bApply, and _clTrf.

Referenced by Mesh::MeshObject::const_point_iterator::const_point_iterator(), Inspection::InspectActualMesh::InspectActualMesh(), MeshVRML::Save(), and MeshCore::MeshOutput::SaveNastran().


Friends And Related Function Documentation

friend class MeshKernel [friend]

Definition at line 266 of file Iterator.h.


Member Data Documentation

Definition at line 262 of file Iterator.h.

Referenced by Dereference(), operator=(), and Transform().

Definition at line 260 of file Iterator.h.

Referenced by Dereference().

Definition at line 263 of file Iterator.h.

Referenced by Dereference(), operator=(), and Transform().

Definition at line 258 of file Iterator.h.

Referenced by operator=().

Definition at line 259 of file Iterator.h.

Referenced by MeshPointIterator(), and Set().


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

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