Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
SMESH_TNodeXYZ Struct Reference

SMDS_MeshNode -> gp_XYZ convertor. More...

#include <SMESH_TypeDefs.hxx>

List of all members.

Public Member Functions

 SMESH_TNodeXYZ (const SMDS_MeshElement *e)
double Distance (const SMDS_MeshNode *n) const
double SquareDistance (const SMDS_MeshNode *n) const
bool operator== (const SMESH_TNodeXYZ &other) const

Public Attributes

const SMDS_MeshNode * _node

Detailed Description

SMDS_MeshNode -> gp_XYZ convertor.

Definition at line 99 of file SMESH_TypeDefs.hxx.


Constructor & Destructor Documentation

SMESH_TNodeXYZ::SMESH_TNodeXYZ ( const SMDS_MeshElement *  e) [inline]

Definition at line 102 of file SMESH_TypeDefs.hxx.

                                            :gp_XYZ(0,0,0),_node(0) {
    if (e) {
      assert( e->GetType() == SMDSAbs_Node );
      _node = static_cast<const SMDS_MeshNode*>(e);
      double xyz[3];
      _node->GetXYZ(xyz); // - thread safe gatting coords
      SetCoord( xyz[0], xyz[1], xyz[2] );
    }
  }

Here is the caller graph for this function:


Member Function Documentation

double SMESH_TNodeXYZ::Distance ( const SMDS_MeshNode *  n) const [inline]

Definition at line 111 of file SMESH_TypeDefs.hxx.

{ return (SMESH_TNodeXYZ( n )-*this).Modulus(); }

Here is the call graph for this function:

Here is the caller graph for this function:

bool SMESH_TNodeXYZ::operator== ( const SMESH_TNodeXYZ other) const [inline]

Definition at line 113 of file SMESH_TypeDefs.hxx.

{ return _node == other._node; }
double SMESH_TNodeXYZ::SquareDistance ( const SMDS_MeshNode *  n) const [inline]

Definition at line 112 of file SMESH_TypeDefs.hxx.

{ return (SMESH_TNodeXYZ( n )-*this).SquareModulus(); }

Here is the call graph for this function:


Member Data Documentation

const SMDS_MeshNode* SMESH_TNodeXYZ::_node

Definition at line 101 of file SMESH_TypeDefs.hxx.


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