Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

Prs3d_ToolDisk Class Reference

Standard presentation algorithm that outputs graphical primitives for disk surface. More...

#include <Prs3d_ToolDisk.hxx>

Inheritance diagram for Prs3d_ToolDisk:
Inheritance graph
[legend]

Public Member Functions

 Prs3d_ToolDisk (const Standard_Real theInnerRadius, const Standard_Real theOuterRadius, const Standard_Integer theNbSlices, const Standard_Integer theNbStacks)
 Initializes the algorithm. More...
 
void SetAngleRange (Standard_Real theStartAngle, Standard_Real theEndAngle)
 Set angle range in radians [0, 2*PI] by default. More...
 
- Public Member Functions inherited from Prs3d_ToolQuadric
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 Handle< Graphic3d_ArrayOfTrianglesCreate (const Standard_Real theInnerRadius, const Standard_Real theOuterRadius, const Standard_Integer theNbSlices, const Standard_Integer theNbStacks, const gp_Trsf &theTrsf)
 Generate primitives for 3D quadric surface and return a filled array. More...
 
- Static Public Member Functions inherited from Prs3d_ToolQuadric
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

virtual gp_Pnt Vertex (const Standard_Real theU, const Standard_Real theV) override
 Computes vertex at given parameter location of the surface. More...
 
virtual gp_Dir Normal (const Standard_Real, const Standard_Real) override
 Computes normal at given parameter location of the surface. More...
 
- Protected Member Functions inherited from Prs3d_ToolQuadric
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...
 

Protected Attributes

Standard_Real myInnerRadius
 
Standard_Real myOuterRadius
 
Standard_Real myStartAngle
 Start angle in counter clockwise order. More...
 
Standard_Real myEndAngle
 End angle in counter clockwise order. More...
 
- Protected Attributes inherited from Prs3d_ToolQuadric
Standard_Integer mySlicesNb
 
Standard_Integer myStacksNb
 

Detailed Description

Standard presentation algorithm that outputs graphical primitives for disk surface.

Constructor & Destructor Documentation

◆ Prs3d_ToolDisk()

Prs3d_ToolDisk::Prs3d_ToolDisk ( const Standard_Real  theInnerRadius,
const Standard_Real  theOuterRadius,
const Standard_Integer  theNbSlices,
const Standard_Integer  theNbStacks 
)

Initializes the algorithm.

Member Function Documentation

◆ Create()

static Handle< Graphic3d_ArrayOfTriangles > Prs3d_ToolDisk::Create ( const Standard_Real  theInnerRadius,
const Standard_Real  theOuterRadius,
const Standard_Integer  theNbSlices,
const Standard_Integer  theNbStacks,
const gp_Trsf theTrsf 
)
static

Generate primitives for 3D quadric surface and return a filled array.

◆ Normal()

virtual gp_Dir Prs3d_ToolDisk::Normal ( const Standard_Real  ,
const Standard_Real   
)
inlineoverrideprotectedvirtual

Computes normal at given parameter location of the surface.

Implements Prs3d_ToolQuadric.

◆ SetAngleRange()

void Prs3d_ToolDisk::SetAngleRange ( Standard_Real  theStartAngle,
Standard_Real  theEndAngle 
)
inline

Set angle range in radians [0, 2*PI] by default.

Parameters
theStartAngle[in] Start angle in counter clockwise order
theEndAngle[in] End angle in counter clockwise order

◆ Vertex()

virtual gp_Pnt Prs3d_ToolDisk::Vertex ( const Standard_Real  theU,
const Standard_Real  theV 
)
overrideprotectedvirtual

Computes vertex at given parameter location of the surface.

Implements Prs3d_ToolQuadric.

Field Documentation

◆ myEndAngle

Standard_Real Prs3d_ToolDisk::myEndAngle
protected

End angle in counter clockwise order.

◆ myInnerRadius

Standard_Real Prs3d_ToolDisk::myInnerRadius
protected

◆ myOuterRadius

Standard_Real Prs3d_ToolDisk::myOuterRadius
protected

◆ myStartAngle

Standard_Real Prs3d_ToolDisk::myStartAngle
protected

Start angle in counter clockwise order.


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