Version: 6.3.1
Public Member Functions | Private Attributes

StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor Class Reference

Class emulating geometry of a vertical edge. More...

Inheritance diagram for StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor:
Inheritance graph
[legend]

Public Member Functions

 TVerticalEdgeAdaptor (const TParam2ColumnMap *columnsMap, const double parameter)
 Creates TVerticalEdgeAdaptor.
gp_Pnt Value (const Standard_Real U) const
 Return coordinates for the given normalized parameter.
Standard_Real FirstParameter () const
Standard_Real LastParameter () const
void dumpNodes (int nbNodes) const
 Dump ids of nodes.

Private Attributes

const TNodeColumnmyNodeColumn

Detailed Description

Class emulating geometry of a vertical edge.

Definition at line 311 of file StdMeshers_Prism_3D.hxx.


Constructor & Destructor Documentation

StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor::TVerticalEdgeAdaptor ( const TParam2ColumnMap columnsMap,
const double  parameter 
)

Creates TVerticalEdgeAdaptor.

Parameters:
columnsMap- node column map
parameter- normalized parameter

Definition at line 2344 of file StdMeshers_Prism_3D.cxx.

{
  myNodeColumn = & getColumn( columnsMap, parameter )->second;
}

Member Function Documentation

void StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor::dumpNodes ( int  nbNodes) const

Dump ids of nodes.

Definition at line 2371 of file StdMeshers_Prism_3D.cxx.

References ex21_lamp.size.

Referenced by StdMeshers_PrismAsBlock.TSideFace.dumpNodes().

{
#ifdef _DEBUG_
  for ( int i = 0; i < nbNodes && i < myNodeColumn->size(); ++i )
    cout << (*myNodeColumn)[i]->GetID() << " ";
  if ( nbNodes < myNodeColumn->size() )
    cout << myNodeColumn->back()->GetID();
#endif
}
Standard_Real StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor.FirstParameter ( ) const

Definition at line 317 of file StdMeshers_Prism_3D.hxx.

{ return 0; }
Standard_Real StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor.LastParameter ( ) const

Definition at line 318 of file StdMeshers_Prism_3D.hxx.

{ return 1; }
gp_Pnt StdMeshers_PrismAsBlock.TVerticalEdgeAdaptor::Value ( const Standard_Real  U) const

Return coordinates for the given normalized parameter.

Parameters:
U- normalized parameter
Return values:
gp_Pnt- coordinates

Definition at line 2357 of file StdMeshers_Prism_3D.cxx.

References gpXYZ, SMESH_AdvancedEditor.n1, and SMESH_AdvancedEditor.n2.

{
  const SMDS_MeshNode* n1;
  const SMDS_MeshNode* n2;
  double r = getRAndNodes( myNodeColumn, U, n1, n2 );
  return gpXYZ(n1) * ( 1 - r ) + gpXYZ(n2) * r;
}

Field Documentation

Definition at line 313 of file StdMeshers_Prism_3D.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS