Version: 6.3.1
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes

SMESH_MEDFamily_i Class Reference

#include <SMESH_MEDFamily_i.hxx>

Inheritance diagram for SMESH_MEDFamily_i:
Inheritance graph
[legend]

Public Member Functions

 SMESH_MEDFamily_i (int identifier, SMESH_subMesh_i *sm, std::string name, std::string description, SALOME_MED::medEntityMesh entity)
 Constructor.
 SMESH_MEDFamily_i (const SMESH_MEDFamily_i &f)
 constructor par recopie
void setProtocol (SALOME::TypeOfCommunication typ)
void release ()
SALOME::SenderInt_ptr getSenderForNumber (SALOME_MED::medGeometryElement)
SALOME::SenderInt_ptr getSenderForNumberIndex ()
CORBA::Long getIdentifier () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for Family's Identifier.
CORBA::Long getNumberOfAttributes () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for number of attributes.
SALOME_TYPES::ListOfLong * getAttributesIdentifiers () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attributes identifiers.
CORBA::Long getAttributeIdentifier (CORBA::Long i) throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attribute identifier I.
SALOME_TYPES::ListOfLong * getAttributesValues () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attributes values.
CORBA::Long getAttributeValue (CORBA::Long i) throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attribute value I.
SALOME_TYPES::ListOfString * getAttributesDescriptions () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attributes desriptions.
char * getAttributeDescription (CORBA::Long i) throw (SALOME::SALOME_Exception)
 CORBA: Accessor for attribute description i.
CORBA::Long getNumberOfGroups () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for the number of groups.
char * getGroupName (CORBA::Long i) throw (SALOME::SALOME_Exception)
 CORBA: Accessor for the name of the group i.
SALOME_TYPES::ListOfString * getGroupsNames () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for all the groups name.
char * getName () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for Name.
char * getDescription () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for Description.
SALOME_MED::GMESH_ptr getMesh () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for Mesh.
CORBA::Boolean isOnAllElements () throw (SALOME::SALOME_Exception)
 CORBA: boolean indicating if support concerns all elements.
SALOME_MED::medEntityMesh getEntity () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for type of support's entity.
CORBA::Long getNumberOfElements (SALOME_MED::medGeometryElement geomElement) throw (SALOME::SALOME_Exception)
 CORBA: Number of different types of geometry elements existing in the support.
CORBA::Long getNumberOfTypes () throw (SALOME::SALOME_Exception)
 Gives the number of types of elements included in the support.
SALOME_TYPES::ListOfLong * getNumber (SALOME_MED::medGeometryElement geomElement) throw (SALOME::SALOME_Exception)
 CORBA: get Nodes.
SALOME_TYPES::ListOfLong * getNumberFromFile (SALOME_MED::medGeometryElement geomElement) throw (SALOME::SALOME_Exception)
 Same function as getNumber.
SALOME_TYPES::ListOfLong * getNumberIndex () throw (SALOME::SALOME_Exception)
 CORBA: Global Nodes Index (optionnaly designed by the user) CORBA: ??????????????????????????????
CORBA::Long getNumberOfGaussPoint (SALOME_MED::medGeometryElement geomElement) throw (SALOME::SALOME_Exception)
 CORBA: Array containing indexes for elements included in the support.
SALOME_TYPES::ListOfLong * getNumbersOfGaussPoint () throw (SALOME::SALOME_Exception)
 Gives CORBA: Array containing the numbers of Gauss point of elements included in the support.
SALOME_MED::medGeometryElement_array * getTypes () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for types of geometry elements.
void getBoundaryElements () throw (SALOME::SALOME_Exception)
 build the object which will contain all the boundary elements of the mesh.
CORBA::Long getCorbaIndex () throw (SALOME::SALOME_Exception)
 CORBA: Accessor for Corba Index.
SALOME_MED::SUPPORT::supportInfos * getSupportGlobal () throw (SALOME::SALOME_Exception)
 Gives information on the support.
void createSeq () throw (SALOME::SALOME_Exception)

Data Fields

const SMESHDS_SubMesh_subMeshDS
SMESHDS_Mesh_meshDS
std::string _name
std::string _description
bool _isOnAllElements
bool _seqNumber
int _seqLength
SALOME_MED::medEntityMesh _entity
SALOME_MED::medGeometryElement * _geometricType
int _numberOfGeometricType

Protected Member Functions

 SMESH_MEDFamily_i ()
 Default constructor.
 ~SMESH_MEDFamily_i ()
 Destructor.

Protected Attributes

::SMESH_subMesh_i_subMesh_i
int _identifier
int _numberOfAttribute
int_attributeIdentifier
int_attributeValue
std::string * _attributeDescription
int _numberOfGroup
std::string * _groupName

Detailed Description

Definition at line 36 of file SMESH_MEDFamily_i.hxx.


Constructor & Destructor Documentation

SMESH_MEDFamily_i::SMESH_MEDFamily_i ( ) [protected]

Default constructor.

Definition at line 38 of file SMESH_MEDFamily_i.cxx.

{
  BEGIN_OF("Default Constructor SMESH_MEDFamily_i");
  END_OF("Default Constructor SMESH_MEDFamily_i");
}
SMESH_MEDFamily_i::~SMESH_MEDFamily_i ( ) [protected]

Destructor.

Definition at line 72 of file SMESH_MEDFamily_i.cxx.

{
}
SMESH_MEDFamily_i::SMESH_MEDFamily_i ( int  identifier,
SMESH_subMesh_i sm,
std::string  name,
std::string  description,
SALOME_MED::medEntityMesh  entity 
)

Constructor.

Definition at line 80 of file SMESH_MEDFamily_i.cxx.

                                                                                                     : 
  SMESH_MEDSupport_i( sm, name, description, entity ),
  
  _subMesh_i(sm),
  _identifier(identifier),
  _numberOfAttribute(0),
  _attributeIdentifier((int*)NULL),
  _attributeValue((int*)NULL), 
  _attributeDescription((string*)NULL),
  _numberOfGroup(0), 
  _groupName((string*)NULL)
{
  BEGIN_OF("Constructor SMESH_MEDFamily_i");
  END_OF("Constructor SMESH_MEDFamily_i");
}
SMESH_MEDFamily_i::SMESH_MEDFamily_i ( const SMESH_MEDFamily_i f)

constructor par recopie

Definition at line 48 of file SMESH_MEDFamily_i.cxx.

References _attributeDescription, _groupName, _numberOfAttribute, and _numberOfGroup.

                                                               : 
  SMESH_MEDSupport_i(f._subMesh_i,f._name,f._description,f._entity),
  _subMesh_i(f._subMesh_i),
  _identifier(f._identifier),
  _numberOfAttribute(f._numberOfAttribute),
  _numberOfGroup(f._numberOfGroup), 
  _attributeValue(f._attributeValue)
{
  BEGIN_OF("Copy Constructor SMESH_MEDFamily_i");
  _attributeDescription=new string[_numberOfAttribute];
  for (int i=0;i<_numberOfAttribute;i++) {
    _attributeDescription[i]=f._attributeDescription[i];
  };
  _groupName=new string[_numberOfGroup];
  for (int i=0;i<_numberOfAttribute;i++) {
    _groupName[i]=f._groupName[i];
  };
  END_OF("Copy Constructor SMESH_MEDFamily_i");
}

Member Function Documentation

void SMESH_MEDSupport_i.createSeq ( ) throw (SALOME::SALOME_Exception) [inherited]
char * SMESH_MEDFamily_i::getAttributeDescription ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attribute description i.

Definition at line 251 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{   
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    }
  ASSERT (i <= _numberOfAttribute);
  return CORBA::string_dup(_attributeDescription[i].c_str());
}
CORBA::Long SMESH_MEDFamily_i::getAttributeIdentifier ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attribute identifier I.

Definition at line 156 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{    
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  MESSAGE("Les familles SMESH n ont pas d attribut");
  THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                               ,SALOME::BAD_PARAM);
  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    };
  ASSERT (i <= _numberOfAttribute);
  return _attributeIdentifier[i];
}
SALOME_TYPES::ListOfString * SMESH_MEDFamily_i::getAttributesDescriptions ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attributes desriptions.

Definition at line 227 of file SMESH_MEDFamily_i.cxx.

References _attributeDescription, _numberOfAttribute, SMESH_MEDSupport_i._subMeshDS, and MESSAGE.

{
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    }
  SALOME_TYPES::ListOfString_var myseq = new SALOME_TYPES::ListOfString;
  for (int i=0;i<_numberOfAttribute;i++)
    {
      myseq[i]=CORBA::string_dup(_attributeDescription[i].c_str());
    }
  return myseq._retn();
}
SALOME_TYPES::ListOfLong * SMESH_MEDFamily_i::getAttributesIdentifiers ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attributes identifiers.

