# Visualization
TKV2d
Prs2d

# Prs2d_AspectLine Class Reference

defines the attributes when drawing a line presentation

`#include <Prs2d_AspectLine.hxx>`

Inheritance diagram for Prs2d_AspectLine:

[legend]

## Public Member Functions

Standard_EXPORT | Prs2d_AspectLine ()
| default constructor
Standard_EXPORT | Prs2d_AspectLine (const Quantity_NameOfColor aColor, const Aspect_TypeOfLine aType, const Aspect_WidthOfLine aWidth, const Quantity_NameOfColor aInterColor=Quantity_NOC_YELLOW, const Graphic2d_TypeOfPolygonFilling aTypeFill=Graphic2d_TOPF_EMPTY, const Standard_Integer aTiled=0, const Standard_Boolean aDrawEdge=Standard_True)
| Initializes the AspectLine defined values .
Standard_EXPORT | Prs2d_AspectLine (const Quantity_Color &aColor, const Aspect_TypeOfLine aType, const Aspect_WidthOfLine aWidth, const Quantity_Color &aInterColor, const Graphic2d_TypeOfPolygonFilling aTypeFill=Graphic2d_TOPF_EMPTY, const Standard_Integer aTileInd=0, const Standard_Boolean aDrawEdge=Standard_True)
| Initializes the AspectLine defined values .
Standard_EXPORT void | SetColor (const Quantity_NameOfColor aColor)
| Modifies the Aspect by redefining a color .
Standard_EXPORT void | SetColor (const Quantity_Color &aColor)
| Modifies the Aspect by redefining a color .
Standard_EXPORT void | SetType (const Aspect_TypeOfLine aType)
| Modifies the Aspect by redefining a type of line .
Standard_EXPORT void | SetWidth (const Aspect_WidthOfLine aWidth)
| Modifies the Aspect by redefining a width of line .
Standard_EXPORT void | SetInterColor (const Quantity_NameOfColor aColor)
| Modifies the Aspect by redefining a interior color .
Standard_EXPORT void | SetInterColor (const Quantity_Color &aColor)
| Modifies the Aspect by redefining a interior color .
Standard_EXPORT void | SetTypeOfFill (const Graphic2d_TypeOfPolygonFilling aType)
| Modifies the Aspect Polygon by redefining its type of polygon filling .
Standard_EXPORT void | SetTile (const Standard_Integer aTile)
| Sets the tile of the Aspect Polygon .
Standard_EXPORT void | SetDrawEdge (const Standard_Boolean aDrawEdge)
| Sets the flag <adrawedge> .
Standard_EXPORT void | ValuesOfLine (Quantity_Color &aColor, Aspect_TypeOfLine &aType, Aspect_WidthOfLine &aWidth) const
| Return the current values of this line .
Standard_EXPORT void | ValuesOfPoly (Quantity_Color &aColor, Graphic2d_TypeOfPolygonFilling &aTypeFill, Standard_Integer &aTile, Standard_Boolean &aDrawEdge) const
| Returns the current values of this closed line .
Standard_EXPORT Standard_Integer | ColorIndex () const
| Returns current color index according to the color aspect .
Standard_EXPORT Standard_Integer | TypeIndex () const
| Returns current type index according to the type aspect .
Standard_EXPORT Standard_Integer | WidthIndex () const
| Returns current width index according to the width aspect .
Standard_EXPORT Standard_Integer | InterColorIndex () const
| Returns current color index according to the color aspect .
Standard_EXPORT void | SetColorIndex (const Standard_Integer anInd)
| Sets current color index according to the color aspect .
Standard_EXPORT void | SetTypeIndex (const Standard_Integer anInd)
| Sets current type index according to the type aspect .
Standard_EXPORT void | SetWidthIndex (const Standard_Integer anInd)
| Sets current width index according to the width aspect .
Standard_EXPORT void | SetIntColorInd (const Standard_Integer anInd)
| Sets current color index according to the color aspect .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Attributes

Quantity_Color | myColor
Aspect_TypeOfLine | myType
Aspect_WidthOfLine | myWidth
Quantity_Color | myInterColor
Graphic2d_TypeOfPolygonFilling | myFillType
Standard_Integer | myTile
Standard_Boolean | myDrawEdge
Standard_Integer | myColorIndex
Standard_Integer | myTypeIndex
Standard_Integer | myWidthIndex
Standard_Integer | myIntColorInd

## Constructor & Destructor Documentation

Standard_EXPORT Prs2d_AspectLine::Prs2d_AspectLine | ( |  | ) |

