Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
Prs3d Class Reference

The Prs3d package provides the following services. More...

#include <Prs3d.hxx>

Static Public Member Functions

static bool MatchSegment (const double X, const double Y, const double Z, const double aDistance, const gp_Pnt &p1, const gp_Pnt &p2, double &dist)
 draws an arrow at a given location, with respect to a given direction.
static double GetDeflection (const NCollection_Vec3< double > &theBndMin, const NCollection_Vec3< double > &theBndMax, const double theDeviationCoefficient)
 Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().
static double GetDeflection (const Bnd_Box &theBndBox, const double theDeviationCoefficient, const double theMaximalChordialDeviation)
 Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().
static occ::handle< Graphic3d_ArrayOfPrimitives > PrimitivesFromPolylines (const NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &thePoints)
 Assembles array of primitives for sequence of polylines.
static void AddPrimitivesGroup (const occ::handle< Prs3d_Presentation > &thePrs, const occ::handle< Prs3d_LineAspect > &theAspect, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &thePolylines)
 Add primitives into new group in presentation and clear the list of polylines.
static void AddFreeEdges (NCollection_Sequence< gp_Pnt > &theSegments, const occ::handle< Poly_Triangulation > &thePolyTri, const gp_Trsf &theLocation)
 Add triangulation free edges into sequence of line segments.

Detailed Description

The Prs3d package provides the following services.

  • a presentation object (the context for all modifications to the display, its presentation will be displayed in every view of an active viewer)
  • an attribute manager governing how objects such as color, width, and type of line are displayed; these are generic objects, whereas those in StdPrs are specific geometries and topologies.
  • generic algorithms providing default settings for objects such as points, curves, surfaces and shapes
  • a root object which provides the abstract framework for the DsgPrs definitions at work in display of dimensions, relations and trihedra.

Member Function Documentation

◆ AddFreeEdges()

void Prs3d::AddFreeEdges ( NCollection_Sequence< gp_Pnt > & theSegments,
const occ::handle< Poly_Triangulation > & thePolyTri,
const gp_Trsf & theLocation )
static

Add triangulation free edges into sequence of line segments.

Parameters
[out]theSegmentssequence of line segments to fill
[in]thePolyTritriangulation to process
[in]theLocationtransformation to apply

◆ AddPrimitivesGroup()

void Prs3d::AddPrimitivesGroup ( const occ::handle< Prs3d_Presentation > & thePrs,
const occ::handle< Prs3d_LineAspect > & theAspect,
NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & thePolylines )
static

Add primitives into new group in presentation and clear the list of polylines.

◆ GetDeflection() [1/2]

double Prs3d::GetDeflection ( const Bnd_Box & theBndBox,
const double theDeviationCoefficient,
const double theMaximalChordialDeviation )
inlinestatic

Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().

Parameters
[in]theBndBoxbounding box
[in]theDeviationCoefficientrelative deflection coefficient from Prs3d_Drawer::DeviationCoefficient()
[in]theMaximalChordialDeviationabsolute deflection coefficient from Prs3d_Drawer::MaximalChordialDeviation()
Returns
absolute deflection coefficient based on bounding box dimensions or theMaximalChordialDeviation if bounding box is Void or Infinite

◆ GetDeflection() [2/2]

double Prs3d::GetDeflection ( const NCollection_Vec3< double > & theBndMin,
const NCollection_Vec3< double > & theBndMax,
const double theDeviationCoefficient )
inlinestatic

Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().

Parameters
[in]theBndMinbounding box min corner
[in]theBndMaxbounding box max corner
[in]theDeviationCoefficientrelative deflection coefficient from Prs3d_Drawer::DeviationCoefficient()
Returns
absolute deflection coefficient based on bounding box dimensions

◆ MatchSegment()

bool Prs3d::MatchSegment ( const double X,
const double Y,
const double Z,
const double aDistance,
const gp_Pnt & p1,
const gp_Pnt & p2,
double & dist )
static

draws an arrow at a given location, with respect to a given direction.

◆ PrimitivesFromPolylines()

occ::handle< Graphic3d_ArrayOfPrimitives > Prs3d::PrimitivesFromPolylines ( const NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & thePoints)
static

Assembles array of primitives for sequence of polylines.

Parameters
[in]thePointsthe polylines sequence
Returns
array of primitives

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