Open CASCADE Technology  7.2.0
Public Types | Public Member Functions | Data Fields | Protected Attributes
Graphic3d_GraduatedTrihedron Class Reference

Defines the class of a graduated trihedron. It contains main style parameters for implementation of graduated trihedron. More...

#include <Graphic3d_GraduatedTrihedron.hxx>

Public Types

typedef void(* MinMaxValuesCallback) (Graphic3d_CView *)
 

Public Member Functions

 Graphic3d_GraduatedTrihedron (const TCollection_AsciiString &theNamesFont="Arial", const Font_FontAspect &theNamesStyle=Font_FA_Bold, const Standard_Integer theNamesSize=12, const TCollection_AsciiString &theValuesFont="Arial", const Font_FontAspect &theValuesStyle=Font_FA_Regular, const Standard_Integer theValuesSize=12, const Standard_ShortReal theArrowsLength=30.0f, const Quantity_Color theGridColor=Quantity_NOC_WHITE, const Standard_Boolean theToDrawGrid=Standard_True, const Standard_Boolean theToDrawAxes=Standard_True)
 Default constructor Constructs the default graduated trihedron with grid, X, Y, Z axes, and tickmarks. More...
 
Graphic3d_AxisAspectChangeXAxisAspect ()
 
Graphic3d_AxisAspectChangeYAxisAspect ()
 
Graphic3d_AxisAspectChangeZAxisAspect ()
 
Graphic3d_AxisAspectChangeAxisAspect (const Standard_Integer theIndex)
 
const Graphic3d_AxisAspectXAxisAspect () const
 
const Graphic3d_AxisAspectYAxisAspect () const
 
const Graphic3d_AxisAspectZAxisAspect () const
 
const Graphic3d_AxisAspectAxisAspect (const Standard_Integer theIndex) const
 
Standard_ShortReal ArrowsLength () const
 
void SetArrowsLength (const Standard_ShortReal theValue)
 
const Quantity_ColorGridColor () const
 
void SetGridColor (const Quantity_Color &theColor)
 
Standard_Boolean ToDrawGrid () const
 
void SetDrawGrid (const Standard_Boolean theToDraw)
 
Standard_Boolean ToDrawAxes () const
 
void SetDrawAxes (const Standard_Boolean theToDraw)
 
const TCollection_AsciiStringNamesFont () const
 
void SetNamesFont (const TCollection_AsciiString &theFont)
 
Font_FontAspect NamesFontAspect () const
 
void SetNamesFontAspect (Font_FontAspect theAspect)
 
Standard_Integer NamesSize () const
 
void SetNamesSize (const Standard_Integer theValue)
 
const TCollection_AsciiStringValuesFont () const
 
void SetValuesFont (const TCollection_AsciiString &theFont)
 
Font_FontAspect ValuesFontAspect () const
 
void SetValuesFontAspect (Font_FontAspect theAspect)
 
Standard_Integer ValuesSize () const
 
void SetValuesSize (const Standard_Integer theValue)
 

Data Fields

MinMaxValuesCallback CubicAxesCallback
 Callback function to define boundary box of displayed objects. More...
 
Graphic3d_CViewPtrView
 

Protected Attributes

TCollection_AsciiString myNamesFont
 Font name of names of axes: Courier, Arial, ... More...
 
Font_FontAspect myNamesStyle
 Style of names of axes: OSD_FA_Regular, OSD_FA_Bold,.. More...
 
Standard_Integer myNamesSize
 Size of names of axes: 8, 10,.. More...
 
TCollection_AsciiString myValuesFont
 Font name of values: Courier, Arial, ... More...
 
Font_FontAspect myValuesStyle
 Style of values: OSD_FA_Regular, OSD_FA_Bold, ... More...
 
Standard_Integer myValuesSize
 Size of values: 8, 10, 12, 14, ... More...
 
Standard_ShortReal myArrowsLength
 
Quantity_Color myGridColor
 
Standard_Boolean myToDrawGrid
 
Standard_Boolean myToDrawAxes
 
NCollection_Array1< Graphic3d_AxisAspectmyAxes
 X, Y and Z axes parameters. More...
 

Detailed Description

Defines the class of a graduated trihedron. It contains main style parameters for implementation of graduated trihedron.

See also
OpenGl_GraduatedTrihedron

Member Typedef Documentation

◆ MinMaxValuesCallback

typedef void(* Graphic3d_GraduatedTrihedron::MinMaxValuesCallback) (Graphic3d_CView *)

Constructor & Destructor Documentation

◆ Graphic3d_GraduatedTrihedron()

Graphic3d_GraduatedTrihedron::Graphic3d_GraduatedTrihedron ( const TCollection_AsciiString theNamesFont = "Arial",
const Font_FontAspect theNamesStyle = Font_FA_Bold,
const Standard_Integer  theNamesSize = 12,
const TCollection_AsciiString theValuesFont = "Arial",
const Font_FontAspect theValuesStyle = Font_FA_Regular,
const Standard_Integer  theValuesSize = 12,
const Standard_ShortReal  theArrowsLength = 30.0f,
const Quantity_Color  theGridColor = Quantity_NOC_WHITE,
const Standard_Boolean  theToDrawGrid = Standard_True,
const Standard_Boolean  theToDrawAxes = Standard_True 
)
inline

Default constructor Constructs the default graduated trihedron with grid, X, Y, Z axes, and tickmarks.

Member Function Documentation

◆ ArrowsLength()

