Back to index

salome-geom  6.5.0
GEOMImpl_IPipeDiffSect.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //NOTE: This is an intreface to a function for the Pipe creation.
00024 //
00025 #ifndef _GEOMImpl_IPIPEDIFFSECT_HXX_
00026 #define _GEOMImpl_IPIPEDIFFSECT_HXX_
00027 
00028 #include "GEOM_Function.hxx"
00029 
00030 #ifndef _GEOMImpl_IPIPE_HXX_
00031 #include "GEOMImpl_IPipe.hxx"
00032 #endif
00033 
00034 #define PIPEDS_LIST_BASES 1
00035 #define PIPEDS_LIST_LOCATIONS 3
00036 //#define PIPEDS_ARG_PATH 2
00037 #define PIPEDS_ARG_WITHCONTACT 4
00038 #define PIPEDS_ARG_WITHCORRECT 5
00039 
00040 
00041 class GEOMImpl_IPipeDiffSect : public GEOMImpl_IPipe
00042 {
00043  public:
00044 
00045   GEOMImpl_IPipeDiffSect(const Handle(GEOM_Function)& theFunction):GEOMImpl_IPipe(theFunction) {}
00046   
00047   void SetBases (const Handle(TColStd_HSequenceOfTransient)& theBases) 
00048   {
00049     _func->SetReferenceList(PIPEDS_LIST_BASES,theBases);
00050   }
00051 
00052   Handle(TColStd_HSequenceOfTransient) GetBases ()
00053   { 
00054     Handle(TColStd_HSequenceOfTransient) aBases = _func->GetReferenceList(PIPEDS_LIST_BASES);
00055     return aBases; 
00056   }
00057 
00058   void SetLocations (const Handle(TColStd_HSequenceOfTransient)& theLocations) 
00059   { _func->SetReferenceList(PIPEDS_LIST_LOCATIONS,theLocations); }
00060 
00061   Handle(TColStd_HSequenceOfTransient) GetLocations ()
00062   { 
00063     Handle(TColStd_HSequenceOfTransient) aLocs = _func->GetReferenceList(PIPEDS_LIST_LOCATIONS);
00064     return aLocs; 
00065   }
00066 
00067   //void SetPath (const Handle(GEOM_Function)& thePath) { _func->SetReference(PIPEDS_ARG_PATH, thePath); }
00068 
00069   //Handle(GEOM_Function) GetPath() { return _func->GetReference(PIPEDS_ARG_PATH); }
00070 
00071   void SetWithContactMode(int theWithContact)
00072   { _func->SetInteger(PIPEDS_ARG_WITHCONTACT,theWithContact); }
00073 
00074   int GetWithContactMode()
00075   { return _func->GetInteger(PIPEDS_ARG_WITHCONTACT); }
00076 
00077   void SetWithCorrectionMode(int theWithCorrection)
00078   { _func->SetInteger(PIPEDS_ARG_WITHCORRECT,theWithCorrection); }
00079 
00080   int GetWithCorrectionMode()
00081   { return _func->GetInteger(PIPEDS_ARG_WITHCORRECT); }
00082 
00083 };
00084 
00085 #endif