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

Groups all the primitives which behaves like
geometrical marker.
for example : EllipsMarker, CircleMarker ...
A marker is a primitive which retains its original
on-screen size no matter how the view is zoomed.
For example, markers are used as symbols of dimension.
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_VectorialMarker.hxx>

Inheritance diagram for Graphic2d_VectorialMarker:
Inheritance graph
[legend]

Public Member Functions

void SetPosition (const Quantity_Length aXPosition, const Quantity_Length aYPosition)
 Modifies the marker position.
Warning: If the associated GraphicObject is transformed
the position will be transformed.

Quantity_Length XPosition () const
 Returns the x position of the marker
Warning: If the associated GraphicObject is transformed
the returned position is the transformed position.

Quantity_Length YPosition () const
 Returns the y position of the marker
Warning: If the associated GraphicObject is transformed
the returned position is the transformed position.

Protected Member Functions

 Graphic2d_VectorialMarker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length aXPosition, const Quantity_Length aYPosition)
 Creates a marker at <aXPosition>, <aYPosition>

Protected Attributes

Standard_ShortReal myXPosition
Standard_ShortReal myYPosition

Constructor & Destructor Documentation


Member Function Documentation


Field Documentation


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