mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
1) 0020976: EDF 1471 SMESH: New ergonomy to display quality controls
+ static CORBA::Long* GetTemporaryIDs( SMESH::SMESH_IDSource_ptr& idSource, int& nbIds ); + virtual SMESH::long_array* GetNbElementsByType();
This commit is contained in:
parent
89edbafa37
commit
ed5bf36e41
@ -721,6 +721,14 @@ struct SMESH_MeshEditor_i::_IDSource : public POA_SMESH::SMESH_IDSource
|
||||
SMESH::SMESH_Mesh_ptr _mesh;
|
||||
SMESH::long_array* GetIDs() { return new SMESH::long_array( _ids ); }
|
||||
SMESH::long_array* GetMeshInfo() { return 0; }
|
||||
SMESH::long_array* GetNbElementsByType()
|
||||
{
|
||||
SMESH::long_array_var aRes = new SMESH::long_array();
|
||||
aRes->length(SMESH::NB_ELEMENT_TYPES);
|
||||
for (int i = 0; i < SMESH::NB_ELEMENT_TYPES; i++)
|
||||
aRes[ i ] = ( i == _type ) ? _ids.length() : 0;
|
||||
return aRes._retn();
|
||||
}
|
||||
SMESH::SMESH_Mesh_ptr GetMesh() { return SMESH::SMESH_Mesh::_duplicate( _mesh ); }
|
||||
bool IsMeshInfoCorrect() { return true; }
|
||||
SMESH::array_of_ElementType* GetTypes()
|
||||
@ -756,6 +764,18 @@ bool SMESH_MeshEditor_i::IsTemporaryIDSource( SMESH::SMESH_IDSource_ptr& idSourc
|
||||
return SMESH::DownCast<SMESH_MeshEditor_i::_IDSource*>( idSource );
|
||||
}
|
||||
|
||||
CORBA::Long* SMESH_MeshEditor_i::GetTemporaryIDs( SMESH::SMESH_IDSource_ptr& idSource,
|
||||
int& nbIds)
|
||||
{
|
||||
if ( _IDSource* tmpIdSource = SMESH::DownCast<SMESH_MeshEditor_i::_IDSource*>( idSource ))
|
||||
{
|
||||
nbIds = (int) tmpIdSource->_ids.length();
|
||||
return & tmpIdSource->_ids[0];
|
||||
}
|
||||
nbIds = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SMESH_MeshEditor_i::deleteAuxIDSources()
|
||||
{
|
||||
std::list< _IDSource* >::iterator idSrcIt = myAuxIDSources.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user