Version: 6.3.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

SMESH_subMeshObj Class Reference

#include <SMESH_ObjectDef.h>

Inheritance diagram for SMESH_subMeshObj:
Inheritance graph
[legend]

Public Types

typedef std::list< const
SMDS_MeshElement * > 
TEntityList
typedef std::map< vtkIdType,
vtkIdType > 
TMapOfIds

Public Member Functions

 SMESH_subMeshObj (SMESH::SMESH_subMesh_ptr, SMESH_MeshObj *)
virtual ~SMESH_subMeshObj ()
virtual int GetNbEntities (const SMDSAbs_ElementType) const
virtual int GetEntities (const SMDSAbs_ElementType, TEntityList &) const
virtual bool IsNodePrs () const
virtual bool Update (int theIsClear=true)
virtual void UpdateFunctor (const SMESH::Controls::FunctorPtr &theFunctor)
virtual int GetElemDimension (const int theObjId)
virtual SMDS_MeshGetMesh () const
virtual bool NulData ()
virtual bool IsValid () const
virtual bool GetEdgeNodes (const int theElemId, const int theEdgeNum, int &theNodeId1, int &theNodeId2) const
virtual vtkUnstructuredGridGetUnstructuredGrid ()
virtual vtkIdType GetNodeObjId (int theVTKID)
virtual vtkIdType GetNodeVTKId (int theObjID)
virtual vtkIdType GetElemObjId (int theVTKID)
virtual vtkIdType GetElemVTKId (int theObjID)

Protected Member Functions

void createPoints (vtkPoints *)
 fills a vtkPoints structure for a submesh.
void buildPrs (bool buildGrid=false)
void buildNodePrs ()
void buildElemPrs ()

Protected Attributes

SMESH::SMESH_subMesh_var mySubMeshServer
SMESH_MeshObjmyMeshObj
TMapOfIds mySMDS2VTKNodes
TMapOfIds myVTK2SMDSNodes
TMapOfIds mySMDS2VTKElems
TMapOfIds myVTK2SMDSElems
bool myLocalGrid
vtkUnstructuredGridmyGrid

Detailed Description

Definition at line 191 of file SMESH_ObjectDef.h.


Member Typedef Documentation

typedef std::list<const SMDS_MeshElement*> SMESH_VisualObjDef.TEntityList [inherited]

Definition at line 58 of file SMESH_ObjectDef.h.

typedef std::map<vtkIdType,vtkIdType> SMESH_VisualObjDef.TMapOfIds [inherited]

Definition at line 59 of file SMESH_ObjectDef.h.


Constructor & Destructor Documentation

SMESH_subMeshObj::SMESH_subMeshObj ( SMESH::SMESH_subMesh_ptr  theSubMesh,
SMESH_MeshObj theMeshObj 
)

Definition at line 963 of file SMESH_Object.cxx.

References MESSAGE, MYDEBUG, and mySubMeshServer.

: SMESH_SubMeshObj( theMeshObj ),
  mySubMeshServer( SMESH::SMESH_subMesh::_duplicate( theSubMesh ) )
{
  if ( MYDEBUG ) MESSAGE( "SMESH_subMeshObj - theSubMesh->_is_nil() = " << theSubMesh->_is_nil() );
  
  mySubMeshServer->Register();
}
SMESH_subMeshObj::~SMESH_subMeshObj ( ) [virtual]

Definition at line 973 of file SMESH_Object.cxx.

References MESSAGE, MYDEBUG, and mySubMeshServer.

{
  if ( MYDEBUG ) MESSAGE( "~SMESH_subMeshObj" );
  mySubMeshServer->UnRegister();
}

Member Function Documentation

void SMESH_VisualObjDef::buildElemPrs ( ) [protected, inherited]

Definition at line 335 of file SMESH_Object.cxx.

References SMESH_BelongToGeom.anIds, SMDS_Mesh.CheckMemory(), getCellType(), SMDS_MeshElement.GetID(), SMDS_MeshElement.IsPoly(), MESSAGE, MYDEBUG, SMDS_MeshElement.NbNodes(), SMDS_MeshElement.nodesIterator(), SMDSAbs_0DElement, SMDSAbs_Edge, SMDSAbs_Face, and SMDSAbs_Volume.

