Open CASCADE Technology  7.4.0
Functions

Aspect_Convert Namespace Reference

Auxiliary functions for DCU <-> Pixels conversions. More...

Functions

Standard_Integer Round (Standard_Real theValue)
 
void ConvertCoordinates (const Standard_Integer theParentPxSizeX, const Standard_Integer theParentPxSizeY, const Standard_Real theQCenterX, const Standard_Real theQCenterY, const Standard_Real theQSizeX, const Standard_Real theQSizeY, Standard_Integer &thePxLeft, Standard_Integer &thePxTop, Standard_Integer &thePxSizeX, Standard_Integer &thePxSizeY)
 
void ConvertCoordinates (const Standard_Integer theParentPxSizeX, const Standard_Integer theParentPxSizeY, const Standard_Integer thePxLeft, const Standard_Integer thePxTop, const Standard_Integer thePxSizeX, const Standard_Integer thePxSizeY, Standard_Real &theQCenterX, Standard_Real &theQCenterY, Standard_Real &theQSizeX, Standard_Real &theQSizeY)
 
void FitIn (const Standard_Integer theParentPxSizeX, const Standard_Integer theParentPxSizeY, Standard_Integer &thePxLeft, Standard_Integer &thePxTop, Standard_Integer &thePxSizeX, Standard_Integer &thePxSizeY)
 

Detailed Description

Auxiliary functions for DCU <-> Pixels conversions.

Function Documentation

◆ ConvertCoordinates() [1/2]

void Aspect_Convert::ConvertCoordinates ( const Standard_Integer  theParentPxSizeX,
const Standard_Integer  theParentPxSizeY,
const Standard_Real  theQCenterX,
const Standard_Real  theQCenterY,
const Standard_Real  theQSizeX,
const Standard_Real  theQSizeY,
Standard_Integer thePxLeft,
Standard_Integer thePxTop,
Standard_Integer thePxSizeX,
Standard_Integer thePxSizeY 
)
inline

◆ ConvertCoordinates() [2/2]

void Aspect_Convert::ConvertCoordinates ( const Standard_Integer  theParentPxSizeX,
const Standard_Integer  theParentPxSizeY,
const Standard_Integer  thePxLeft,
const Standard_Integer  thePxTop,
const Standard_Integer  thePxSizeX,
const Standard_Integer  thePxSizeY,
Standard_Real theQCenterX,
Standard_Real theQCenterY,
Standard_Real theQSizeX,
Standard_Real theQSizeY 
)
inline

◆ FitIn()

void Aspect_Convert::FitIn ( const Standard_Integer  theParentPxSizeX,
const Standard_Integer  theParentPxSizeY,
Standard_Integer thePxLeft,
Standard_Integer thePxTop,
Standard_Integer thePxSizeX,
Standard_Integer thePxSizeY 
)
inline

◆ Round()

Standard_Integer Aspect_Convert::Round ( Standard_Real  theValue)
inline