Open CASCADE Technology
6.5.4
|
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>
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 |
Graphic2d_VectorialMarker::Graphic2d_VectorialMarker | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const Quantity_Length | aXPosition, | ||
const Quantity_Length | aYPosition | ||
) | [protected] |
void Graphic2d_VectorialMarker::SetPosition | ( | const Quantity_Length | aXPosition, |
const Quantity_Length | aYPosition | ||
) |