{
  // Create points

  vtkPoints* aPoints = vtkPoints::New();
  createPoints( aPoints );
  myGrid->SetPoints( aPoints );
  aPoints->Delete();

  if ( MYDEBUG )
    MESSAGE("Update - myGrid->GetNumberOfPoints() = "<<myGrid->GetNumberOfPoints());

  // Calculate cells size

  static SMDSAbs_ElementType aTypes[ 4 ] =
    { SMDSAbs_0DElement, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Volume };

  // get entity data
  map<SMDSAbs_ElementType,int> nbEnts;
  map<SMDSAbs_ElementType,TEntityList> anEnts;

  for ( int i = 0; i <= 3; i++ )
    nbEnts[ aTypes[ i ] ] = GetEntities( aTypes[ i ], anEnts[ aTypes[ i ] ] );

  // PAL16631: without swap, bad_alloc is not thrown but hung up and crash instead,
  // so check remaining memory size for safety
  SMDS_Mesh::CheckMemory(); // PAL16631

  vtkIdType aCellsSize =  2 * nbEnts[ SMDSAbs_0DElement ] + 3 * nbEnts[ SMDSAbs_Edge ];

  for ( int i = 2; i <= 3; i++ ) // iterate through faces and volumes
  {
    if ( nbEnts[ aTypes[ i ] ] )
    {
      const TEntityList& aList = anEnts[ aTypes[ i ] ];
      TEntityList::const_iterator anIter;
      for ( anIter = aList.begin(); anIter != aList.end(); ++anIter )
        aCellsSize += (*anIter)->NbNodes() + 1;
    }
  }

  vtkIdType aNbCells = nbEnts[ SMDSAbs_0DElement ] + nbEnts[ SMDSAbs_Edge ] +
                       nbEnts[ SMDSAbs_Face ] + nbEnts[ SMDSAbs_Volume ];

  if ( MYDEBUG )
    MESSAGE( "Update - aNbCells = "<<aNbCells<<"; aCellsSize = "<<aCellsSize );

  // Create cells

  vtkCellArray* aConnectivity = vtkCellArray::New();
  aConnectivity->Allocate( aCellsSize, 0 );

  SMDS_Mesh::CheckMemory(); // PAL16631

  vtkUnsignedCharArray* aCellTypesArray = vtkUnsignedCharArray::New();
  aCellTypesArray->SetNumberOfComponents( 1 );
  aCellTypesArray->Allocate( aNbCells * aCellTypesArray->GetNumberOfComponents() );

  SMDS_Mesh::CheckMemory(); // PAL16631

  vtkIdList *anIdList = vtkIdList::New();
  vtkIdType iElem = 0;

  TConnect aConnect;
  aConnect.reserve(VTK_CELL_SIZE);

  SMDS_Mesh::CheckMemory(); // PAL16631

  for ( int i = 0; i <= 3; i++ ) // iterate through 0d elements, edges, faces and volumes
  {
    if ( nbEnts[ aTypes[ i ] ] > 0 )
    {
      const SMDSAbs_ElementType& aType = aTypes[ i ];
      const TEntityList& aList = anEnts[ aType ];
      TEntityList::const_iterator anIter;
      for ( anIter = aList.begin(); anIter != aList.end(); ++anIter )
      {
        const SMDS_MeshElement* anElem = *anIter;

        vtkIdType aNbNodes = anElem->NbNodes();
        anIdList->SetNumberOfIds( aNbNodes );

        int anId = anElem->GetID();

        mySMDS2VTKElems.insert( TMapOfIds::value_type( anId, iElem ) );
        myVTK2SMDSElems.insert( TMapOfIds::value_type( iElem, anId ) );

        SMDS_ElemIteratorPtr aNodesIter = anElem->nodesIterator();
        switch (aType) {
        case SMDSAbs_Volume:{
          aConnect.clear();
          std::vector<int> aConnectivities;
          // Convertions connectivities from SMDS to VTK
          if (anElem->IsPoly() && aNbNodes > 3) { // POLYEDRE

            if ( const SMDS_VtkVolume* ph =
                 dynamic_cast<const SMDS_VtkVolume*> (anElem))
            {
              aNbNodes = GetConnect(ph->uniqueNodesIterator(),aConnect);
              anIdList->SetNumberOfIds( aNbNodes );
            }
            for (int k = 0; k < aNbNodes; k++)
              aConnectivities.push_back(k);

          } else if (aNbNodes == 4) {
            static int anIds[] = {0,2,1,3};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);

          } else if (aNbNodes == 5) {
            static int anIds[] = {0,3,2,1,4};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);

          } else if (aNbNodes == 6) {
            static int anIds[] = {0,1,2,3,4,5};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);

          }
          else if (aNbNodes == 8) {
            static int anIds[] = {0,3,2,1,4,7,6,5};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);

          }
          else if (aNbNodes == 10) {
            static int anIds[] = {0,2,1,3,6,5,4,7,9,8};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);
          }
          else if (aNbNodes == 13) {
            static int anIds[] = {0,3,2,1,4,8,7,6,5,9,12,11,10};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);
          }
          else if (aNbNodes == 15) {
            //static int anIds[] = {0,2,1,3,5,4,8,7,6,11,10,9,12,14,13};
            static int anIds[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);
            //for (int k = 0; k < aNbNodes; k++) {
            //  int nn = aConnectivities[k];
            //  const SMDS_MeshNode* N = static_cast<const SMDS_MeshNode*> (aConnect[nn]);
            //  cout<<"k="<<k<<"  N("<<N->X()<<","<<N->Y()<<","<<N->Z()<<")"<<endl;
            //}
          }
          else if (aNbNodes == 20) {
            static int anIds[] = {0,3,2,1,4,7,6,5,11,10,9,8,15,14,13,12,16,19,18,17};
            for (int k = 0; k < aNbNodes; k++) aConnectivities.push_back(anIds[k]);
          }
          else {
          }

          if ( aConnect.empty() )
            GetConnect(aNodesIter,aConnect);

          if (aConnectivities.size() > 0) {
            for (vtkIdType aNodeId = 0; aNodeId < aNbNodes; aNodeId++)
              SetId(anIdList,mySMDS2VTKNodes,aConnect,aNodeId,aConnectivities[aNodeId]);
          }
          break;
        }
        default:
          for( vtkIdType aNodeId = 0; aNodesIter->more(); aNodeId++ ){
            const SMDS_MeshElement* aNode = aNodesIter->next();
            anIdList->SetId( aNodeId, mySMDS2VTKNodes[aNode->GetID()] );
          }
        }

        aConnectivity->InsertNextCell( anIdList );
        aCellTypesArray->InsertNextValue( getCellType( aType, anElem->IsPoly(), aNbNodes ) );

        iElem++;
      }
    }
    SMDS_Mesh::CheckMemory(); // PAL16631
  }

  // Insert cells in grid

  VTKViewer_CellLocationsArray* aCellLocationsArray = VTKViewer_CellLocationsArray::New();
  aCellLocationsArray->SetNumberOfComponents( 1 );
  aCellLocationsArray->SetNumberOfTuples( aNbCells );

  SMDS_Mesh::CheckMemory(); // PAL16631

  aConnectivity->InitTraversal();
  for( vtkIdType idType = 0, *pts, npts; aConnectivity->GetNextCell( npts, pts ); idType++ )
    aCellLocationsArray->SetValue( idType, aConnectivity->GetTraversalLocation( npts ) );

  myGrid->SetCells( aCellTypesArray, aCellLocationsArray,aConnectivity );

  aCellLocationsArray->Delete();
  aCellTypesArray->Delete();
  aConnectivity->Delete();
  anIdList->Delete();

  SMDS_Mesh::CheckMemory(); // PAL16631
}
void SMESH_VisualObjDef::buildNodePrs ( ) [protected, inherited]

Definition at line 291 of file SMESH_Object.cxx.

References SMDS_Mesh.CheckMemory().

{
  // PAL16631: without swap, bad_alloc is not thrown but hung up and crash instead,
  // so check remaining memory size for safety
  SMDS_Mesh::CheckMemory(); // PAL16631
  vtkPoints* aPoints = vtkPoints::New();
  createPoints( aPoints );
  SMDS_Mesh::CheckMemory();
  myGrid->SetPoints( aPoints );
  aPoints->Delete();

  myGrid->SetCells( 0, 0, 0, 0, 0 );
}
void SMESH_VisualObjDef::buildPrs ( bool  buildGrid = false) [protected, inherited]

Definition at line 239 of file SMESH_Object.cxx.

References MESSAGE, MYDEBUGWITHFILES, and SMESH.WriteUnstructuredGrid().

Referenced by SMESH_SubMeshObj.Update(), and SMESH_MeshObj.Update().

{
  MESSAGE("----------------------------------------------------------SMESH_VisualObjDef::buildPrs " << buildGrid);
  if (buildGrid)
  {
        myLocalGrid = true;
        try
        {
                mySMDS2VTKNodes.clear();
                myVTK2SMDSNodes.clear();
                mySMDS2VTKElems.clear();
                myVTK2SMDSElems.clear();

                if ( IsNodePrs() )
                        buildNodePrs();
                else
                        buildElemPrs();
        }
        catch(...)
        {
                mySMDS2VTKNodes.clear();
                myVTK2SMDSNodes.clear();
                mySMDS2VTKElems.clear();
                myVTK2SMDSElems.clear();

                myGrid->SetPoints( 0 );
                myGrid->SetCells( 0, 0, 0, 0, 0 );
                throw;
        }
  }
  else
  {
        myLocalGrid = false;
        if (!GetMesh()->isCompacted())
          {
            MESSAGE("*** buildPrs ==> compactMesh!");
            GetMesh()->compactMesh();
          }
        vtkUnstructuredGrid *theGrid = GetMesh()->getGrid();
        myGrid->ShallowCopy(theGrid);
        //MESSAGE(myGrid->GetReferenceCount());
        //MESSAGE( "Update - myGrid->GetNumberOfCells() = "<<myGrid->GetNumberOfCells() );
        //MESSAGE( "Update - myGrid->GetNumberOfPoints() = "<<myGrid->GetNumberOfPoints() );
        if( MYDEBUGWITHFILES ) SMESH::WriteUnstructuredGrid( myGrid,"buildPrs.vtu" );
  }
}
void SMESH_VisualObjDef::createPoints ( vtkPoints *  thePoints) [protected, inherited]

