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, unsigned long 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* (void) const |
| Access to the element the iterator points to. More... | |
| const MeshPoint * | operator-> (void) const |
| Access to the element the iterator points to. More... | |
| const MeshPointIterator & | operator++ (void) |
| Increments the iterator. More... | |
| const MeshPointIterator & | operator-- (void) |
| 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 (void) |
| Sets the iterator to the beginning of the array. More... | |
| void | End (void) |
| Sets the iterator to the end of the array. More... | |
| unsigned long | Position (void) const |
| Returns the current position of the iterator in the array. More... | |
| bool | EndReached (void) const |
| Checks if the end is already reached. More... | |
| void | Init (void) |
| Sets the iterator to the beginning of the array. More... | |
| bool | More (void) const |
| Checks if the end is not yet reached. More... | |
| void | Next (void) |
| Increments the iterator. More... | |
| bool | Set (unsigned long ulIndex) |
| Sets the iterator to a given position. More... | |
| bool | IsValid (void) 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 (void) 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, |
| unsigned long | ulPos | ||
| ) |
◆ MeshPointIterator() [3/3]
| MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshPointIterator & | rclI | ) |
Member Function Documentation
◆ Begin()
| void MeshCore::MeshPointIterator::Begin | ( | void | ) |
Sets the iterator to the beginning of the array.
Referenced by MeshCore::MeshKernel::DeletePoint(), MeshCore::MeshKernel::PointIterator(), and MeshCore::PlaneFitSmoothing::Smooth().
◆ Dereference()
|
protected |
◆ End()
| void MeshCore::MeshPointIterator::End | ( | void | ) |
Sets the iterator to the end of the array.
Referenced by MeshCore::MeshInfo::DetailedPointInfo(), MeshCore::MeshInfo::InternalPointInfo(), and MeshCore::MeshOutput::SaveInventor().
◆ EndReached()
| bool MeshCore::MeshPointIterator::EndReached | ( | void | ) | const |
Checks if the end is already reached.
◆ Init()
| void MeshCore::MeshPointIterator::Init | ( | void | ) |
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().
◆ IsFlag()
| bool MeshCore::MeshPointIterator::IsFlag | ( | MeshPoint::TFlagType | tF | ) | const |
◆ IsValid()
| bool MeshCore::MeshPointIterator::IsValid | ( | void | ) | const |
Checks if the iterator points to a valid element inside the array.
◆ More()
| 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().
◆ Next()
| 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().
◆ operator*()
| const MeshPoint& MeshCore::MeshPointIterator::operator* | ( | void | ) | const |
Access to the element the iterator points to.
◆ operator++()
| const MeshPointIterator& MeshCore::MeshPointIterator::operator++ | ( | void | ) |
Increments the iterator.
It points then to the next element if the end is not reached.
◆ operator--()
| const MeshPointIterator& MeshCore::MeshPointIterator::operator-- | ( | void | ) |
Decrements the iterator.
It points then to the previous element if the beginning is not reached.
◆ operator->()
| const MeshPoint* MeshCore::MeshPointIterator::operator-> | ( | void | ) | 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()
| unsigned long MeshCore::MeshPointIterator::Position | ( | void | ) | 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()
| bool MeshCore::MeshPointIterator::Set | ( | unsigned long | ulIndex | ) |
Sets the iterator to a given position.
Referenced by MeshCore::MeshKernel::DeletePoint(), MeshPart::MeshProjection::projectEdgeToEdge(), MeshGui::ViewProviderMeshNonManifolds::showDefects(), MeshGui::ViewProviderMeshNonManifoldPoints::showDefects(), MeshGui::ViewProviderMeshDuplicatedPoints::showDefects(), MeshCore::PlaneFitSmoothing::SmoothPoints(), and MeshCore::MeshPointGrid::Verify().
◆ 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 |
The documentation for this class was generated from the following file:
- src/Mod/Mesh/App/Core/Iterator.h
1.8.17