1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/
21 #ifndef VISU_Plot3D_i_HeaderFile
22 #define VISU_Plot3D_i_HeaderFile
24 #include "VISU_ScalarMap_i.hh"
29 class Plot3D_i : public virtual POA_VISU::Plot3D,
30 public virtual ScalarMap_i
32 static int myNbPresent;
34 Plot3D_i(const Plot3D_i&);
37 typedef ScalarMap_i TSuperClass;
40 Plot3D_i (Result_i* theResult, bool theAddToStudy = true);
42 Plot3D_i (Result_i* theResult, SALOMEDS::SObject_ptr theSObject);
46 virtual VISU::VISUType GetType() { return VISU::TPLOT3D; };
48 virtual void SetOrientation (VISU::Plot3D::Orientation theOrient,
49 CORBA::Double theXAngle, CORBA::Double theYAngle);
51 virtual VISU::Plot3D::Orientation GetOrientationType();
53 virtual CORBA::Double GetRotateX();
54 virtual CORBA::Double GetRotateY();
56 virtual void SetPlanePosition (CORBA::Double thePlanePosition,
57 CORBA::Boolean theIsRelative);
58 virtual CORBA::Double GetPlanePosition();
59 virtual CORBA::Boolean IsPositionRelative();
61 virtual void SetScaleFactor (CORBA::Double theScaleFactor);
62 virtual CORBA::Double GetScaleFactor();
64 virtual void SetContourPrs (CORBA::Boolean theIsContourPrs );
65 CORBA::Boolean GetIsContourPrs();
67 virtual void SetNbOfContours (CORBA::Long theNb);
68 virtual CORBA::Long GetNbOfContours();
70 typedef VISU::Plot3D TInterface;
71 VISU_Plot3DPL* GetPlot3DPL() { return myPlot3DPL; }
73 void SetMapScale(double theMapScale);
76 virtual void DoHook();
78 VISU_Plot3DPL *myPlot3DPL;
81 static int IsPossible (Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
82 const char* theFieldName, int theIteration, int isMemoryCheck = true);
84 virtual Storable* Create (const char* theMeshName, VISU::Entity theEntity,
85 const char* theFieldName, int theIteration);
87 virtual void ToStream (std::ostringstream& theStr);
89 virtual Storable* Restore (const Storable::TRestoringMap& theMap);
93 CreateActor(const Handle(SALOME_InteractiveObject)& theIO = NULL);
95 static const std::string myComment;
96 virtual const char* GetComment() const;
97 virtual QString GenerateName();