vtkFloatingPointType theStepLength,
vtkDataSet* theSource,
vtkFloatingPointType thePercents,
- int theDirection,
- int theIsOnlyTry)
+ int theDirection)
{
vtkDataSet* aDataSet = theSource? theSource: GetMergedInput();
aDataSet->Update();
vtkIdType aNbOfPoints = aDataSet->GetNumberOfPoints();
vtkDataSet* aPointSet = GetExtractorFilter()->GetOutput();
- if(thePercents * aNbOfPoints < 1)
+ if (thePercents * aNbOfPoints < 1)
thePercents = 2.0 / aNbOfPoints;
theIntStep = CorrectIntegrationStep(theIntStep,
aPointSet,
thePercents);
- thePropogationTime = CorrectPropagationTime(thePropogationTime,
+ thePropogationTime = CorrectPropagationTime(thePropogationTime,
aPointSet);
theStepLength = CorrectStepLength(theStepLength,
thePropogationTime,
thePercents);
- if((!theIsOnlyTry && anIsAccepted) || (theIsOnlyTry && anIsAccepted == 1)){
+ if (anIsAccepted) {
mySource = theSource;
myPercents = thePercents;
if(VISU::IsDataOnCells(GetMergedInput())){
vtkTypeMacro(VISU_StreamLinesPL, VISU_DeformedShapePL);
static
- VISU_StreamLinesPL*
+ VISU_StreamLinesPL*
New();
virtual
- size_t
- SetParams(vtkFloatingPointType theIntStep,
+ size_t
+ SetParams(vtkFloatingPointType theIntStep,
vtkFloatingPointType thePropogationTime,
vtkFloatingPointType theStepLength,
- vtkDataSet* theSource = NULL,
+ vtkDataSet* theSource = NULL,
vtkFloatingPointType thePercents = 0.3,
- int theDirection = VTK_INTEGRATE_BOTH_DIRECTIONS,
- int isOnlyTry = false);
+ int theDirection = VTK_INTEGRATE_BOTH_DIRECTIONS);
virtual
vtkDataSet*
//---------------------------------------------------------------
-CORBA::Boolean
+CORBA::Boolean
VISU::StreamLines_i
::SetParams(CORBA::Double theIntStep,
CORBA::Double thePropogationTime,
CORBA::Double theStepLength,
- VISU::Prs3d_ptr thePrs3d,
+ VISU::Prs3d_ptr thePrs3d,
CORBA::Double thePercents,
- VISU::StreamLines::Direction theDirection)
-{
+ VISU::StreamLines::Direction theDirection)
+{
VISU::Prs3d_i* aPrs3d = NULL;
vtkPointSet* aSource = NULL;
- if(!thePrs3d->_is_nil())
- if((aPrs3d = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in()))){
+ if (!thePrs3d->_is_nil())
+ if ((aPrs3d = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in()))) {
myAppendFilter->RemoveAllInputs();
myAppendFilter->AddInput(aPrs3d->GetPipeLine()->GetMapper()->GetInput());
aSource = myAppendFilter->GetOutput();
theStepLength,
aSource,
thePercents,
- theDirection,
- 1);
- if(anIsAccepted)
+ theDirection);
+ if (anIsAccepted)
SetSource(aPrs3d);
return anIsAccepted;
}