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

@ingroup MATSCCDiagInt More...

#include <ClosedTriangleMesh.h>

Inheritance diagram for XC::ClosedTriangleMesh:
XC::MovableObject XC::DistributedBase XC::InteractionDiagram

Public Member Functions

 ClosedTriangleMesh (void)
 Default constructor.
 
 ClosedTriangleMesh (const Pos3d &org, const Triang3dMesh &mll)
 
 ClosedTriangleMesh (const ClosedTriangleMesh &)
 Copy constructor.
 
ClosedTriangleMeshoperator= (const ClosedTriangleMesh &)
 Assignment operator.
 
virtual ClosedTriangleMeshclon (void) const
 Virtual constructor.
 
virtual double GetMax (short unsigned int i) const
 
virtual double GetMin (short unsigned int i) const
 
virtual Pos3d getCenterOfMass (void) const
 
virtual double getLength (void) const
 
virtual double getArea (void) const
 
virtual double getVolume (void) const
 
virtual double Ix (void) const
 
virtual double Iy (void) const
 
virtual double Iz (void) const
 
short unsigned int Dimension () const
 
size_t GetNumFacetas (void) const
 
TriangleMap getTriangleMap (void) const
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size (void) const
 
const_iterator findTrihedron (const Pos3d &p) const
 Search for the trihedron that contains the point being passed as parameter. More...
 
const Trihedron * findTrihedronPtr (const Pos3d &p) const
 Search for the trihedron that contains the point being passed as parameter. More...
 
int sendSelf (CommParameters &)
 Send the object through the channel being passed as parameter.
 
int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
void write (std::ofstream &)
 Write the matrix in a binary file.
 
void read (std::ifstream &)
 Read the matrix from a binary file.
 
void writeTo (const std::string &)
 
void readFrom (const std::string &)
 Read from file.
 
void Print (std::ostream &os) const
 Print stuff.
 
- 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.
 
virtual DbTagDatagetDbTagData (void) const
 Returns a vector to store class dbTags.
 
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 Types

typedef std::vector< Trihedron > v_trihedrons
 
typedef v_trihedrons::iterator iterator
 
typedef v_trihedrons::const_iterator const_iterator
 

Protected Member Functions

GeomObj::list_Pos3d get_intersection (const Pos3d &p) const
 Radius of the sphere that passes through the nearest vertex. More...
 
void getPositionsMatrix (Matrix &)
 Return a matrix with the coordinates of the points that define each one of the trihedrons. More...
 
virtual void setPositionsMatrix (const Matrix &)
 Create the trihedrons that define the diagram from the matrix that contains the points that define each trihedron. More...
 
int sendData (CommParameters &)
 Sends object members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives object members through the channel being passed as parameter.
 

Protected Attributes

v_trihedrons trihedrons
 
double tol
 
double rMax
 
double rMin
 Radius of the convex-hull circunscribed sphere.
 

Detailed Description

@ingroup MATSCCDiagInt

Interaction diagram (N,Mx,My) of a section.

Member Function Documentation

§ findTrihedron()

XC::ClosedTriangleMesh::const_iterator XC::ClosedTriangleMesh::findTrihedron ( const Pos3d &  p) const

Search for the trihedron that contains the point being passed as parameter.

§ findTrihedronPtr()

const Trihedron * XC::ClosedTriangleMesh::findTrihedronPtr ( const Pos3d &  p) const

Search for the trihedron that contains the point being passed as parameter.

§ get_intersection()

GeomObj::list_Pos3d XC::ClosedTriangleMesh::get_intersection ( const Pos3d &  p) const
protected

Radius of the sphere that passes through the nearest vertex.

Return the intersection of triangle mesh with the ray from origin (0,0,0) to p.

§ getPositionsMatrix()

void XC::ClosedTriangleMesh::getPositionsMatrix ( Matrix m)
protected

Return a matrix with the coordinates of the points that define each one of the trihedrons.

§ setPositionsMatrix()

void XC::ClosedTriangleMesh::setPositionsMatrix ( const Matrix m)
protectedvirtual

Create the trihedrons that define the diagram from the matrix that contains the points that define each trihedron.

Reimplemented in XC::InteractionDiagram.


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