CORBA::Boolean theMinor, CORBA::Long theNumMinor)
{
if (GetViewWindow())
- ProcessVoidEvent(new TEnableGridEvent(myView,&Plot2d_ViewFrame::setXGrid,
- theMajor,theNumMajor,theMinor,theNumMinor));
+ myView->setXGrid(theMajor,theNumMajor,theMinor,theNumMinor);
}
void XYPlot_i::EnableYGrid(CORBA::Boolean theMajor, CORBA::Long theNumMajor,
CORBA::Boolean theMinor, CORBA::Long theNumMinor)
{
- //asl: Plot2d_ViewFrame::setYGrid has more parameters
- //if (GetViewWindow())
- // ProcessVoidEvent(new TEnableGridEvent(myView,&Plot2d_ViewFrame::setYGrid,
- // theMajor,theNumMajor,theMinor,theNumMinor));
+ this->EnableYGrid(theMajor,theNumMajor,theMinor,theNumMinor,
+ false,0,false,0);
}
+ void XYPlot_i::EnableYGrid(CORBA::Boolean theMajor, CORBA::Long theNumMajor,
+ CORBA::Boolean theMinor, CORBA::Long theNumMinor,
+ CORBA::Boolean the2Major, CORBA::Long the2NumMajor,
+ CORBA::Boolean the2Minor, CORBA::Long the2NumMinor)
+ {
+ if (GetViewWindow())
+ myView->setYGrid(theMajor,theNumMajor,theMinor,theNumMinor,
+ the2Major,the2NumMajor,the2Minor,the2NumMinor);
+ }
+
class TSetScaleModeEvent: public SALOME_Event
{
public:
virtual void EnableYGrid (CORBA::Boolean theMajor, CORBA::Long theNumMajor,
CORBA::Boolean theMinor, CORBA::Long theNumMinor);
+ virtual void EnableYGrid (CORBA::Boolean theMajor, CORBA::Long theNumMajor,
+ CORBA::Boolean theMinor, CORBA::Long theNumMinor,
+ CORBA::Boolean the2Major, CORBA::Long the2NumMajor,
+ CORBA::Boolean the2Minor, CORBA::Long the2NumMinor);
+
virtual void SetHorScaling (VISU::Scaling theScaling);
virtual VISU::Scaling GetHorScaling();
virtual void SetVerScaling (VISU::Scaling theScaling);