Standard_ShortReal Graphic3d_GraduatedTrihedron::ArrowsLength ( ) const
inline

◆ AxisAspect()

const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::AxisAspect ( const Standard_Integer  theIndex) const
inline

◆ ChangeAxisAspect()

Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeAxisAspect ( const Standard_Integer  theIndex)
inline

◆ ChangeXAxisAspect()

Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeXAxisAspect ( )
inline

◆ ChangeYAxisAspect()

Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeYAxisAspect ( )
inline

◆ ChangeZAxisAspect()

Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeZAxisAspect ( )
inline

◆ GridColor()

const Quantity_Color& Graphic3d_GraduatedTrihedron::GridColor ( ) const
inline

◆ NamesFont()

const TCollection_AsciiString& Graphic3d_GraduatedTrihedron::NamesFont ( ) const
inline

◆ NamesFontAspect()

Font_FontAspect Graphic3d_GraduatedTrihedron::NamesFontAspect ( ) const
inline

◆ NamesSize()

Standard_Integer Graphic3d_GraduatedTrihedron::NamesSize ( ) const
inline

◆ SetArrowsLength()

void Graphic3d_GraduatedTrihedron::SetArrowsLength ( const Standard_ShortReal  theValue)
inline

◆ SetDrawAxes()

void Graphic3d_GraduatedTrihedron::SetDrawAxes ( const Standard_Boolean  theToDraw)
inline

◆ SetDrawGrid()

void Graphic3d_GraduatedTrihedron::SetDrawGrid ( const Standard_Boolean  theToDraw)
inline

◆ SetGridColor()

void Graphic3d_GraduatedTrihedron::SetGridColor ( const Quantity_Color theColor)
inline

◆ SetNamesFont()

void Graphic3d_GraduatedTrihedron::SetNamesFont ( const TCollection_AsciiString theFont)
inline

◆ SetNamesFontAspect()

void Graphic3d_GraduatedTrihedron::SetNamesFontAspect ( Font_FontAspect  theAspect)
inline

◆ SetNamesSize()

void Graphic3d_GraduatedTrihedron::SetNamesSize ( const Standard_Integer  theValue)
inline

◆ SetValuesFont()

void Graphic3d_GraduatedTrihedron::SetValuesFont ( const TCollection_AsciiString theFont)
inline

◆ SetValuesFontAspect()

void Graphic3d_GraduatedTrihedron::SetValuesFontAspect ( Font_FontAspect  theAspect)
inline

◆ SetValuesSize()

void Graphic3d_GraduatedTrihedron::SetValuesSize ( const Standard_Integer  theValue)
inline

◆ ToDrawAxes()

Standard_Boolean Graphic3d_GraduatedTrihedron::ToDrawAxes ( ) const
inline

◆ ToDrawGrid()

Standard_Boolean Graphic3d_GraduatedTrihedron::ToDrawGrid ( ) const
inline

◆ ValuesFont()

const TCollection_AsciiString& Graphic3d_GraduatedTrihedron::ValuesFont ( ) const
inline

◆ ValuesFontAspect()

Font_FontAspect Graphic3d_GraduatedTrihedron::ValuesFontAspect ( ) const
inline

◆ ValuesSize()

Standard_Integer Graphic3d_GraduatedTrihedron::ValuesSize ( ) const
inline

◆ XAxisAspect()

const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::XAxisAspect ( ) const
inline

◆ YAxisAspect()

const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::YAxisAspect ( ) const
inline

◆ ZAxisAspect()

const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ZAxisAspect ( ) const
inline

Field Documentation

◆ CubicAxesCallback

MinMaxValuesCallback Graphic3d_GraduatedTrihedron::CubicAxesCallback

Callback function to define boundary box of displayed objects.

◆ myArrowsLength

Standard_ShortReal Graphic3d_GraduatedTrihedron::myArrowsLength
protected

◆ myAxes

NCollection_Array1<Graphic3d_AxisAspect> Graphic3d_GraduatedTrihedron::myAxes
protected

X, Y and Z axes parameters.

◆ myGridColor

Quantity_Color Graphic3d_GraduatedTrihedron::myGridColor
protected

◆ myNamesFont

TCollection_AsciiString Graphic3d_GraduatedTrihedron::myNamesFont
protected

Font name of names of axes: Courier, Arial, ...

◆ myNamesSize

Standard_Integer Graphic3d_GraduatedTrihedron::myNamesSize
protected

Size of names of axes: 8, 10,..

◆ myNamesStyle

Font_FontAspect Graphic3d_GraduatedTrihedron::myNamesStyle
protected

Style of names of axes: OSD_FA_Regular, OSD_FA_Bold,..

◆ myToDrawAxes

Standard_Boolean Graphic3d_GraduatedTrihedron::myToDrawAxes
protected

◆ myToDrawGrid

Standard_Boolean Graphic3d_GraduatedTrihedron::myToDrawGrid
protected

◆ myValuesFont

TCollection_AsciiString Graphic3d_GraduatedTrihedron::myValuesFont
protected

Font name of values: Courier, Arial, ...

◆ myValuesSize

Standard_Integer Graphic3d_GraduatedTrihedron::myValuesSize
protected

Size of values: 8, 10, 12, 14, ...

◆ myValuesStyle

Font_FontAspect Graphic3d_GraduatedTrihedron::myValuesStyle
protected

Style of values: OSD_FA_Regular, OSD_FA_Bold, ...

◆ PtrView

Graphic3d_CView* Graphic3d_GraduatedTrihedron::PtrView

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