xc
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members

Closed triangle mesh used to represent the interaction diagram (N,Mx,My) of a section. More...

#include <ClosedTriangleMesh.h>

Inheritance diagram for XC::ClosedTriangleMesh:
Inheritance graph
[legend]
Collaboration diagram for XC::ClosedTriangleMesh:
Collaboration graph
[legend]

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 ClosedTriangleMeshgetCopy (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
 Return the object length.
 
virtual double getArea (void) const
 Return the object area.
 
virtual double getVolume (void) const
 Return the object volume.
 
virtual double Ix (void) const
 
virtual double Iy (void) const
 
virtual double Iz (void) const
 
short unsigned int Dimension () const
 Return the dimension of the object 0, 1, 2 or 3.
 
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 TrihedronfindTrihedronPtr (const Pos3d &p) const
 Search for the trihedron that contains the point being passed as parameter. More...
 
int sendSelf (Communicator &)
 Send the object through the communicator argument.
 
int recvSelf (const Communicator &)
 Receives object through the communicator argument.
 
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 GeomObj3d
virtual GEOM_FT GetMax (unsigned short int i) const =0
 Return the maximum value of the i-th coordinate.
 
virtual GEOM_FT GetMin (unsigned short int i) const =0
 Return the minimum value of the i-th coordinate.
 
GEOM_FT GetXMax (void) const
 
GEOM_FT GetYMax (void) const
 
GEOM_FT GetZMax (void) const
 
GEOM_FT GetXMin (void) const
 
GEOM_FT GetYMin (void) const
 
GEOM_FT GetZMin (void) const
 
virtual void XProjection (void)
 
virtual void YProjection (void)
 
virtual void ZProjection (void)
 
virtual Pos3d Projection (const Pos3d &) const
 Return the orthogonal projection onto the line. More...
 
virtual Vector3d Projection (const Vector3d &) const
 Return the projection onto the line. More...
 
Pos3d getPMax (void) const
 
Pos3d getPMin (void) const
 
BND3d Bnd (void) const
 Return the boundary of the object.
 
virtual bool In (const Pos3d &p, const double &tol=0.0) const
 Return true if point lies inside the object.
 
virtual bool Out (const Pos3d &p, const double &tol=0.0) const
 Return true if the point lies outside the object.
 
virtual GEOM_FT getCenterOfMassFactor (void) const
 Return the factor used for the computation of the center of mass (1.0 by default). More...
 
virtual GEOM_FT Pxy (void) const
 
virtual GEOM_FT Pxz (void) const
 
virtual GEOM_FT Pyz (void) const
 
GEOM_FT I (const unsigned short int &i, const unsigned short int &j) const
 
virtual GEOM_FT IArea (void) const
 
GEOM_FT I (const Pos3d &O, const Vector3d &e) const
 Return el moment of inertia with respect to the axis that passes through O with the direction of e. More...
 
GEOM_FT I (const Line3d &r) const
 Return el moment of inertia with respect to the argument line.
 
GEOM_FT I (const unsigned short int i, const unsigned short int j, const Pos3d &o) const
 Return el moment of inertia (i,j) respect to the axis parallel to i through o. More...
 
GEOM_FT IO (const Pos3d &o) const
 Return the polar moment of inertia with respect to the point o.
 
FT_matrix I (void) const
 Return the inertia tensor with respect to the center of mass of the object. More...
 
FT_matrix I (const Pos3d &o) const
 Return the inertia tensor with respect to the point o.
 
- Public Member Functions inherited from GeomObj
 GeomObj (void)
 Constructor.
 
virtual bool hasCenterOfMass (void) const
 Return true if the object has a center of mass.
 
GEOM_FT getCenterOfMassArea (void) const
 Return the dimension used to compute the center of mass, as follows: More...
 
virtual void Plot (Plotter &) const
 
- Public Member Functions inherited from ProtoGeom
 ProtoGeom (void)
 False when solution is not possible: intersection of parallel planes. More...
 
void setExists (bool e)
 
bool exists (void) const
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
virtual bool operator== (const EntityWithProperties &) const
 Comparison operator.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 
- 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 (Communicator &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (Communicator &)
 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 ~DistributedBase (void)
 Destructor.
 
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< Trihedronv_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 (Communicator &)
 Sends object members through the communicator argument.
 
int recvData (const Communicator &)
 Receives object members through the communicator argument.
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from GeomObj3d
typedef PolyPos< Pos3dlist_Pos3d
 
- Public Types inherited from GeomObj
typedef PolyPos< Pos3dlist_Pos3d
 
typedef PolyPos< Pos2dlist_Pos2d
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

Closed triangle mesh used to represent the 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: