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

The primitive SetOfCurves

#include <GGraphic2d_SetOfCurves.hxx>

Inheritance diagram for GGraphic2d_SetOfCurves:
Inheritance graph
[legend]

Public Member Functions

 GGraphic2d_SetOfCurves (const Handle< Graphic2d_GraphicObject > &aGraphicObject)
 Creates an empty set of curves in the graphic
object <aGraphicObject>.

void Add (const Handle< Geom2d_Curve > &aCurve)
 Add a curve in the set

Standard_Integer Length () const
 Returns the number of curves in the set.

Handle_Geom2d_Curve Values (const Standard_Integer aRank) const
 Returns the curve of rank <aRank> from the set.

Protected Member Functions

void Draw (const Handle< Graphic2d_Drawer > &aDrawer)
 Draws the set of curves <me>.

virtual void DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws element <anIndex> of the set <me>.

virtual void DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws vertex <anIndex> of the set <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 one curve of the set <me>
is picked, Standard_False if not.

virtual void Save (Aspect_FStream &aFStream) const

Constructor & Destructor Documentation


Member Function Documentation

void GGraphic2d_SetOfCurves::Draw ( const Handle< Graphic2d_Drawer > &  aDrawer) [protected, virtual]

Implements Graphic2d_Primitive.

virtual void GGraphic2d_SetOfCurves::DrawElement ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

virtual void GGraphic2d_SetOfCurves::DrawVertex ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

Implements Graphic2d_Primitive.

virtual void GGraphic2d_SetOfCurves::Save ( Aspect_FStream aFStream) const [protected, virtual]

Reimplemented from Graphic2d_Line.

Handle_Geom2d_Curve GGraphic2d_SetOfCurves::Values ( const Standard_Integer  aRank) const

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