Definition at line 129 of file SMESH_MEDFamily_i.cxx.

References _attributeIdentifier, _numberOfAttribute, SMESH_MEDSupport_i._subMeshDS, and MESSAGE.

{
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    };
  
  SALOME_TYPES::ListOfLong_var myseq= new SALOME_TYPES::ListOfLong;
  myseq->length(_numberOfAttribute);
  for (int i=0;i<_numberOfAttribute;i++)
    {
      myseq[i]=_attributeIdentifier[i];
    };
  return myseq._retn();

}
SALOME_TYPES::ListOfLong * SMESH_MEDFamily_i::getAttributesValues ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attributes values.

Definition at line 179 of file SMESH_MEDFamily_i.cxx.

References _attributeValue, _numberOfAttribute, SMESH_MEDSupport_i._subMeshDS, and MESSAGE.

{
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);

  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    };

  SALOME_TYPES::ListOfLong_var myseq= new SALOME_TYPES::ListOfLong;
  myseq->length(_numberOfAttribute);
  for (int i=0;i<_numberOfAttribute;i++)
    {
      myseq[i]=_attributeValue[i];
    };
  return myseq._retn();
}
CORBA::Long SMESH_MEDFamily_i::getAttributeValue ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA: Accessor for attribute value I.

Definition at line 206 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{   
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  if (_numberOfAttribute == 0)
    {
      MESSAGE("Les familles SMESH n ont pas d attribut");
      THROW_SALOME_CORBA_EXCEPTION("No attributes"\
                                   ,SALOME::BAD_PARAM);
    }

  ASSERT (i <= _numberOfAttribute);
  return _attributeValue[i];
}
void SMESH_MEDSupport_i::getBoundaryElements ( ) throw (SALOME::SALOME_Exception) [inherited]

build the object which will contain all the boundary elements of the mesh.

Definition at line 397 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
}
CORBA::Long SMESH_MEDSupport_i::getCorbaIndex ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for Corba Index.

Definition at line 136 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._subMeshDS, and MESSAGE.

{
        if (_subMeshDS == NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        MESSAGE("Not implemented for SMESH_i");
        THROW_SALOME_CORBA_EXCEPTION("Not Implemented ", SALOME::BAD_PARAM);

}
char * SMESH_MEDSupport_i::getDescription ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for Description.

Definition at line 167 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._description, and SMESH_MEDSupport_i._subMeshDS.

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        return CORBA::string_dup(_description.c_str());
}
SALOME_MED::medEntityMesh SMESH_MEDSupport_i::getEntity ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for type of support's entity.

Definition at line 236 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._entity, and SMESH_MEDSupport_i._subMeshDS.

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        return _entity;
}
char * SMESH_MEDFamily_i::getGroupName ( CORBA::Long  i) throw (SALOME::SALOME_Exception)

CORBA: Accessor for the name of the group i.

Definition at line 283 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return NULL;
}
SALOME_TYPES::ListOfString * SMESH_MEDFamily_i::getGroupsNames ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for all the groups name.

Definition at line 295 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return NULL;
}
CORBA::Long SMESH_MEDFamily_i::getIdentifier ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for Family's Identifier.

Definition at line 102 of file SMESH_MEDFamily_i.cxx.

References _identifier, and SMESH_MEDSupport_i._subMeshDS.

{
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR); 
  return _identifier;
  
}
SALOME_MED::GMESH_ptr SMESH_MEDSupport_i::getMesh ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for Mesh.

Definition at line 181 of file SMESH_MEDSupport_i.cxx.

References SMESH_subMesh_i._mesh_i, SMESH_MEDSupport_i._subMesh_i, SMESH_MEDSupport_i._subMeshDS, and SMESH_Mesh_i.GetMEDMesh().

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);

        return _subMesh_i->_mesh_i->GetMEDMesh();
}
char * SMESH_MEDSupport_i::getName ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for Name.

Definition at line 152 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._name, and SMESH_MEDSupport_i._subMeshDS.

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        return CORBA::string_dup(_name.c_str());

}
SALOME_TYPES::ListOfLong * SMESH_MEDSupport_i::getNumber ( SALOME_MED::medGeometryElement  geomElement) throw (SALOME::SALOME_Exception) [inherited]

CORBA: get Nodes.

