]> SALOME platform Git repositories - modules/visu.git/blob - src/VISU_I/VISU_Plot3D_i.hh
Salome HOME
929cce8d14b46cb70575ce4d7aa51b9ca604543e
[modules/visu.git] / src / VISU_I / VISU_Plot3D_i.hh
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef VISU_Plot3D_i_HeaderFile
23 #define VISU_Plot3D_i_HeaderFile
24
25 #include "VISU_ScalarMap_i.hh"
26
27 class VISU_Plot3DPL;
28
29 namespace VISU 
30 {
31   //----------------------------------------------------------------------------
32   class VISU_I_EXPORT Plot3D_i : public virtual POA_VISU::Plot3D,
33                                  public virtual ScalarMap_i
34   {
35     static int myNbPresent;
36     Plot3D_i(const Plot3D_i&);
37
38   public:
39     //----------------------------------------------------------------------------
40     typedef ScalarMap_i TSuperClass;
41     typedef VISU::Plot3D TInterface;
42
43     explicit
44     Plot3D_i(EPublishInStudyMode thePublishInStudyModep);
45
46     virtual 
47     ~Plot3D_i();
48
49     virtual 
50     VISU::VISUType 
51     GetType() 
52     { 
53       return VISU::TPLOT3D; 
54     }
55
56     virtual
57     void
58     SetOrientation (VISU::Plot3D::Orientation theOrient,
59                     CORBA::Double theXAngle, 
60                     CORBA::Double theYAngle);
61
62     virtual 
63     VISU::Plot3D::Orientation 
64     GetOrientationType();
65
66     virtual 
67     CORBA::Double 
68     GetRotateX();
69
70     virtual
71     CORBA::Double 
72     GetRotateY();
73
74     virtual
75     void
76     SetPlanePosition(CORBA::Double  thePlanePosition,
77                      CORBA::Boolean theIsRelative);
78
79     virtual
80     CORBA::Double 
81     GetPlanePosition();
82
83     virtual
84     CORBA::Boolean
85     IsPositionRelative();
86
87     virtual
88     void
89     SetScaleFactor(CORBA::Double theScaleFactor);
90
91     virtual
92     CORBA::Double
93     GetScaleFactor();
94
95     virtual
96     void
97     SetContourPrs(CORBA::Boolean theIsContourPrs);
98
99     CORBA::Boolean 
100     GetIsContourPrs();
101
102     virtual
103     void
104     SetNbOfContours(CORBA::Long theNb);
105
106     virtual
107     CORBA::Long
108     GetNbOfContours();
109
110     VISU_Plot3DPL* 
111     GetSpecificPL() const
112     { 
113       return myPlot3DPL; 
114     }
115     
116   protected:
117     //! Redefines VISU_ColoredPrs3d_i::CreatePipeLine
118     virtual 
119     void 
120     CreatePipeLine(VISU_PipeLine* thePipeLine);
121
122     //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible
123     virtual 
124     bool 
125     CheckIsPossible();
126
127     VISU_Plot3DPL *myPlot3DPL;
128
129   public:
130     static
131     size_t
132     IsPossible(Result_i* theResult, 
133                const std::string& theMeshName, 
134                VISU::Entity theEntity,
135                const std::string& theFieldName, 
136                CORBA::Long theTimeStampNumber,
137                bool theIsMemoryCheck);
138
139     virtual 
140     Storable* 
141     Create(const std::string& theMeshName, 
142            VISU::Entity theEntity,
143            const std::string& theFieldName, 
144            CORBA::Long theTimeStampNumber);
145
146     virtual
147     void
148     ToStream (std::ostringstream& theStr);
149
150     virtual
151     Storable* 
152     Restore(SALOMEDS::SObject_ptr theSObject,
153             const Storable::TRestoringMap& theMap);
154
155     virtual 
156     VISU_Actor* 
157     CreateActor();
158
159     static const std::string myComment;
160
161     virtual
162     const char* 
163     GetComment() const;
164
165     virtual
166     QString
167     GenerateName();
168
169     virtual
170     const char* 
171     GetIconName();
172     
173     void
174     SetMapScale(double theMapScale);
175   };
176 }
177
178 #endif