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

List of 3D positions. More...

#include <Pos3dList.h>

Inheritance diagram for Pos3dList:
Inheritance graph
[legend]
Collaboration diagram for Pos3dList:
Collaboration graph
[legend]

Public Types

typedef GeomObj::list_Pos3d list_Pos3d
 
typedef GeomObj::list_Pos3d::iterator point_iterator
 
typedef GeomObj::list_Pos3d::const_iterator point_const_iterator
 
- 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
 

Public Member Functions

 Pos3dList (void)
 Default constructor.
 
 Pos3dList (const GeomObj::list_Pos3d &l)
 Constructor.
 
 Pos3dList (const boost::python::list &)
 Constructor.
 
template<typename InputIterator >
 Pos3dList (InputIterator first, InputIterator last)
 
virtual GeomObjgetCopy (void) const
 
size_t getNumberOfPoints (void) const
 
point_const_iterator points_begin (void) const
 
const point_const_iterator points_end (void) const
 
short unsigned int Dimension (void) const
 Return the dimension of the object 0, 1, 2 or 3.
 
const GeomObj::list_Pos3dgetPoints (void) const
 
const Pos3doperator[] (const size_t &i) const
 Return a reference al objeto cuyo índice se pasa como parámetro. More...
 
const Pos3dappendPoint (const Pos3d &p)
 
template<class InputIterator >
void assign (InputIterator first, InputIterator last)
 Insert the vertices between [first,last).
 
virtual bool In (const Pos3d &p, const double &tol=0.0) const
 Returns true if the points belongs to the list.
 
virtual GEOM_FT Ix (void) const
 
virtual GEOM_FT Iy (void) const
 
virtual GEOM_FT Iz (void) const
 
virtual GEOM_FT Pxy (void) const
 Product of inertia.
 
virtual GEOM_FT getLength (void) const
 Return the length of the Pos3dList.
 
virtual GEOM_FT getArea (void) const
 Return the area of the Pos3dList.
 
virtual GEOM_FT getVolume (void) const
 Return the volume of the object.
 
virtual GEOM_FT GetMax (unsigned short int i) const
 Return the maximum value of the i coordinate.
 
virtual GEOM_FT GetMin (unsigned short int i) const
 Return the minimum value of the i coordinate.
 
Pos3dList GetMayores (unsigned short int i, const GEOM_FT &d) const
 Return a Pos2dList with the points which i coordinate is greater than d. More...
 
Pos3dList GetMenores (unsigned short int i, const GEOM_FT &d) const
 Return a Pos2dList with the points which i coordinate is less than d. More...
 
const Pos3dPoint (const size_t &i) const
 Return el vértice i-ésimo (el primero es el 1).
 
Pos3d getCenterOfMass (void) const
 
Vector3d getAvgKVector (void) const
 Return an average k vector by computing the average of of the cross products of the vectors joining the centroid of the point list with each point. More...
 
bool clockwise (const Pos3d &) const
 Return true if the point list is oriented clockwise. More...
 
bool counterclockwise (const Pos3d &) const
 Return true if the point list is oriented counterclockwise. More...
 
std::string orientation (const Pos3d &) const
 Return the orientation of the point list (clockwise or counterclockwise). More...
 
void Transform (const Trf3d &trf3d)
 Applies the transformation to the points.
 
std::deque< GEOM_FT > & GetSeparaciones (void) const
 
double GetSeparacionMedia (void) const
 
CGPlane_3 linearLeastSquaresFittingPlane (GEOM_FT &quality)
 
void Print (std::ostream &stream) const
 Print stuff.
 
void Plot (Plotter &) const
 
- Public Member Functions inherited from GeomObj3d
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 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 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...
 
- 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.
 
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
 

Protected Member Functions

Pos3doperator[] (const size_t &i)
 Return a reference al objeto cuyo índice se pasa como parámetro. More...
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 

Protected Attributes

list_Pos3d point_lst
 

Additional Inherited Members

- 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

List of 3D positions.

Member Function Documentation

◆ clockwise()

bool Pos3dList::clockwise ( const Pos3d vPoint) const

Return true if the point list is oriented clockwise.

Parameters
vPointposition of the point of view.

◆ counterclockwise()

bool Pos3dList::counterclockwise ( const Pos3d vPoint) const

Return true if the point list is oriented counterclockwise.

Parameters
vPointposition of the point of view.

◆ getAvgKVector()

Vector3d Pos3dList::getAvgKVector ( void  ) const

Return an average k vector by computing the average of of the cross products of the vectors joining the centroid of the point list with each point.

◆ GetMayores()

Pos3dList Pos3dList::GetMayores ( unsigned short int  i,
const GEOM_FT &  d 
) const

Return a Pos2dList with the points which i coordinate is greater than d.

◆ GetMenores()

Pos3dList Pos3dList::GetMenores ( unsigned short int  i,
const GEOM_FT &  d 
) const

Return a Pos2dList with the points which i coordinate is less than d.

◆ operator[]() [1/2]

Pos3d & Pos3dList::operator[] ( const size_t &  i)
protected

Return a reference al objeto cuyo índice se pasa como parámetro.

◆ operator[]() [2/2]

const Pos3d & Pos3dList::operator[] ( const size_t &  i) const

Return a reference al objeto cuyo índice se pasa como parámetro.

◆ orientation()

std::string Pos3dList::orientation ( const Pos3d vPoint) const

Return the orientation of the point list (clockwise or counterclockwise).

Parameters
vPointposition of the point of view.

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