Open CASCADE Technology  7.7.0
Data Structures | Static Public Member Functions
StdPrs_Isolines Class Reference

Tool for computing isoline representation for a face or surface. Depending on a flags set to the given Prs3d_Drawer instance, on-surface (is used by default) or on-triangulation isoline builder algorithm will be used. If the given shape is not triangulated, on-surface isoline builder will be applied regardless of Prs3d_Drawer flags. More...

#include <StdPrs_Isolines.hxx>

Inheritance diagram for StdPrs_Isolines:
Inheritance graph
[legend]

Data Structures

struct  PntOnIso
 Auxiliary structure defining 3D point on isoline. More...
 
struct  SegOnIso
 Auxiliary structure defining segment of isoline. More...
 

Static Public Member Functions

static void Add (const Handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Real theDeflection)
 Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face. More...
 
static void Add (const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Real theDeflection, Prs3d_NListOfSequenceOfPnt &theUPolylines, Prs3d_NListOfSequenceOfPnt &theVPolylines)
 Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face. More...
 
static void AddOnTriangulation (const Handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer)
 Computes isolines on triangulation and adds them to a presentation. More...
 
static void AddOnTriangulation (const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer, Prs3d_NListOfSequenceOfPnt &theUPolylines, Prs3d_NListOfSequenceOfPnt &theVPolylines)
 Computes isolines on triangulation. More...
 
static void AddOnTriangulation (const Handle< Prs3d_Presentation > &thePresentation, const Handle< Poly_Triangulation > &theTriangulation, const Handle< Geom_Surface > &theSurface, const TopLoc_Location &theLocation, const Handle< Prs3d_Drawer > &theDrawer, const TColStd_SequenceOfReal &theUIsoParams, const TColStd_SequenceOfReal &theVIsoParams)
 Computes isolines on triangulation and adds them to a presentation. More...
 
static void AddOnSurface (const Handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Real theDeflection)
 Computes isolines on surface and adds them to presentation. More...
 
static void AddOnSurface (const TopoDS_Face &theFace, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Real theDeflection, Prs3d_NListOfSequenceOfPnt &theUPolylines, Prs3d_NListOfSequenceOfPnt &theVPolylines)
 Computes isolines on surface and adds them to presentation. More...
 
static void AddOnSurface (const Handle< Prs3d_Presentation > &thePresentation, const Handle< BRepAdaptor_Surface > &theSurface, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Real theDeflection, const TColStd_SequenceOfReal &theUIsoParams, const TColStd_SequenceOfReal &theVIsoParams)
 Computes isolines on surface and adds them to presentation. More...
 
static void UVIsoParameters (const TopoDS_Face &theFace, const Standard_Integer theNbIsoU, const Standard_Integer theNbIsoV, const Standard_Real theUVLimit, TColStd_SequenceOfReal &theUIsoParams, TColStd_SequenceOfReal &theVIsoParams, Standard_Real &theUmin, Standard_Real &theUmax, Standard_Real &theVmin, Standard_Real &theVmax)
 Evaluate sequence of parameters for drawing uv isolines for a given face. More...
 
- Static Public Member Functions inherited from Prs3d_Root
static Handle< Graphic3d_GroupCurrentGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 
static Handle< Graphic3d_GroupNewGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 

Detailed Description

Tool for computing isoline representation for a face or surface. Depending on a flags set to the given Prs3d_Drawer instance, on-surface (is used by default) or on-triangulation isoline builder algorithm will be used. If the given shape is not triangulated, on-surface isoline builder will be applied regardless of Prs3d_Drawer flags.

Member Function Documentation

◆ Add() [1/2]

static void StdPrs_Isolines::Add ( const Handle< Prs3d_Presentation > &  thePresentation,
const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Real  theDeflection 
)
inlinestatic

Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.

Parameters
thePresentation[in] the presentation.
theFace[in] the face.
theDrawer[in] the display settings.
theDeflection[in] the deflection for isolines-on-surface version.

◆ Add() [2/2]

static void StdPrs_Isolines::Add ( const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Real  theDeflection,
Prs3d_NListOfSequenceOfPnt theUPolylines,
Prs3d_NListOfSequenceOfPnt theVPolylines 
)
inlinestatic

Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.

Parameters
theFace[in] the face.
theDrawer[in] the display settings.
theDeflection[in] the deflection for isolines-on-surface version.

◆ AddOnSurface() [1/3]

static void StdPrs_Isolines::AddOnSurface ( const Handle< Prs3d_Presentation > &  thePresentation,
const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Real  theDeflection 
)
static

