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

Visualization
TKV3d
Select3D


Select3D_Projector Class Reference

A framework to define 3D projectors.
.

#include <Select3D_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 Select3D_Projector (const Handle(V3d_View)&aView)
 Constructs the 3D projector object defined by the 3D view aView.
.
Standard_EXPORT Select3D_Projector ()
Standard_EXPORT Select3D_Projector (const gp_Ax2 &CS)
 Creates an axonometric projector. <cs> is the
viewing coordinate system.
.
Standard_EXPORT Select3D_Projector (const gp_Ax2 &CS, const Standard_Real Focus)
 Creates a perspective projector. <cs> is the
viewing coordinate system.
.
Standard_EXPORT Select3D_Projector (const gp_Trsf &T, const Standard_Boolean Persp, const Standard_Real Focus)
 build a Projector with automatic minmax directions.

Standard_EXPORT Select3D_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 Select3D_Projector (const gp_GTrsf &GT, const Standard_Boolean Persp, const Standard_Real Focus)
 build a Projector with automatic minmax directions.

virtual Standard_EXPORT void Delete ()
virtual Standard_EXPORT ~Select3D_Projector ()
Standard_EXPORT void Set (const gp_Trsf &T, const Standard_Boolean Persp, const Standard_Real Focus)
Standard_EXPORT void SetView (const Handle(V3d_View)&V)
 Sets the 3D view V used at the time of construction.
.
const Handle_V3d_View & View () const
 Returns the 3D view used at the time of construction.
.
virtual void Directions (gp_Vec2d &D1, gp_Vec2d &D2, gp_Vec2d &D3) const
virtual Standard_EXPORT void Scaled (const Standard_Boolean On=Standard_False)
 to compute with the given scale and translation.

virtual Standard_Boolean Perspective () const
 Returns True if there is a perspective transformation.
.
virtual const gp_GTrsf & Transformation () const
 Returns the active transformation.
.
virtual const gp_GTrsf & InvertedTransformation () const
 Returns the active inverted transformation.
.
virtual const gp_Trsf & FullTransformation () const
 Returns the original transformation.
.
virtual Standard_Real Focus () const
 Returns the focal length.
.
virtual void Transform (gp_Vec &D) const
virtual void Transform (gp_Pnt &Pnt) const
virtual 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.
.
virtual 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.
.
virtual Standard_EXPORT void BoxAdd (const gp_Pnt2d &P, Bnd_Box &B) const
 Adds to the box the min-max of the point

.
.

virtual 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>.

virtual void Transform (gp_Pnt &P, const gp_GTrsf &T) const
virtual void Transform (gp_Lin &D, const gp_GTrsf &T) const

Protected Attributes

Standard_Boolean myPersp
Standard_Real myFocus
gp_Trsf myScaledTrsf
gp_GTrsf myGTrsf
gp_GTrsf myInvTrsf
gp_Vec2d myD1
gp_Vec2d myD2
gp_Vec2d myD3

Private Member Functions

Standard_EXPORT void SetDirection ()

Private Attributes

Standard_Integer myType
Handle_V3d_View myView


Constructor & Destructor Documentation

Standard_EXPORT Select3D_Projector::Select3D_Projector const Handle(V3d_View)&  aView  ) 
 

Standard_EXPORT Select3D_Projector::Select3D_Projector  ) 
 

Standard_EXPORT Select3D_Projector::Select3D_Projector const gp_Ax2 &  CS  ) 
 

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

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

Standard_EXPORT Select3D_Projector::Select3D_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
 

Standard_EXPORT Select3D_Projector::Select3D_Projector const gp_GTrsf &  GT,
const Standard_Boolean  Persp,
const Standard_Real  Focus
 

virtual Standard_EXPORT Select3D_Projector::~Select3D_Projector  )  [inline, virtual]
 


Member Function Documentation

virtual Standard_EXPORT void Select3D_Projector::BoxAdd const gp_Pnt2d &  P,
Bnd_Box &  B
const [virtual]
 

virtual Standard_EXPORT void Select3D_Projector::Delete  )  [virtual]
 

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

Standard_Real Select3D_Projector::Focus  )  const [inline, virtual]
 

const gp_Trsf & Select3D_Projector::FullTransformation  )  const [inline, virtual]
 

const gp_GTrsf & Select3D_Projector::InvertedTransformation  )  const [inline, virtual]
 

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

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

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

Standard_Boolean Select3D_Projector::Perspective  )  const [inline, virtual]
 

virtual Standard_EXPORT void Select3D_Projector::Project const gp_Pnt &  P,
const gp_Vec &  D1,
gp_Pnt2d &  Pout,
gp_Vec2d &  D1out
const [virtual]
 

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

virtual Standard_EXPORT void Select3D_Projector::Project const gp_Pnt &  P,
gp_Pnt2d &  Pout
const [virtual]
 

virtual Standard_EXPORT void Select3D_Projector::Scaled const Standard_Boolean  On = Standard_False  )  [virtual]
 

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

Standard_EXPORT void Select3D_Projector::SetDirection  )  [private]
 

Standard_EXPORT void Select3D_Projector::SetView const Handle(V3d_View)&  V  ) 
 

virtual Standard_EXPORT gp_Lin Select3D_Projector::Shoot const Standard_Real  X,
const Standard_Real  Y
const [virtual]
 

void Select3D_Projector::Transform gp_Lin &  D,
const gp_GTrsf &  T
const [inline, virtual]
 

void Select3D_Projector::Transform gp_Pnt &  P,
const gp_GTrsf &  T
const [inline, virtual]
 

void Select3D_Projector::Transform gp_Pnt &  Pnt  )  const [inline, virtual]
 

void Select3D_Projector::Transform gp_Vec &  D  )  const [inline, virtual]
 

const gp_GTrsf & Select3D_Projector::Transformation  )  const [inline, virtual]
 

const Handle_V3d_View& Select3D_Projector::View  )  const
 


Field Documentation

gp_Vec2d Select3D_Projector::myD1 [protected]
 

gp_Vec2d Select3D_Projector::myD2 [protected]
 

gp_Vec2d Select3D_Projector::myD3 [protected]
 

Standard_Real Select3D_Projector::myFocus [protected]
 

gp_GTrsf Select3D_Projector::myGTrsf [protected]
 

gp_GTrsf Select3D_Projector::myInvTrsf [protected]
 

Standard_Boolean Select3D_Projector::myPersp [protected]
 

gp_Trsf Select3D_Projector::myScaledTrsf [protected]
 

Standard_Integer Select3D_Projector::myType [private]
 

Handle_V3d_View Select3D_Projector::myView [private]
 


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