#include <Graphic2d_Line.hxx>
Inheritance diagram for Graphic2d_Line:
Public Member Functions | |
Standard_EXPORT void | SetWidthIndex (const Standard_Integer anIndex) |
Defines the index, in the width map, of the line width. Warning: Note that the index 0 can be undefined as a WidthMapEntry, in this case the default line width of 1 pixel is taken. . | |
Standard_EXPORT void | SetTypeIndex (const Standard_Integer anIndex) |
Defines the index, in the type map, of the line type. Warning: Note that the index 0 can be undefined as a TypeMapEntry, in this case the default line type SOLID is taken. . | |
Standard_EXPORT void | SetInteriorColorIndex (const Standard_Integer anIndex) |
Defines the index, in the color map, of the interior color. Warning: The type of polygon filling must be : Graphic2d_TOPF_FILLED . | |
Standard_EXPORT void | SetDrawEdge (const Standard_Boolean aDraw) |
Defines if the edges are drawn or not. Warning: The type of polygon filling must be : Graphic2d_TOPF_FILLED or Graphic2d_TOPF_PATTERNED . | |
Standard_EXPORT void | SetInteriorPattern (const Standard_Integer anIndex) |
Defines the pattern for closed lines. Warning: The type of polygon filling must be : Graphic2d_TOPF_PATTERNED . | |
Standard_EXPORT void | SetTypeOfPolygonFilling (const Graphic2d_TypeOfPolygonFilling aType) |
Defines the pattern for closed lines. TypeOfPolygonFilling is : - Graphic2d_TOPF_EMPTY - Graphic2d_TOPF_FILLED - Graphic2d_TOPF_PATTERNED . | |
Standard_EXPORT Standard_Integer | InteriorColorIndex () const |
Returns the interior color used. . | |
Standard_EXPORT Standard_Integer | InteriorPattern () const |
Returns the interior pattern used. . | |
Standard_EXPORT Graphic2d_TypeOfPolygonFilling | TypeOfPolygonFilling () const |
Returns the type of polygon filling used. . | |
Standard_EXPORT Standard_Integer | TypeIndex () const |
Returns the line type index used. . | |
Standard_EXPORT Standard_Integer | WidthIndex () const |
Returns the line width index used. . | |
Standard_EXPORT void | Save (Aspect_FStream &aFStream) const |
Standard_EXPORT void | Retrieve (Aspect_IFStream &anIFStream) |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT | Graphic2d_Line (const Handle(Graphic2d_GraphicObject)&aGraphicObject) |
Defines a line with the following default values : - Color Index = 1 (the first user defined color) - Width Index = 0 (default 1 pixel width) - Type Index = 0 (default solid line) - Draw Edge = Standard_True - Type Of Polygon Filling = Graphic2d_TOPF_EMPTY - Pattern Index = 0 (default solid polygon filling) - Interior Color Index = 1 (the first user defined color) . | |
Standard_EXPORT void | DrawLineAttrib (const Handle(Graphic2d_Drawer)&aDrawer) const |
Sets line attributes and polyline attributes in the drawer <adrawer>. . | |
Standard_EXPORT void | DrawMarkerAttrib (const Handle(Graphic2d_Drawer)&aDrawer) const |
Sets marker attributes -in the drawer <adrawer>. . | |
Static Protected Member Functions | |
static Standard_EXPORT Standard_Boolean | IsOn (const Standard_ShortReal aX, const Standard_ShortReal aY, const Standard_ShortReal aX1, const Standard_ShortReal aY1, const Standard_ShortReal aX2, const Standard_ShortReal aY2, const Standard_ShortReal aPrecision) |
Returns Standard_True if (<ax>, <ay>) belongs to the segment (<ax1>, <ay1>), (<ax2>, <ay2>). . | |
static Standard_EXPORT Standard_Boolean | IsIn (const Standard_ShortReal aX, const Standard_ShortReal aY, const TShort_Array1OfShortReal &X, const TShort_Array1OfShortReal &Y, const Standard_ShortReal aPrecision) |
Returns Standard_True if (<ax>, <ay>) is inside the wire defined by the array <x> and <y>. . | |
Protected Attributes | |
Graphic2d_TypeOfPolygonFilling | myTypeOfPolygonFilling |
Standard_Boolean | myDrawEdge |
Private Attributes | |
Standard_Integer | myWidthIndex |
Standard_Integer | myTypeIndex |
Standard_Integer | myPatternIndex |
Standard_Integer | myInteriorColorIndex |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|