Med Memory Users' Guide 5.1.3
|
Public Member Functions | |
EdgeLin (std::istream &lineInXfig) | |
EdgeLin (Node *start, Node *end, bool direction=true) | |
EdgeLin (double sX, double sY, double eX, double eY) | |
~EdgeLin () | |
TypeOfFunction | getTypeOfFunc () const |
void | dumpInXfigFile (std::ostream &stream, bool direction, int resolution, const Bounds &box) const |
void | update (Node *m) |
double | getNormSq () const |
double | getAreaOfZone () const |
double | getCurveLength () const |
void | getBarycenter (double *bary) const |
void | getBarycenterOfZone (double *bary) const |
bool | isIn (double characterVal) const |
Node * | buildRepresentantOfMySelf () const |
double | getCharactValue (const Node &node) const |
double | getDistanceToPoint (const double *pt) const |
bool | isNodeLyingOn (const double *coordOfNode) const |
bool | isLower (double val1, double val2) const |
double | getCharactValueEng (const double *node) const |
bool | doIHaveSameDirectionAs (const Edge &other) const |
void | dynCastFunction (const EdgeLin *&seg, const EdgeArcCircle *&arcSeg) const |
Protected Member Functions | |
EdgeLin () | |
void | updateBounds () |
Edge * | buildEdgeLyingOnMe (Node *start, Node *end, bool direction) const |
Friends | |
class | SegSegIntersector |
EdgeLin::EdgeLin | ( | std::istream & | lineInXfig | ) |
References updateBounds().
EdgeLin::EdgeLin | ( | double | sX, |
double | sY, | ||
double | eX, | ||
double | eY | ||
) |
References updateBounds().
EdgeLin::~EdgeLin | ( | ) |
INTERP_KERNEL::EdgeLin::EdgeLin | ( | ) | [protected] |
Referenced by buildEdgeLyingOnMe().
TypeOfFunction INTERP_KERNEL::EdgeLin::getTypeOfFunc | ( | ) | const [virtual] |
Implements INTERP_KERNEL::Edge.
References INTERP_KERNEL::SEG.
void EdgeLin::dumpInXfigFile | ( | std::ostream & | stream, |
bool | direction, | ||
int | resolution, | ||
const Bounds & | box | ||
) | const [virtual] |
void EdgeLin::update | ( | Node * | m | ) | [virtual] |
Implements INTERP_KERNEL::Edge.
References updateBounds().
double EdgeLin::getNormSq | ( | ) | const |
double EdgeLin::getAreaOfZone | ( | ) | const [virtual] |
This methods computes :
Implements INTERP_KERNEL::Edge.
References INTERP_KERNEL::Edge::_end, and INTERP_KERNEL::Edge::_start.
double EdgeLin::getCurveLength | ( | ) | const [virtual] |
return the length of arc. Value is always > 0. !
Implements INTERP_KERNEL::Edge.
Referenced by INTERP_KERNEL::Edge::interpolate1DLin().
void EdgeLin::getBarycenter | ( | double * | bary | ) | const [virtual] |
Implements INTERP_KERNEL::Edge.
void EdgeLin::getBarycenterOfZone | ( | double * | bary | ) | const [virtual] |
bool EdgeLin::isIn | ( | double | characterVal | ) | const [virtual] |
Characteristic for edges is relative position btw 0.;1.
Implements INTERP_KERNEL::Edge.
Node * EdgeLin::buildRepresentantOfMySelf | ( | ) | const [virtual] |
Retrieves a point that is owning to this, well placed for IN/OUT detection of this. Typically midlle of this is returned.
Implements INTERP_KERNEL::Edge.
References INTERP_KERNEL::Edge::_end, and INTERP_KERNEL::Edge::_start.
double EdgeLin::getCharactValue | ( | const Node & | node | ) | const [virtual] |
node is expected to lay on 'this'. It returns a characteristic magnitude usable by isIn method.
Implements INTERP_KERNEL::Edge.
References getCharactValueEng().
double EdgeLin::getDistanceToPoint | ( | const double * | pt | ) | const [virtual] |
retrieves the distance to this : The min distance from pt and any point of this.
Implements INTERP_KERNEL::Edge.
References INTERP_KERNEL::Edge::_end, INTERP_KERNEL::Edge::_start, INTERP_KERNEL::Node::distanceBtw2Pt(), and getCharactValueEng().
bool EdgeLin::isNodeLyingOn | ( | const double * | coordOfNode | ) | const [virtual] |
return if node with coords 'coordOfNode' is on this (with precision).
Implements INTERP_KERNEL::Edge.
References INTERP_KERNEL::Edge::_end, INTERP_KERNEL::Edge::_start, INTERP_KERNEL::Node::areDoubleEquals(), INTERP_KERNEL::Node::distanceBtw2Pt(), and INTERP_KERNEL::Node::distanceWithSq().
bool INTERP_KERNEL::EdgeLin::isLower | ( | double | val1, |
double | val2 | ||
) | const [virtual] |
With the same magnitude as defined in 'isIn' method perform a compararison. Precondition : val1 and val2 are different and exactly INSIDE this.
Implements INTERP_KERNEL::Edge.
double EdgeLin::getCharactValueEng | ( | const double * | node | ) | const |
References INTERP_KERNEL::Edge::_end, and INTERP_KERNEL::Edge::_start.
Referenced by getCharactValue(), and getDistanceToPoint().
bool INTERP_KERNEL::EdgeLin::doIHaveSameDirectionAs | ( | const Edge & | other | ) | const |
void INTERP_KERNEL::EdgeLin::dynCastFunction | ( | const EdgeLin *& | seg, |
const EdgeArcCircle *& | arcSeg | ||
) | const [virtual] |
Implements INTERP_KERNEL::Edge.
void EdgeLin::updateBounds | ( | ) | [protected] |
No precision should be introduced here. Just think as if precision was perfect.
References INTERP_KERNEL::Edge::_bounds, INTERP_KERNEL::Edge::_end, and INTERP_KERNEL::Edge::_start.
Edge * EdgeLin::buildEdgeLyingOnMe | ( | Node * | start, |
Node * | end, | ||
bool | direction | ||
) | const [protected, virtual] |
Implements INTERP_KERNEL::Edge.
References EdgeLin().
friend class SegSegIntersector [friend] |