|
C3D Toolkit
Kernel - 118069, Vision - 2.16.7.1844
|
Edge. More...
#include <contour_graph.h>
Inheritance diagram for MpEdge:
Collaboration diagram for MpEdge:Public Member Functions | |
| MpEdge (const MbCurve *c, double t1, double t2, bool s) | |
| Constructor. More... | |
| MpEdge (const MbCurve *c, bool s) | |
| Constructor. More... | |
| MpEdge (const MpEdge &) | |
| Copy-constructor. | |
| MpEdge (double t1, double t2, bool s, ptrdiff_t n, uint t) | |
| Constructor. More... | |
| virtual | ~MpEdge () |
| Destructor. | |
Functions for access to data. | |
| const MbCurve * | GetCurve () const |
| Get the curve the edge passes through. | |
| ptrdiff_t | GetName () const |
| The base curve name. | |
| bool | GetSense () const |
| Get the direction relative to the curve. | |
| MpVertex * | GetBegVertex () const |
| Get the start vertex. | |
| MpVertex * | GetEndVertex () const |
| Get the end vertex. | |
| double | GetTBeg () const |
| Get the start parameter. | |
| double | GetTEnd () const |
| End parameter. | |
| uint | GetType () const |
| Curve type. | |
| void | GetBegPoint (MbCartPoint &cp) const |
| Get the Cartesian point of the start vertex. | |
| void | GetEndPoint (MbCartPoint &cp) const |
| Get the Cartesian point of the end vertex. | |
| void | GetBegTangent (MbDirection &tan) const |
| Get the tangent vector at the start point. | |
| void | GetEndTangent (MbDirection &tan) const |
| Get the tangent vector at the end vertex. | |
| double | GetBegCurvature () const |
| Get the curvature at the start point. | |
| double | GetEndCurvature () const |
| Get the curvature at the end point. | |
Functions for changing data. | |
| void | SetCurve (const MbCurve *newCurve) |
| Get the curve the edge passes through. | |
| void | SetName (ptrdiff_t n) |
| Set name of the base curve. | |
| void | SetSense (bool s) |
| Set the direction relative to the curve. | |
| void | SetBegVertex (MpVertex *vert) |
| Set the start vertex. | |
| void | SetEndVertex (MpVertex *vert) |
| Set the end vertex. | |
| void | SetTBeg (double t) |
| Set the start parameter. | |
| void | SetTEnd (double t) |
| Set the end parameter. | |
| void | Reverse () |
| Change the orientation. | |
| MbCurve * | MakeCurve () const |
| Create a curve. | |
Transformation operations. | |
| void | Transform (const MbMatrix &matr) |
| Transform. More... | |
| void | Move (const MbVector &to) |
| Move. More... | |
| void | Rotate (const MbCartPoint &pnt, const MbDirection &angle) |
| Rotate. More... | |
Public Member Functions inherited from TapeBase | |
| TapeBase (RegistrableRec regs=noRegistrable) | |
| Constructor. | |
| TapeBase (const TapeBase &) | |
| Copy-constructor. | |
| virtual | ~TapeBase () |
| Destructor. | |
| RegistrableRec | GetRegistrable () const |
| Whether the stream class is registrable. | |
| void | SetRegistrable (RegistrableRec regs=registrable) const |
| Set the state of registration of the stream class. | |
| virtual const char * | GetPureName (const VersionContainer &) const |
| Get the class name. | |
| virtual bool | IsFamilyRegistrable () const |
| Whether the object belongs to a registrable family. | |
Edge.
A loop edge.
| MpEdge::MpEdge | ( | const MbCurve * | c, |
| double | t1, | ||
| double | t2, | ||
| bool | s | ||
| ) |
Constructor.
Constructor by curve.
| [in] | c | - Base curve. |
| [in] | t1 | - The edge start parameter. |
| [in] | t2 | - The edge end parameter. |
| [in] | s | - Flag of coincidence of direction and the curve. |
| MpEdge::MpEdge | ( | const MbCurve * | c, |
| bool | s | ||
| ) |
Constructor.
Constructor by curve.
| [in] | c | - Base curve. |
| [in] | s | - Flag of coincidence of direction and the curve. |
| MpEdge::MpEdge | ( | double | t1, |
| double | t2, | ||
| bool | s, | ||
| ptrdiff_t | n, | ||
| uint | t | ||
| ) |
Constructor.
Constructor of edge with null base curve.
| [in] | t1 | - The edge start parameter. |
| [in] | t2 | - The edge end parameter. |
| [in] | s | - Flag of coincidence of direction and the curve. |
| [in] | n | - The base curve name. |
| [in] | t | - A curve type. |
Transform.
Transform according to the matrix.
| [in] | matr | - Transformation matrix. |
Move.
Move by a vector.
| [in] | to | - Movement vector. |
| void MpEdge::Rotate | ( | const MbCartPoint & | pnt, |
| const MbDirection & | angle | ||
| ) |
Rotate.
Rotate at angle around a point.
| [in] | pnt | - A point is a rotation center. |
| [in] | angle | - A two-dimensional normalized vector determining the rotation angle. |