xc
Public Types | Public Member Functions | Friends | List of all members
Pos3d Class Reference

Posición en tres dimensiones. More...

#include <Pos3d.h>

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

Public Types

typedef Vector3d vector
 
typedef CGPoint_3::Cartesian_const_iterator Cartesian_const_iterator
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 

Public Member Functions

 Pos3d (const CGPoint_3 &p)
 
 Pos3d (const GEOM_FT &Ax, const GEOM_FT &Ay, const GEOM_FT &Az)
 
bool notAPoint (void) const
 return true if one of the coordinate components is not a number.
 
Pos3doperator+= (const Vector3d &)
 Adds a vector.
 
Pos3doperator-= (const Vector3d &)
 Substracts a vector.
 
Vector3d operator- (const Pos3d &) const
 Vector between the points.
 
Pos3d operator- (const Vector3d &) const
 Point obtained by subtraction of the vector.
 
Pos3d operator+ (const Vector3d &) const
 Point obtained by addition of the vector.
 
virtual bool operator== (const Pos3d &) const
 Comparison operator.
 
bool operator!= (const Pos3d &other) const
 
const CGPoint_3 & ToCGAL (void) const
 
GEOM_FT at0 (const size_t &i) const
 
GEOM_FT operator() (const size_t &i) const
 
GEOM_FT operator[] (const size_t &j) const
 
const GEOM_FT x () const
 
const GEOM_FT y () const
 
const GEOM_FT z () const
 
const GEOM_RT hx () const
 
const GEOM_RT hy () const
 
const GEOM_RT hz () const
 
const GEOM_RT hw () const
 
void SetX (const GEOM_FT &vx)
 
void SetY (const GEOM_FT &vy)
 
void SetZ (const GEOM_FT &vz)
 
void Set (unsigned short int i, const GEOM_FT &v)
 
Cartesian_const_iterator cartesian_begin (void) const
 
Cartesian_const_iterator cartesian_end (void) const
 
size_t dimension (void) const
 
Vector3d VectorPos (void) const
 Return the position vector of the point.
 
bool domina_a (const Pos3d &b) const
 
GEOM_FT dist (const Pos3d &) const
 Return the distance to the point.
 
GEOM_FT dist2 (const Pos3d &) const
 Return the squared distance to the point.
 
GEOM_FT dist2 (const Line3d &) const
 Return the squared distance to the line.
 
GEOM_FT dist (const Line3d &) const
 Return the distance to the line.
 
GEOM_FT dist2 (const Ray3d &) const
 Return the squared distance to the ray.
 
GEOM_FT dist (const Ray3d &) const
 Return the distance to the ray.
 
GEOM_FT dist2 (const Segment3d &) const
 Return the squared distance to the segment.
 
GEOM_FT dist (const Segment3d &) const
 Return the distance to the segment.
 
GEOM_FT dist2 (const Plane &) const
 Return the squared distance to the plane.
 
GEOM_FT dist (const Plane &) const
 Return the distance to the plane.
 
GEOM_FT dist2 (const HalfSpace3d &) const
 Return the squared distance to the half space.
 
GEOM_FT dist (const HalfSpace3d &) const
 Return the distance to the half space.
 
GEOM_FT dist (const Solid3d &) const
 Return the distance to the solid.
 
int Cuadrante (void) const
 Return the quadrant of the point.
 
Pos3d XY3DProjection (void) const
 Return the projection onto XY plane.
 
Pos3d XZ3DProjection (void) const
 Return the projection onto XZ plane.
 
Pos3d YZ3DProjection (void) const
 Return the projection onto YZ plane.
 
Pos2d XY2DProjection (void) const
 Return the projection onto XY plane.
 
Pos2d XZ2DProjection (void) const
 Return the projection onto XZ plane.
 
Pos2d YZ2DProjection (void) const
 Return the projection onto YZ plane.
 
Pos3d getModArgX (const GEOM_FT &mod, const GEOM_FT &giroX) const
 Equivalent to the <arg command from Autocad <arg Rotation with respect to the x axis. More...
 
Pos3d getModArgY (const GEOM_FT &mod, const GEOM_FT &giroY) const
 Equivalent to the <arg command from Autocad <arg Rotation with respect to the y axis. More...
 
Pos3d getModArgZ (const GEOM_FT &mod, const GEOM_FT &giroZ) const
 Equivalent to the <arg command from Autocad <arg Rotation with respect to the z axis. More...
 
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 ProtoGeom
 ProtoGeom (void)
 False when solution is not possible: intersection of parallel planes. More...
 
virtual void Print (std::ostream &os) const
 
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
 

Friends

bool colineales (const Pos3d &p1, const Pos3d &p2, const Pos3d &p3)
 Return true if the points are collinear.
 
bool coplanarios (const Pos3d &p1, const Pos3d &p2, const Pos3d &p3, const Pos3d &p4)
 Return true if the points are coplanar.
 
std::ostream & operator<< (std::ostream &stream, const Pos3d &n)
 

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.
 
- 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.
 
- 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

Posición en tres dimensiones.

Member Function Documentation

◆ getModArgX()

Pos3d Pos3d::getModArgX ( const GEOM_FT &  mod,
const GEOM_FT &  giroX 
) const

Equivalent to the <arg command from Autocad <arg Rotation with respect to the x axis.

◆ getModArgY()

Pos3d Pos3d::getModArgY ( const GEOM_FT &  mod,
const GEOM_FT &  giroY 
) const

Equivalent to the <arg command from Autocad <arg Rotation with respect to the y axis.

◆ getModArgZ()

Pos3d Pos3d::getModArgZ ( const GEOM_FT &  mod,
const GEOM_FT &  giroZ 
) const

Equivalent to the <arg command from Autocad <arg Rotation with respect to the z axis.


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