MeshCore::MeshPoint Class Reference

The MeshPoint class represents a point in the mesh data structure. More...

#include <Elements.h>

Inheritance diagram for MeshCore::MeshPoint:
Base::Vector3< _Precision >

List of all members.

Public Types

enum  TFlagType {
  INVALID = 1, VISIT = 2, SEGMENT = 4, MARKED = 8,
  SELECTED = 16, REV = 32, TMP0 = 64, TMP1 = 128
}

Public Member Functions

bool operator< (const MeshPoint &rclPt) const
MeshPointoperator= (const MeshPoint &rclPt)
 Assignment.
bool operator== (const Base::Vector3f &rclV) const
bool operator== (const MeshPoint &rclPt) const
 Comparing for equality.
Flag state

Note:
All flag methods are const as they do NOT change the actual behaviour of the object


bool IsFlag (TFlagType tF) const
bool IsValid (void) const
void ResetFlag (TFlagType tF) const
void ResetInvalid (void) const
void SetFlag (TFlagType tF) const
void SetInvalid (void) const
void SetProperty (unsigned long uP) const
Construction



 MeshPoint (const MeshPoint &rclPt)
 MeshPoint (const Base::Vector3f &rclPt)
 MeshPoint (void)
 ~MeshPoint (void)

Public Attributes

unsigned char _ucFlag
 Flag member.
unsigned long _ulProp
 Free usable property.

Detailed Description

The MeshPoint class represents a point in the mesh data structure.

The class inherits from Vector3f and provides some additional information such as flag state and property value. The flags can be modified by the Set() and Reset() and queried by IsFlag(). A point can temporary be in an invalid state (e.g during deletion of several points), but must not be set in general, i.e. always usable within a mesh-internal algorithm.

Note: The status flag SEGMENT mark a point to be part of certain subset, a segment. This flag must not be set by any algorithm unless it adds or removes points to a segment.

Note: The status flag SELECTED mark a point to be selected which is e.g. used in the GUI. This flag must not be set by any algorithm unless it adds or removes points to the selection.

Definition at line 86 of file Elements.h.


Member Enumeration Documentation

Enumerator:
INVALID 
VISIT 
SEGMENT 
MARKED 
SELECTED 
REV 
TMP0 
TMP1 

Definition at line 89 of file Elements.h.


Constructor & Destructor Documentation

MeshCore::MeshPoint::MeshPoint ( void   )  [inline]

Definition at line 93 of file Elements.h.

MeshCore::MeshPoint::MeshPoint ( const Base::Vector3f rclPt  )  [inline]

Definition at line 583 of file Elements.h.

MeshCore::MeshPoint::MeshPoint ( const MeshPoint rclPt  )  [inline]

Definition at line 594 of file Elements.h.

MeshCore::MeshPoint::~MeshPoint ( void   )  [inline]

Definition at line 96 of file Elements.h.


Member Function Documentation

bool MeshCore::MeshPoint::IsFlag ( TFlagType  tF  )  const [inline]

Definition at line 108 of file Elements.h.

bool MeshCore::MeshPoint::IsValid ( void   )  const [inline]
bool MeshCore::MeshPoint::operator< ( const MeshPoint rclPt  )  const [inline]
MeshPoint & MeshCore::MeshPoint::operator= ( const MeshPoint rcVct  )  [inline]

Assignment.

Reimplemented from Base::Vector3< _Precision >.

Definition at line 605 of file Elements.h.

References _ucFlag, and _ulProp.

bool MeshCore::MeshPoint::operator== ( const Base::Vector3f rclV  )  const [inline]
bool MeshCore::MeshPoint::operator== ( const MeshPoint rcVct  )  const [inline]

Comparing for equality.

Reimplemented from Base::Vector3< _Precision >.

Definition at line 617 of file Elements.h.

References MeshCore::MeshDefinitions::_fMinPointDistanceP2, and Base::DistanceP2().

void MeshCore::MeshPoint::ResetFlag ( TFlagType  tF  )  const [inline]

Definition at line 106 of file Elements.h.

void MeshCore::MeshPoint::ResetInvalid ( void   )  const [inline]

Definition at line 110 of file Elements.h.

void MeshCore::MeshPoint::SetFlag ( TFlagType  tF  )  const [inline]

Definition at line 104 of file Elements.h.

void MeshCore::MeshPoint::SetInvalid ( void   )  const [inline]

Definition at line 112 of file Elements.h.

void MeshCore::MeshPoint::SetProperty ( unsigned long  uP  )  const [inline]

Definition at line 116 of file Elements.h.


Member Data Documentation

Flag member.

Definition at line 129 of file Elements.h.

Referenced by operator=().

Free usable property.

Definition at line 130 of file Elements.h.

Referenced by MeshCore::MeshBuilder::AddFacet(), MeshCore::MeshKernel::DeletePoints(), and operator=().


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

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