1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : VISU_Tools.h
21 // Author : Oleg UVAROV
27 #include "VISUConfig.hh"
32 #include <SALOMEDSClient_Study.hxx>
35 class Plot2d_ViewFrame;
36 class SalomeApp_Study;
37 class SalomeApp_Application;
48 /*! Display/Erase/Update a curve presentation.
49 * Parameter \a frame may be NULL, in this case there is only update without display/erase
51 VISU_I_EXPORT void UpdateCurve( VISU::Curve_i*,
56 VISU_I_EXPORT void PlotTable( SalomeApp_Study*,
61 VISU_I_EXPORT void PlotCurve( Plot2d_ViewFrame*,
65 VISU_I_EXPORT void PlotRemoveCurve(SalomeApp_Application*,
68 VISU_I_EXPORT void PlotContainer( Plot2d_ViewFrame*,
72 VISU_I_EXPORT void CreatePlot( VISU_Gen_i*,
74 _PTR(SObject) theTableSO );
76 VISU_I_EXPORT void SetVisibilityState(std::string entry, Qtx::VisibilityState state);
77 VISU_I_EXPORT void SetVisibilityState(SALOME_Actor *theActor, Qtx::VisibilityState state);
79 VISU_I_EXPORT void CurveVisibilityChanged(VISU::Curve_i* theCurve,
83 bool updateContainers);
85 VISU_I_EXPORT Qtx::VisibilityState GetStateByDisplaying(int theDisplaying);
86 VISU_I_EXPORT void updateContainerVisibility(VISU::Container_i* theContainer);