// 1) Copy all properties of view
-#ifdef V2_2_IMP
// These two methods should be called before copyPreferences()
// because they do nothing if the mode is not changed.
newVF->setHorScaleMode( clonedVF->getHorScaleMode() );
newVF->setVerScaleMode( clonedVF->getVerScaleMode() );
-#endif
newVF->copyPreferences( clonedVF );
-#ifdef V2_2_IMP
newVF->setSecondY( clonedVF->getSecondY() );
-#endif
// 2) Display all curves displayed in cloned view
if( clonedVF->isVisible( *anIt ) )
newVF->displayCurve( *anIt, false );
-#ifdef V2_2_IMP
newVF->updateTitles( false );
-#endif
// 3) Copy range of the cloned view
-#ifdef V2_2_IMP
double aXMin, aXMax, aYMin, aYMax, aY2Min, aY2Max;
clonedVF->getFitRanges( aXMin, aXMax, aYMin, aYMax, aY2Min, aY2Max );
newVF->fitData( 0, aXMin, aXMax, aYMin, aYMax, aY2Min, aY2Max );
-#endif
newVF->Repaint();
}
}
-#ifdef V2_2_IMP
SVTK_RenderWindowInteractor* anInteractor = GetInteractor();
connect( anInteractor, SIGNAL( MouseMove( QMouseEvent* ) ), this, SLOT( onMouseMove( QMouseEvent* ) ) );
connect( anInteractor, SIGNAL( MouseButtonPressed( QMouseEvent* ) ), this, SLOT( onMouseButtonPressed( QMouseEvent* ) ) );
myStandardInteractorStyle->SetIsSelectionEnabled( false );
myKeyFreeInteractorStyle->SetIsSelectionEnabled( false );
-#endif
if( vtkRenderer* aRenderer = getRenderer() )
aRenderer->AddActor( myScalarBarActor.GetPointer() );
mySize = new QSpinBox( this );
mySize->setRange( 8, 24 );
-#ifndef V2_2_IMP
- mySize->hide();
-#endif
myBold = new QCheckBox( tr( "BOLD" ), this );
myItalic = new QCheckBox( tr( "ITALIC" ), this );