mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 03:50:34 +05:00
Remove unused variables
This commit is contained in:
parent
a809677ab6
commit
49897c5dfd
@ -958,10 +958,8 @@ bool Length2D::Value::operator<(const Length2D::Value& x) const{
|
||||
void Length2D::GetValues(TValues& theValues){
|
||||
TValues aValues;
|
||||
SMDS_FaceIteratorPtr anIter = myMesh->facesIterator();
|
||||
int i = 0;
|
||||
for(; anIter->more(); ){
|
||||
const SMDS_MeshFace* anElem = anIter->next();
|
||||
long anElemId = anElem->GetID();
|
||||
SMDS_ElemIteratorPtr aNodesIter = anElem->nodesIterator();
|
||||
long aNodeId[2];
|
||||
gp_Pnt P[3];
|
||||
|
@ -106,7 +106,7 @@ namespace SMESH{
|
||||
NumericalFunctor();
|
||||
virtual void SetMesh( SMDS_Mesh* theMesh );
|
||||
virtual double GetValue( long theElementId );
|
||||
virtual double GetValue(const TSequenceOfXYZ& thePoints) {};
|
||||
virtual double GetValue(const TSequenceOfXYZ& thePoints) { return -1.0;};
|
||||
virtual SMDSAbs_ElementType GetType() const = 0;
|
||||
virtual double GetBadRate( double Value, int nbNodes ) const = 0;
|
||||
long GetPrecision() const;
|
||||
|
@ -24,7 +24,7 @@
|
||||
// File : SMESH_Actor.cxx
|
||||
// Author : Nicolas REJNERI
|
||||
// Module : SMESH
|
||||
// $Header$Header: /home/server/cvs/SMESH/SMESH_SRC/src/OBJECT/SMESH_DeviceActor.cxx,v 1.5.2.4 2004/12/27 12:49:55 apo Exp $
|
||||
// $Header$Header$
|
||||
|
||||
|
||||
#include "SMESH_DeviceActor.h"
|
||||
@ -299,8 +299,7 @@ void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
|
||||
anIdList->SetNumberOfIds(2);
|
||||
|
||||
Length2D::TValues::const_iterator anIter = aValues.begin();
|
||||
int i = 0;
|
||||
for(vtkIdType aVtkId; anIter != aValues.end(); anIter++,i++){
|
||||
for(vtkIdType aVtkId = 0; anIter != aValues.end(); anIter++,aVtkId++){
|
||||
const Length2D::Value& aValue = *anIter;
|
||||
int aNode[2] = {
|
||||
myVisualObj->GetNodeVTKId(aValue.myPntId[0]),
|
||||
@ -311,7 +310,7 @@ void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
|
||||
anIdList->SetId( 1, aNode[1] );
|
||||
aConnectivity->InsertNextCell( anIdList );
|
||||
aCellTypesArray->InsertNextValue( VTK_LINE );
|
||||
aScalars->SetValue(i,aValue.myLength);
|
||||
aScalars->SetValue(aVtkId,aValue.myLength);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -906,7 +906,6 @@ void SMESHGUI_FilterTable::onAddBtn()
|
||||
int aType = GetType();
|
||||
addRow( myTables[ aType ], aType );
|
||||
|
||||
Table* aTable = myTables[ aType ];
|
||||
Update();
|
||||
}
|
||||
|
||||
@ -1348,9 +1347,6 @@ SMESHGUI_FilterTable::Table* SMESHGUI_FilterTable::createTable( QWidget* thePar
|
||||
static int aLenCr = abs( aMaxLenCr -
|
||||
aMetrics.width( tr( "CRITERION" ) ) ) / aMetrics.width( ' ' ) + 5;
|
||||
|
||||
static int aLenCo = abs( maxLength( getCompare(), aMetrics ) -
|
||||
aMetrics.width( tr( "COMPARE" ) ) ) / aMetrics.width( ' ' ) + 5;
|
||||
|
||||
QString aCrStr;
|
||||
aCrStr.fill( ' ', aLenCr );
|
||||
QString aCoStr;
|
||||
@ -2319,7 +2315,7 @@ void SMESHGUI_FilterDlg::filterSelectionSource( const int theType,
|
||||
|
||||
if ( aSelMap.Extent() > 0 )
|
||||
{
|
||||
if(SMESH_Actor *anActor = SMESH::FindActorByEntry( anIter.Key()->getEntry() ) )
|
||||
if( SMESH::FindActorByEntry( anIter.Key()->getEntry() ) )
|
||||
{
|
||||
for ( int i = 1; i <= aSelMap.Extent(); i++ )
|
||||
aToBeFiltered.Add( aSelMap(i) );
|
||||
|
@ -176,7 +176,6 @@ QFrame* SMESHGUI_MeshPatternDlg::createMainFrame( QWidget* theParent )
|
||||
// Pictures 2d and 3d
|
||||
for ( int i = 0; i < 2; i++ )
|
||||
{
|
||||
QWidget* aPreview, *aPicture;
|
||||
if ( i == 0 )
|
||||
{
|
||||
myPicture2d = new SMESHGUI_PatternWidget( aPatGrp ),
|
||||
@ -798,7 +797,7 @@ void SMESHGUI_MeshPatternDlg::displayPreview()
|
||||
vtkProperty* aProp = vtkProperty::New();
|
||||
aProp->SetRepresentationToWireframe();
|
||||
aProp->SetColor( 250, 0, 250 );
|
||||
if ( SMESH_Actor* anActor = SMESH::FindActorByObject( myMesh ) )
|
||||
if ( SMESH::FindActorByObject( myMesh ) )
|
||||
aProp->SetLineWidth( SMESH::GetFloat( "SMESH:SettingsWidth", 1 ) +1 );
|
||||
else
|
||||
aProp->SetLineWidth( 1 );
|
||||
|
@ -602,7 +602,6 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
|
||||
myActor = anActor;
|
||||
vtkScalarBarActor* myScalarBarActor = myActor->GetScalarBarActor();
|
||||
|
||||
double aMin = 0.0, aMax = 0.0;
|
||||
if ( myScalarBarActor->GetLookupTable() ) {
|
||||
float *range = myScalarBarActor->GetLookupTable()->GetRange();
|
||||
myMinEdit->setText( QString::number( range[0] ) );
|
||||
|
@ -246,7 +246,6 @@ void SMESHGUI_RenumberingDlg::ClickOnApply()
|
||||
|
||||
if ( !myMesh->_is_nil())
|
||||
{
|
||||
bool aResult = false;
|
||||
try
|
||||
{
|
||||
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
|
||||
|
Loading…
Reference in New Issue
Block a user