TCONTAINER, /*!< Container object used for storing a set of curve lines */
TMESH, /*!< Meshing object */
TSCALARMAP, /*!< Scalarmap 3D presentation object */
- TISOSURFACE, /*!< Iso surface 3D presentation object */
+ TISOSURFACES, /*!< Iso surface 3D presentation object */
TDEFORMEDSHAPE, /*!< Deformed shape 3D presentation object */
TSCALARMAPONDEFORMEDSHAPE, /*!< Scalar map on deformed shape 3D presentation object */
TGAUSSPOINTS, /*!< Gauss Points 3D presentation object */
- TPRSMERGER, /*!< PRS merger 3D presentation object */
TPLOT3D, /*!< Plot3D 3D presentation object */
TCUTPLANES, /*!< Cut planes 3D presentation object */
TCUTLINES, /*!< Cut lines 3D presentation object */
case VISU::TCUTLINES:
TSameAsFactory<VISU::TCUTLINES>().Create(aColoredPrs3d, ColoredPrs3d_i::EPublishUnderTimeStamp);
break;
- case VISU::TISOSURFACE:
- TSameAsFactory<VISU::TISOSURFACE>().Create(aColoredPrs3d, ColoredPrs3d_i::EPublishUnderTimeStamp);
+ case VISU::TISOSURFACES:
+ TSameAsFactory<VISU::TISOSURFACES>().Create(aColoredPrs3d, ColoredPrs3d_i::EPublishUnderTimeStamp);
break;
case VISU::TSTREAMLINES:
TSameAsFactory<VISU::TSTREAMLINES>().Create(aColoredPrs3d, ColoredPrs3d_i::EPublishUnderTimeStamp);
tr("MEN_EDIT_PRS"), "", 0, aParent, false,
this, SLOT(OnEditCutLines()));
- createAction( VISU_EDIT_ISOSURFACE, tr("MEN_EDIT_PRS"), QIconSet(),
+ createAction( VISU_EDIT_ISOSURFACES, tr("MEN_EDIT_PRS"), QIconSet(),
tr("MEN_EDIT_PRS"), "", 0, aParent, false,
this, SLOT(OnEditIsoSurfaces()));
mgr->insert( action( VISU_EDIT_DEFORMEDSHAPE ), -1, -1, -1 );
mgr->insert( action( VISU_EDIT_CUTPLANES ), -1, -1, -1 );
mgr->insert( action( VISU_EDIT_CUTLINES ), -1, -1, -1 );
- mgr->insert( action( VISU_EDIT_ISOSURFACE ), -1, -1, -1 );
+ mgr->insert( action( VISU_EDIT_ISOSURFACES ), -1, -1, -1 );
mgr->insert( action( VISU_EDIT_VECTORS ), -1, -1, -1 );
mgr->insert( action( VISU_EDIT_STREAMLINES ), -1, -1, -1 );
mgr->insert( action( VISU_EDIT_PLOT3D ), -1, -1, -1 );
// Rules
- QString aPrsAll ("'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
+ QString aPrsAll ("'VISU::TSCALARMAP' 'VISU::TISOSURFACES' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
"'VISU::TCUTLINES' 'VISU::TVECTORS' 'VISU::TSTREAMLINES' 'VISU::TPLOT3D' "
"'VISU::TSCALARMAPONDEFORMEDSHAPE' 'VISU::TCOLOREDPRS3DHOLDER'");
QString aPrsType = " and $type in {'VISU::TMESH' " + aPrsAll + "}";
QString aInsideType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TDEFORMEDSHAPE'}";
QString aSurfFrameType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP''VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
- QString aSurfType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
+ QString aSurfType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACES' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
" 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
QString aShrinkType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TDEFORMEDSHAPE' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
- QString aLineType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' "
+ QString aLineType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TSCALARMAP' 'VISU::TISOSURFACES' 'VISU::TDEFORMEDSHAPE' "
"'VISU::TCUTPLANES' 'VISU::TCUTLINES' 'VISU::TSTREAMLINES' 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE' }";
aRule = "selcount=1";
"selcount=1 and type='VISU::TCUTPLANES'", true );
mgr->setRule( action( VISU_EDIT_CUTLINES ),
"selcount=1 and type='VISU::TCUTLINES'", true );
- mgr->setRule( action( VISU_EDIT_ISOSURFACE ),
- "selcount=1 and type='VISU::TISOSURFACE'", true );
+ mgr->setRule( action( VISU_EDIT_ISOSURFACES ),
+ "selcount=1 and type='VISU::TISOSURFACES'", true );
mgr->setRule( action( VISU_EDIT_VECTORS ),
"selcount=1 and type='VISU::TVECTORS'", true );
mgr->setRule( action( VISU_EDIT_STREAMLINES ),
#define VISU_EDIT_DEFORMEDSHAPE 40621
#define VISU_EDIT_CUTPLANES 40622
#define VISU_EDIT_CUTLINES 40623
-#define VISU_EDIT_ISOSURFACE 40624
+#define VISU_EDIT_ISOSURFACES 40624
#define VISU_EDIT_VECTORS 40625
#define VISU_EDIT_STREAMLINES 40626
#define VISU_EDIT_PLOT3D 40627
myScalarPane = new VisuGUI_ScalarBarPane(this, false);
myIsoPane->setScalarBarPane(myScalarPane);
myScalarPane->setMargin( 5 );
- myInputPane = new VisuGUI_InputPane(VISU::TISOSURFACE, theModule, this);
+ myInputPane = new VisuGUI_InputPane(VISU::TISOSURFACES, theModule, this);
myTabBox->addTab(myScalarPane, "Scalar Bar");
myTabBox->addTab(myInputPane, "Input");
void VisuGUI_IsoSurfacesDlg::initFromPrsObject(VISU::ColoredPrs3d_i* thePrs, bool theInit)
{
if( theInit )
- myPrsCopy = VISU::TSameAsFactory<VISU::TISOSURFACE>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
+ myPrsCopy = VISU::TSameAsFactory<VISU::TISOSURFACES>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
myScalarPane->initFromPrsObject(myPrsCopy);
myIsoPane->initFromPrsObject(myPrsCopy);
anIsOk &= myScalarPane->storeToPrsObject( myPrsCopy );
anIsOk &= myIsoPane->storeToPrsObject( myPrsCopy );
- VISU::TSameAsFactory<VISU::TISOSURFACE>().Copy(thePrs, myPrsCopy);
+ VISU::TSameAsFactory<VISU::TISOSURFACES>().Copy(thePrs, myPrsCopy);
return anIsOk;
}
ENUM2STRING( aResStr, VISU::TCONTAINER );
ENUM2STRING( aResStr, VISU::TMESH );
ENUM2STRING( aResStr, VISU::TSCALARMAP );
- ENUM2STRING( aResStr, VISU::TISOSURFACE );
+ ENUM2STRING( aResStr, VISU::TISOSURFACES );
ENUM2STRING( aResStr, VISU::TDEFORMEDSHAPE );
ENUM2STRING( aResStr, VISU::TSCALARMAPONDEFORMEDSHAPE );
ENUM2STRING( aResStr, VISU::TCUTPLANES );
//------------------------------------------------------------------------
enum PrsComboItem {
TSCALARMAP_ITEM = 0, // VISU::TSCALARMAP
- TISOSURFACE_ITEM = 1, // VISU::TISOSURFACE
+ TISOSURFACES_ITEM = 1, // VISU::TISOSURFACES
TCUTPLANES_ITEM = 2, // VISU::TCUTPLANES
TCUTLINES_ITEM = 3, // VISU::TCUTLINES
TPLOT3D_ITEM = 4, // VISU::TPLOT3D
myComboId2TypeId.push_back(TSCALARMAP_ITEM);;
myTypeCombo->insertItem("Iso Surfaces"); // item 1
- myTypeId2ComboId[TISOSURFACE_ITEM] = myComboId2TypeId.size();
- myComboId2TypeId.push_back(TISOSURFACE_ITEM);;
+ myTypeId2ComboId[TISOSURFACES_ITEM] = myComboId2TypeId.size();
+ myComboId2TypeId.push_back(TISOSURFACES_ITEM);;
myTypeCombo->insertItem("Cut Planes"); // item 2
myTypeId2ComboId[TCUTPLANES_ITEM] = myComboId2TypeId.size();
case VISU::TSCALARMAP: //Scalar Map
myTypeCombo->setCurrentItem(myTypeId2ComboId[TSCALARMAP_ITEM]);
break;
- case VISU::TISOSURFACE: //Iso Surfaces
- myTypeCombo->setCurrentItem(myTypeId2ComboId[TISOSURFACE_ITEM]);
+ case VISU::TISOSURFACES: //Iso Surfaces
+ myTypeCombo->setCurrentItem(myTypeId2ComboId[TISOSURFACES_ITEM]);
break;
case VISU::TCUTPLANES: //Cut Planes
myTypeCombo->setCurrentItem(myTypeId2ComboId[TCUTPLANES_ITEM]);
case TSCALARMAP_ITEM: //Scalar Map
aData.myPrsType = VISU::TSCALARMAP;
break;
- case TISOSURFACE_ITEM: //Iso Surfaces
- aData.myPrsType = VISU::TISOSURFACE;
+ case TISOSURFACES_ITEM: //Iso Surfaces
+ aData.myPrsType = VISU::TISOSURFACES;
break;
case TCUTPLANES_ITEM: //Cut Planes
aData.myPrsType = VISU::TCUTPLANES;
c.suspend();
EditPrs<VISU::ScalarMap_i,VisuGUI_ScalarBarDlg>(myModule,aData,myAnimator);
break;
- case TISOSURFACE_ITEM: //Iso Surfaces
+ case TISOSURFACES_ITEM: //Iso Surfaces
c.suspend();
EditPrs<VISU::IsoSurfaces_i,VisuGUI_IsoSurfacesDlg>(myModule,aData,myAnimator);
break;
VISU::VISUType aType = aVisuObj->GetType();
switch (aType) {
case VISU::TSCALARMAP:
- case VISU::TISOSURFACE:
+ case VISU::TISOSURFACES:
case VISU::TDEFORMEDSHAPE:
case VISU::TCUTPLANES:
case VISU::TCUTLINES:
else if ( aComment == "PRSMERGER" )
aVISUType = VISU::TSCALARMAP;
else if ( aComment == "ISOSURFACE" )
- aVISUType = VISU::TISOSURFACE;
+ aVISUType = VISU::TISOSURFACES;
else if ( aComment == "DEFORMEDSHAPE" )
aVISUType = VISU::TDEFORMEDSHAPE;
else if ( aComment == "SCALARMAPONDEFORMEDSHAPE" )
return VISU::CreatePrs3dByEnum<TDEFORMEDSHAPE>(theStudy, thePublishInStudyMode);
case TSCALARMAPONDEFORMEDSHAPE:
return VISU::CreatePrs3dByEnum<TSCALARMAPONDEFORMEDSHAPE>(theStudy, thePublishInStudyMode);
- case TISOSURFACE:
- return VISU::CreatePrs3dByEnum<TISOSURFACE>(theStudy, thePublishInStudyMode);
+ case TISOSURFACES:
+ return VISU::CreatePrs3dByEnum<TISOSURFACES>(theStudy, thePublishInStudyMode);
case TSTREAMLINES:
return VISU::CreatePrs3dByEnum<TSTREAMLINES>(theStudy, thePublishInStudyMode);
case TPLOT3D:
case TSCALARMAPONDEFORMEDSHAPE:
aMemory = CheckIsPossible<TSCALARMAPONDEFORMEDSHAPE>(theInput, theMemoryCheck);
break;
- case TISOSURFACE:
- aMemory = CheckIsPossible<TISOSURFACE>(theInput, theMemoryCheck);
+ case TISOSURFACES:
+ aMemory = CheckIsPossible<TISOSURFACES>(theInput, theMemoryCheck);
break;
case TSTREAMLINES:
aMemory = CheckIsPossible<TSTREAMLINES>(theInput, theMemoryCheck);
TList<TInt2Type<TSTREAMLINES>,
TList<TInt2Type<TGAUSSPOINTS>,
TList<TInt2Type<TSCALARMAP>,
- TList<TInt2Type<TISOSURFACE>,
+ TList<TInt2Type<TISOSURFACES>,
TList<TInt2Type<TCUTPLANES>,
TList<TInt2Type<TCUTLINES>,
TList<TInt2Type<TVECTORS>,
theStr<<thePrefix<<"pass"<<endl<<endl;
}
return;
- case VISU::TISOSURFACE:
+ case VISU::TISOSURFACES:
if(IsoSurfaces_i* aServant = dynamic_cast<IsoSurfaces_i*>(GetServant(anObj).in())){
thePrefix = ScalarMapToPython(theSObject,aServant,theStr,aName,"IsoSurfacesOnField",theArgumentName,thePrefix);
theStr<<thePrefix<<aName<<".SetNbSurfaces("<<aServant->GetNbSurfaces()<<")"<<endl;
VISU::VISUType
GetType()
{
- return VISU::TISOSURFACE;
+ return VISU::TISOSURFACES;
}
virtual
}
}
}
- if (theData.myPrsType == VISU::TISOSURFACE)
+ if (theData.myPrsType == VISU::TISOSURFACES)
for (long aFrameId = 0; aFrameId < theData.myNbFrames; aFrameId++)
if (VISU::IsoSurfaces_i* aPrs = dynamic_cast<VISU::IsoSurfaces_i*>(theData.myPrs[aFrameId]))
aPrs->SetSubRange(aMin, aMax);
myTimeMinVal,
myTimeMaxVal);
break;
- case VISU::TISOSURFACE: // Iso Surfaces
+ case VISU::TISOSURFACES: // Iso Surfaces
GeneratePresentations<IsoSurfaces_i>(myStudy,
aData,
aResult,
double aMax = getMaxFieldsValue(myFieldsLst);
for (int i = 0; i < getNbFields(); i++)
for(long aFrameId = 0; aFrameId < myFieldsLst[i].myNbFrames; aFrameId++)
- if (aData.myPrsType == VISU::TISOSURFACE) {
+ if (aData.myPrsType == VISU::TISOSURFACES) {
if (VISU::IsoSurfaces_i* aPrs = dynamic_cast<VISU::IsoSurfaces_i*>(myFieldsLst[i].myPrs[aFrameId]))
aPrs->SetSubRange(aMin, aMax);
}
case VISU::TSCALARMAP:
aPrsCmt = VISU::ScalarMap_i::myComment;
break;
- case VISU::TISOSURFACE:
+ case VISU::TISOSURFACES:
aPrsCmt = VISU::IsoSurfaces_i::myComment;
break;
case VISU::TCUTPLANES:
if (strName == VISU::ScalarMap_i::myComment.c_str())
aData.myPrsType = VISU::TSCALARMAP;
else if (strName == VISU::IsoSurfaces_i::myComment.c_str())
- aData.myPrsType = VISU::TISOSURFACE;
+ aData.myPrsType = VISU::TISOSURFACES;
else if (strName == VISU::CutPlanes_i::myComment.c_str())
aData.myPrsType = VISU::TCUTPLANES;
else if (strName == VISU::CutLines_i::myComment.c_str())
aSObj = aSObj.FindSubObject(3)[1]
aSObj = aSObj.FindSubObject(2)[1]
anAnim.addField(aSObj)
-anAnim.setPresentationType(0,VISU.TISOSURFACE)
+anAnim.setPresentationType(0,VISU.TISOSURFACES)
print "Generate presentations"
anAnim.generatePresentations(0)
print "Generate frames"
aSObj = aSObj.FindSubObject(3)[1]
aSObj = aSObj.FindSubObject(2)[1]
anAnim.addField(aSObj)
-anAnim.setPresentationType(0,VISU.TISOSURFACE)
+anAnim.setPresentationType(0,VISU.TISOSURFACES)
print "Generate presentations"
anAnim.generatePresentations(0)
print "Generate frames"
else :
aVISUObjList.append(aPrsObj)
- if HasValue(thePrsTypeList,VISU.TISOSURFACE) :
+ if HasValue(thePrsTypeList,VISU.TISOSURFACES) :
print " Creating IsoSurfacesOnField",
aPrsObj = theVisu.IsoSurfacesOnField(theResult,aMeshName,anEntity,aFieldName,aTimeStampId)
if aPrsObj is None : print "Error"
print ",OK"
theView.DisplayOnly(aPrsObj)
theView.FitAll()
- aPictureName = thePictureDir + aMeshNamePic + "_" + anEntityId + "_" + aFieldName + "_" + str(aTimeStampId) + "_TISOSURFACE." + thePictureExt
+ aPictureName = thePictureDir + aMeshNamePic + "_" + anEntityId + "_" + aFieldName + "_" + str(aTimeStampId) + "_TISOSURFACES." + thePictureExt
aPictureName = re.sub("\s+","_", aPictureName);
theView.SavePicture(aPictureName)
if theIsAutoDelete :
PRS3D_TYPE_LIST = []
PRS3D_TYPE_LIST.append(VISU.TGAUSSPOINTS)
PRS3D_TYPE_LIST.append(VISU.TSCALARMAP)
-PRS3D_TYPE_LIST.append(VISU.TISOSURFACE)
+PRS3D_TYPE_LIST.append(VISU.TISOSURFACES)
PRS3D_TYPE_LIST.append(VISU.TCUTPLANES)
PRS3D_TYPE_LIST.append(VISU.TCUTLINES)
PRS3D_TYPE_LIST.append(VISU.TPLOT3D)
return myVisu.GaussPointsOnField
if theVISUType == VISU.TSCALARMAP:
return myVisu.ScalarMapOnField
- if theVISUType == VISU.TISOSURFACE:
+ if theVISUType == VISU.TISOSURFACES:
return myVisu.IsoSurfacesOnField
if theVISUType == VISU.TCUTPLANES:
return myVisu.CutPlanesOnField
PRS3D_TYPE_LIST = []
PRS3D_TYPE_LIST.append(VISU.TGAUSSPOINTS)
PRS3D_TYPE_LIST.append(VISU.TSCALARMAP)
-PRS3D_TYPE_LIST.append(VISU.TISOSURFACE)
+PRS3D_TYPE_LIST.append(VISU.TISOSURFACES)
PRS3D_TYPE_LIST.append(VISU.TCUTPLANES)
PRS3D_TYPE_LIST.append(VISU.TCUTLINES)
PRS3D_TYPE_LIST.append(VISU.TPLOT3D)
aSObj = aSObj.FindSubObject(3)[1]
aSObj = aSObj.FindSubObject(2)[1]
anAnim.addField(aSObj)
-anAnim.setPresentationType(0,VISU.TISOSURFACE)
+anAnim.setPresentationType(0,VISU.TISOSURFACES)
print "Generate presentations"
anAnim.generatePresentations(0)
print "Generate frames"