mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-29 13:20:48 +05:00
Integrate patch from G.David (for VTK 5.2)
This commit is contained in:
parent
7673a0f5a5
commit
f8703bcbef
@ -399,7 +399,7 @@ SMESH_ActorDef::SMESH_ActorDef()
|
|||||||
|
|
||||||
myPtsLabeledDataMapper = vtkLabeledDataMapper::New();
|
myPtsLabeledDataMapper = vtkLabeledDataMapper::New();
|
||||||
myPtsLabeledDataMapper->SetInput(myPtsSelectVisiblePoints->GetOutput());
|
myPtsLabeledDataMapper->SetInput(myPtsSelectVisiblePoints->GetOutput());
|
||||||
myPtsLabeledDataMapper->SetLabelFormat("%g");
|
myPtsLabeledDataMapper->SetLabelFormat("%u");
|
||||||
myPtsLabeledDataMapper->SetLabelModeToLabelScalars();
|
myPtsLabeledDataMapper->SetLabelModeToLabelScalars();
|
||||||
|
|
||||||
vtkTextProperty* aPtsTextProp = vtkTextProperty::New();
|
vtkTextProperty* aPtsTextProp = vtkTextProperty::New();
|
||||||
@ -440,7 +440,7 @@ SMESH_ActorDef::SMESH_ActorDef()
|
|||||||
|
|
||||||
myClsLabeledDataMapper = vtkLabeledDataMapper::New();
|
myClsLabeledDataMapper = vtkLabeledDataMapper::New();
|
||||||
myClsLabeledDataMapper->SetInput(myClsSelectVisiblePoints->GetOutput());
|
myClsLabeledDataMapper->SetInput(myClsSelectVisiblePoints->GetOutput());
|
||||||
myClsLabeledDataMapper->SetLabelFormat("%g");
|
myClsLabeledDataMapper->SetLabelFormat("%u");
|
||||||
myClsLabeledDataMapper->SetLabelModeToLabelScalars();
|
myClsLabeledDataMapper->SetLabelModeToLabelScalars();
|
||||||
|
|
||||||
vtkTextProperty* aClsTextProp = vtkTextProperty::New();
|
vtkTextProperty* aClsTextProp = vtkTextProperty::New();
|
||||||
@ -593,7 +593,7 @@ void SMESH_ActorDef::SetPointsLabeled( bool theIsPointsLabeled )
|
|||||||
vtkIntArray *anArray = vtkIntArray::New();
|
vtkIntArray *anArray = vtkIntArray::New();
|
||||||
anArray->SetNumberOfValues( aNbElem );
|
anArray->SetNumberOfValues( aNbElem );
|
||||||
|
|
||||||
for ( int anId = 0; anId < aNbElem; anId++ )
|
for ( vtkIdType anId = 0; anId < aNbElem; anId++ )
|
||||||
{
|
{
|
||||||
int aSMDSId = myVisualObj->GetNodeObjId( anId );
|
int aSMDSId = myVisualObj->GetNodeObjId( anId );
|
||||||
anArray->SetValue( anId, aSMDSId );
|
anArray->SetValue( anId, aSMDSId );
|
||||||
@ -1034,8 +1034,8 @@ bool SMESH_ActorDef::IsInfinitive(){
|
|||||||
vtkDataSet *aDataSet = myPickableActor->GetUnstructuredGrid();
|
vtkDataSet *aDataSet = myPickableActor->GetUnstructuredGrid();
|
||||||
aDataSet->Update();
|
aDataSet->Update();
|
||||||
myIsInfinite = aDataSet->GetNumberOfCells() == 0 ||
|
myIsInfinite = aDataSet->GetNumberOfCells() == 0 ||
|
||||||
aDataSet->GetNumberOfCells() == 1 &&
|
( aDataSet->GetNumberOfCells() == 1 &&
|
||||||
aDataSet->GetCell(0)->GetCellType() == VTK_VERTEX;
|
aDataSet->GetCell(0)->GetCellType() == VTK_VERTEX );
|
||||||
return SALOME_Actor::IsInfinitive();
|
return SALOME_Actor::IsInfinitive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user