FreeCAD
74 строки · 2.6 Кб
1// SMESH SMESH_MeshVSLink : Connection of SMESH with MeshVS from OCC
2//
3// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22// File : SMESH_MeshVSLink.cxx
23// Created : Mon Dec 1 09:00:00 2008
24// Author : Sioutis Fotios
25// Module : SMESH
26
27#if OCC_VERSION_HEX < 0x070000
28
29#include <SMESH_MeshVSLink.jxx>
30
31#ifndef _Standard_TypeMismatch_HeaderFile
32#include <Standard_TypeMismatch.hxx>
33#endif
34
35Standard_EXPORT Handle_Standard_Type& SMESH_MeshVSLink_Type_()
36{
37static Handle_Standard_Type aType1 = STANDARD_TYPE(MeshVS_DataSource3D);
38static Handle_Standard_Type aType2 = STANDARD_TYPE(MeshVS_DataSource);
39static Handle_Standard_Type aType3 = STANDARD_TYPE(MMgt_TShared);
40static Handle_Standard_Type aType4 = STANDARD_TYPE(Standard_Transient);
41
42
43static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL};
44static Handle_Standard_Type _aType = new Standard_Type("SMESH_MeshVSLink",
45sizeof(SMESH_MeshVSLink),
461,
47(Standard_Address)_Ancestors,
48(Standard_Address)NULL);
49
50return _aType;
51}
52
53
54// DownCast method
55// allow safe downcasting
56//
57const Handle(SMESH_MeshVSLink) Handle(SMESH_MeshVSLink)::DownCast(const Handle(Standard_Transient)& AnObject)
58{
59Handle(SMESH_MeshVSLink) _anOtherObject;
60
61if (!AnObject.IsNull()) {
62if (AnObject->IsKind(STANDARD_TYPE(SMESH_MeshVSLink))) {
63_anOtherObject = Handle(SMESH_MeshVSLink)((Handle(SMESH_MeshVSLink)&)AnObject);
64}
65}
66
67return _anOtherObject ;
68}
69
70const Handle(Standard_Type)& SMESH_MeshVSLink::DynamicType() const
71{
72return STANDARD_TYPE(SMESH_MeshVSLink) ;
73}
74#endif