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>

Public Member Functions

Construction
 MeshPointIterator (const MeshKernel &rclM)
 
 MeshPointIterator (const MeshKernel &rclM, PointIndex ulPos)
 
 MeshPointIterator (const MeshPointIterator &rclI)
 
Transformation
void Transform (const Base::Matrix4D &rclTrf)
 Transforms the returned points with the current transformation. More...
 
Access methods
const MeshPointoperator* () const
 Access to the element the iterator points to. More...
 
const MeshPointoperator-> () const
 Access to the element the iterator points to. More...
 
const MeshPointIteratoroperator++ ()
 Increments the iterator. More...
 
const MeshPointIteratoroperator-- ()
 Decrements the iterator. More...
 
MeshPointIteratoroperator= (const MeshPointIterator &rpI)
 Assignment. More...
 
bool operator< (const MeshPointIterator &rclI) const
 Compares if this iterator points to a lower element than the other one. More...
 
bool operator> (const MeshPointIterator &rclI) const
 Compares if this iterator points to a higher element than the other one. More...
 
bool operator== (const MeshPointIterator &rclI) const
 Checks if the iterators points to the same element. More...
 
void Begin ()
 Sets the iterator to the beginning of the array. More...
 
void End ()
 Sets the iterator to the end of the array. More...
 
PointIndex Position () const
 Returns the current position of the iterator in the array. More...
 
bool EndReached () const
 Checks if the end is already reached. More...
 
void Init ()
 Sets the iterator to the beginning of the array. More...
 
bool More () const
 Checks if the end is not yet reached. More...
 
void Next ()
 Increments the iterator. More...
 
bool Set (PointIndex ulIndex)
 Sets the iterator to a given position. More...
 
bool IsValid () const
 Checks if the iterator points to a valid element inside the array. More...
 

Flag state

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

Detailed Description

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

Note
This class is not thread-safe.

Constructor & Destructor Documentation

◆ MeshPointIterator() [1/3]

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshKernel rclM)

◆ MeshPointIterator() [2/3]

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshKernel rclM,
PointIndex  ulPos 
)

◆ MeshPointIterator() [3/3]

MeshCore::MeshPointIterator::MeshPointIterator ( const MeshPointIterator rclI)

Member Function Documentation

◆ Begin()

void MeshCore::MeshPointIterator::Begin ( )

Sets the iterator to the beginning of the array.

Referenced by MeshCore::MeshKernel::DeletePoint(), MeshCore::MeshKernel::PointIterator(), and MeshCore::PlaneFitSmoothing::Smooth().

◆ Dereference()

const MeshPoint & MeshCore::MeshPointIterator::Dereference ( ) const
protected

◆ End()

◆ EndReached()

bool MeshCore::MeshPointIterator::EndReached ( ) const

Checks if the end is already reached.

◆ Init()

◆ IsFlag()

bool MeshCore::MeshPointIterator::IsFlag ( MeshPoint::TFlagType  tF) const

◆ IsValid()

bool MeshCore::MeshPointIterator::IsValid ( ) const

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

◆ More()

◆ Next()

◆ operator*()

const MeshPoint & MeshCore::MeshPointIterator::operator* ( ) const

Access to the element the iterator points to.

◆ operator++()

const MeshPointIterator & MeshCore::MeshPointIterator::operator++ ( )

Increments the iterator.

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

◆ operator--()

const MeshPointIterator & MeshCore::MeshPointIterator::operator-- ( )

Decrements the iterator.

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

◆ operator->()

const MeshPoint * MeshCore::MeshPointIterator::operator-> ( ) const

Access to the element the iterator points to.

◆ operator<()

bool MeshCore::MeshPointIterator::operator< ( const MeshPointIterator rclI) const

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

◆ operator=()

MeshPointIterator & MeshCore::MeshPointIterator::operator= ( const MeshPointIterator rpI)

Assignment.

◆ operator==()

bool MeshCore::MeshPointIterator::operator== ( const MeshPointIterator rclI) const

Checks if the iterators points to the same element.

◆ operator>()

bool MeshCore::MeshPointIterator::operator> ( const MeshPointIterator rclI) const

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

◆ Position()

PointIndex MeshCore::MeshPointIterator::Position ( ) const

Returns the current position of the iterator in the array.

Referenced by MeshCore::MeshKernel::HasFacets(), MeshCore::PlaneFitSmoothing::Smooth(), and MeshCore::PlaneFitSmoothing::SmoothPoints().

◆ ResetFlag()

void MeshCore::MeshPointIterator::ResetFlag ( MeshPoint::TFlagType  tF) const

◆ Set()

◆ SetFlag()

void MeshCore::MeshPointIterator::SetFlag ( MeshPoint::TFlagType  tF) const

◆ SetProperty()

void MeshCore::MeshPointIterator::SetProperty ( unsigned long  uP) const

◆ Transform()

void MeshCore::MeshPointIterator::Transform ( const Base::Matrix4D rclTrf)

Transforms the returned points with the current transformation.

Referenced by MeshCore::MeshOutput::SaveNastran(), and MeshCore::MeshOutput::SaveVRML().

Friends And Related Function Documentation

◆ MeshKernel

friend class MeshKernel
friend

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