Computes isolines on surface and adds them to presentation.

Parameters
thePresentation[in] the presentation.
theFace[in] the face.
theDrawer[in] the display settings.
theDeflection[in] the deflection value.

◆ AddOnSurface() [2/3]

static void StdPrs_Isolines::AddOnSurface ( const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Real  theDeflection,
Prs3d_NListOfSequenceOfPnt theUPolylines,
Prs3d_NListOfSequenceOfPnt theVPolylines 
)
static

Computes isolines on surface and adds them to presentation.

Parameters
theFace[in] the face
theDrawer[in] the display settings
theDeflection[in] the deflection value
theUPolylines[out] the sequence of result polylines
theVPolylines[out] the sequence of result polylines

◆ AddOnSurface() [3/3]

static void StdPrs_Isolines::AddOnSurface ( const Handle< Prs3d_Presentation > &  thePresentation,
const Handle< BRepAdaptor_Surface > &  theSurface,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Real  theDeflection,
const TColStd_SequenceOfReal theUIsoParams,
const TColStd_SequenceOfReal theVIsoParams 
)
static

Computes isolines on surface and adds them to presentation.

Parameters
thePresentation[in] the presentation.
theSurface[in] the surface.
theDrawer[in] the display settings.
theDeflection[in] the deflection value.
theUIsoParams[in] the parameters of u isolines to compute.
theVIsoParams[in] the parameters of v isolines to compute.

◆ AddOnTriangulation() [1/3]

static void StdPrs_Isolines::AddOnTriangulation ( const Handle< Prs3d_Presentation > &  thePresentation,
const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer 
)
static

Computes isolines on triangulation and adds them to a presentation.

Parameters
thePresentation[in] the presentation.
theFace[in] the face.
theDrawer[in] the display settings.

◆ AddOnTriangulation() [2/3]

static void StdPrs_Isolines::AddOnTriangulation ( const TopoDS_Face theFace,
const Handle< Prs3d_Drawer > &  theDrawer,
Prs3d_NListOfSequenceOfPnt theUPolylines,
Prs3d_NListOfSequenceOfPnt theVPolylines 
)
static

Computes isolines on triangulation.

Parameters
theFace[in] the face.
theDrawer[in] the display settings.
theUPolylines[out] the sequence of result polylines
theVPolylines[out] the sequence of result polylines

◆ AddOnTriangulation() [3/3]

static void StdPrs_Isolines::AddOnTriangulation ( const Handle< Prs3d_Presentation > &  thePresentation,
const Handle< Poly_Triangulation > &  theTriangulation,
const Handle< Geom_Surface > &  theSurface,
const TopLoc_Location theLocation,
const Handle< Prs3d_Drawer > &  theDrawer,
const TColStd_SequenceOfReal theUIsoParams,
const TColStd_SequenceOfReal theVIsoParams 
)
static

Computes isolines on triangulation and adds them to a presentation.

Parameters
thePresentation[in] the presentation.
theTriangulation[in] the triangulation.
theSurface[in] the definition of triangulated surface. The surface adapter is used to precisely evaluate isoline points using surface law and fit them on triangulation. If NULL is passed, the method will use linear interpolation of triangle node's UV coordinates to evaluate isoline points.
theLocation[in] the location transformation defined for triangulation (surface).
theDrawer[in] the display settings.
theUIsoParams[in] the parameters of u isolines to compute.
theVIsoParams[in] the parameters of v isolines to compute.

◆ UVIsoParameters()

static void StdPrs_Isolines::UVIsoParameters ( const TopoDS_Face theFace,
const Standard_Integer  theNbIsoU,
const Standard_Integer  theNbIsoV,
const Standard_Real  theUVLimit,
TColStd_SequenceOfReal theUIsoParams,
TColStd_SequenceOfReal theVIsoParams,
Standard_Real theUmin,
Standard_Real theUmax,
Standard_Real theVmin,
Standard_Real theVmax 
)
static

Evaluate sequence of parameters for drawing uv isolines for a given face.

Parameters
theFace[in] the face.
theNbIsoU[in] the number of u isolines.
theNbIsoV[in] the number of v isolines.
theUVLimit[in] the u, v parameter value limit.
theUIsoParams[out] the sequence of u isoline parameters.
theVIsoParams[out] the sequence of v isoline parameters.
theUmin[out] the lower U boundary of theFace.
theUmax[out] the upper U boundary of theFace.
theVmin[out] the lower V boundary of theFace.
theVmax[out] the upper V boundary of theFace.

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