Version: 9.12.0
Archimede_VolumeSection.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, 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, or (at your option) any later version.
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 
23 // GEOM ARCHIMEDE : algorithm implementation
24 // File : Archimede_VolumeSection.hxx
25 // Author : Nicolas REJNERI
26 // Module : GEOM
27 //
28 #ifndef ARCHIMEDE_VOLUMESECTION_HXX
29 #define ARCHIMEDE_VOLUMESECTION_HXX
30 
31 #include <gp_Pnt.hxx>
32 #include <gp_Dir.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <Geom_Plane.hxx>
35 
36 #include <Geom_RectangularTrimmedSurface.hxx>
37 
39 
40 public:
41  // Constructeur effectuant le maillage de peau de la shape
42  Standard_EXPORT VolumeSection(TopoDS_Shape , Standard_Real);
43 
44  //Methode qui affecte � un point,les coordonn�es de centre de la boite englobante de la shape
45  Standard_EXPORT void CenterOfGravity();
46 
47  // Methode qui calcule le volume sous un plan Z = h
49 
50  // Methode qui resout l'equation V(h)=constante
52 
53  // Methode permettant de "setter" un plan afin de l'utiliser � l'interieur de la classe
54  Standard_EXPORT void SetPlane(Handle (Geom_Plane));
55 
56  // Methode permettant de r�cup�rer la shape modifi�e � l'ext�rieur de la classe
57  Standard_EXPORT TopoDS_Shape GetShape();
58 
59  // Methode effectuant la rotation du plan et de la shape
60  Standard_EXPORT void MakeRotation(gp_Dir);
61 
62  // Methode effectuant la rotation inverse du plan et de la shape
63  Standard_EXPORT Handle (Geom_RectangularTrimmedSurface) InvMakeRotation(gp_Dir,Handle(Geom_RectangularTrimmedSurface));
64 
65  // Methode permettant de d�couper le plan selon une projection de la Shape
66  Standard_EXPORT Handle (Geom_RectangularTrimmedSurface) TrimSurf();
67 
68  // Methode permmettant de deplacer le plan jusqu'a la position donn�e par Archim�de
69  Standard_EXPORT Handle (Geom_RectangularTrimmedSurface) AjustePlan(Handle(Geom_RectangularTrimmedSurface),Standard_Real,gp_Pnt);
70 
71  Standard_EXPORT void getZ( double& min, double& max);
72 
73 private:
74 
75  TopoDS_Shape myShape;
79  Handle(Geom_Plane) myPlane;
80 
83 
84 };
85 #endif
Definition: Archimede_VolumeSection.hxx:38
Standard_EXPORT TopoDS_Shape GetShape()
Definition: Archimede_VolumeSection.cxx:60
Standard_Real Ymax
Definition: Archimede_VolumeSection.hxx:78
Standard_Real Zmax
Definition: Archimede_VolumeSection.hxx:78
Standard_Real Zmin
Definition: Archimede_VolumeSection.hxx:78
gp_Pnt InitPoint
Definition: Archimede_VolumeSection.hxx:77
Handle(Geom_Plane) myPlane
Standard_Real Xmin
Definition: Archimede_VolumeSection.hxx:78
Standard_EXPORT void CenterOfGravity()
Definition: Archimede_VolumeSection.cxx:70
Standard_Real Tolerance
Definition: Archimede_VolumeSection.hxx:76
Standard_EXPORT void getZ(double &min, double &max)
Definition: Archimede_VolumeSection.cxx:393
Standard_EXPORT VolumeSection(TopoDS_Shape, Standard_Real)
Definition: Archimede_VolumeSection.cxx:54
TopoDS_Shape myShape
Definition: Archimede_VolumeSection.hxx:75
Standard_EXPORT Standard_Real
Definition: Archimede_VolumeSection.hxx:69
gp_Pnt Intersection(gp_Pnt, gp_Pnt, Standard_Real)
Definition: Archimede_VolumeSection.cxx:358
Standard_Real Xmax
Definition: Archimede_VolumeSection.hxx:78
Standard_Real ElementaryVolume(gp_Pnt, gp_Pnt, gp_Pnt)
Definition: Archimede_VolumeSection.cxx:372
Standard_Real Ymin
Definition: Archimede_VolumeSection.hxx:78
Standard_EXPORT void MakeRotation(gp_Dir)
Definition: Archimede_VolumeSection.cxx:290
Standard_EXPORT Standard_Real Archimede(Standard_Real, Standard_Real)
Definition: Archimede_VolumeSection.cxx:219
Standard_EXPORT Handle(Geom_RectangularTrimmedSurface) TrimSurf()
Standard_EXPORT gp_Pnt
Definition: Archimede_VolumeSection.hxx:69
Standard_EXPORT Standard_Real CalculateVolume(Standard_Real)
Definition: Archimede_VolumeSection.cxx:123
Standard_EXPORT void SetPlane(Handle(Geom_Plane))
Definition: Archimede_VolumeSection.cxx:65
Standard_EXPORT Handle(Geom_RectangularTrimmedSurface) InvMakeRotation(gp_Dir