OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKHLR
HLRAlgo


HLRAlgo_Projector Class Reference

Implements a projector object.
This object is designed to be used in the
removal of hidden lines and is returned by the
Prs3d_Projector::Projector function.
You define the projection of the selected shape
by calling one of the following functions:
- HLRBRep_Algo::Projector, or
- HLRBRep_PolyAlgo::Projector
The choice depends on the algorithm, which you are using.
The parameters of the view are defined at the
time of construction of a Prs3d_Projector object.
.

#include <HLRAlgo_Projector.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT HLRAlgo_Projector ()
Standard_EXPORT HLRAlgo_Projector (const gp_Ax2 &CS)
 Creates an axonometric projector. <cs> is the
viewing coordinate system.
.
Standard_EXPORT HLRAlgo_Projector (const gp_Ax2 &CS, const Standard_Real Focus)
 Creates a perspective projector. <cs> is the
viewing coordinate system.
.
Standard_EXPORT HLRAlgo_Projector (const gp_Trsf &T, const Standard_Boolean Persp, const Standard_Real Focus)
 build a Projector with automatic minmax directions.

Standard_EXPORT HLRAlgo_Projector (const gp_Trsf &T, const Standard_Boolean Persp, const Standard_Real Focus, const gp_Vec2d &v1, const gp_Vec2d &v2, const gp_Vec2d &v3)
 build a Projector with given minmax directions.

Standard_EXPORT void Set (const gp_Trsf &T, const Standard_Boolean Persp, const Standard_Real Focus)
void Directions (gp_Vec2d &D1, gp_Vec2d &D2, gp_Vec2d &D3) const
Standard_EXPORT void Scaled (const Standard_Boolean On=Standard_False)
 to compute with the given scale and translation.

Standard_Boolean Perspective () const
 Returns True if there is a perspective transformation.
.
Standard_EXPORT const gp_Trsf & Transformation () const
 Returns the active transformation.
.
const gp_Trsf & InvertedTransformation () const
 Returns the active inverted transformation.
.
const gp_Trsf & FullTransformation () const
 Returns the original transformation.
.
Standard_Real Focus () const
 Returns the focal length.
.
void Transform (gp_Vec &D) const
void Transform (gp_Pnt &Pnt) const
Standard_EXPORT void Project (const gp_Pnt &P, gp_Pnt2d &Pout) const
 Transform and apply perspective if needed.
.
Standard_EXPORT void Project (const gp_Pnt &P, Standard_Real &X, Standard_Real &Y, Standard_Real &Z) const
 Transform and apply perspective if needed.
.
Standard_EXPORT void Project (const gp_Pnt &P, const gp_Vec &D1, gp_Pnt2d &Pout, gp_Vec2d &D1out) const
 Transform and apply perspective if needed.
.
Standard_EXPORT gp_Lin Shoot (const Standard_Real X, const Standard_Real Y) const
 return a line going through the eye towards the
2d point <X,Y>.


Private Member Functions

Standard_EXPORT void SetDirection ()

Private Attributes

Standard_Integer myType
Standard_Boolean myPersp
Standard_Real myFocus
gp_Trsf myScaledTrsf
gp_Trsf myTrsf
gp_Trsf myInvTrsf
gp_Vec2d myD1
gp_Vec2d myD2
gp_Vec2d myD3


Constructor & Destructor Documentation

Standard_EXPORT HLRAlgo_Projector::HLRAlgo_Projector  ) 
 

Standard_EXPORT HLRAlgo_Projector::HLRAlgo_Projector const gp_Ax2 &  CS  ) 
 

Standard_EXPORT HLRAlgo_Projector::HLRAlgo_Projector const gp_Ax2 &  CS,
const Standard_Real  Focus
 

Standard_EXPORT HLRAlgo_Projector::HLRAlgo_Projector const gp_Trsf &  T,
const Standard_Boolean  Persp,
const Standard_Real  Focus
 

Standard_EXPORT HLRAlgo_Projector::HLRAlgo_Projector const gp_Trsf &  T,
const Standard_Boolean  Persp,
const Standard_Real  Focus,
const gp_Vec2d &  v1,
const gp_Vec2d &  v2,
const gp_Vec2d &  v3
 


Member Function Documentation

void HLRAlgo_Projector::Directions gp_Vec2d &  D1,
gp_Vec2d &  D2,
gp_Vec2d &  D3
const [inline]
 

Standard_Real HLRAlgo_Projector::Focus  )  const [inline]
 

const gp_Trsf & HLRAlgo_Projector::FullTransformation  )  const [inline]
 

const gp_Trsf & HLRAlgo_Projector::InvertedTransformation  )  const [inline]
 

void HLRAlgo_Projector::operator delete void *  anAddress  )  [inline]
 

void* HLRAlgo_Projector::operator new size_t  size  )  [inline]
 

void* HLRAlgo_Projector::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_Boolean HLRAlgo_Projector::Perspective  )  const [inline]
 

Standard_EXPORT void HLRAlgo_Projector::Project const gp_Pnt &  P,
const gp_Vec &  D1,
gp_Pnt2d &  Pout,
gp_Vec2d &  D1out
const
 

Standard_EXPORT void HLRAlgo_Projector::Project const gp_Pnt &  P,
Standard_Real &  X,
Standard_Real &  Y,
Standard_Real &  Z
const
 

Standard_EXPORT void HLRAlgo_Projector::Project const gp_Pnt &  P,
gp_Pnt2d &  Pout
const
 

Standard_EXPORT void HLRAlgo_Projector::Scaled const Standard_Boolean  On = Standard_False  ) 
 

Standard_EXPORT void HLRAlgo_Projector::Set const gp_Trsf &  T,
const Standard_Boolean  Persp,
const Standard_Real  Focus
 

Standard_EXPORT void HLRAlgo_Projector::SetDirection  )  [private]
 

Standard_EXPORT gp_Lin HLRAlgo_Projector::Shoot const Standard_Real  X,
const Standard_Real  Y
const
 

void HLRAlgo_Projector::Transform gp_Pnt &  Pnt  )  const [inline]
 

void HLRAlgo_Projector::Transform gp_Vec &  D  )  const [inline]
 

Standard_EXPORT const gp_Trsf& HLRAlgo_Projector::Transformation  )  const
 


Field Documentation

gp_Vec2d HLRAlgo_Projector::myD1 [private]
 

gp_Vec2d HLRAlgo_Projector::myD2 [private]
 

gp_Vec2d HLRAlgo_Projector::myD3 [private]
 

Standard_Real HLRAlgo_Projector::myFocus [private]
 

gp_Trsf HLRAlgo_Projector::myInvTrsf [private]
 

Standard_Boolean HLRAlgo_Projector::myPersp [private]
 

gp_Trsf HLRAlgo_Projector::myScaledTrsf [private]
 

gp_Trsf HLRAlgo_Projector::myTrsf [private]
 

Standard_Integer HLRAlgo_Projector::myType [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:42:03 2008 for OpenCASCADE by  doxygen 1.4.1