Back to index

salome-smesh  6.5.0
StdMeshers_FixedPoints1D_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
00021 //  File   : StdMeshers_FixedPoints1D_i.hxx
00022 //  Author : Damien COQUERET, OCC
00023 //  Module : SMESH
00024 //
00025 #ifndef _SMESH_FIXEDPOINTS1D_I_HXX_
00026 #define _SMESH_FIXEDPOINTS1D_I_HXX_
00027 
00028 #include "SMESH_StdMeshers_I.hxx"
00029 
00030 #include <SALOMEconfig.h>
00031 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
00032 
00033 #include "SMESH_Hypothesis_i.hxx"
00034 #include "StdMeshers_FixedPoints1D.hxx"
00035 
00036 // ======================================================
00037 // Fixed points 1D hypothesis
00038 // ======================================================
00039 class STDMESHERS_I_EXPORT StdMeshers_FixedPoints1D_i:
00040   public virtual POA_StdMeshers::StdMeshers_FixedPoints1D,
00041   public virtual SMESH_Hypothesis_i
00042 {
00043 public:
00044   // Constructor
00045   StdMeshers_FixedPoints1D_i( PortableServer::POA_ptr thePOA,
00046                               int                     theStudyId,
00047                               ::SMESH_Gen*            theGenImpl );
00048   // Destructor
00049   virtual ~StdMeshers_FixedPoints1D_i();
00050 
00051   // Sets some points on edge using parameter on curve from 0 to 1
00052   // (additionally it is neecessary to check orientation of edges and
00053   // create list of reversed edges if it is needed) and sets numbers
00054   // of segments between given points (default values are equals 1)
00055   void SetPoints(const SMESH::double_array& listParams) 
00056     throw ( SALOME::SALOME_Exception );
00057   void SetNbSegments(const SMESH::long_array& listNbSeg) 
00058     throw ( SALOME::SALOME_Exception );
00059 
00060   // Returns list of point's parameters
00061   SMESH::double_array* GetPoints();
00062   
00063   // Returns list of numbers of segments
00064   SMESH::long_array* GetNbSegments();
00065     
00066   //Set Reversed Edges
00067   void SetReversedEdges( const SMESH::long_array& theIDs);
00068 
00069   //Get Reversed Edges
00070   SMESH::long_array*  GetReversedEdges();
00071   
00072   //Set the Entry of the Object
00073   void SetObjectEntry( const char* theEntry);
00074 
00075   //Get Object Entry
00076   char* GetObjectEntry();
00077 
00078   // Get implementation
00079   ::StdMeshers_FixedPoints1D* GetImpl();
00080 
00081   // Verify whether hypothesis supports given entity type 
00082   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
00083 };
00084 
00085 #endif