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