* Gets the type of orientation of the scalar bar (to provide backward compatibility).
*/
Orientation GetBarOrientation();
- };
- /*! \brief Presentation merger interface
- *
- * Presentation parameters of the prsmerger shape presentation.
- */
- interface PrsMerger : ScalarMap {
-
+ /*!
+ * PrsMerger methods
+ */
void SetMeshOnGroup(in string theMeshName,
in string theGroupName);
*
* Presentation parameters of the deformed shape presentation.
*/
- interface DeformedShape : PrsMerger {
+ interface DeformedShape : ScalarMap {
/*!
* Sets the scale of the presentatable object.
* \param theScale Double value defining the scale of this presentable object.
*
* Presentation parameters of the scalar map on deformed shape presentation.
*/
- interface ScalarMapOnDeformedShape : PrsMerger {
+ interface ScalarMapOnDeformedShape : ScalarMap {
/*!
* Sets the source ranges of pipeline
* consists of deforming initial planar mesh according to values assigned to the mesh elements.
* If mesh not planar but volumic one, it is possible to generate intermediate planar mesh.
*/
- interface Plot3D : PrsMerger {
+ interface Plot3D : ScalarMap {
/*!
* This enumeration contains a set of elements defining
* the type of orientation in 3D space of the cutting plane.
* consists of cutting your initial mesh by a definite number of planes. As the
* result you will see these planes which will be cutted by the borders of the mesh.
*/
- interface CutPlanes : PrsMerger {
+ interface CutPlanes : ScalarMap {
/*!
* This enumeration contains a set of elements defining the type of orientation in 3D space
* of the cut planes.
* operation is a regular array of lines in space, belonging to the same plane
* and having the same orientation. They are located inside or on the mesh.
*/
- interface CutLines : PrsMerger {
+ interface CutLines : ScalarMap {
/*!
* Sets the type of orientation in 3D space of the base plane of a cut lines presentation.
* \param theOrientation The orientation of the base plane in 3D space.
* values on the cells and on the basis of them constructs
* isobaric surfaces, which form this presentation.
*/
- interface IsoSurfaces : PrsMerger {
+ interface IsoSurfaces : ScalarMap {
/*!
* Sets the number of isometric surfaces.
* \param theNb A long value defining the number of isometric surfaces
in Entity theEntity, in string theFieldName,
in double theIteration);
- /*!
- * Creates a prs merger presentation.
- * \param theResult Data generated in other sources. (MED object or file)
- * \param theMeshName One of the meshes presented in MED file
- * \param theEntity Type of entity where the field is defined
- * \param theFieldName Group of data attributed to the %MESH. The data can be scalar or vector.
- * \param theIteration Number of iteration on the field
- */
- PrsMerger PrsMergerOnField(in Result theResult, in string theMeshName,
- in Entity theEntity, in string theFieldName,
- in double theIteration);
-
/*!
* Creates a table presentation.
* \param theTableEntry The entry of the table which will be displayed.
return myVisuGen->Plot3DOnField(theResult,theMeshName,theEntity,theFieldName,theIteration);
}
- PrsMerger_ptr VISU_Gen_i::PrsMergerOnField(Result_ptr theResult,
- const char* theMeshName,
- VISU::Entity theEntity,
- const char* theFieldName,
- CORBA::Double theIteration)
- {
- return myVisuGen->PrsMergerOnField(theResult,theMeshName,theEntity,theFieldName,theIteration);
- }
-
Table_ptr VISU_Gen_i::CreateTable(const char* theTableEntry){
return myVisuGen->CreateTable(theTableEntry);
}
(Result_ptr theResult, const char* theMeshName, VISU::Entity theEntity,
const char* theFieldName, CORBA::Double theIteration);
- virtual PrsMerger_ptr PrsMergerOnField
- (Result_ptr theResult, const char* theMeshName, VISU::Entity theEntity,
- const char* theFieldName, CORBA::Double theIteration);
//Create Digital Presentation
virtual Table_ptr CreateTable(const char* theTableEntry);
virtual Curve_ptr CreateCurve(Table_ptr theTable, CORBA::Long theHRow, CORBA::Long theVRow);
void RegistryStorable() {
Storable::Registry(Result_i::myComment.c_str(),&(Result_i::Restore));
Storable::Registry(Mesh_i::myComment.c_str(),&(Restore<Mesh_i>));
- Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore<ScalarMap_i>));
+ // Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore<ScalarMap_i>));
Storable::Registry(GaussPoints_i::myComment.c_str(),&(Restore<GaussPoints_i>));
Storable::Registry(DeformedShape_i::myComment.c_str(),&(Restore<DeformedShape_i>));
Storable::Registry(CutPlanes_i::myComment.c_str(),&(Restore<CutPlanes_i>));
const char* theFieldName,
CORBA::Double theIteration)
{
- return Prs3dOnField<VISU::ScalarMap_i>(theResult,theMeshName,theEntity,theFieldName,theIteration,true)._retn();
+ //return Prs3dOnField<VISU::ScalarMap_i>(theResult,theMeshName,theEntity,theFieldName,theIteration,true)._retn();
+ return Prs3dOnField<VISU::PrsMerger_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
}
GaussPoints_ptr VISU_Gen_i::GaussPointsOnField(Result_ptr theResult,
return Prs3dOnField<VISU::CutLines_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
}
- PrsMerger_ptr VISU_Gen_i::PrsMergerOnField(Result_ptr theResult,
- const char* theMeshName,
- VISU::Entity theEntity,
- const char* theFieldName,
- CORBA::Double theIteration)
- {
- return Prs3dOnField<VISU::PrsMerger_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
- }
-
Table_ptr VISU_Gen_i::CreateTable(const char* theTableEntry){
if(myStudyDocument->GetProperties()->IsLocked())
return Table::_nil();
const char* theFieldName,
CORBA::Double theIteration);
- virtual
- PrsMerger_ptr
- PrsMergerOnField(Result_ptr theResult,
- const char* theMeshName,
- VISU::Entity theEntity,
- const char* theFieldName,
- CORBA::Double theIteration);
-
//Create Digital Presentation
virtual
Table_ptr
namespace VISU{
- class PrsMerger_i : public virtual POA_VISU::PrsMerger,
+ class PrsMerger_i : public virtual POA_VISU::ScalarMap,
public virtual ScalarMap_i
{
virtual SALOMEDS::Color GetColor() { return myColor;}
virtual void SetColor(const SALOMEDS::Color& theColor) { myColor = theColor;}
- typedef VISU::PrsMerger TInterface;
-
VISU_PrsMergerPL* GetPrsMergerPL(){ return myPrsMergerPL;}
protected: