xc
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
XC::SetEntities Class Reference

Object set. More...

#include <SetEntities.h>

Inheritance diagram for XC::SetEntities:
XC::PreprocessorContainer XC::MovableObject XC::DistributedBase

Public Types

typedef DqPtrsEntities< Pntlst_ptr_points
 Point set.
 
typedef lst_ptr_points::iterator pnt_iterator
 point set iterator.
 
typedef lst_ptr_points::const_iterator pnt_const_iterator
 point set const iterator.
 
typedef DqPtrsEntities< Edgelst_line_pointers
 Line set.
 
typedef lst_line_pointers::iterator lin_iterator
 Line set iterator.
 
typedef lst_line_pointers::const_iterator lin_const_iterator
 Line set const iterator.
 
typedef DqPtrsEntities< Facelst_surface_ptrs
 surface set.
 
typedef lst_surface_ptrs::iterator sup_iterator
 surface set iterator.
 
typedef lst_surface_ptrs::const_iterator sup_const_iterator
 surface set const iterator.
 
typedef DqPtrsEntities< Bodylst_ptr_cuerpos
 body set.
 
typedef DqPtrsEntities< UniformGridlst_ptr_uniform_grids
 Unifrom grid set.
 

Public Member Functions

 SetEntities (Preprocessor *preprocessor=nullptr)
 Constructor.
 
 SetEntities (const SetEntities &)
 Copy constructor.
 
SetEntitiesoperator= (const SetEntities &)
 Assignment operator.
 
void clear (void)
 Clears the set.
 
virtual const lst_ptr_pointsgetPoints (void) const
 Returns a const reference to the point container.
 
virtual lst_ptr_pointsgetPoints (void)
 Return a reference to the the point container.
 
void setPoints (const lst_ptr_points &pts)
 Assigns the points set.
 
void sel_points_lista (const ID &)
 Select the points identified by the tags in the parameter. More...
 
bool In (const Pnt *) const
 Returns true if the point belongs to the set.
 
SetEntities pickPointsInside (const GeomObj3d &, const double &tol=0.0) const
 Return a new set that contains the points that lie insiof the geometric object. More...
 
virtual const lst_line_pointersgetLines (void) const
 Return a const reference to the line container.
 
virtual lst_line_pointersgetLines (void)
 Return a reference to the line container.
 
void setLines (const lst_line_pointers &lns)
 Assigns the edge set.
 
void sel_lines_list (const ID &)
 Select the lines identified by the tags in the parameter. More...
 
bool In (const Edge *) const
 Returns true if the edge belongs to the set.
 
SetEntities pickLinesInside (const GeomObj3d &, const double &tol=0.0) const
 Return a new set that contains the lines that lie insiof the geometric object. More...
 
virtual const lst_surface_ptrsgetSurfaces (void) const
 Returns a const reference to the surface container.
 
virtual lst_surface_ptrsgetSurfaces (void)
 Returns a reference to the surface container.
 
void setSurfaces (const lst_surface_ptrs &sfs)
 Assigns the surface set.
 
void sel_surfaces_lst (const ID &)
 Selects the surfaces with the identifiers being passed as parameter.
 
bool In (const Face *) const
 Returns true if the surface belongs to the set.
 
SetEntities pickSurfacesInside (const GeomObj3d &, const double &tol=0.0) const
 Return a new set that contains the surfaces that lie insiof the geometric object. More...
 
virtual const lst_ptr_cuerposgetBodies (void) const
 Return a const reference to the body container.
 
virtual lst_ptr_cuerposgetBodies (void)
 Return a reference to the body container.
 
void setBodies (const lst_ptr_cuerpos &bds)
 Assigns the bodies set.
 
bool In (const Body *) const
 Returns true if the body belongs to the set.
 
SetEntities pickBodiesInside (const GeomObj3d &, const double &tol=0.0) const
 Return a new set that contains the bodies that lie insiof the geometric object. More...
 
virtual const lst_ptr_uniform_gridsgetUniformGrids (void) const
 Return a const reference to the UniformGrids container.
 
virtual lst_ptr_uniform_gridsgetUniformGrids (void)
 Return a reference to the UniformGrids container.
 
bool In (const UniformGrid *) const
 Returns true if the «uniform grid» belongs to the set.
 
BND3d Bnd (void) const
 Return the nodes current position boundary.
 
SetEntities pickEntitiesInside (const GeomObj3d &, const double &tol=0.0) const
 Return a new set that contains the bodies that lie insiof the geometric object. More...
 
void fillUpwards (const SetMeshComp &)
 Appends to this set the objects that make reference to one or more of the objects that already make part of the set. More...
 
void fillDownwards (SetMeshComp &)
 Appends to the set being passed as parameter the elements that intervene on the definition of those entities that are already in the set. More...
 
void Transforma (const TrfGeom &trf)
 Applies the transformation to the elements of the set.
 
void Transforma (const size_t &indice_trf)
 Aplica to the set the transformation with the index being passed as parameter.
 
void genMesh (const std::string &, meshing_dir dm)
 Triggers mesh generation from set components. More...
 
virtual int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
virtual int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
SetEntitiesoperator+= (const SetEntities &)
 Addition assignment operator. More...
 
SetEntitiesoperator-= (const SetEntities &)
 -= operator.
 
SetEntitiesoperator*= (const SetEntities &)
 *= operator (intersection).
 
SetEntities operator+ (const SetEntities &) const
 Addition (union) operator. More...
 
SetEntities operator- (const SetEntities &) const
 Difference operator. More...
 
SetEntities operator* (const SetEntities &) const
 Intersection operator. More...
 
 ~SetEntities (void)
 Destructor.
 
- Public Member Functions inherited from XC::PreprocessorContainer
 PreprocessorContainer (Preprocessor *owr)
 Default constructor.
 
const DomaingetDomain (void) const
 Returns the domain.
 
DomaingetDomain (void)
 Returns the domain.
 
PreprocessorgetPreprocessor (void)
 Returns a pointer to the object preprocessor.
 
const PreprocessorgetPreprocessor (void) const
 Returns a pointer to the object preprocessor.
 
void checkPreprocessor (void)
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor. More...
 
 MovableObject (int classTag)
 Constructor. More...
 
 MovableObject (const MovableObject &)
 Copy constructor. Doesn't copy the dbTag.
 
MovableObjectoperator= (const MovableObject &)
 Assignment operator. Doesn't copy the dbTag.
 
int getClassTag (void) const
 Return the class identifier.
 
int getDbTag (void) const
 Return the object identifier in the database.
 
int getDbTag (CommParameters &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (CommParameters &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
virtual int updateParameter (int parameterID, Information &info)
 Updates the parameter identified by parameterID with info.
 
virtual int activateParameter (int parameterID)
 Activates the parameter identified by parameterID.
 
virtual int setVariable (const std::string &variable, Information &)
 Set the value of the variable idenfified by var.
 
virtual int getVariable (const std::string &variable, Information &)
 Return the value of the variable idenfified by var.
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
const int & getDbTagDataPos (const int &i) const
 Returns the data at the i-th position.
 
void setDbTagDataPos (const int &i, const int &v)
 Sets the data at the i-th position.
 
void inicComm (const int &dataSize) const
 Initializes communication.
 

Protected Member Functions

void clearAll (void)
 Clears all the objects of the set.
 
void copy_lists (const SetEntities &)
 Copy the object lists of the set s. More...
 
SetEntities create_copy (const std::string &, const Vector3d &v)
 Creates a copy of the entities of the set and put them in another set with the name is being passed as parameter. More...
 
void extend_lists (const SetEntities &)
 Extend this set with the objects of the set being passed as parameter. More...
 
void substract_lists (const SetEntities &)
 Removes from this set the objects that belongs also to the argument. More...
 
void intersect_lists (const SetEntities &)
 Removes from this set the objects that belongs also to the argument. More...
 
DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendData (CommParameters &)
 Send members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives members through the channel being passed as parameter.
 
void point_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set points.
 
void line_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set lines.
 
void surface_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on surfaces.
 
void body_meshing (meshing_dir dm)
 Create nodes and, where appropriate, elements on set bodies.
 
void uniform_grid_meshing (meshing_dir dm)
 Creates nodes and, eventually, elements on the points of the set.
 
void mueve (const Vector3d &)
 Moves the objects of the set.
 

Protected Attributes

lst_ptr_points points
 point set.
 
lst_line_pointers lines
 line set.
 
lst_surface_ptrs surfaces
 surface set.
 
lst_ptr_cuerpos bodies
 body set.
 
lst_ptr_uniform_grids uniform_grids
 

Friends

class Set
 Uniform mesh set.
 

Detailed Description

Object set.

A set object contains 0 or more:

Member Function Documentation

§ copy_lists()

void XC::SetEntities::copy_lists ( const SetEntities other)
protected

Copy the object lists of the set s.

Append to this object the lists of objects from the argument.

§ create_copy()

XC::SetEntities XC::SetEntities::create_copy ( const std::string &  name,
const Vector3d &  v = Vector3d() 
)
protected

Creates a copy of the entities of the set and put them in another set with the name is being passed as parameter.

The coordinates of the new points will be obtained by adding to the original coordinates those of the vector being passed as parameter.

§ extend_lists()

void XC::SetEntities::extend_lists ( const SetEntities other)
protected

Extend this set with the objects of the set being passed as parameter.

§ fillDownwards()

void XC::SetEntities::fillDownwards ( SetMeshComp mc)

Appends to the set being passed as parameter the elements that intervene on the definition of those entities that are already in the set.

§ fillUpwards()

void XC::SetEntities::fillUpwards ( const SetMeshComp mc)

Appends to this set the objects that make reference to one or more of the objects that already make part of the set.

§ genMesh()

void XC::SetEntities::genMesh ( const std::string &  setName,
meshing_dir  dm 
)

Triggers mesh generation from set components.

Parameters
dmMeshing direction.

§ getDbTagData()

XC::DbTagData & XC::SetEntities::getDbTagData ( void  ) const
protectedvirtual

Returns a vector to store the dbTags of the class members.

Reimplemented from XC::DistributedBase.

§ intersect_lists()

void XC::SetEntities::intersect_lists ( const SetEntities other)
protected

Removes from this set the objects that belongs also to the argument.

§ operator*()

XC::SetEntities XC::SetEntities::operator* ( const SetEntities b) const

Intersection operator.

Return the set intersection.

§ operator+()

XC::SetEntities XC::SetEntities::operator+ ( const SetEntities b) const

Addition (union) operator.

Extend the lists of the first set with the objects from the argument.

§ operator+=()

XC::SetEntities & XC::SetEntities::operator+= ( const SetEntities other)

Addition assignment operator.

Extend the lists with the objects from the argument.

§ operator-()

XC::SetEntities XC::SetEntities::operator- ( const SetEntities b) const

Difference operator.

Removes the objects that belong also to the argument.

§ pickBodiesInside()

XC::SetEntities XC::SetEntities::pickBodiesInside ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Return a new set that contains the bodies that lie insiof the geometric object.

Parameters
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

§ pickEntitiesInside()

XC::SetEntities XC::SetEntities::pickEntitiesInside ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Return a new set that contains the bodies that lie insiof the geometric object.

Parameters
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

§ pickLinesInside()

XC::SetEntities XC::SetEntities::pickLinesInside ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Return a new set that contains the lines that lie insiof the geometric object.

Parameters
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

§ pickPointsInside()

XC::SetEntities XC::SetEntities::pickPointsInside ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Return a new set that contains the points that lie insiof the geometric object.

Parameters
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

§ pickSurfacesInside()

XC::SetEntities XC::SetEntities::pickSurfacesInside ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Return a new set that contains the surfaces that lie insiof the geometric object.

Parameters
geomObjgeometric object that must contain the nodes.
toltolerance for "In" function.

§ sel_lines_list()

void XC::SetEntities::sel_lines_list ( const ID tags)

Select the lines identified by the tags in the parameter.

Parameters
tagsidentifiers of the points to select.

§ sel_points_lista()

void XC::SetEntities::sel_points_lista ( const ID tags)

Select the points identified by the tags in the parameter.

Parameters
tagsidentifiers of the points to select.

§ substract_lists()

void XC::SetEntities::substract_lists ( const SetEntities other)
protected

Removes from this set the objects that belongs also to the argument.


The documentation for this class was generated from the following files: