Back to index

salome-geom  6.5.0
BlockFix_PeriodicSurfaceModifier.ixx
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 #include <BlockFix_PeriodicSurfaceModifier.jxx>
00024 
00025 #ifndef _Standard_TypeMismatch_HeaderFile
00026 #include <Standard_TypeMismatch.hxx>
00027 #endif
00028 
00029 BlockFix_PeriodicSurfaceModifier::~BlockFix_PeriodicSurfaceModifier() {}
00030 
00031 
00032 
00033 Standard_EXPORT Handle_Standard_Type& BlockFix_PeriodicSurfaceModifier_Type_()
00034 {
00035 
00036     static Handle_Standard_Type aType1 = STANDARD_TYPE(BRepTools_Modification);
00037   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(BRepTools_Modification);
00038   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
00039   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
00040   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
00041   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
00042 
00043 
00044   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
00045   static Handle_Standard_Type _aType = new Standard_Type("BlockFix_PeriodicSurfaceModifier",
00046                                                          sizeof(BlockFix_PeriodicSurfaceModifier),
00047                                                          1,
00048                                                          (Standard_Address)_Ancestors,
00049                                                          (Standard_Address)NULL);
00050 
00051   return _aType;
00052 }
00053 
00054 
00055 // DownCast method
00056 //   allow safe downcasting
00057 //
00058 const Handle(BlockFix_PeriodicSurfaceModifier) Handle(BlockFix_PeriodicSurfaceModifier)::DownCast(const Handle(Standard_Transient)& AnObject)
00059 {
00060   Handle(BlockFix_PeriodicSurfaceModifier) _anOtherObject;
00061 
00062   if (!AnObject.IsNull()) {
00063      if (AnObject->IsKind(STANDARD_TYPE(BlockFix_PeriodicSurfaceModifier))) {
00064        _anOtherObject = Handle(BlockFix_PeriodicSurfaceModifier)((Handle(BlockFix_PeriodicSurfaceModifier)&)AnObject);
00065      }
00066   }
00067 
00068   return _anOtherObject ;
00069 }
00070 const Handle(Standard_Type)& BlockFix_PeriodicSurfaceModifier::DynamicType() const
00071 {
00072   return STANDARD_TYPE(BlockFix_PeriodicSurfaceModifier) ;
00073 }
00074 Standard_Boolean BlockFix_PeriodicSurfaceModifier::IsKind(const Handle(Standard_Type)& AType) const
00075 {
00076   return (STANDARD_TYPE(BlockFix_PeriodicSurfaceModifier) == AType || BRepTools_Modification::IsKind(AType));
00077 }
00078 Handle_BlockFix_PeriodicSurfaceModifier::~Handle_BlockFix_PeriodicSurfaceModifier() {}
00079