Base::ViewProjMethod Class Referenceabstract

Abstract base class for all project methods. More...

#include <ViewProj.h>

Public Member Functions

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 Member Functions

void transformInput (const Base::Vector3d &, Base::Vector3d &) const
 
void transformInput (const Base::Vector3f &, Base::Vector3f &) const
 
 ViewProjMethod ()
 

Detailed Description

Abstract base class for all project methods.

Constructor & Destructor Documentation

◆ ViewProjMethod() [1/2]

Base::ViewProjMethod::ViewProjMethod ( const ViewProjMethod )
default

◆ ~ViewProjMethod()

virtual Base::ViewProjMethod::~ViewProjMethod ( )
virtualdefault

◆ ViewProjMethod() [2/2]

ViewProjMethod::ViewProjMethod ( )
protected

Member Function Documentation

◆ getComposedProjectionMatrix()

Matrix4D ViewProjMethod::getComposedProjectionMatrix ( ) const

Calculate the composed projection matrix.

Calculate the composed projection matrix which is a product of projection matrix multiplied with input transformation matrix.

References getProjectionMatrix().

Referenced by MeshCore::MeshAlgorithm::CheckFacets().

◆ getProjectionMatrix()

virtual Matrix4D Base::ViewProjMethod::getProjectionMatrix ( ) const
pure virtual

Calculate the projection (+ mapping) matrix.

Implemented in Base::ViewProjMatrix, Base::ViewOrthoProjMatrix, and Gui::ViewVolumeProjection.

Referenced by getComposedProjectionMatrix().

◆ getTransform()

const Base::Matrix4D & Base::ViewProjMethod::getTransform ( ) const

◆ inverse() [1/2]

virtual Vector3d Base::ViewProjMethod::inverse ( const Vector3d rclPt) const
pure virtual

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

Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.

◆ inverse() [2/2]

virtual Vector3f Base::ViewProjMethod::inverse ( const Vector3f rclPt) const
pure virtual

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

Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.

◆ isValid()

bool ViewProjMethod::isValid ( ) const
virtual

◆ operator()() [1/2]

virtual Vector3d Base::ViewProjMethod::operator() ( const Vector3d rclPt) const
pure virtual

Convert 3D point to 2D projection plane.

Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.

◆ operator()() [2/2]

virtual Vector3f Base::ViewProjMethod::operator() ( const Vector3f rclPt) const
pure virtual

Convert 3D point to 2D projection plane.

Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.

◆ operator=()

ViewProjMethod & Base::ViewProjMethod::operator= ( const ViewProjMethod )
default

◆ setTransform()

void ViewProjMethod::setTransform ( const Base::Matrix4D mat)

Apply an additional transformation to the input points.

This method applies an additional transformation to the input points passed with the () operator.

Parameters
mat

Referenced by MeshGui::ViewProviderMesh::clipMeshCallback(), and MeshGui::ViewProviderMesh::trimMeshCallback().

◆ transformInput() [1/2]

void ViewProjMethod::transformInput ( const Base::Vector3d src,
Base::Vector3d dst 
) const
protected

◆ transformInput() [2/2]

void ViewProjMethod::transformInput ( const Base::Vector3f src,
Base::Vector3f dst 
) const
protected

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