Open CASCADE Technology 6.5.2
Public Member Functions
Prs2d_AspectLine Class Reference

defines the attributes when drawing a line presentation

#include <Prs2d_AspectLine.hxx>

Inheritance diagram for Prs2d_AspectLine:
Inheritance graph
[legend]

Public Member Functions

 Prs2d_AspectLine ()
 default constructor

 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

 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

void SetColor (const Quantity_NameOfColor aColor)
 Modifies the Aspect by redefining a color

void SetColor (const Quantity_Color &aColor)
 Modifies the Aspect by redefining a color

void SetType (const Aspect_TypeOfLine aType)
 Modifies the Aspect by redefining a type of line

void SetWidth (const Aspect_WidthOfLine aWidth)
 Modifies the Aspect by redefining a width of line

void SetInterColor (const Quantity_NameOfColor aColor)
 Modifies the Aspect by redefining a interior color

void SetInterColor (const Quantity_Color &aColor)
 Modifies the Aspect by redefining a interior color

void SetTypeOfFill (const Graphic2d_TypeOfPolygonFilling aType)
 Modifies the Aspect Polygon by redefining its type of polygon filling

void SetTile (const Standard_Integer aTile)
 Sets the tile of the Aspect Polygon

void SetDrawEdge (const Standard_Boolean aDrawEdge)
 Sets the flag <aDrawEdge>

void ValuesOfLine (Quantity_Color &aColor, Aspect_TypeOfLine &aType, Aspect_WidthOfLine &aWidth) const
 Return the current values of this line

void ValuesOfPoly (Quantity_Color &aColor, Graphic2d_TypeOfPolygonFilling &aTypeFill, Standard_Integer &aTile, Standard_Boolean &aDrawEdge) const
 Returns the current values of this closed line

Standard_Integer ColorIndex () const
 Returns current color index according to the color aspect

Standard_Integer TypeIndex () const
 Returns current type index according to the type aspect

Standard_Integer WidthIndex () const
 Returns current width index according to the width aspect

Standard_Integer InterColorIndex () const
 Returns current color index according to the color aspect

void SetColorIndex (const Standard_Integer anInd)
 Sets current color index according to the color aspect

void SetTypeIndex (const Standard_Integer anInd)
 Sets current type index according to the type aspect

void SetWidthIndex (const Standard_Integer anInd)
 Sets current width index according to the width aspect

void SetIntColorInd (const Standard_Integer anInd)
 Sets current color index according to the color aspect


Constructor & Destructor Documentation

Prs2d_AspectLine::Prs2d_AspectLine ( )
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 
)
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_Integer Prs2d_AspectLine::ColorIndex ( ) const
Standard_Integer Prs2d_AspectLine::InterColorIndex ( ) const
void Prs2d_AspectLine::SetColor ( const Quantity_Color aColor)
void Prs2d_AspectLine::SetColor ( const Quantity_NameOfColor  aColor)
void Prs2d_AspectLine::SetColorIndex ( const Standard_Integer  anInd)
void Prs2d_AspectLine::SetDrawEdge ( const Standard_Boolean  aDrawEdge)
void Prs2d_AspectLine::SetIntColorInd ( const Standard_Integer  anInd)
void Prs2d_AspectLine::SetInterColor ( const Quantity_NameOfColor  aColor)
void Prs2d_AspectLine::SetInterColor ( const Quantity_Color aColor)
void Prs2d_AspectLine::SetTile ( const Standard_Integer  aTile)
void Prs2d_AspectLine::SetType ( const Aspect_TypeOfLine  aType)
void Prs2d_AspectLine::SetTypeIndex ( const Standard_Integer  anInd)
void Prs2d_AspectLine::SetTypeOfFill ( const Graphic2d_TypeOfPolygonFilling  aType)
void Prs2d_AspectLine::SetWidth ( const Aspect_WidthOfLine  aWidth)
void Prs2d_AspectLine::SetWidthIndex ( const Standard_Integer  anInd)
Standard_Integer Prs2d_AspectLine::TypeIndex ( ) const
void Prs2d_AspectLine::ValuesOfLine ( Quantity_Color aColor,
Aspect_TypeOfLine aType,
Aspect_WidthOfLine aWidth 
) const
void Prs2d_AspectLine::ValuesOfPoly ( Quantity_Color aColor,
Graphic2d_TypeOfPolygonFilling aTypeFill,
Standard_Integer aTile,
Standard_Boolean aDrawEdge 
) const
Standard_Integer Prs2d_AspectLine::WidthIndex ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines