Open CASCADE Technology  7.2.0
Static Public Member Functions

DsgPrs_DatumPrs Class Reference

A framework for displaying an XYZ trihedron. More...

#include <DsgPrs_DatumPrs.hxx>

Inheritance diagram for DsgPrs_DatumPrs:
Inheritance graph
[legend]

Static Public Member Functions

static void Add (const Handle< Prs3d_Presentation > &thePresentation, const gp_Ax2 &theDatum, const Handle< Prs3d_Drawer > &theDrawer)
 Draw XYZ axes at specified location with attributes defined by the attribute manager theDrawer: More...
 
- Static Public Member Functions inherited from Prs3d_Root
static Handle< Graphic3d_GroupCurrentGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the current (last created) group of primititves inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 
static Handle< Graphic3d_GroupNewGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the new group of primitives inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 

Detailed Description

A framework for displaying an XYZ trihedron.

Member Function Documentation

◆ Add()

static void DsgPrs_DatumPrs::Add ( const Handle< Prs3d_Presentation > &  thePresentation,
const gp_Ax2 theDatum,
const Handle< Prs3d_Drawer > &  theDrawer 
)
static

Draw XYZ axes at specified location with attributes defined by the attribute manager theDrawer:

  • Prs3d_DatumAspect defines arrow, line and lenght trihedron axis parameters,
  • Prs3d_TextAspect defines displayed text. The thihedron origin and axis directions are defined by theDatum coordinate system. DsgPrs_XYZAxisPresentation framework is used to create graphical primitives for each axis. Axes are marked with "X", "Y", "Z" text.
    Parameters
    thePresentation[out] the modified presentation
    theDatum[in] the source of trihedron position
    theDrawer[in] the provider of display attributes

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