Version: 9.16.0
StdMeshers_ProjectionSource3D_i.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 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, or (at your option) any later version.
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
23// SMESH SMESH_I : idl implementation based on 'SMESH' unit's classes
24// File : StdMeshers_ProjectionSource3D_i.hxx
25// Author : Edward AGAPOV
26// Module : SMESH
27// $Header$
28//
29#ifndef _SMESH_ProjectionSource3D_I_HXX_
30#define _SMESH_ProjectionSource3D_I_HXX_
31
32#include <SALOMEconfig.h>
33#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
34#include CORBA_SERVER_HEADER(SMESH_Mesh)
35
38
39class SMESH_Gen;
40
41// =========================================================
47// =========================================================
48
50 public virtual POA_StdMeshers::StdMeshers_ProjectionSource3D,
51 public virtual SMESH_Hypothesis_i
52{
53public:
54 // Constructor
55 StdMeshers_ProjectionSource3D_i( PortableServer::POA_ptr thePOA,
56 ::SMESH_Gen* theGenImpl );
57 // Destructor
59
63 void SetSource3DShape(GEOM::GEOM_Object_ptr shape);
64
68 GEOM::GEOM_Object_ptr GetSource3DShape();
69
73 void SetSourceMesh(SMESH::SMESH_Mesh_ptr mesh);
74
78 SMESH::SMESH_Mesh_ptr GetSourceMesh();
79
85 void SetVertexAssociation(GEOM::GEOM_Object_ptr sourceVertex1,
86 GEOM::GEOM_Object_ptr sourceVertex2,
87 GEOM::GEOM_Object_ptr targetVertex1,
88 GEOM::GEOM_Object_ptr targetVertex2);
89
95 GEOM::GEOM_Object_ptr GetSourceVertex(CORBA::Long i);
96
101 GEOM::GEOM_Object_ptr GetTargetVertex(CORBA::Long i);
102
103 // Get implementation
105
106 // Verify whether hypothesis supports given entity type
107 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
108
109
110 // Redefined Persistence
111 virtual char* SaveTo();
112 virtual void LoadFrom( const char* theStream );
113
114
115 // Methods for copying mesh definition to other geometry
116
117 // Return geometry this hypothesis depends on. Return false if there is no geometry parameter
118 virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
119 std::vector< int > & subIDArray ) const;
120
121 // Set new geometry instead of that returned by getObjectsDependOn()
122 virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
123 std::vector< int > & subIDArray );
124
125private:
126 // keep entries because the same shape can be published several times with
127 // different names and in this case a correct name can't be restored by a TopoDS_Shape
128 // kept by ::StdMeshers_ProjectionSource3D
131 SMESH::SMESH_Mesh_var myCorbaMesh;
132};
133
134#endif
Definition: SMESH_Gen.hxx:68
Definition: SMESH_Hypothesis_i.hxx:53
This hypothesis specifies a meshed shell or solid to take a mesh pattern from and optionally associat...
Definition: StdMeshers_ProjectionSource3D_i.hxx:52
std::string myShapeEntries[NB_SHAPES]
Definition: StdMeshers_ProjectionSource3D_i.hxx:130
SMESH::SMESH_Mesh_var myCorbaMesh
Definition: StdMeshers_ProjectionSource3D_i.hxx:131
@ TGT_VERTEX2
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
@ SRC_SHAPE3D
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
@ SRC_VERTEX2
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
@ NB_SHAPES
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
@ TGT_VERTEX1
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
@ SRC_VERTEX1
Definition: StdMeshers_ProjectionSource3D_i.hxx:129
CORBA::Boolean IsDimSupported(SMESH::Dimension type)
Verify whether hypothesis supports given entity type.
Definition: StdMeshers_ProjectionSource3D_i.cxx:240
void SetSourceMesh(SMESH::SMESH_Mesh_ptr mesh)
Sets source <mesh> to take a mesh pattern from.
Definition: StdMeshers_ProjectionSource3D_i.cxx:98
GEOM::GEOM_Object_ptr GetSource3DShape()
Returns the source shape.
Definition: StdMeshers_ProjectionSource3D_i.cxx:180
GEOM::GEOM_Object_ptr GetTargetVertex(CORBA::Long i)
Returns the -th target vertex associated with the -th source vertex.
Definition: StdMeshers_ProjectionSource3D_i.cxx:210
virtual char * SaveTo()
Write parameters in a string.
Definition: StdMeshers_ProjectionSource3D_i.cxx:252
void SetVertexAssociation(GEOM::GEOM_Object_ptr sourceVertex1, GEOM::GEOM_Object_ptr sourceVertex2, GEOM::GEOM_Object_ptr targetVertex1, GEOM::GEOM_Object_ptr targetVertex2)
Sets vertex association between the source shape and the target one.
Definition: StdMeshers_ProjectionSource3D_i.cxx:145
SMESH::SMESH_Mesh_ptr GetSourceMesh()
Return source mesh.
Definition: StdMeshers_ProjectionSource3D_i.cxx:131
virtual void LoadFrom(const char *theStream)
Retrieve parameters from the string.
Definition: StdMeshers_ProjectionSource3D_i.cxx:273
GEOM::GEOM_Object_ptr GetSourceVertex(CORBA::Long i)
Returns the -th source vertex associated with the -th target vertex.
Definition: StdMeshers_ProjectionSource3D_i.cxx:195
void SetSource3DShape(GEOM::GEOM_Object_ptr shape)
Sets a source <shape> to take a mesh pattern from.
Definition: StdMeshers_ProjectionSource3D_i.cxx:76
virtual ~StdMeshers_ProjectionSource3D_i()
StdMeshers_ProjectionSource3D_i::~StdMeshers_ProjectionSource3D_i.
Definition: StdMeshers_ProjectionSource3D_i.cxx:66
virtual bool getObjectsDependOn(std::vector< std::string > &entryArray, std::vector< int > &subIDArray) const
Return geometry this hypothesis depends on.
Definition: StdMeshers_ProjectionSource3D_i.cxx:319
StdMeshers_ProjectionSource3D_i(PortableServer::POA_ptr thePOA, ::SMESH_Gen *theGenImpl)
StdMeshers_ProjectionSource3D_i::StdMeshers_ProjectionSource3D_i.
Definition: StdMeshers_ProjectionSource3D_i.cxx:50
virtual bool setObjectsDependOn(std::vector< std::string > &entryArray, std::vector< int > &subIDArray)
Set new geometry instead of that returned by getObjectsDependOn()
Definition: StdMeshers_ProjectionSource3D_i.cxx:335
::StdMeshers_ProjectionSource3D * GetImpl()
StdMeshers_ProjectionSource3D_i::GetImpl.
Definition: StdMeshers_ProjectionSource3D_i.cxx:226
This hypothesis specifies a meshed shell or solid to take a mesh pattern from and optionally associat...
Definition: StdMeshers_ProjectionSource3D.hxx:49
Dimension
Definition: SMESH_Hypothesis.idl:35