Open CASCADE Technology  7.0.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

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

Constructor & Destructor Documentation

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

Standard_ShortReal Graphic3d_GraduatedTrihedron::ArrowsLength ( ) const
inline
const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::AxisAspect ( const Standard_Integer  theIndex) const
inline
Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeAxisAspect ( const Standard_Integer  theIndex)
inline
Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeXAxisAspect ( )
inline
Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeYAxisAspect ( )
inline
Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ChangeZAxisAspect ( )
inline
const Quantity_Color& Graphic3d_GraduatedTrihedron::GridColor ( ) const
inline
const TCollection_AsciiString& Graphic3d_GraduatedTrihedron::NamesFont ( ) const
inline
Font_FontAspect Graphic3d_GraduatedTrihedron::NamesFontAspect ( ) const
inline
Standard_Integer Graphic3d_GraduatedTrihedron::NamesSize ( ) const
inline
void Graphic3d_GraduatedTrihedron::SetArrowsLength ( const Standard_ShortReal  theValue)
inline
void Graphic3d_GraduatedTrihedron::SetDrawAxes ( const Standard_Boolean  theToDraw)
inline
void Graphic3d_GraduatedTrihedron::SetDrawGrid ( const Standard_Boolean  theToDraw)
inline
void Graphic3d_GraduatedTrihedron::SetGridColor ( const Quantity_Color theColor)
inline
void Graphic3d_GraduatedTrihedron::SetNamesFont ( const TCollection_AsciiString theFont)
inline
void Graphic3d_GraduatedTrihedron::SetNamesFontAspect ( Font_FontAspect  theAspect)
inline
void Graphic3d_GraduatedTrihedron::SetNamesSize ( const Standard_Integer  theValue)
inline
void Graphic3d_GraduatedTrihedron::SetValuesFont ( const TCollection_AsciiString theFont)
inline
void Graphic3d_GraduatedTrihedron::SetValuesFontAspect ( Font_FontAspect  theAspect)
inline
void Graphic3d_GraduatedTrihedron::SetValuesSize ( const Standard_Integer  theValue)
inline
Standard_Boolean Graphic3d_GraduatedTrihedron::ToDrawAxes ( ) const
inline
Standard_Boolean Graphic3d_GraduatedTrihedron::ToDrawGrid ( ) const
inline
const TCollection_AsciiString& Graphic3d_GraduatedTrihedron::ValuesFont ( ) const
inline
Font_FontAspect Graphic3d_GraduatedTrihedron::ValuesFontAspect ( ) const
inline
Standard_Integer Graphic3d_GraduatedTrihedron::ValuesSize ( ) const
inline
const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::XAxisAspect ( ) const
inline
const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::YAxisAspect ( ) const
inline
const Graphic3d_AxisAspect& Graphic3d_GraduatedTrihedron::ZAxisAspect ( ) const
inline

Field Documentation

MinMaxValuesCallback Graphic3d_GraduatedTrihedron::CubicAxesCallback

Callback function to define boundary box of displayed objects.

Standard_ShortReal Graphic3d_GraduatedTrihedron::myArrowsLength
protected
NCollection_Array1<Graphic3d_AxisAspect> Graphic3d_GraduatedTrihedron::myAxes
protected

X, Y and Z axes parameters.

Quantity_Color Graphic3d_GraduatedTrihedron::myGridColor
protected
TCollection_AsciiString Graphic3d_GraduatedTrihedron::myNamesFont
protected

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

Standard_Integer Graphic3d_GraduatedTrihedron::myNamesSize
protected

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

Font_FontAspect Graphic3d_GraduatedTrihedron::myNamesStyle
protected

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

Standard_Boolean Graphic3d_GraduatedTrihedron::myToDrawAxes
protected
Standard_Boolean Graphic3d_GraduatedTrihedron::myToDrawGrid
protected
TCollection_AsciiString Graphic3d_GraduatedTrihedron::myValuesFont
protected

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

Standard_Integer Graphic3d_GraduatedTrihedron::myValuesSize
protected

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

Font_FontAspect Graphic3d_GraduatedTrihedron::myValuesStyle
protected

Style of values: OSD_FA_Regular, OSD_FA_Bold, ...

Graphic3d_CView* Graphic3d_GraduatedTrihedron::PtrView

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