xc
Public Member Functions | Protected Member Functions | List of all members
XC::LineMap Class Reference

Line container. More...

#include <LineMap.h>

Inheritance diagram for XC::LineMap:
XC::EntityMap< Edge > XC::ModelComponentContainer< Edge > XC::ModelComponentContainerBase

Public Member Functions

 LineMap (MultiBlockTopology *mbt=nullptr)
 Constructor.
 
Vector3d getVector (const Indice &i, const Indice &j) const
 
Line3d getRecta (const Indice &i, const Indice &j) const
 
Plane getPlane (const Indice &i, const Indice &j, const Indice &k) const
 
template<class E >
EdgeNew (void)
 Creates a new Edge.
 
EdgecreateLine (Pnt *, Pnt *)
 Creates a new line between the points being passed as parameters and inserts it on the container. More...
 
EdgecreateDividedLine (Pnt *, Pnt *)
 Creates a new line between the points being passed as parameters and inserts it on the container. More...
 
EdgecreateArc (Pnt *, Pnt *, Pnt *)
 Creates a new arc of circle between the points being passed as parameters and inserts it in the edge set. More...
 
EdgecreateLineSequence (void)
 Creates a line sequence (polyline) with those being passed as parameters and inserts it in the edge set. More...
 
EdgecreateCopy (const Edge *l)
 Return a copy of the argument edge.
 
LinenewLine (const size_t &, const size_t &)
 Line segment.
 
DividedLinenewDividedLine (const size_t &, const size_t &)
 Divided line.
 
CircularArcnewCircleArc (const size_t &, const size_t &, const size_t &)
 Circle arc.
 
CmbEdgenewLineSequence (void)
 Line sequence.
 
- Public Member Functions inherited from XC::EntityMap< Edge >
 EntityMap (MultiBlockTopology *mbt=nullptr)
 Constructor.
 
EdgegetNearest (const Pos3d &p)
 Returns the object closest to the position being passed as parameter.
 
const EdgegetNearest (const Pos3d &p) const
 Returns the object closest to the position being passed as parameter.
 
void numera (void)
 Set indices to the objects to allow its use in VTK.
 
- Public Member Functions inherited from XC::ModelComponentContainer< Edge >
 ModelComponentContainer (MultiBlockTopology *mbt=nullptr)
 Constructor.
 
Edgebusca (const Indice &)
 Return a pointer to the geometry entity whose identifier is passed as parameter.
 
const Edgebusca (const Indice &) const
 Return a pointer to the entity whose identifier is passed as parameter.
 
bool exists (const Indice &) const
 Return true if the entity already exists.
 
Edgeget (const Indice &)
 Return the entity with tag iEnt.
 
boost::python::list getKeys (void) const
 Return the container's keys.
 
void clearAll (void)
 Erase all the entities.
 
virtual ~ModelComponentContainer (void)
 Destructor.
 
- Public Member Functions inherited from XC::ModelComponentContainerBase
 ModelComponentContainerBase (MultiBlockTopology *mbt=nullptr)
 Default identifier for new component. More...
 
const MultiBlockTopologygetMultiBlockTopology (void) const
 Return a pointer to MultiBlockTopology.
 
MultiBlockTopologygetMultiBlockTopology (void)
 Return a pointer to MultiBlockTopology.
 
const PreprocessorgetPreprocessor (void) const
 Return a pointer to preprocessor.
 
PreprocessorgetPreprocessor (void)
 Return a pointer to preprocessor.
 
size_t getTag (void) const
 
void setTag (const size_t &t)
 

Protected Member Functions

template<class E >
EdgeCrea (void)
 Creates a new line.
 

Additional Inherited Members

- Public Types inherited from XC::EntityMap< Edge >
typedef ModelComponentContainer< Edge >::iterator iterator
 
typedef ModelComponentContainer< Edge >::const_iterator const_iterator
 
- Public Types inherited from XC::ModelComponentContainer< Edge >
typedef std::map< Indice, Edge *> map_base
 
typedef std::pair< Indice, Edge *> pair
 
typedef map_base::iterator iterator
 
typedef map_base::const_iterator const_iterator
 
- Public Types inherited from XC::ModelComponentContainerBase
typedef size_t Indice
 
- Protected Attributes inherited from XC::ModelComponentContainerBase
Indice tag
 

Detailed Description

Line container.

Member Function Documentation

§ createArc()

XC::Edge * XC::LineMap::createArc ( Pnt pA,
Pnt pB,
Pnt pC 
)

Creates a new arc of circle between the points being passed as parameters and inserts it in the edge set.

§ createDividedLine()

XC::Edge * XC::LineMap::createDividedLine ( Pnt pA,
Pnt pB 
)

Creates a new line between the points being passed as parameters and inserts it on the container.

Parameters
pApointer to back end of the line.
pBpointer to front end of the line.

§ createLine()

XC::Edge * XC::LineMap::createLine ( Pnt pA,
Pnt pB 
)

Creates a new line between the points being passed as parameters and inserts it on the container.

Parameters
pApointer to back end of the line.
pBpointer to front end of the line.

§ createLineSequence()

XC::Edge * XC::LineMap::createLineSequence ( void  )

Creates a line sequence (polyline) with those being passed as parameters and inserts it in the edge set.


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