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 MeshPoint & | operator* () const |
| Access to the element the iterator points to. More... | |
| const MeshPoint * | operator-> () const |
| Access to the element the iterator points to. More... | |
| const MeshPointIterator & | operator++ () |
| Increments the iterator. More... | |
| const MeshPointIterator & | operator-- () |
| Decrements the iterator. More... | |
| MeshPointIterator & | operator= (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 MeshPoint & | Dereference () const |
The MeshPointIterator allows to iterate over the vertices of the mesh and provides access to their geometric information.
| MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshKernel & | rclM | ) |
| MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshKernel & | rclM, |
| PointIndex | ulPos | ||
| ) |
| MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshPointIterator & | rclI | ) |
| 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().
|
protected |
| void MeshCore::MeshPointIterator::End | ( | ) |
Sets the iterator to the end of the array.
Referenced by PathScripts.PathDressupDogbone.Chord::asLine(), PathScripts.PathDressupDogbone.Chord::asVector(), PathScripts.PathDressupDogbone.Chord::commandParams(), PathScripts.PathDressupDogbone.Chord::connectsTo(), MeshCore::MeshInfo::DetailedPointInfo(), MeshCore::MeshInfo::InternalPointInfo(), PathScripts.PathDressupDogbone.Chord::isANoopMove(), PathScripts.PathDressupDogbone.Chord::isAPlungeMove(), PathScripts.PathDressupDogbone.Chord::moveBy(), PathScripts.PathDressupDogbone.Chord::moveTo(), PathScripts.PathDressupDogbone.Chord::moveToParameters(), and MeshCore::MeshOutput::SaveInventor().
| bool MeshCore::MeshPointIterator::EndReached | ( | ) | const |
Checks if the end is already reached.
| void MeshCore::MeshPointIterator::Init | ( | ) |
Sets the iterator to the beginning of the array.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), MeshCore::MeshCurvature::ComputePerVertex(), MeshCore::MeshAlgorithm::GetGravityPoint(), MeshCore::MeshPointGrid::RebuildGrid(), MeshCore::MeshOutput::SaveNastran(), MeshCore::MeshOutput::SaveVRML(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
| bool MeshCore::MeshPointIterator::IsFlag | ( | MeshPoint::TFlagType | tF | ) | const |
| bool MeshCore::MeshPointIterator::IsValid | ( | ) | const |
Checks if the iterator points to a valid element inside the array.
| bool MeshCore::MeshPointIterator::More | ( | void | ) | const |
Checks if the end is not yet reached.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), MeshCore::MeshCurvature::ComputePerVertex(), MeshCore::MeshAlgorithm::GetGravityPoint(), MeshCore::MeshPointGrid::RebuildGrid(), MeshCore::MeshOutput::SaveNastran(), MeshCore::MeshOutput::SaveVRML(), MeshCore::PlaneFitSmoothing::Smooth(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
| void MeshCore::MeshPointIterator::Next | ( | void | ) |
Increments the iterator.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), MeshCore::MeshCurvature::ComputePerVertex(), MeshCore::MeshAlgorithm::GetGravityPoint(), MeshCore::MeshPointGrid::RebuildGrid(), MeshCore::MeshOutput::SaveNastran(), MeshCore::MeshOutput::SaveVRML(), MeshCore::PlaneFitSmoothing::Smooth(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
| const MeshPoint & MeshCore::MeshPointIterator::operator* | ( | ) | const |
Access to the element the iterator points to.
| const MeshPointIterator & MeshCore::MeshPointIterator::operator++ | ( | ) |
Increments the iterator.
It points then to the next element if the end is not reached.
| const MeshPointIterator & MeshCore::MeshPointIterator::operator-- | ( | ) |
Decrements the iterator.
It points then to the previous element if the beginning is not reached.
| const MeshPoint * MeshCore::MeshPointIterator::operator-> | ( | ) | const |
Access to the element the iterator points to.
| bool MeshCore::MeshPointIterator::operator< | ( | const MeshPointIterator & | rclI | ) | const |
Compares if this iterator points to a lower element than the other one.
| MeshPointIterator & MeshCore::MeshPointIterator::operator= | ( | const MeshPointIterator & | rpI | ) |
Assignment.
| bool MeshCore::MeshPointIterator::operator== | ( | const MeshPointIterator & | rclI | ) | const |
Checks if the iterators points to the same element.
| bool MeshCore::MeshPointIterator::operator> | ( | const MeshPointIterator & | rclI | ) | const |
Compares if this iterator points to a higher element than the other one.
| 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().
| void MeshCore::MeshPointIterator::ResetFlag | ( | MeshPoint::TFlagType | tF | ) | const |
| bool MeshCore::MeshPointIterator::Set | ( | PointIndex | ulIndex | ) |
Sets the iterator to a given position.
Referenced by MeshCore::MeshKernel::DeletePoint(), MeshCore::MeshVertexIterator::operator()(), MeshPart::MeshProjection::projectEdgeToEdge(), MeshGui::ViewProviderMeshNonManifolds::showDefects(), MeshGui::ViewProviderMeshNonManifoldPoints::showDefects(), MeshGui::ViewProviderMeshDuplicatedPoints::showDefects(), MeshCore::PlaneFitSmoothing::SmoothPoints(), and MeshCore::MeshPointGrid::Verify().
| void MeshCore::MeshPointIterator::SetFlag | ( | MeshPoint::TFlagType | tF | ) | const |
| void MeshCore::MeshPointIterator::SetProperty | ( | unsigned long | uP | ) | const |
| 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().
|
friend |