Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions
Graphic2d_PolylineMarker Class Reference

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>

Inheritance diagram for Graphic2d_PolylineMarker:
Inheritance graph
[legend]

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.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.


The documentation for this class was generated from the following file: