#include "VISU_SelectVisiblePoints.h"
#include "VISU_PipeLine.hxx"
+#include "VISU_UsedPointsFilter.hxx"
#include "SVTK_Actor.h"
#include "SVTK_Event.h"
myValCellCenters = VTKViewer_CellCenters::New();
myValCellCenters->SetInput(myValLblDataSet);
+ myValUsedPoints = VISU_UsedPointsFilter::New();
+ myValUsedPoints->SetInput(myValLblDataSet);
+
myValMaskPoints = vtkMaskPoints::New();
myValMaskPoints->SetInput(myValCellCenters->GetOutput());
myValMaskPoints->SetOnRatio(1);
myValLabeledDataMapper->Delete();
myValSelectVisiblePoints->Delete();
myValMaskPoints->Delete();
+ myValUsedPoints->Delete();
myValCellCenters->Delete();
myValLabels->Delete();
myValMaskPoints->SetInput( myValCellCenters->GetOutput() );
}
else if ( isOnPnt )
- myValMaskPoints->SetInput( aDataSet );
+ {
+ myValUsedPoints->SetInput( aDataSet );
+ myValMaskPoints->SetInput( myValUsedPoints->GetOutput() );
+ }
myValLabels->SetVisibility( GetVisibility() );
}
class VTKViewer_FramedTextActor;
class VISU_SelectVisiblePoints;
+class VISU_UsedPointsFilter;
#if !defined(VTK_XVERSION)
#define VTK_XVERSION (VTK_MAJOR_VERSION<<16)+(VTK_MINOR_VERSION<<8)+(VTK_BUILD_VERSION)
vtkActor2D* myValLabels;
vtkMaskPoints* myValMaskPoints;
VTKViewer_CellCenters* myValCellCenters;
+ VISU_UsedPointsFilter* myValUsedPoints;
vtkLabeledDataMapper* myValLabeledDataMapper;
VISU_SelectVisiblePoints* myValSelectVisiblePoints;
};
VISU_IsoSurfacesPL.hxx \
VISU_DeformedShapePL.hxx \
VISU_VectorsPL.hxx \
- VISU_Streamer.hxx \
- VISU_StreamLine.hxx \
VISU_StreamLinesPL.hxx \
VISU_LookupTable.hxx \
VISU_ScalarBarActor.hxx \
VISU_IsoSurfacesPL.cxx \
VISU_DeformedShapePL.cxx \
VISU_VectorsPL.cxx \
- VISU_Streamer.cxx \
- VISU_StreamLine.cxx \
VISU_StreamLinesPL.cxx \
VISU_LookupTable.cxx \
VISU_ScalarBarActor.cxx \
//#include "VISU_UsedPointsFilter.hxx"
#include "VISU_MaskPointsFilter.hxx"
#include "VISU_PipeLineUtils.hxx"
-#include "VISU_StreamLine.hxx"
#include "VTKViewer_CellCenters.h"
#include "VTKViewer_GeometryFilter.h"
#include <vtkCell.h>
#include <vtkDataSet.h>
+#include <vtkStreamLine.h>
#ifdef _DEBUG_
static int MYDEBUG = 0;
SetIsShrinkable(false);
SetIsFeatureEdgesAllowed(false);
- myStream = VISU_StreamLine::New();
+ myStream = vtkStreamLine::New();
myCenters = VTKViewer_CellCenters::New();
myGeomFilter = VTKViewer_GeometryFilter::New();
myPointsFilter = VISU_MaskPointsFilter::New();
class VTKViewer_CellCenters;
class VTKViewer_GeometryFilter;
class VISU_MaskPointsFilter;
-class VISU_StreamLine;
+class vtkStreamLine;
//----------------------------------------------------------------------------
vtkFloatingPointType
GetUsedPointsDefault();
- VISU_StreamLine* myStream;
+ vtkStreamLine* myStream;
vtkPointSet* mySource;
VTKViewer_CellCenters* myCenters;
VTKViewer_GeometryFilter *myGeomFilter;
{
}
-static const double VTK_EPSILON=1E-7;
+static const double VTK_EPSILON=1E-12;
VTK_THREAD_RETURN_TYPE VISU_Streamer::ThreadedIntegrate( void *arg )
{
VisuGUI::createPreferences();
createGaussPointsPreferences();
- createInsideCursorPreferences();
- createOutsideCursorPreferences();
+ //createInsideCursorPreferences();
+ //createOutsideCursorPreferences();
createPickingPreferences();
// createSpaceMousePreferences();
//createRecorderPreferences();
( int )( aColor[2] * 255.0 ) ) );
myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() );
- myTransparencySpinBox->setValue( int(aPickingSettings->GetInfoWindowTransparency() * 100.0) );
+ vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0;
+ myTransparencySpinBox->setValue( (int) transparency );
myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() );
myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() );
myZoomFactorSpinBox->setValue( aPickingSettings->GetZoomFactor() );
void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize )
{
- myOutsideSizeSpinBox->setValue( ( int )( theOutsideSize * 100 ) );
+ theOutsideSize*=100.;
+ myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize );
}
float VisuGUI_SizeBox::getGeomSize() const
void VisuGUI_SizeBox::setGeomSize( float theGeomSize )
{
- myGeomSizeSpinBox->setValue( ( int )( theGeomSize * 100 ) );
+ theGeomSize*=100.;
+ myGeomSizeSpinBox->setValue( ( int ) theGeomSize );
}
float VisuGUI_SizeBox::getMinSize() const
void VisuGUI_SizeBox::setMinSize( float theMinSize )
{
- myMinSizeSpinBox->setValue( ( int )( theMinSize * 100 ) );
+ theMinSize*=100.;
+ myMinSizeSpinBox->setValue( ( int ) theMinSize );
}
float VisuGUI_SizeBox::getMaxSize() const
void VisuGUI_SizeBox::setMaxSize( float theMaxSize )
{
- myMaxSizeSpinBox->setValue( ( int )( theMaxSize * 100 ) );
+ theMaxSize*=100.;
+ myMaxSizeSpinBox->setValue( (int) theMaxSize );
}
float VisuGUI_SizeBox::getMagnification() const
void VisuGUI_SizeBox::setMagnification( float theMagnification )
{
- myMagnificationSpinBox->setValue( ( int )( theMagnification * 100 ) );
+ theMagnification*=100.;
+ myMagnificationSpinBox->setValue( (int) theMagnification );
}
float VisuGUI_SizeBox::getIncrement() const