Open CASCADE Technology
6.5.4
|
The primitive symbol for drawing
#include <Prs2d_DrawSymbol.hxx>
Public Member Functions | |
Prs2d_DrawSymbol (const Handle< Graphic2d_GraphicObject > &aGO, const Prs2d_TypeOfSymbol aSymbType, const Standard_Real aX, const Standard_Real aY, const Standard_Real aWidth=10.0, const Standard_Real aHeight=10.0, const Standard_Real anAngle=0.0) | |
Creates the predefined marker index <anIndex> at position <aX>, <aY> and size <aWidth>,<aHeight>. //! Trigger - Raises SymbolDefinitionError if the symbol type isn't defined, or the symbol size < aWidth, aHeight > is null. | |
virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
Draws the symbol <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 symbol <me> is picked, Standard_False if not. Warning: Checks only if the point <X>, <Y> is in the boundary rectangle of <me> |
Prs2d_DrawSymbol::Prs2d_DrawSymbol | ( | const Handle< Graphic2d_GraphicObject > & | aGO, |
const Prs2d_TypeOfSymbol | aSymbType, | ||
const Standard_Real | aX, | ||
const Standard_Real | aY, | ||
const Standard_Real | aWidth = 10.0 , |
||
const Standard_Real | aHeight = 10.0 , |
||
const Standard_Real | anAngle = 0.0 |
||
) |
void Prs2d_DrawSymbol::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
Standard_Boolean Prs2d_DrawSymbol::Pick | ( | const Standard_ShortReal | X, |
const Standard_ShortReal | Y, | ||
const Standard_ShortReal | aPrecision, | ||
const Handle< Graphic2d_Drawer > & | aDrawer | ||
) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Prs2d_DrawSymbol::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.