Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISU_I / VISU_Plot3D_i.hh
1
2 #ifndef VISU_Plot3D_i_HeaderFile
3 #define VISU_Plot3D_i_HeaderFile
4
5 #include "VISU_ScalarMap_i.hh"
6
7 class VISU_Plot3DPL;
8
9 namespace VISU {
10   class Plot3D_i : public virtual POA_VISU::Plot3D,
11                    public virtual ScalarMap_i
12   {
13     static int myNbPresent;
14     Plot3D_i();
15     Plot3D_i(const Plot3D_i&);
16
17   public:
18     explicit
19     Plot3D_i (Result_i* theResult, bool theAddToStudy = true);
20     explicit
21     Plot3D_i (Result_i* theResult, SALOMEDS::SObject_ptr theSObject);
22
23     virtual void SameAs (const Plot3D_i* theOrigin);
24     virtual ~Plot3D_i();
25
26     virtual VISU::VISUType GetType() { return VISU::TPLOT3D; };
27
28     virtual void SetOrientation (VISU::Plot3D::Orientation theOrient,
29                                  CORBA::Double theXAngle, CORBA::Double theYAngle);
30
31     virtual VISU::Plot3D::Orientation GetOrientationType();
32
33     virtual CORBA::Double GetRotateX();
34     virtual CORBA::Double GetRotateY();
35
36     virtual void SetPlanePosition (CORBA::Double  thePlanePosition,
37                                    CORBA::Boolean theIsRelative);
38     virtual CORBA::Double GetPlanePosition();
39     virtual CORBA::Boolean IsPositionRelative();
40
41     virtual void SetScaleFactor (CORBA::Double theScaleFactor);
42     virtual CORBA::Double GetScaleFactor();
43
44     virtual void SetContourPrs (CORBA::Boolean theIsContourPrs );
45     CORBA::Boolean GetIsContourPrs();
46
47     virtual void SetNbOfContours (CORBA::Long theNb);
48     virtual CORBA::Long GetNbOfContours();
49
50     typedef VISU::Plot3D TInterface;
51     VISU_Plot3DPL* GetPlot3DPL() { return myPlot3DPL; }
52
53     void SetMapScale(double theMapScale);
54
55   protected:
56     virtual void DoHook();
57
58     VISU_Plot3DPL *myPlot3DPL;
59
60   public:
61     static int IsPossible (Result_i* theResult, const char* theMeshName, VISU::Entity theEntity,
62                            const char* theFieldName, int theIteration, int isMemoryCheck = true);
63
64     virtual Storable* Create (const char* theMeshName, VISU::Entity theEntity,
65                               const char* theFieldName, int theIteration);
66
67     virtual void ToStream (std::ostringstream& theStr);
68
69     virtual Storable* Restore (const Storable::TRestoringMap& theMap);
70
71     static const std::string myComment;
72     virtual const char* GetComment() const;
73     virtual QString GenerateName();
74   };
75 }
76
77 #endif