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 | |
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 MeshPoint & | operator* (void) const |
Access to the element the iterator points to. | |
const MeshPointIterator & | operator++ (void) |
Increments the iterator. | |
const MeshPointIterator & | operator-- (void) |
Decrements the iterator. | |
const MeshPoint * | operator-> (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. | |
MeshPointIterator & | operator= (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 MeshPoint & | Dereference (void) const |
Protected Attributes | |
bool | _bApply |
MeshPointArray::_TConstIterator | _clIter |
MeshPoint | _clPoint |
Base::Matrix4D | _clTrf |
const MeshKernel & | _rclMesh |
const MeshPointArray & | _rclPAry |
Friends | |
class | MeshKernel |
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.
MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshKernel & | rclM | ) | [inline] |
Definition at line 420 of file Iterator.h.
MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshKernel & | rclM, | |
unsigned long | ulPos | |||
) | [inline] |
Definition at line 426 of file Iterator.h.
MeshCore::MeshPointIterator::MeshPointIterator | ( | const MeshPointIterator & | rclI | ) | [inline] |
Definition at line 432 of file Iterator.h.
void MeshCore::MeshPointIterator::Begin | ( | void | ) | [inline] |
Sets the iterator to the beginning of the array.
Definition at line 215 of file Iterator.h.
Referenced by UniGridApprox::CompMeshError(), best_fit::CompTotalError(), Deviation::Compute(), SpringbackCorrection::GetCurvature(), import_NASTRAN(), UniGridApprox::MeshOffset(), Approximate::ParameterBoundary(), Approximate::ParameterInnerPoints(), MeshCore::MeshKernel::PointIterator(), Approximate::Reparam(), MeshCore::MeshSmoothing::Smooth(), and SpringbackCorrection::SmoothMesh().
const MeshPoint & MeshCore::MeshPointIterator::Dereference | ( | void | ) | const [inline, protected] |
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] |
Sets the iterator to the beginning of the array.
Definition at line 227 of file Iterator.h.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), Mesh::Interface< Kernel >::copy(), Mesh::Curvature::execute(), SpringbackCorrection::MeshCurvature(), MeshCore::MeshPointGrid::RebuildGrid(), MeshVRML::Save(), MeshCore::MeshOutput::SaveNastran(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
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] |
Checks if the end is not yet reached.
Definition at line 230 of file Iterator.h.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), UniGridApprox::CompMeshError(), best_fit::CompTotalError(), Deviation::Compute(), Mesh::Interface< Kernel >::copy(), Mesh::Curvature::execute(), SpringbackCorrection::GetCurvature(), import_NASTRAN(), SpringbackCorrection::MeshCurvature(), UniGridApprox::MeshOffset(), MeshCore::MeshPointGrid::RebuildGrid(), MeshVRML::Save(), MeshCore::MeshOutput::SaveNastran(), MeshCore::MeshSmoothing::Smooth(), SpringbackCorrection::SmoothMesh(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
void MeshCore::MeshPointIterator::Next | ( | void | ) | [inline] |
Increments the iterator.
Definition at line 233 of file Iterator.h.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), UniGridApprox::CompMeshError(), best_fit::CompTotalError(), Deviation::Compute(), Mesh::Interface< Kernel >::copy(), Mesh::Curvature::execute(), SpringbackCorrection::GetCurvature(), import_NASTRAN(), SpringbackCorrection::MeshCurvature(), UniGridApprox::MeshOffset(), MeshCore::MeshPointGrid::RebuildGrid(), MeshVRML::Save(), MeshCore::MeshOutput::SaveNastran(), MeshCore::MeshSmoothing::Smooth(), SpringbackCorrection::SmoothMesh(), and MeshCore::MeshAlgorithm::SubSampleAllPoints().
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] |
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] |
Returns the current position of the iterator in the array.
Definition at line 221 of file Iterator.h.
Referenced by UniGridApprox::CompMeshError(), SpringbackCorrection::GetCurvature(), MeshCore::MeshKernel::HasFacets(), Approximate::ParameterBoundary(), Approximate::ParameterInnerPoints(), Approximate::Reparam(), MeshCore::MeshSmoothing::Smooth(), and SpringbackCorrection::SmoothMesh().
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] |
Sets the iterator to a given position.
Definition at line 453 of file Iterator.h.
References _clIter, and _rclPAry.
Referenced by Mesh::MeshObject::const_point_iterator::const_point_iterator(), MeshCore::MeshKernel::DeletePoint(), Inspection::InspectActualMesh::getPoint(), MeshCore::MeshVertexIterator::operator()(), MeshGui::ViewProviderMeshDuplicatedPoints::showDefects(), MeshGui::ViewProviderMeshNonManifolds::showDefects(), SpringbackCorrection::SmoothMesh(), and MeshCore::MeshPointGrid::Verify().
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().
friend class MeshKernel [friend] |
Definition at line 266 of file Iterator.h.
bool MeshCore::MeshPointIterator::_bApply [protected] |
Definition at line 262 of file Iterator.h.
Referenced by Dereference(), operator=(), and Transform().
Definition at line 261 of file Iterator.h.
Referenced by MeshCore::MeshKernel::DeletePoint(), Dereference(), MeshPointIterator(), operator<(), operator=(), operator==(), operator>(), and Set().
MeshPoint MeshCore::MeshPointIterator::_clPoint [protected] |
Definition at line 260 of file Iterator.h.
Referenced by Dereference().
Base::Matrix4D MeshCore::MeshPointIterator::_clTrf [protected] |
Definition at line 263 of file Iterator.h.
Referenced by Dereference(), operator=(), and Transform().
const MeshKernel& MeshCore::MeshPointIterator::_rclMesh [protected] |
Definition at line 258 of file Iterator.h.
Referenced by operator=().
const MeshPointArray& MeshCore::MeshPointIterator::_rclPAry [protected] |
Definition at line 259 of file Iterator.h.
Referenced by MeshPointIterator(), and Set().