SALOME - SMESH
|
00001 // SMESH SMESH_MeshVSLink : Connection of SMESH with MeshVS from OCC 00002 // 00003 // Copyright (C) 2003 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 // File : SMESH_MeshVSLink.cxx 00023 // Created : Mon Dec 1 09:00:00 2008 00024 // Author : Sioutis Fotios 00025 // Module : SMESH 00026 00027 #ifndef _Handle_SMESH_MeshVSLink_HeaderFile 00028 #define _Handle_SMESH_MeshVSLink_HeaderFile 00029 00030 #ifndef _Standard_Macro_HeaderFile 00031 #include <Standard_Macro.hxx> 00032 #endif 00033 #ifndef _Standard_HeaderFile 00034 #include <Standard.hxx> 00035 #endif 00036 #ifndef _Handle_MeshVS_DataSource3D_HeaderFile 00037 #include <Handle_MeshVS_DataSource3D.hxx> 00038 #endif 00039 00040 class Standard_Transient; 00041 class Handle_Standard_Type; 00042 class Handle(MeshVS_DataSource3D); 00043 class SMESH_MeshVSLink; 00044 00045 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SMESH_MeshVSLink); 00046 00047 class Handle(SMESH_MeshVSLink) : public Handle(MeshVS_DataSource3D) { 00048 public: 00049 Handle(SMESH_MeshVSLink)():Handle(MeshVS_DataSource3D)() {} 00050 Handle(SMESH_MeshVSLink)(const Handle(SMESH_MeshVSLink)& aHandle) : Handle(MeshVS_DataSource3D)(aHandle) 00051 { 00052 } 00053 00054 Handle(SMESH_MeshVSLink)(const SMESH_MeshVSLink* anItem) : Handle(MeshVS_DataSource3D)((MeshVS_DataSource3D *)anItem) 00055 { 00056 } 00057 00058 Handle(SMESH_MeshVSLink)& operator=(const Handle(SMESH_MeshVSLink)& aHandle) 00059 { 00060 Assign(aHandle.Access()); 00061 return *this; 00062 } 00063 00064 Handle(SMESH_MeshVSLink)& operator=(const SMESH_MeshVSLink* anItem) 00065 { 00066 Assign((Standard_Transient *)anItem); 00067 return *this; 00068 } 00069 00070 SMESH_MeshVSLink* operator->() const 00071 { 00072 return (SMESH_MeshVSLink *)ControlAccess(); 00073 } 00074 00075 Standard_EXPORT static const Handle(SMESH_MeshVSLink) DownCast(const Handle(Standard_Transient)& AnObject); 00076 }; 00077 #endif