#include <Graphic2d_SetOfSegments.hxx>
Inheritance diagram for Graphic2d_SetOfSegments:
Public Member Functions | |
Standard_EXPORT | Graphic2d_SetOfSegments (const Handle(Graphic2d_GraphicObject)&aGraphicObject) |
Creates an empty set of segments in the graphic object <agraphicobject>. . | |
Standard_EXPORT void | Add (const Quantity_Length X1, const Quantity_Length Y1, const Quantity_Length X2, const Quantity_Length Y2) |
Add a segment in the set The first point is <x1>, <y1>. The second point is <x2>, <y2>. Trigger: Raises SegmentDefinitionError if the first point and the second point are identical. . | |
Standard_EXPORT Standard_Integer | Length () const |
Returns the number of segments in the set. . | |
Standard_EXPORT void | Values (const Standard_Integer aRank, Quantity_Length &X1, Quantity_Length &Y1, Quantity_Length &X2, Quantity_Length &Y2) const |
Returns the segment of rank <arank> from the set. Trigger: Raises OutOfRange if <arank> is <1 or >Length() . | |
virtual Standard_EXPORT void | Save (Aspect_FStream &aFStream) const |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT void | Draw (const Handle(Graphic2d_Drawer)&aDrawer) |
Draws the set of segments <me>. . | |
virtual Standard_EXPORT void | DrawElement (const Handle(Graphic2d_Drawer)&aDrawer, const Standard_Integer anIndex) |
Draws element <anindex> of the set <me>. . | |
virtual Standard_EXPORT void | DrawVertex (const Handle(Graphic2d_Drawer)&aDrawer, const Standard_Integer anIndex) |
Draws vertex <anindex> of the set <me>. . | |
Standard_EXPORT Standard_Boolean | Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle(Graphic2d_Drawer)&aDrawer) |
Returns Standard_True if one segment of the set <me> is picked, Standard_False if not. Warning: The PickIndex() method returns the rank of the picked segment if any. . | |
Private Attributes | |
TShort_SequenceOfShortReal | myX1 |
TShort_SequenceOfShortReal | myY1 |
TShort_SequenceOfShortReal | myX2 |
TShort_SequenceOfShortReal | myY2 |
|
|
|
|
|
Implements Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Line. |
|
|
|
Implements Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Line. |
|
|
|
|
|
|
|
|
|
|