Gui::ViewVolumeProjection Class Reference

#include <Utilities.h>

Public Member Functions

Base::Matrix4D getProjectionMatrix () const
 Calculate the projection (+ mapping) matrix. More...
 
Base::Vector3d inverse (const Base::Vector3d &rclPt) const
 Convert a 2D point on the projection plane in 3D space. More...
 
Base::Vector3f inverse (const Base::Vector3f &rclPt) const
 Convert a 2D point on the projection plane in 3D space. More...
 
Base::Vector3d operator() (const Base::Vector3d &rclPt) const
 Convert 3D point to 2D projection plane. More...
 
Base::Vector3f operator() (const Base::Vector3f &rclPt) const
 Convert 3D point to 2D projection plane. More...
 
 ViewVolumeProjection (const SbViewVolume &vv)
 
virtual ~ViewVolumeProjection ()
 
- Public Member Functions inherited from Base::ViewProjMethod
Matrix4D getComposedProjectionMatrix () const
 Calculate the composed projection matrix. More...
 
virtual Matrix4D getProjectionMatrix () const =0
 Calculate the projection (+ mapping) matrix. More...
 
const Base::Matrix4DgetTransform () const
 
virtual Vector3d inverse (const Vector3d &rclPt) const =0
 Convert a 2D point on the projection plane in 3D space. More...
 
virtual Vector3f inverse (const Vector3f &rclPt) const =0
 Convert a 2D point on the projection plane in 3D space. More...
 
virtual bool isValid () const
 
virtual Vector3d operator() (const Vector3d &rclPt) const =0
 Convert 3D point to 2D projection plane. More...
 
virtual Vector3f operator() (const Vector3f &rclPt) const =0
 Convert 3D point to 2D projection plane. More...
 
ViewProjMethodoperator= (const ViewProjMethod &)=default
 
void setTransform (const Base::Matrix4D &)
 Apply an additional transformation to the input points. More...
 
 ViewProjMethod (const ViewProjMethod &)=default
 
virtual ~ViewProjMethod ()=default
 

Protected Attributes

SbMatrix invert
 
SbMatrix matrix
 
SbViewVolume viewVolume
 

Additional Inherited Members

- Protected Member Functions inherited from Base::ViewProjMethod
void transformInput (const Base::Vector3d &, Base::Vector3d &) const
 
void transformInput (const Base::Vector3f &, Base::Vector3f &) const
 
 ViewProjMethod ()
 

Constructor & Destructor Documentation

◆ ViewVolumeProjection()

ViewVolumeProjection::ViewVolumeProjection ( const SbViewVolume &  vv)

References viewVolume.

◆ ~ViewVolumeProjection()

virtual Gui::ViewVolumeProjection::~ViewVolumeProjection ( )
virtual

Member Function Documentation

◆ getProjectionMatrix()

Base::Matrix4D ViewVolumeProjection::getProjectionMatrix ( ) const
virtual

Calculate the projection (+ mapping) matrix.

Implements Base::ViewProjMethod.

◆ inverse() [1/2]

Base::Vector3d ViewVolumeProjection::inverse ( const Base::Vector3d rclPt) const
virtual

Convert a 2D point on the projection plane in 3D space.

Implements Base::ViewProjMethod.

References inverse().

◆ inverse() [2/2]

Base::Vector3f ViewVolumeProjection::inverse ( const Base::Vector3f rclPt) const
virtual

Convert a 2D point on the projection plane in 3D space.

Implements Base::ViewProjMethod.

References Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.

Referenced by inverse().

◆ operator()() [1/2]

Base::Vector3d ViewVolumeProjection::operator() ( const Base::Vector3d rclPt) const
virtual

Convert 3D point to 2D projection plane.

Implements Base::ViewProjMethod.

References operator()().

◆ operator()() [2/2]

Base::Vector3f ViewVolumeProjection::operator() ( const Base::Vector3f rclPt) const
virtual

Convert 3D point to 2D projection plane.

Implements Base::ViewProjMethod.

References Base::ViewProjMethod::transformInput().

Referenced by operator()().

Member Data Documentation

◆ invert

◆ matrix

SbMatrix Gui::ViewVolumeProjection::matrix
protected

◆ viewVolume

SbViewVolume Gui::ViewVolumeProjection::viewVolume
protected

Referenced by ViewVolumeProjection().


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