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

The primitive Marker

#include <Graphic2d_Marker.hxx>

Inheritance diagram for Graphic2d_Marker:
Inheritance graph
[legend]

Public Member Functions

 Graphic2d_Marker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y)
 Creates a pixel point marker at position <X>,<Y>

 Graphic2d_Marker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Standard_Integer anIndex, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length aWidth, const Quantity_Length anHeight, const Quantity_PlaneAngle anAngle=0.0)
 Creates the predefined marker index <anIndex>
at position <X>,<Y> and size <aWidth>,<aHeight>.
Angle is measured counterclockwise with 0 radian
at 3 o'clock.

void Position (Quantity_Length &X, Quantity_Length &Y) const
 returns the coordinates of the position of the marker

void Size (Quantity_Length &aW, Quantity_Length &aH) const
 returns the width and height of the marker

Standard_Integer Index () const
 returns the index of marker in the map of markers

Quantity_PlaneAngle Angle () const
 returns the angle of the marker

virtual void Save (Aspect_FStream &aFStream) const

Protected Member Functions

void Draw (const Handle< Graphic2d_Drawer > &aDrawer)
 Draws the 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 marker <me> is picked,
Standard_False if not.
Warning: Checks only if the point <X>, <Y> is in the
boundary rectangle of <me>

virtual void DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws the vertex <aVertex> of the primitive <me>.


Constructor & Destructor Documentation


Member Function Documentation

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

Implements Graphic2d_Primitive.

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

Reimplemented from Graphic2d_Primitive.

Implements Graphic2d_Primitive.

virtual void Graphic2d_Marker::Save ( Aspect_FStream aFStream) const [virtual]

Reimplemented from Graphic2d_Line.


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