Purpose:
|
Defines a
bounded_line as a subtype of
bounded_curve.
|
|
Derivation:
|
bounded_line : bounded_curve : ACIS_OBJECT : -
|
|
Filename:
|
kern/kernel/geomhusk/bnd_line.hxx
|
|
Description:
|
This class adds no new data to
bounded_curve, but it provides additional constructors and redefines some virtual functions.
|
|
References:
|
by KERN
|
bounded_curve
|
|
Constructor:
|
public: bounded_line::bounded_line
();
|
|
|
C++ allocation constructor requests memory for this object but does not populate it.
|
|
|
|
|
|
|
public: bounded_line::bounded_line
(
|
|
|
const bounded_line&
|
// original constructor
|
|
|
);
|
|
|
C++ copy constructor requests memory for this object and populates it with the data from the object supplied as an argument.
|
|
|
|
|
|
|
public: bounded_line::bounded_line
(
|
|
|
const SPAposition&,
|
// first position
|
|
|
const SPAposition&
|
// second position
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
|
|
|
|
public: bounded_line::bounded_line
(
|
|
|
const SPAposition&,
|
// position
|
|
|
const SPAunit_vector&,
|
// direction
|
|
|
double
|
// distance
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
Creates a line from a position, a direction, and a distance.
|
|
|
|
|
|
|
public: bounded_line::bounded_line
(
|
|
|
straight&,
|
// straight
|
|
|
double,
|
// first parameter
|
|
|
double
|
// second parameter
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
Creates a line from a position, a direction, and a distance.
|
|
|
|
|
|
|
public: bounded_line::bounded_line
(
|
|
|
EDGE*,
|
// edge
|
|
|
const SPAtransf*
|
// transformation
|
|
|
);
|
|
|
C++ initialize constructor requests memory for this object and populates it with the data supplied as arguments.
|
|
|
The edge must be a straight.
|
|
|
|
Methods:
|
public: virtual logical bounded_line::change_end_pt
(
|
|
|
const SPAposition&
|
// end position
|
|
|
);
|
|
|
Changes the end position.
|
|
|
|
|
|
|
public: virtual logical
|
|
|
bounded_line::change_start_pt (
|
|
|
const SPAposition&
|
// start position
|
|
|
);
|
|
|
Changes the start position.
|
|
|
|
|
|
|
public: virtual bounded_curve* bounded_line::copy
(
|
|
|
const SPAtransf*
|
// transformation
|
|
|
|
= NULL
|
|
|
) const;
|
|
|
Makes a transformed copy of the line.
|
|
|
|
|
|
|
public: virtual double bounded_line::eval_t
(
|
|
|
const pick_ray&
|
// pick location
|
|
|
) const;
|
|
|
Finds the closest point on a curve to a given pick location and returns the curve parameter value.
|
|
|
|
|
|
|
public: virtual logical
|
|
|
bounded_line::is_line () const;
|
|
|
Finds if entity is a line.
|
|
|
Returns
TRUE if the given
ENTITY is a
bounded_line; otherwise, it returns
FALSE.
|
|
|
|
|
|
|
public: EDGE* bounded_line::make_edge
() const;
|
|
|
Makes an edge from the line.
|
|
|
|
|
Related Fncs:
|
create_line_offset, new_line
|