Open CASCADE Technology
6.5.4
|
This class allows the creation of a vertex with
a colour and a 3D normal.
#include <Graphic3d_VertexNC.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | Graphic3d_VertexNC () |
Creates a point with coordinates 0.0, 0.0, 0.0 for which the normal is 0.0, 0.0, 1.0 and the colour is Quantity_NOC_WHITE. | |
Graphic3d_VertexNC (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ, const Standard_Real ANX, const Standard_Real ANY, const Standard_Real ANZ, const Quantity_Color &AColor, const Standard_Boolean FlagNormalise=Standard_True) | |
Creates a point with coordinates <AX>, <AY>, <AZ> for which the normal is <ANX>, <ANY>, <ANZ> and the colour is <AColor>. If <FlagNormalise> is True the normal is already normalised Else the normal is not normalised, the graphic do it. | |
Graphic3d_VertexNC (const Graphic3d_Vertex &APoint, const Graphic3d_Vector &AVector, const Quantity_Color &AColor, const Standard_Boolean FlagNormalise=Standard_True) | |
Creates a point in <APoint> for which the normal is <AVector> and the colour is <AColor>. If <FlagNormalise> is True the normal is already normalised Else the normal is not normalised, the graphic do it. | |
void | SetColor (const Quantity_Color &ColorNew) |
Modifies the colour of the point <me>. | |
Quantity_Color | Color () const |
Returns the colour of the point <me>. |
Graphic3d_VertexNC::Graphic3d_VertexNC | ( | const Standard_Real | AX, |
const Standard_Real | AY, | ||
const Standard_Real | AZ, | ||
const Standard_Real | ANX, | ||
const Standard_Real | ANY, | ||
const Standard_Real | ANZ, | ||
const Quantity_Color & | AColor, | ||
const Standard_Boolean | FlagNormalise = Standard_True |
||
) |
Graphic3d_VertexNC::Graphic3d_VertexNC | ( | const Graphic3d_Vertex & | APoint, |
const Graphic3d_Vector & | AVector, | ||
const Quantity_Color & | AColor, | ||
const Standard_Boolean | FlagNormalise = Standard_True |
||
) |
Quantity_Color Graphic3d_VertexNC::Color | ( | ) | const |
void Graphic3d_VertexNC::SetColor | ( | const Quantity_Color & | ColorNew | ) |