C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

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 MbCurveGetCurve () 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.

 
MpVertexGetBegVertex () const
 Get the start vertex.
 
MpVertexGetEndVertex () 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.
 
MbCurveMakeCurve () 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.
 

Detailed Description

Edge.

A loop edge.

Constructor & Destructor Documentation

◆ MpEdge() [1/3]

MpEdge::MpEdge ( const MbCurve c,
double  t1,
double  t2,
bool  s 
)

Constructor.

Constructor by curve.

Parameters
[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() [2/3]

MpEdge::MpEdge ( const MbCurve c,
bool  s 
)

Constructor.

Constructor by curve.

Parameters
[in]c- Base curve.
[in]s- Flag of coincidence of direction and the curve.

◆ MpEdge() [3/3]

MpEdge::MpEdge ( double  t1,
double  t2,
bool  s,
ptrdiff_t  n,
uint  t 
)

Constructor.

Constructor of edge with null base curve.

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

Member Function Documentation

◆ Transform()

void MpEdge::Transform ( const MbMatrix matr)

Transform.

Transform according to the matrix.

Parameters
[in]matr- Transformation matrix.

◆ Move()

void MpEdge::Move ( const MbVector to)

Move.

Move by a vector.

Parameters
[in]to- Movement vector.

◆ Rotate()

void MpEdge::Rotate ( const MbCartPoint pnt,
const MbDirection angle 
)

Rotate.

Rotate at angle around a point.

Parameters
[in]pnt- A point is a rotation center.
[in]angle- A two-dimensional normalized vector determining the rotation angle.

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