xc
|
Half plane in a two-dimensional space. More...
#include <HalfPlane2d.h>
Public Member Functions | |
HalfPlane2d (const Line2d &r) | |
HalfPlane2d (const Line2d &r, const Pos2d &p) | |
HalfPlane2d (const Pos2d &p1, const Pos2d &p2) | |
virtual bool | operator== (const HalfPlane2d &) const |
Comparison operator. | |
virtual GeomObj * | getCopy (void) const |
void | swap (void) |
HalfPlane2d | getSwap (void) const |
GEOM_RT | a (void) const |
Return the value of a that corresponds to the equation of the line: a*x + b*y + c= 0. | |
GEOM_RT | b (void) const |
Return the value of b that corresponds to the equation of the line: a*x + b*y + c= 0. | |
GEOM_RT | c (void) const |
Return the value of c that corresponds to the equation of the line: a*x + b*y + c= 0. | |
virtual GEOM_FT | GetMax (unsigned short int) const |
Return the maximum value of the i-th coordinate. | |
virtual GEOM_FT | GetMin (unsigned short int) const |
Return the minimum value of the i-th coordinate. | |
bool | isDegenerated (void) const |
const Line2d & | getBoundaryLine (void) const |
virtual bool | In (const Pos2d &p, const double &tol=0.0) const |
Return true if the point is inside the half-space. More... | |
virtual bool | In (const Line2d &, const double &tol=0.0) const |
Return true if the line is inside the half-space. | |
virtual bool | In (const Ray2d &, const double &tol=0.0) const |
Return true if the ray is inside the half-space. | |
virtual bool | In (const Segment2d &, const double &tol=0.0) const |
Return true if the segment is inside the half-space. | |
virtual bool | In (const Polyline2d &, const double &tol=0.0) const |
Return true if the polyline is inside the half-space. | |
GEOM_FT | DistSigno (const Pos2d &p) const |
Return the signed distance from the point to the half-plane. | |
virtual GEOM_FT | Dist (const Pos2d &p) const |
Return the distance from the point to the half-plane. | |
HalfPlane2d | getNormalized (void) const |
bool | intersects (const HalfPlane2d &r2) const |
bool | intersects (const Line2d &r) const |
bool | intersects (const Ray2d &sr) const |
Return true if part of the ray is inside the half-plane. More... | |
bool | intersects (const Segment2d &sg) const |
Return true if part of the segment is inside the half-plane. More... | |
bool | intersects (const Polyline2d &) const |
Return true if part of the polyline is inside the half-space. More... | |
GeomGroup2d | getIntersection (const Line2d &r) const |
GeomGroup2d | getIntersection (const Ray2d &sr) const |
GeomGroup2d | getIntersection (const Segment2d &sg) const |
virtual GEOM_FT | getLength (void) const |
Return the length of the object. | |
virtual Pos2d | getCenterOfMass (void) const |
virtual GEOM_FT | Ix (void) const |
Moment of inertia with respect to the center of mass en local axis. | |
virtual GEOM_FT | Iy (void) const |
Moment of inertia with respect to the center of mass en local axis. | |
virtual GEOM_FT | Pxy (void) const |
! More... | |
virtual GEOM_FT | Iz (void) const |
Moment of inertia polar with respect to the center of mass en local axis. | |
Ray2d | clip (const Line2d &) const |
Returns the part of the line that is inside the half-space. | |
Ray2d | clip (const Ray2d &) const |
Returns the part of the ray that is inside the half-space. | |
Segment2d | clip (const Segment2d &) const |
Returns the part of the segment that is inside the half-space. | |
std::deque< Polyline2d > | clip (const Polyline2d &, const GEOM_FT &tol=0.0) const |
Return the polyline chunks that result from clipping the given polyline with this half plane. More... | |
boost::python::list | clipPy (const Polyline2d &, const GEOM_FT &tol=0.0) const |
Return the polyline chunks that result from clipping the given polyline with this half plane. More... | |
void | Transform (const Trf2d &trf2d) |
Aplica al objeto la transformación que se pasa como parámetro. More... | |
void | Print (std::ostream &os) const |
![]() | |
virtual unsigned short int | Dimension (void) const |
Return the dimension of the object 0, 1, 2 or 3. | |
GEOM_FT | getPerimeter (void) const |
Return the object perimeter. | |
virtual GEOM_FT | getArea (void) const |
Return the object area. More... | |
virtual GEOM_FT | getVolume (void) const |
Return the object volume. | |
virtual GEOM_FT | IArea (void) const |
![]() | |
GEOM_FT | GetXMax (void) const |
GEOM_FT | GetYMax (void) const |
GEOM_FT | GetXMin (void) const |
GEOM_FT | GetYMin (void) const |
Pos2d | getPMax (void) const |
Pos2d | getPMin (void) const |
virtual Pos2d | Projection (const Pos2d &) const |
Return the orthogonal projection onto the line. More... | |
virtual Vector2d | Projection (const Vector2d &) const |
Return the projection onto the line. More... | |
BND2d | Bnd (void) const |
Return the bounding rectangle. | |
virtual bool | Out (const Pos2d &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... | |
double | Theta_p (void) const |
Return the angle of one of the principal axis of inertia. | |
Dir2d | IAxisDir_a (void) const |
Return the dirección de un principal axis of inertia (we don't know if it's the major or the minor yet). More... | |
Dir2d | IAxisDir_b (void) const |
Return the direction of the other principal axis of inertia (we don't know if it's the major or the minor yet). More... | |
Line2d | IAxis_a (void) const |
Return un principal axis of inertia (no sabemos si el mayor o el menor. | |
Line2d | IAxis_b (void) const |
Return un principal axis of inertia (no sabemos si el mayor o el menor. | |
Ref2d2d | PrincipalAxesOfInertia (void) const |
Return los principal axis of inertia. | |
GEOM_FT | I1 (void) const |
Return the moment of inertia principal mayor. | |
GEOM_FT | I2 (void) const |
Return the moment of inertia principal menor. | |
PrincipalAxesOfInertia2D | Inertia (void) |
GEOM_FT | I (const unsigned short int &i, const unsigned short int &j) const |
Return the componente i,j of the inertia tensor computed with respect to the center of mass. More... | |
GEOM_FT | I (const Pos2d &O, const Vector2d &e) const |
Return the moment of inertia with respect to the axis that passes through O with the direction of e. More... | |
GEOM_FT | I (const Line2d &r) const |
Return the moment of inertia with respect to the line argument. | |
GEOM_FT | I (const unsigned short int i, const unsigned short int j, const Pos2d &o) const |
Return the component i,j of the inertia tensor computed with respect to the point "o". More... | |
GEOM_FT | IO (const Pos2d &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. | |
FT_matrix | I (const Pos2d &o) const |
Return the inertia tensor with respect to the point o. | |
virtual void | Move (const Vector2d &) |
Desplaza el objeto. | |
![]() | |
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 |
![]() | |
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. | |
![]() | |
CommandEntity (CommandEntity *owr=nullptr) | |
Default constructor. | |
CommandEntity * | Owner (void) |
Return a pointer to the object owner. | |
const CommandEntity * | Owner (void) const |
Return un puntero al objeto propietario de ESTE. | |
const StandardOutputWrapper & | getStandardOutputWrapper (void) const |
Return the regular output stream wrapper. | |
StandardOutputWrapper & | getStandardOutputWrapper (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. | |
![]() | |
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. | |
![]() | |
EntityWithOwner (EntityWithOwner *owr=nullptr) | |
Default constructor. | |
EntityWithOwner (const EntityWithOwner &) | |
Copy constructor. | |
EntityWithOwner & | operator= (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. | |
EntityWithOwner * | Owner (void) |
const EntityWithOwner * | Owner (void) const |
Additional Inherited Members | |
![]() | |
typedef PolyPos< Pos2d > | list_Pos2d |
![]() | |
typedef PolyPos< Pos3d > | list_Pos3d |
typedef PolyPos< Pos2d > | list_Pos2d |
![]() | |
typedef std::map< std::string, boost::python::object > | PythonDict |
![]() | |
static void | resetStandardOutput (void) |
Reset the standard output streams to its defaults buffers. | |
![]() | |
static int | getVerbosityLevel (void) |
Get the value of the verbosity level. | |
static void | setVerbosityLevel (const int &) |
Set the value of the verbosity level. | |
![]() | |
template<class T > | |
void | string_to (T &, const std::string &) const |
![]() | |
bool | isEqual (const EntityWithProperties &) const |
Return true if both objects are equal. | |
![]() | |
virtual bool | isEqual (const EntityWithOwner &) const |
Return true if both objects are equal. | |
![]() | |
static CommandEntity * | entcmd_cast (boost::any &data) |
![]() | |
static int | verbosity = 1 |
Object that owns THIS ONE. More... | |
Half plane in a two-dimensional space.
std::deque< Polyline2d > HalfPlane2d::clip | ( | const Polyline2d & | pline, |
const GEOM_FT & | tol = 0.0 |
||
) | const |
Return the polyline chunks that result from clipping the given polyline with this half plane.
boost::python::list HalfPlane2d::clipPy | ( | const Polyline2d & | pline, |
const GEOM_FT & | tol = 0.0 |
||
) | const |
Return the polyline chunks that result from clipping the given polyline with this half plane.
|
virtual |
Return true if the point is inside the half-space.
The points of the edge plane belong to the half-plane.
Implements Surface2d.
bool HalfPlane2d::intersects | ( | const Ray2d & | sr | ) | const |
Return true if part of the ray is inside the half-plane.
bool HalfPlane2d::intersects | ( | const Segment2d & | sg | ) | const |
Return true if part of the segment is inside the half-plane.
bool HalfPlane2d::intersects | ( | const Polyline2d & | pline | ) | const |
Return true if part of the polyline is inside the half-space.
|
inlinevirtual |
|
virtual |
Aplica al objeto la transformación que se pasa como parámetro.
Implements GeomObj2d.