fills a vtkPoints structure for a submesh.

fills a std.list of SMDS_MeshElements*, then extract the points. fills also conversion id maps between SMDS and VTK.

Definition at line 206 of file SMESH_Object.cxx.

References SMDS_MeshElement.GetID(), SMDSAbs_Node, SMDS_MeshNode.X(), SMDS_MeshNode.Y(), and SMDS_MeshNode.Z().

{
  if ( thePoints == 0 )
    return;

  TEntityList aNodes;
  vtkIdType nbNodes = GetEntities( SMDSAbs_Node, aNodes );
  thePoints->SetNumberOfPoints( nbNodes );

  int nbPoints = 0;

  TEntityList::const_iterator anIter;
  for ( anIter = aNodes.begin(); anIter != aNodes.end(); ++anIter )
  {
    const SMDS_MeshNode* aNode = ( const SMDS_MeshNode* )(*anIter);
    if ( aNode != 0 )
    {
      thePoints->SetPoint( nbPoints, aNode->X(), aNode->Y(), aNode->Z() );
      int anId = aNode->GetID();
      mySMDS2VTKNodes.insert( TMapOfIds::value_type( anId, nbPoints ) );
      myVTK2SMDSNodes.insert( TMapOfIds::value_type( nbPoints, anId ) );
      nbPoints++;
    }
  }

  if ( nbPoints != nbNodes )
    thePoints->SetNumberOfPoints( nbPoints );
}
bool SMESH_VisualObjDef::GetEdgeNodes ( const int  theElemId,
const int  theEdgeNum,
int theNodeId1,
int theNodeId2 
) const [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 533 of file SMESH_Object.cxx.

References SMESH_BelongToGeom.anIds, SMDS_Mesh.FindElement(), SMDS_MeshElement.NbNodes(), and SMDS_MeshElement.nodesIterator().

{
  const SMDS_Mesh* aMesh = GetMesh();
  if ( aMesh == 0 )
    return false;
    
  const SMDS_MeshElement* anElem = aMesh->FindElement( theElemId );
  if ( anElem == 0 )
    return false;
    
  int nbNodes = anElem->NbNodes();

  if ( theEdgeNum < 0 || theEdgeNum > 3 || (nbNodes != 3 && nbNodes != 4) || theEdgeNum > nbNodes )
    return false;

  vector<int> anIds( nbNodes );
  SMDS_ElemIteratorPtr anIter = anElem->nodesIterator();
  int i = 0;
  while( anIter->more() )
    anIds[ i++ ] = anIter->next()->GetID();

  if ( theEdgeNum < nbNodes - 1 )
  {
    theNodeId1 = anIds[ theEdgeNum ];
    theNodeId2 = anIds[ theEdgeNum + 1 ];
  }
  else
  {
    theNodeId1 = anIds[ nbNodes - 1 ];
    theNodeId2 = anIds[ 0 ];
  }

  return true;
}
int SMESH_SubMeshObj::GetElemDimension ( const int  theObjId) [virtual, inherited]

Implements SMESH_VisualObjDef.

Definition at line 798 of file SMESH_Object.cxx.

References SMESH_MeshObj.GetElemDimension(), and SMESH_SubMeshObj.myMeshObj.

{
  return myMeshObj == 0 ? 0 : myMeshObj->GetElemDimension( theObjId );
}
vtkIdType SMESH_VisualObjDef::GetElemObjId ( int  theVTKID) [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 177 of file SMESH_Object.cxx.

{
        if (myLocalGrid)
        {
                TMapOfIds::const_iterator i = myVTK2SMDSElems.find(theVTKID);
                return i == myVTK2SMDSElems.end() ? -1 : i->second;
        }
  return this->GetMesh()->fromVtkToSmds(theVTKID);
}
vtkIdType SMESH_VisualObjDef::GetElemVTKId ( int  theObjID) [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 187 of file SMESH_Object.cxx.

{
        if (myLocalGrid)
        {
                TMapOfIds::const_iterator i = mySMDS2VTKElems.find(theObjID);
                return i == mySMDS2VTKElems.end() ? -1 : i->second;
        }
  return this->GetMesh()->FindElement(theObjID)->getVtkId();
  //return this->GetMesh()->fromSmdsToVtk(theObjID);
}
int SMESH_subMeshObj::GetEntities ( const SMDSAbs_ElementType  theType,
TEntityList theResList 
) const [virtual]

Implements SMESH_VisualObjDef.

Definition at line 1007 of file SMESH_Object.cxx.

References SMESH_BelongToGeom.anIds, SMESH_MeshObj.GetMesh(), getNodesFromElems(), getPointers(), IsNodePrs(), SMESH_SubMeshObj.myMeshObj, mySubMeshServer, and SMDSAbs_Node.

{
  theResList.clear();

  SMDS_Mesh* aMesh = myMeshObj->GetMesh();
  if ( aMesh == 0 )
    return 0;

  bool isNodal = IsNodePrs();

  if ( isNodal )
  {
    if ( theType == SMDSAbs_Node )
    {
      SMESH::long_array_var anIds = mySubMeshServer->GetNodesId();
      return getPointers( SMDSAbs_Node, anIds, aMesh, theResList );
    }
  }
  else
  {
    if ( theType == SMDSAbs_Node )
    {
      SMESH::long_array_var anIds = mySubMeshServer->GetElementsId();
      return getNodesFromElems( anIds, aMesh, theResList );
    }
    else
    {
      SMESH::long_array_var anIds = 
        mySubMeshServer->GetElementsByType( SMESH::ElementType(theType) );
      return getPointers( theType, anIds, aMesh, theResList );
    }
  }

  return 0;
}
virtual SMDS_Mesh* SMESH_SubMeshObj.GetMesh ( ) const [virtual, inherited]

Implements SMESH_VisualObjDef.

Definition at line 155 of file SMESH_ObjectDef.h.

{ return myMeshObj->GetMesh(); }
int SMESH_subMeshObj::GetNbEntities ( const SMDSAbs_ElementType  theType) const [virtual]

Implements SMESH_VisualObjDef.

Definition at line 983 of file SMESH_Object.cxx.

References SMESH_BelongToGeom.anIds, mySubMeshServer, SMDSAbs_0DElement, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and SMDSAbs_Volume.

{
  switch ( theType )
  {
    case SMDSAbs_Node:
    {
      return mySubMeshServer->GetNumberOfNodes( false );
    }
    break;
    case SMDSAbs_0DElement:
    case SMDSAbs_Edge:
    case SMDSAbs_Face:
    case SMDSAbs_Volume:
    {
      SMESH::long_array_var anIds = 
        mySubMeshServer->GetElementsByType( SMESH::ElementType(theType) );
      return anIds->length();
    }
    default:
      return 0;
    break;
  }
}
vtkIdType SMESH_VisualObjDef::GetNodeObjId ( int  theVTKID) [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 152 of file SMESH_Object.cxx.

{
        if (myLocalGrid)
        {
                TMapOfIds::const_iterator i = myVTK2SMDSNodes.find(theVTKID);
                return i == myVTK2SMDSNodes.end() ? -1 : i->second;
        }
  return this->GetMesh()->FindNodeVtk(theVTKID)->GetID();
}
vtkIdType SMESH_VisualObjDef::GetNodeVTKId ( int  theObjID) [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 162 of file SMESH_Object.cxx.

References SMDS_MeshElement.getVtkId().

{
        if (myLocalGrid)
        {
                TMapOfIds::const_iterator i = mySMDS2VTKNodes.find(theObjID);
    return i == mySMDS2VTKNodes.end() ? -1 : i->second;
        }

        const SMDS_MeshNode* aNode = 0;
        if( this->GetMesh() ) {
          aNode = this->GetMesh()->FindNode(theObjID);
        }
        return aNode ? aNode->getVtkId() : -1;
}
vtkUnstructuredGrid * SMESH_VisualObjDef::GetUnstructuredGrid ( ) [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 571 of file SMESH_Object.cxx.

Referenced by SMESH_MeshObj.Update().

{
        //MESSAGE("SMESH_VisualObjDef::GetUnstructuredGrid " << myGrid);
        return myGrid;
}
bool SMESH_subMeshObj::IsNodePrs ( ) const [virtual]

Implements SMESH_VisualObjDef.

Definition at line 1047 of file SMESH_Object.cxx.

References mySubMeshServer.

Referenced by GetEntities().

{
  return mySubMeshServer->GetNumberOfElements() == 0;
}
bool SMESH_VisualObjDef::IsValid ( ) const [virtual, inherited]

Implements SMESH_VisualObj.

Definition at line 582 of file SMESH_Object.cxx.

References SMDSAbs_0DElement, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and SMDSAbs_Volume.

{
        //MESSAGE("SMESH_VisualObjDef::IsValid");
  return GetNbEntities(SMDSAbs_Node) > 0      || 
         GetNbEntities(SMDSAbs_0DElement) > 0 || 
         GetNbEntities(SMDSAbs_Edge) > 0      || 
         GetNbEntities(SMDSAbs_Face) > 0      ||
         GetNbEntities(SMDSAbs_Volume) > 0 ;
}
virtual bool SMESH_VisualObjDef.NulData ( ) [virtual, inherited]

Implements SMESH_VisualObj.

Reimplemented in SMESH_MeshObj.

Definition at line 65 of file SMESH_ObjectDef.h.

{return 0; };
bool SMESH_SubMeshObj::Update ( int  theIsClear = true) [virtual, inherited]

Implements SMESH_VisualObjDef.

Definition at line 816 of file SMESH_Object.cxx.

References SMESH_VisualObjDef.buildPrs(), MESSAGE, SMESH_SubMeshObj.myMeshObj, and SMESH_MeshObj.Update().

{
        MESSAGE("SMESH_SubMeshObj::Update " << this)
  bool changed = myMeshObj->Update( theIsClear );
  buildPrs(true);
  return changed;
}
void SMESH_SubMeshObj::UpdateFunctor ( const SMESH::Controls::FunctorPtr theFunctor) [virtual, inherited]

Implements SMESH_VisualObjDef.

Definition at line 807 of file SMESH_Object.cxx.

References SMESH_MeshObj.GetMesh(), and SMESH_SubMeshObj.myMeshObj.

{
  theFunctor->SetMesh( myMeshObj->GetMesh() );
}

Field Documentation

Definition at line 103 of file SMESH_ObjectDef.h.

Referenced by SMESH_MeshObj.NulData().

bool SMESH_VisualObjDef.myLocalGrid [protected, inherited]

Definition at line 101 of file SMESH_ObjectDef.h.

SMESH_MeshObj* SMESH_SubMeshObj.myMeshObj [protected, inherited]

Definition at line 99 of file SMESH_ObjectDef.h.

Definition at line 97 of file SMESH_ObjectDef.h.

SMESH::SMESH_subMesh_var SMESH_subMeshObj.mySubMeshServer [protected]

Definition at line 100 of file SMESH_ObjectDef.h.

Definition at line 98 of file SMESH_ObjectDef.h.

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