Inspection::MeshInspectGrid Class Reference

Inheritance diagram for Inspection::MeshInspectGrid:
MeshCore::MeshGrid

List of all members.

Public Member Functions

 MeshInspectGrid (const MeshCore::MeshKernel &mesh, float fGridLen, const Base::Matrix4D &m)
void Validate (void)
void Validate (const MeshCore::MeshKernel &)
 Validates the grid structure and rebuilds it if needed.
bool Verify () const
 Verifies the grid structure and returns false if inconsistencies are found.

Protected Member Functions

void AddFacet (const MeshCore::MeshGeomFacet &rclFacet, unsigned long ulFacetIndex)
void CalculateGridLength (int iCtGridPerAxis)
 Calculates the grid length dependent on the number of grids per axis.
void CalculateGridLength (unsigned long ulCtGrid, unsigned long ulMaxGrids)
 Calculates the grid length dependent on maximum number of grids.
unsigned long HasElements (void) const
 Returns the number of stored elements.
void InitGrid (void)
 Initializes the size of the internal structure.
void Pos (const Base::Vector3f &rclPoint, unsigned long &rulX, unsigned long &rulY, unsigned long &rulZ) const
void RebuildGrid (void)
 Rebuilds the grid structure.

Detailed Description

Definition at line 126 of file InspectionFeature.cpp.


Constructor & Destructor Documentation

Inspection::MeshInspectGrid::MeshInspectGrid ( const MeshCore::MeshKernel mesh,
float  fGridLen,
const Base::Matrix4D m 
) [inline]

Member Function Documentation

void Inspection::MeshInspectGrid::AddFacet ( const MeshCore::MeshGeomFacet rclFacet,
unsigned long  ulFacetIndex 
) [inline, protected]
void Inspection::MeshInspectGrid::CalculateGridLength ( int  iCtGridPerAxis  )  [inline, protected, virtual]

Calculates the grid length dependent on the number of grids per axis.

Reimplemented from MeshCore::MeshGrid.

Definition at line 160 of file InspectionFeature.cpp.

void Inspection::MeshInspectGrid::CalculateGridLength ( unsigned long  ulCtGrid,
unsigned long  ulMaxGrids 
) [inline, protected, virtual]

Calculates the grid length dependent on maximum number of grids.

Reimplemented from MeshCore::MeshGrid.

Definition at line 155 of file InspectionFeature.cpp.

unsigned long Inspection::MeshInspectGrid::HasElements ( void   )  const [inline, protected, virtual]

Returns the number of stored elements.

Must be implemented in sub-classes.

Implements MeshCore::MeshGrid.

Definition at line 165 of file InspectionFeature.cpp.

void Inspection::MeshInspectGrid::InitGrid ( void   )  [inline, protected, virtual]
void Inspection::MeshInspectGrid::Pos ( const Base::Vector3f rclPoint,
unsigned long &  rulX,
unsigned long &  rulY,
unsigned long &  rulZ 
) const [inline, protected]
void Inspection::MeshInspectGrid::RebuildGrid ( void   )  [inline, protected, virtual]

Rebuilds the grid structure.

Must be implemented in sub-classes.

Implements MeshCore::MeshGrid.

Definition at line 235 of file InspectionFeature.cpp.

References MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), and MeshCore::MeshFacetIterator::Transform().

void Inspection::MeshInspectGrid::Validate ( void   )  [inline]

Definition at line 143 of file InspectionFeature.cpp.

void Inspection::MeshInspectGrid::Validate ( const MeshCore::MeshKernel rclM  )  [inline, virtual]

Validates the grid structure and rebuilds it if needed.

Must be implemented in sub-classes.

Implements MeshCore::MeshGrid.

Definition at line 138 of file InspectionFeature.cpp.

bool Inspection::MeshInspectGrid::Verify (  )  const [inline, virtual]

Verifies the grid structure and returns false if inconsistencies are found.

Implements MeshCore::MeshGrid.

Definition at line 148 of file InspectionFeature.cpp.


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

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