Standard_EXPORT Prs2d_AspectLine::Prs2d_AspectLine | ( | const Quantity_NameOfColor | aColor,
|  | const Aspect_TypeOfLine | aType,
|  | const Aspect_WidthOfLine | aWidth,
|  | const Quantity_NameOfColor | aInterColor = `Quantity_NOC_YELLOW`,
|  | const Graphic2d_TypeOfPolygonFilling | aTypeFill = `Graphic2d_TOPF_EMPTY`,
|  | const Standard_Integer | aTiled = `0`,
|  | const Standard_Boolean | aDrawEdge = `Standard_True`
| ) |

Standard_EXPORT Prs2d_AspectLine::Prs2d_AspectLine | ( | const Quantity_Color & | aColor,
|  | const Aspect_TypeOfLine | aType,
|  | const Aspect_WidthOfLine | aWidth,
|  | const Quantity_Color & | aInterColor,
|  | const Graphic2d_TypeOfPolygonFilling | aTypeFill = `Graphic2d_TOPF_EMPTY`,
|  | const Standard_Integer | aTileInd = `0`,
|  | const Standard_Boolean | aDrawEdge = `Standard_True`
| ) |

## Member Function Documentation

Standard_EXPORT Standard_Integer Prs2d_AspectLine::ColorIndex | ( |  | ) | const

Standard_EXPORT const Prs2d_AspectLine::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from Prs2d_AspectRoot.

Standard_EXPORT Standard_Integer Prs2d_AspectLine::InterColorIndex | ( |  | ) | const

Standard_EXPORT void Prs2d_AspectLine::SetColor | ( | const Quantity_Color & | aColor | ) |

Standard_EXPORT void Prs2d_AspectLine::SetColor | ( | const Quantity_NameOfColor | aColor | ) |

Standard_EXPORT void Prs2d_AspectLine::SetColorIndex | ( | const Standard_Integer | anInd | ) |

Standard_EXPORT void Prs2d_AspectLine::SetDrawEdge | ( | const Standard_Boolean | aDrawEdge | ) |

Standard_EXPORT void Prs2d_AspectLine::SetIntColorInd | ( | const Standard_Integer | anInd | ) |

Standard_EXPORT void Prs2d_AspectLine::SetInterColor | ( | const Quantity_Color & | aColor | ) |

Standard_EXPORT void Prs2d_AspectLine::SetInterColor | ( | const Quantity_NameOfColor | aColor | ) |

Standard_EXPORT void Prs2d_AspectLine::SetTile | ( | const Standard_Integer | aTile | ) |

Standard_EXPORT void Prs2d_AspectLine::SetType | ( | const Aspect_TypeOfLine | aType | ) |

Standard_EXPORT void Prs2d_AspectLine::SetTypeIndex | ( | const Standard_Integer | anInd | ) |

Standard_EXPORT void Prs2d_AspectLine::SetTypeOfFill | ( | const Graphic2d_TypeOfPolygonFilling | aType | ) |

Standard_EXPORT void Prs2d_AspectLine::SetWidth | ( | const Aspect_WidthOfLine | aWidth | ) |

Standard_EXPORT void Prs2d_AspectLine::SetWidthIndex | ( | const Standard_Integer | anInd | ) |

Standard_EXPORT Standard_Integer Prs2d_AspectLine::TypeIndex | ( |  | ) | const

Standard_EXPORT void Prs2d_AspectLine::ValuesOfLine | ( | Quantity_Color & | aColor,
|  | Aspect_TypeOfLine & | aType,
|  | Aspect_WidthOfLine & | aWidth
| ) | const

Standard_EXPORT void Prs2d_AspectLine::ValuesOfPoly | ( | Quantity_Color & | aColor,
|  | Graphic2d_TypeOfPolygonFilling & | aTypeFill,
|  | Standard_Integer & | aTile,
|  | Standard_Boolean & | aDrawEdge
| ) | const

Standard_EXPORT Standard_Integer Prs2d_AspectLine::WidthIndex | ( |  | ) | const

## Field Documentation

Quantity_Color Prs2d_AspectLine::myColor `[private]`

Standard_Integer Prs2d_AspectLine::myColorIndex `[private]`

Standard_Boolean Prs2d_AspectLine::myDrawEdge `[private]`

Graphic2d_TypeOfPolygonFilling Prs2d_AspectLine::myFillType `[private]`

Standard_Integer Prs2d_AspectLine::myIntColorInd `[private]`

Quantity_Color Prs2d_AspectLine::myInterColor `[private]`

Standard_Integer Prs2d_AspectLine::myTile `[private]`

Aspect_TypeOfLine Prs2d_AspectLine::myType `[private]`

Standard_Integer Prs2d_AspectLine::myTypeIndex `[private]`

Aspect_WidthOfLine Prs2d_AspectLine::myWidth `[private]`

Standard_Integer Prs2d_AspectLine::myWidthIndex `[private]`

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

- Prs2d_AspectLine.hxx