Definition at line 299 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
  Unexpect aCatch(SALOME_SalomeException);
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);

        // A changer s'il ne s agit plus seulement de famille de noeuds
        if (geomElement != SALOME_MED::MED_NONE)
                THROW_SALOME_CORBA_EXCEPTION("Not implemented", SALOME::BAD_PARAM);

        SALOME_TYPES::ListOfLong_var myseq = new SALOME_TYPES::ListOfLong;

        int i = 0;
        myseq->length(_subMeshDS->NbNodes());

        SMDS_NodeIteratorPtr it = _subMeshDS->GetNodes();
        while(it->more())
        {
                myseq[i] = it->next()->GetID();
                i++;
        };

        SCRUTE(myseq->length());
        MESSAGE("End of SMESH_MEDSupport_i::getNumber");
        return myseq._retn();

}
SALOME_TYPES::ListOfLong * SMESH_MEDSupport_i::getNumberFromFile ( SALOME_MED::medGeometryElement  geomElement) throw (SALOME::SALOME_Exception) [inherited]

Same function as getNumber.

CORBA: get Nodes from file.

Definition at line 335 of file SMESH_MEDSupport_i.cxx.

{
  return getNumber(geomElement);
}
SALOME_TYPES::ListOfLong * SMESH_MEDSupport_i::getNumberIndex ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Global Nodes Index (optionnaly designed by the user) CORBA: ??????????????????????????????

Definition at line 349 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
        MESSAGE("Not implemented for SMESH_i");
        THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
        return NULL;
}
CORBA::Long SMESH_MEDFamily_i::getNumberOfAttributes ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for number of attributes.

Definition at line 116 of file SMESH_MEDFamily_i.cxx.

References _numberOfAttribute, and SMESH_MEDSupport_i._subMeshDS.

{
  if (_subMeshDS==NULL)
    THROW_SALOME_CORBA_EXCEPTION("No associated Family",\
                                 SALOME::INTERNAL_ERROR);
  return _numberOfAttribute;
}
CORBA::Long SMESH_MEDSupport_i::getNumberOfElements ( SALOME_MED::medGeometryElement  geomElement) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Number of different types of geometry elements existing in the support.

Definition at line 283 of file SMESH_MEDSupport_i.cxx.

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        return _numberOfGeometricType;

}
CORBA::Long SMESH_MEDSupport_i::getNumberOfGaussPoint ( SALOME_MED::medGeometryElement  geomElement) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Array containing indexes for elements included in the support.

Definition at line 361 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
        MESSAGE("Not implemented for SMESH_i");
        return 0;
}
CORBA::Long SMESH_MEDFamily_i::getNumberOfGroups ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for the number of groups.

Definition at line 271 of file SMESH_MEDFamily_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return 0;
}
CORBA::Long SMESH_MEDSupport_i::getNumberOfTypes ( ) throw (SALOME::SALOME_Exception) [inherited]

Gives the number of types of elements included in the support.

Definition at line 372 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return 0;
}
SALOME_TYPES::ListOfLong * SMESH_MEDSupport_i::getNumbersOfGaussPoint ( ) throw (SALOME::SALOME_Exception) [inherited]

Gives CORBA: Array containing the numbers of Gauss point of elements included in the support.

Definition at line 385 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return NULL;
}
SALOME::SenderInt_ptr SMESH_MEDFamily_i.getSenderForNumber ( SALOME_MED::medGeometryElement  )

Definition at line 66 of file SMESH_MEDFamily_i.hxx.

{return SALOME::SenderInt::_nil();}
SALOME::SenderInt_ptr SMESH_MEDFamily_i.getSenderForNumberIndex ( )

Definition at line 67 of file SMESH_MEDFamily_i.hxx.

{return SALOME::SenderInt::_nil();}
SALOME_MED::SUPPORT::supportInfos * SMESH_MEDSupport_i::getSupportGlobal ( ) throw (SALOME::SALOME_Exception) [inherited]

Gives information on the support.

Definition at line 408 of file SMESH_MEDSupport_i.cxx.

References MESSAGE.

{
  MESSAGE("!!! NOT YET IMPLEMENTED !!!!");
  THROW_SALOME_CORBA_EXCEPTION("Not Implemented", SALOME::BAD_PARAM);
  return NULL;
}
SALOME_MED::medGeometryElement_array * SMESH_MEDSupport_i::getTypes ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: Accessor for types of geometry elements.

