23 #ifndef SMESHGUI_SELECTIONPROXY_H
24 #define SMESHGUI_SELECTIONPROXY_H
28 #include <SALOME_InteractiveObject.hxx>
29 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(SMESH_Mesh)
31 #include CORBA_SERVER_HEADER(GEOM_Gen)
50 uint info(
int )
const;
51 uint operator[] (
int );
52 uint count(
int,
int )
const;
54 void addInfo(
int,
long );
66 QString fileName()
const;
68 QString version()
const;
72 void setVersion( uint, uint, uint );
86 int shapeType()
const;
92 void setShapeId(
int );
93 void setShapeType(
int );
104 XYZ(
double,
double,
double );
105 XYZ(
const gp_XYZ& );
106 void add(
double,
double,
double );
111 operator gp_XYZ()
const;
150 operator bool()
const;
152 SMESH::SMESH_IDSource_ptr
object()
const;
153 const Handle(SALOME_InteractiveObject)& io()
const;
160 QString name()
const;
164 bool hasShapeToMesh()
const;
165 GEOM::GEOM_Object_ptr shape()
const;
166 QString shapeName()
const;
167 int shapeType()
const;
168 bool isMeshLoaded()
const;
171 bool nodeCoordinates(
int,
XYZ& );
173 bool nodePosition(
int,
Position& );
174 QList<SelectionProxy> nodeGroups(
int )
const;
176 bool hasElement(
int );
178 int elementEntityType(
int )
const;
179 bool elementConnectivity( SMESH::smIdType,
Connectivity& );
181 bool elementPosition(
int,
Position& );
182 bool elementGravityCenter(
int,
XYZ& );
183 bool elementNormal(
int,
XYZ& );
184 bool elementControl(
int,
int,
double,
double& )
const;
185 QList<SelectionProxy> elementGroups(
int )
const;
189 QList<SelectionProxy> submeshes()
const;
190 QList<SelectionProxy> groups()
const;
194 QColor color()
const;
195 SMESH::smIdType size(
bool =
false )
const;
196 SMESH::smIdType nbNodes(
bool =
false )
const;
197 QSet<uint> ids()
const;
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Provide operations over the selected object.
Definition: SMESHGUI_SelectionProxy.h:59
uint myMajor
Definition: SMESHGUI_SelectionProxy.h:62
QString myFileName
Definition: SMESHGUI_SelectionProxy.h:60
uint mySize
Definition: SMESHGUI_SelectionProxy.h:61
Store statistics on mesh object.
Definition: SMESHGUI_SelectionProxy.h:46
QMap< int, long > myInfo
Definition: SMESHGUI_SelectionProxy.h:47
Describes position of mesh node or element on a reference shape.
Definition: SMESHGUI_SelectionProxy.h:77
int myShapeId
Definition: SMESHGUI_SelectionProxy.h:78
int myShapeType
Definition: SMESHGUI_SelectionProxy.h:79
double myU
Definition: SMESHGUI_SelectionProxy.h:80
bool myHasU
Definition: SMESHGUI_SelectionProxy.h:81
Provide operations over the selected object.
Definition: SMESHGUI_SelectionProxy.h:117
const Handle(SALOME_InteractiveObject) &io() const
SMESH::SMESH_IDSource_var myObject
Definition: SMESHGUI_SelectionProxy.h:119
SMESH::SMESH_IDSource_ptr object() const
SMESH_Actor * actor() const
SMESH_Actor * myActor
Definition: SMESHGUI_SelectionProxy.h:120
Type
Definition: SMESHGUI_SelectionProxy.h:125
@ Submesh
Definition: SMESHGUI_SelectionProxy.h:128
@ GroupGeom
Definition: SMESHGUI_SelectionProxy.h:131
@ GroupStd
Definition: SMESHGUI_SelectionProxy.h:130
@ Unknown
Definition: SMESHGUI_SelectionProxy.h:126
@ Group
Definition: SMESHGUI_SelectionProxy.h:129
@ Mesh
Definition: SMESHGUI_SelectionProxy.h:127
bool myDirty
Definition: SMESHGUI_SelectionProxy.h:121
Handle(SALOME_InteractiveObject) myIO
Simple structure to manage 3D coordinate.
Definition: SMESHGUI_SelectionProxy.h:100
double myX
Definition: SMESHGUI_SelectionProxy.h:101
double myY
Definition: SMESHGUI_SelectionProxy.h:101
void divide(double)
Divide point to given coefficient.
Definition: SMESHGUI_SelectionProxy.cxx:1547
double z() const
Get Z coordinate.
Definition: SMESHGUI_SelectionProxy.cxx:1579
double myZ
Definition: SMESHGUI_SelectionProxy.h:101
double x() const
Get X coordinate.
Definition: SMESHGUI_SelectionProxy.cxx:1561
void add(double, double, double)
Add a point.
Definition: SMESHGUI_SelectionProxy.cxx:1536
double y() const
Get Y coordinate.
Definition: SMESHGUI_SelectionProxy.cxx:1570
XYZ()
Default constructor.
Definition: SMESHGUI_SelectionProxy.cxx:1501
Definition: SMESH_Actor.h:55
Definition: SMESH_ControlsDef.hxx:64
Handle(VTKViewer_Filter) GetFilter(int theId
void setFileName(_PTR(SObject) theSObject, const QString &theValue)
Definition: SMESHGUI_Utils.cxx:154
QMap< int, QList< int > > Connectivity
Definition: SMESHGUI_SelectionProxy.h:114
ElementType
Enumeration for element type, like in SMDS.
Definition: SMESH_Mesh.idl:128