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];
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;
// 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"
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]),
anIdList->SetId( 1, aNode[1] );
aConnectivity->InsertNextCell( anIdList );
aCellTypesArray->InsertNextValue( VTK_LINE );
- aScalars->SetValue(i,aValue.myLength);
+ aScalars->SetValue(aVtkId,aValue.myLength);
}
}
int aType = GetType();
addRow( myTables[ aType ], aType );
- Table* aTable = myTables[ aType ];
Update();
}
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;
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) );
// Pictures 2d and 3d\r
for ( int i = 0; i < 2; i++ )\r
{\r
- QWidget* aPreview, *aPicture;\r
if ( i == 0 )\r
{\r
myPicture2d = new SMESHGUI_PatternWidget( aPatGrp ),\r
vtkProperty* aProp = vtkProperty::New();\r
aProp->SetRepresentationToWireframe();\r
aProp->SetColor( 250, 0, 250 );\r
- if ( SMESH_Actor* anActor = SMESH::FindActorByObject( myMesh ) )\r
+ if ( SMESH::FindActorByObject( myMesh ) )\r
aProp->SetLineWidth( SMESH::GetFloat( "SMESH:SettingsWidth", 1 ) +1 );\r
else\r
aProp->SetLineWidth( 1 );\r
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] ) );
if ( !myMesh->_is_nil())
{
- bool aResult = false;
try
{
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();