|
Open CASCADE Technology
6.5.4
|
The primitive InfiniteLine
#include <Graphic2d_InfiniteLine.hxx>

Public Member Functions | |
| Graphic2d_InfiniteLine (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length DX, const Quantity_Length DY) | |
| Creates an infinite line. The reference point is <X>, <Y>. The slope is <DX>, <DY>. Warning: Raises InfiniteLineDefinitionError if the <DX> and <DY> are null. | |
| void | Reference (Quantity_Length &X, Quantity_Length &Y) const |
| returns the coordinates of the reference point | |
| void | Slope (Quantity_Length &dX, Quantity_Length &dY) const |
| returns the slope <dX>, <dY> | |
| virtual void | Save (Aspect_FStream &aFStream) const |
Static Public Member Functions | |
| static void | Retrieve (Aspect_IFStream &anIFStream, const Handle< Graphic2d_GraphicObject > &aGraphicObject) |
Protected Member Functions | |
| void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
| Draws the infinite line <me>. | |
| Standard_Boolean | Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle< Graphic2d_Drawer > &aDrawer) |
| Returns Standard_True if the infinite line <me> is picked, Standard_False if not. | |
| Graphic2d_InfiniteLine::Graphic2d_InfiniteLine | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const Quantity_Length | X, | ||
| const Quantity_Length | Y, | ||
| const Quantity_Length | DX, | ||
| const Quantity_Length | DY | ||
| ) |
| void Graphic2d_InfiniteLine::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| Standard_Boolean Graphic2d_InfiniteLine::Pick | ( | const Standard_ShortReal | X, |
| const Standard_ShortReal | Y, | ||
| const Standard_ShortReal | aPrecision, | ||
| const Handle< Graphic2d_Drawer > & | aDrawer | ||
| ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| void Graphic2d_InfiniteLine::Reference | ( | Quantity_Length & | X, |
| Quantity_Length & | Y | ||
| ) | const |
| static void Graphic2d_InfiniteLine::Retrieve | ( | Aspect_IFStream & | anIFStream, |
| const Handle< Graphic2d_GraphicObject > & | aGraphicObject | ||
| ) | [static] |
| virtual void Graphic2d_InfiniteLine::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
| void Graphic2d_InfiniteLine::Slope | ( | Quantity_Length & | dX, |
| Quantity_Length & | dY | ||
| ) | const |
1.8.0