Definition at line 252 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._geometricType, SMESH_MEDSupport_i._numberOfGeometricType, SMESH_MEDSupport_i._subMeshDS, and MESSAGE.

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        SALOME_MED::medGeometryElement_array_var myseq =
                new SALOME_MED::medGeometryElement_array;
        try
        {
                int mySeqLength = _numberOfGeometricType;
                myseq->length(mySeqLength);
                for (int i = 0; i < mySeqLength; i++)
                {
                        myseq[i] = _geometricType[i];
                }
        }
        catch(...)
        {
                MESSAGE("Exception lors de la recherche des differents types");
                THROW_SALOME_CORBA_EXCEPTION("Unable to acces Support Types",
                        SALOME::INTERNAL_ERROR);
        }
        return myseq._retn();
}
CORBA::Boolean SMESH_MEDSupport_i::isOnAllElements ( ) throw (SALOME::SALOME_Exception) [inherited]

CORBA: boolean indicating if support concerns all elements.

Definition at line 197 of file SMESH_MEDSupport_i.cxx.

References SMESH_MEDSupport_i._entity, SMESH_MEDSupport_i._isOnAllElements, SMESH_MEDSupport_i._meshDS, SMESH_MEDSupport_i._seqLength, SMESH_MEDSupport_i._seqNumber, SMESH_MEDSupport_i._subMeshDS, MESSAGE, SMDS_Mesh.NbNodes(), and SMESHDS_SubMesh.NbNodes().

{
        if (_subMeshDS==NULL)
                THROW_SALOME_CORBA_EXCEPTION("No associated Support",
                        SALOME::INTERNAL_ERROR);
        if (_seqNumber == false)
        {
                if (_entity != SALOME_MED::MED_NONE)
                {
                        _seqLength = _subMeshDS->NbNodes();
                        _seqNumber = true;
                }
                else
                {
                        MESSAGE("Only Node Families are implemented ");
                        THROW_SALOME_CORBA_EXCEPTION("Not implemented Yet ",
                                SALOME::BAD_PARAM);
                }
        }
        try
        {
                _isOnAllElements = (_seqLength == _meshDS->NbNodes());
        }
        catch(...)
        {
                MESSAGE("unable to acces related Mesh");
                THROW_SALOME_CORBA_EXCEPTION("No associated Mesh",
                        SALOME::INTERNAL_ERROR);
        };
        return _isOnAllElements;
}
void SMESH_MEDFamily_i.release ( )

Definition at line 65 of file SMESH_MEDFamily_i.hxx.

{}
void SMESH_MEDFamily_i.setProtocol ( SALOME::TypeOfCommunication  typ)

Definition at line 64 of file SMESH_MEDFamily_i.hxx.

{}

Field Documentation

std::string* SMESH_MEDFamily_i._attributeDescription [protected]

Definition at line 51 of file SMESH_MEDFamily_i.hxx.

Referenced by getAttributesDescriptions(), and SMESH_MEDFamily_i().

Definition at line 49 of file SMESH_MEDFamily_i.hxx.

Referenced by getAttributesIdentifiers().

Definition at line 50 of file SMESH_MEDFamily_i.hxx.

Referenced by getAttributesValues().

std::string SMESH_MEDSupport_i._description [inherited]

Definition at line 106 of file SMESH_MEDSupport_i.hxx.

Referenced by SMESH_MEDSupport_i.getDescription().

SALOME_MED::medEntityMesh SMESH_MEDSupport_i._entity [inherited]
SALOME_MED::medGeometryElement* SMESH_MEDSupport_i._geometricType [inherited]
std::string* SMESH_MEDFamily_i._groupName [protected]

Definition at line 53 of file SMESH_MEDFamily_i.hxx.

Referenced by SMESH_MEDFamily_i().

Definition at line 47 of file SMESH_MEDFamily_i.hxx.

Referenced by getIdentifier().

Definition at line 107 of file SMESH_MEDSupport_i.hxx.

Referenced by SMESH_MEDSupport_i.isOnAllElements().

std::string SMESH_MEDSupport_i._name [inherited]

Definition at line 105 of file SMESH_MEDSupport_i.hxx.

Referenced by SMESH_MEDSupport_i.getName().

Definition at line 52 of file SMESH_MEDFamily_i.hxx.

Referenced by SMESH_MEDFamily_i().

Definition at line 109 of file SMESH_MEDSupport_i.hxx.

Referenced by SMESH_MEDSupport_i.isOnAllElements().

Definition at line 108 of file SMESH_MEDSupport_i.hxx.

Referenced by SMESH_MEDSupport_i.isOnAllElements().

Reimplemented from SMESH_MEDSupport_i.

Definition at line 44 of file SMESH_MEDFamily_i.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