]> SALOME platform Git repositories - modules/visu.git/blob - src/VISU_I/VISU_Plot3D_i.hh
Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / VISU_I / VISU_Plot3D_i.hh
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/
19 //
20
21 #ifndef VISU_Plot3D_i_HeaderFile
22 #define VISU_Plot3D_i_HeaderFile
23
24 #include "VISU_ScalarMap_i.hh"
25
26 class VISU_Plot3DPL;
27
28 namespace VISU {
29   class Plot3D_i : public virtual POA_VISU::Plot3D,
30                    public virtual ScalarMap_i
31   {
32     static int myNbPresent;
33     Plot3D_i();
34     Plot3D_i(const Plot3D_i&);
35
36   public:
37     typedef ScalarMap_i TSuperClass;
38
39     explicit
40     Plot3D_i (Result_i* theResult, bool theAddToStudy = true);
41     explicit
42     Plot3D_i (Result_i* theResult, SALOMEDS::SObject_ptr theSObject);
43
44     virtual ~Plot3D_i();
45
46     virtual VISU::VISUType GetType() { return VISU::TPLOT3D; };
47
48     virtual void SetOrientation (VISU::Plot3D::Orientation theOrient,
49                                  CORBA::Double theXAngle, CORBA::Double theYAngle);
50
51     virtual VISU::Plot3D::Orientation GetOrientationType();
52
53     virtual CORBA::Double GetRotateX();
54     virtual CORBA::Double GetRotateY();
55
56     virtual void SetPlanePosition (CORBA::Double  thePlanePosition,
57                                    CORBA::Boolean theIsRelative);
58     virtual CORBA::Double GetPlanePosition();
59     virtual CORBA::Boolean IsPositionRelative();
60
61     virtual void SetScaleFactor (CORBA::Double theScaleFactor);
62     virtual CORBA::Double GetScaleFactor();
63
64     virtual void SetContourPrs (CORBA::Boolean theIsContourPrs );
65     CORBA::Boolean GetIsContourPrs();
66
67     virtual void SetNbOfContours (CORBA::Long theNb);
68     virtual CORBA::Long GetNbOfContours();
69
70     typedef VISU::Plot3D TInterface;
71     VISU_Plot3DPL* GetPlot3DPL() { return myPlot3DPL; }
72
73     void SetMapScale(double theMapScale);
74
75   protected:
76     virtual void DoHook();
77
78     VISU_Plot3DPL *myPlot3DPL;
79
80   public:
81     static int IsPossible (Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
82                            const char* theFieldName, int theIteration, int isMemoryCheck = true);
83
84     virtual Storable* Create (const char* theMeshName, VISU::Entity theEntity,
85                               const char* theFieldName, int theIteration);
86
87     virtual void ToStream (std::ostringstream& theStr);
88
89     virtual Storable* Restore (const Storable::TRestoringMap& theMap);
90
91     virtual 
92     VISU_Actor* 
93     CreateActor(const Handle(SALOME_InteractiveObject)& theIO = NULL);
94
95     static const std::string myComment;
96     virtual const char* GetComment() const;
97     virtual QString GenerateName();
98   };
99 }
100
101 #endif