Open CASCADE Technology
6.5.4
|
The primitive PolylineMarker
Every marker takes a reference point as an argument in
its constructor. CircleMarker and EllipsMarker take
another point as the center and PolylineMarker takes the
first point of its list as its origin.
The coordinates of the centre or origin point are offsets
with respect to the reference point.
#include <Graphic2d_PolylineMarker.hxx>
Public Member Functions | |
Graphic2d_PolylineMarker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length aXPosition, const Quantity_Length aYPosition, const Graphic2d_Array1OfVertex &aListVertex) | |
Creates a polyline marker. The reference point is <aXPosition>, <aYPosition> Warning: Raises an error if the length of the polyline is less than 2 points. | |
Graphic2d_PolylineMarker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length aXPosition, const Quantity_Length aYPosition, const TColStd_Array1OfReal &aListX, const TColStd_Array1OfReal &aListY) | |
Creates a polyline marker. The reference point is <aXPosition>, <aYPosition> Warning: Raises an error if the length of the polyline is less than 2 points or if length of <aListX> is not equal to length of <aListY>. | |
Standard_Integer | Length () const |
Returns the number of points of the polyline marker | |
void | Values (const Standard_Integer aRank, Quantity_Length &X, Quantity_Length &Y) const |
Returns the point of rank <aRank> from the polyline marker | |
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 polyline <me>. | |
virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws edge <anIndex> of the polyline marker <me>. | |
virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws vertex <anIndex> of the polyline marker <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 polyline <me> is picked, Standard_False if not. |
Graphic2d_PolylineMarker::Graphic2d_PolylineMarker | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const Quantity_Length | aXPosition, | ||
const Quantity_Length | aYPosition, | ||
const Graphic2d_Array1OfVertex & | aListVertex | ||
) |
Graphic2d_PolylineMarker::Graphic2d_PolylineMarker | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const Quantity_Length | aXPosition, | ||
const Quantity_Length | aYPosition, | ||
const TColStd_Array1OfReal & | aListX, | ||
const TColStd_Array1OfReal & | aListY | ||
) |
void Graphic2d_PolylineMarker::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Graphic2d_PolylineMarker::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
virtual void Graphic2d_PolylineMarker::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
Standard_Boolean Graphic2d_PolylineMarker::Pick | ( | const Standard_ShortReal | X, |
const Standard_ShortReal | Y, | ||
const Standard_ShortReal | aPrecision, | ||
const Handle< Graphic2d_Drawer > & | aDrawer | ||
) | [protected, virtual] |
Implements Graphic2d_Primitive.
static void Graphic2d_PolylineMarker::Retrieve | ( | Aspect_IFStream & | anIFStream, |
const Handle< Graphic2d_GraphicObject > & | aGraphicObject | ||
) | [static] |
virtual void Graphic2d_PolylineMarker::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
void Graphic2d_PolylineMarker::Values | ( | const Standard_Integer | aRank, |
Quantity_Length & | X, | ||
Quantity_Length & | Y | ||
) | const |