C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Loop. More...
#include <contour_graph.h>
Public Member Functions | |
MpLoop (MpEdge *initEdge, int m) | |
Constructor. More... | |
MpLoop (const MpLoop &) | |
Copy-constructor. | |
virtual | ~MpLoop () |
Destructor. | |
Functions for access to data. | |
ptrdiff_t | GetEdgesCount () const |
Count of edges. | |
MpEdge * | GetEdge (ptrdiff_t index) const |
Edge by index. More... | |
MpEdge *& | GetEdge (ptrdiff_t index) |
Edge by index to change. More... | |
MpEdge * | GetEdge () const |
Get the last edge. | |
bool | GetOrientation () const |
Get the orientation. | |
int | GetMode () const |
Construction direction. | |
void | GetVerticesArray (RPArray< MpVertex > &vertices) const |
Get vertex array. | |
void | GetCurvesArray (RPArray< const MbCurve > &curves) const |
Get curve array. | |
void | SetCurvesArray (RPArray< MbCurve > &curves) |
Get curve array. | |
Functions for changing data. | |
void | AddEdge (MpEdge *edge) |
Add an edge. | |
void | DeleteEdge () |
Delete the last edge. | |
void | DeleteEdge (ptrdiff_t index) |
Delete an edge by index. More... | |
void | SetOrientation (bool s) |
Set the orientation. | |
void | SetMode (int m) |
Set the traverse direction. More... | |
void | Reverse () |
Change the edge orientation. | |
void | CreateVertices () |
Construct vertices. | |
MbContour * | MakeContour (double epsilon=METRIC_ACCURACY) const |
Create a contour by the loop. | |
Transformation operations. | |
void | Transform (const MbMatrix &matr) |
Transformation. More... | |
void | Move (const MbVector &to) |
Move. More... | |
void | Rotate (const MbCartPoint &pnt, const MbDirection &angle) |
Rotate. More... | |
![]() | |
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. | |
Loop.
Loop. Set of edges.
MpLoop::MpLoop | ( | MpEdge * | initEdge, |
int | m | ||
) |
Constructor.
Constructor by edge and the direction of construction.
[in] | initEdge | - Edge. |
[in] | m | - Direction of loop construction: if m > 0 - the loop is constructed counterclockwise, if m < 0 - clockwise. |
|
inline |
Edge by index.
Edge by its index. Without check for index correctness.
[in] | index | - An edge index. |
|
inline |
Edge by index to change.
Edge by its index to change. Without check for index correctness.
[in] | index | - An edge index. |
|
inline |
Delete an edge by index.
Delete an edge by its index. Without check for index correctness.
[in] | index | - An edge index. |
|
inline |
Set the traverse direction.
Set the direction of traversal of the loop.
[in] | m | - The traversal direction. Has a value of sign of number m: if m > 0, then traversal is counterclockwise, if m < 0, then it is clockwise. |
Transformation.
Transform according to matrix.
[in] | matr | - Transformation matrix. |
Move.
Move by a vector.
[in] | to | - Movement vector. |
void MpLoop::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. |