1 // Copyright (C) 2009-2013 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include "HEXABLOCK.hxx"
21 #include "utilities.h"
25 #include "hexa_base.hxx"
26 #include "HexVector_impl.hxx"
28 using namespace HEXABLOCK_ORB;
30 Vector_impl::Vector_impl( HEXA_NS::Vector *ptrCpp ):_vector_cpp(ptrCpp)
34 HEXA_NS::Vector* Vector_impl::GetImpl() throw (SALOME::SALOME_Exception)
39 ::CORBA::Double Vector_impl::getDX() throw (SALOME::SALOME_Exception)
41 ::CORBA::Double dx = _vector_cpp->getDx();
44 ::CORBA::Double Vector_impl::getDY() throw (SALOME::SALOME_Exception)
46 ::CORBA::Double dy = _vector_cpp->getDy();
49 ::CORBA::Double Vector_impl::getDZ() throw (SALOME::SALOME_Exception)
51 ::CORBA::Double dz = _vector_cpp->getDz();
56 void Vector_impl::dump() throw (SALOME::SALOME_Exception)
62 void Vector_impl::printName() throw (SALOME::SALOME_Exception)
64 _vector_cpp->printName();
67 // ========================================================= getName
68 char* Vector_impl::getName() throw (SALOME::SALOME_Exception)
70 return CORBA::string_dup( _vector_cpp->getName() );
72 // ========================================================= setName
73 void Vector_impl::setName(const char* name)
74 throw (SALOME::SALOME_Exception)
76 _vector_cpp->setName (name);
78 // ========================================================= getNorm
79 ::CORBA::Double Vector_impl::getNorm() throw (SALOME::SALOME_Exception)
81 ::CORBA::Double val = _vector_cpp->getNorm();
84 // ========================================================= getAngleX
85 ::CORBA::Double Vector_impl::getAngleX() throw (SALOME::SALOME_Exception)
87 ::CORBA::Double val = _vector_cpp->getAngleX();