Open CASCADE Technology  7.1.0.beta
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
Prs3d_ToolQuadric Class Referenceabstract

Base class to build 3D surfaces presentation of quadric surfaces. More...

#include <Prs3d_ToolQuadric.hxx>

Inheritance diagram for Prs3d_ToolQuadric:
Inheritance graph
[legend]

Public Member Functions

void FillArray (Handle< Graphic3d_ArrayOfTriangles > &theArray, const gp_Trsf &theTrsf)
 Generate primitives for 3D quadric surface and fill the given array. Optional transformation is applied. More...
 
void FillArray (Handle< Graphic3d_ArrayOfTriangles > &theArray, Handle< Poly_Triangulation > &theTriangulation, const gp_Trsf &theTrsf)
 Generate primitives for 3D quadric surface presentation and fill the given array and poly triangulation structure. Optional transformation is applied. More...
 

Static Public Member Functions

static Standard_Integer TrianglesNb (const Standard_Integer theSlicesNb, const Standard_Integer theStacksNb)
 Number of triangles for presentation with the given params. More...
 

Protected Member Functions

void fillArrays (const gp_Trsf &theTrsf, TColgp_Array1OfPnt &theArray, NCollection_Array1< gp_Dir > &theNormals)
 Method implements an algorithm to generate arrays of vertices and normals for 3D surface. More...
 
Standard_Integer TrianglesNb () const
 Number of triangles in generated presentation. More...
 
virtual gp_Pnt Vertex (const Standard_Real theU, const Standard_Real theV)=0
 Redefine this method to generate vertex at given parameters. More...
 
virtual gp_Dir Normal (const Standard_Real theU, const Standard_Real theV)=0
 Redefine this method to generate normal at given parameters. More...
 

Protected Attributes

Standard_Integer mySlicesNb
 
Standard_Integer myStacksNb
 

Detailed Description

Base class to build 3D surfaces presentation of quadric surfaces.

Member Function Documentation

void Prs3d_ToolQuadric::FillArray ( Handle< Graphic3d_ArrayOfTriangles > &  theArray,
const gp_Trsf theTrsf 
)

Generate primitives for 3D quadric surface and fill the given array. Optional transformation is applied.

void Prs3d_ToolQuadric::FillArray ( Handle< Graphic3d_ArrayOfTriangles > &  theArray,
Handle< Poly_Triangulation > &  theTriangulation,
const gp_Trsf theTrsf 
)

Generate primitives for 3D quadric surface presentation and fill the given array and poly triangulation structure. Optional transformation is applied.

void Prs3d_ToolQuadric::fillArrays ( const gp_Trsf theTrsf,
TColgp_Array1OfPnt theArray,
NCollection_Array1< gp_Dir > &  theNormals 
)
protected

Method implements an algorithm to generate arrays of vertices and normals for 3D surface.

virtual gp_Dir Prs3d_ToolQuadric::Normal ( const Standard_Real  theU,
const Standard_Real  theV 
)
protectedpure virtual

Redefine this method to generate normal at given parameters.

Implemented in Prs3d_ToolSphere, Prs3d_ToolCylinder, and Prs3d_ToolDisk.

static Standard_Integer Prs3d_ToolQuadric::TrianglesNb ( const Standard_Integer  theSlicesNb,
const Standard_Integer  theStacksNb 
)
inlinestatic

Number of triangles for presentation with the given params.

Standard_Integer Prs3d_ToolQuadric::TrianglesNb ( ) const
inlineprotected

Number of triangles in generated presentation.

virtual gp_Pnt Prs3d_ToolQuadric::Vertex ( const Standard_Real  theU,
const Standard_Real  theV 
)
protectedpure virtual

Redefine this method to generate vertex at given parameters.

Implemented in Prs3d_ToolSphere, Prs3d_ToolCylinder, and Prs3d_ToolDisk.

Field Documentation

Standard_Integer Prs3d_ToolQuadric::mySlicesNb
protected
Standard_Integer Prs3d_ToolQuadric::myStacksNb
protected

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