/*! Gets existing fields for the given mesh name and entity */
EntityNames GetFields(in EntityName theMeshName, in Entity theEntity);
- /*! Gets existing fields for the given mesh name, entity and name of field */
+ /*! Gets number of components for the given mesh name, entity and name of field */
+ long GetNumberOfComponents(in EntityName theMeshName, in Entity theEntity, in EntityName theFieldName);
+
+ /*! Gets existing numbers of time stamps for the given mesh name, entity and name of field */
TimeStampNumbers GetTimeStampNumbers(in EntityName theMeshName, in Entity theEntity, in EntityName theFieldName);
/*! Gets existing parts of multi resolution structure for the given mesh name */
return anEntities._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::EntityNames*
VISU::Result_i
::GetFamilies(const char* theMeshName,
return aResult._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::EntityNames*
VISU::Result_i
::GetGroups(const char* theMeshName)
return aResult._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::EntityNames*
VISU::Result_i
::GetFields(const char* theMeshName,
return aResult._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::TimeStampNumbers*
VISU::Result_i
::GetTimeStampNumbers(const char* theMeshName,
return aResult._retn();
}
+
+//---------------------------------------------------------------
+CORBA::Long
+VISU::Result_i
+::GetNumberOfComponents(const char* theMeshName,
+ VISU::Entity theEntity,
+ const char* theFieldName)
+{
+ CORBA::Long aResult = 0;
+ const VISU::TMeshMap& aMeshMap = GetInput()->GetMeshMap();
+ if(aMeshMap.empty())
+ return aResult;
+
+ VISU::TMeshMap::const_iterator anIter = aMeshMap.find(theMeshName);
+ if(anIter == aMeshMap.end())
+ return aResult;
+
+ const VISU::PMesh& aMesh = anIter->second;
+ const VISU::TMeshOnEntityMap& aMeshOnEntityMap = aMesh->myMeshOnEntityMap;
+ if(aMeshOnEntityMap.empty())
+ return aResult;
+
+ {
+ VISU::TEntity anEntity = VISU::TEntity(theEntity);
+ VISU::TMeshOnEntityMap::const_iterator anIter = aMeshOnEntityMap.find(anEntity);
+ if(anIter == aMeshOnEntityMap.end())
+ return aResult;
+
+ const VISU::PMeshOnEntity& aMeshOnEntity = anIter->second;
+ const VISU::TFieldMap& aFieldMap = aMeshOnEntity->myFieldMap;
+ if(aFieldMap.empty())
+ return aResult;
+
+ {
+ VISU::TFieldMap::const_iterator anIter = aFieldMap.find(theFieldName);
+ if(anIter == aFieldMap.end())
+ return aResult;
+
+ {
+ const VISU::PField& aField = anIter->second;
+ aResult = aField->myNbComp;
+ }
+ }
+ }
+
+ return aResult;
+}
+
+
+//---------------------------------------------------------------
VISU::Result::EntityNames*
VISU::Result_i
::GetPartNames(const char* theMeshName)
return aResult._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::Resolutions*
VISU::Result_i
::GetResolutions(const char* theMeshName,
return aResult._retn();
}
+
+//---------------------------------------------------------------
VISU::Result::Resolution
VISU::Result_i
::GetResolution(const char* theMeshName,
return VISU::Result::HIDDEN;
}
+
+//---------------------------------------------------------------
void
VISU::Result_i
::SetResolution(const char* theMeshName,