NX Open C++ Reference Guide
|
Represents a collection of Routing::DiscontinuityCorner objects. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Member Functions | |
bool | AreSegmentsDisconnected (NXOpen::Routing::SplineSegment *segment1, NXOpen::Routing::SplineSegment *segment2, NXOpen::Routing::ControlPoint *rcp) |
Checks whether segment1 and segment2 are disconnected at a control point due to a discontinuity corner. | |
iterator | begin () |
Returns an iterator addressing the first element. | |
NXOpen::Routing::DiscontinuityCorner * | Create (NXOpen::Routing::ControlPoint *rcp, NXOpen::Routing::ISegment *firstSegment, NXOpen::Routing::ISegment *secondSegment) |
Creates a discontinuity corner object at the given Routing::ControlPoint . | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
std::vector < NXOpen::Routing::DiscontinuityCorner * > | GetDiscontinuityCorners (NXOpen::Routing::ControlPoint *rcp) |
Return the discontinuity corners assigned to the input control point. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a collection of Routing::DiscontinuityCorner objects.
To obtain an instance of this class, refer to Routing::RouteManager
Created in NX4.0.0.
bool NXOpen::Routing::DiscontinuityCornerCollection::AreSegmentsDisconnected | ( | NXOpen::Routing::SplineSegment * | segment1, |
NXOpen::Routing::SplineSegment * | segment2, | ||
NXOpen::Routing::ControlPoint * | rcp | ||
) |
Checks whether segment1 and segment2 are disconnected at a control point due to a discontinuity corner.
segment1 | First segment associated with the corner. |
segment2 | The 2nd segment associated with the corner. |
rcp | Control point. |
iterator NXOpen::Routing::DiscontinuityCornerCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::Routing::DiscontinuityCorner* NXOpen::Routing::DiscontinuityCornerCollection::Create | ( | NXOpen::Routing::ControlPoint * | rcp, |
NXOpen::Routing::ISegment * | firstSegment, | ||
NXOpen::Routing::ISegment * | secondSegment | ||
) |
Creates a discontinuity corner object at the given Routing::ControlPoint .
There must be two input Routing::ISegment objects, and they both must reference the input Routing::ControlPoint object.
rcp | rcp |
firstSegment | first segment to form discontinuity on, must be attached to the input RCP. |
secondSegment | second segment to form discontinuity on, must be attached to the input RCP. |
iterator NXOpen::Routing::DiscontinuityCornerCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
std::vector<NXOpen::Routing::DiscontinuityCorner *> NXOpen::Routing::DiscontinuityCornerCollection::GetDiscontinuityCorners | ( | NXOpen::Routing::ControlPoint * | rcp | ) |
Return the discontinuity corners assigned to the input control point.
There may be more than one discontinuity corner assigned to input control point. This may occur for example when four segments form a cross, the control point at the center may have two discontinuity corners assigned. One corner will force stock to split when crossing the horizontal segments, the other will cause stock to split when crossing the vertical segments.
rcp | The control point |
tag_t NXOpen::Routing::DiscontinuityCornerCollection::Tag | ( | ) | const |
Returns the tag of this object.