Abstract base class for all project methods. More...
#include <ViewProj.h>
Public Member Functions | |
Matrix4D getComposedProjectionMatrix (void) const | |
Calculate the composed projection matrix. More... | |
virtual Matrix4D getProjectionMatrix (void) const =0 | |
Calculate the projection (+ mapping) matrix. More... | |
const Base::Matrix4D & getTransform () 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... | |
void setTransform (const Base::Matrix4D &) | |
Apply an additional transformation to the input points. More... | |
virtual ~ViewProjMethod () | |
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()
|
virtual |
◆ ViewProjMethod()
|
protected |
Member Function Documentation
◆ getComposedProjectionMatrix()
Matrix4D ViewProjMethod::getComposedProjectionMatrix | ( | void | ) | 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()
|
pure virtual |
Calculate the projection (+ mapping) matrix.
Implemented in Base::ViewProjMatrix, and Gui::ViewVolumeProjection.
Referenced by getComposedProjectionMatrix().
◆ getTransform()
const Base::Matrix4D& Base::ViewProjMethod::getTransform | ( | ) | const |
◆ inverse() [1/2]
Convert a 2D point on the projection plane in 3D space.
Implemented in Base::ViewProjMatrix, and Gui::ViewVolumeProjection.
◆ inverse() [2/2]
Convert a 2D point on the projection plane in 3D space.
Implemented in Base::ViewProjMatrix, and Gui::ViewVolumeProjection.
◆ isValid()
|
virtual |
◆ operator()() [1/2]
Convert 3D point to 2D projection plane.
Implemented in Base::ViewProjMatrix, and Gui::ViewVolumeProjection.
◆ operator()() [2/2]
Convert 3D point to 2D projection plane.
Implemented in Base::ViewProjMatrix, and Gui::ViewVolumeProjection.
◆ 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]
|
protected |
◆ transformInput() [2/2]
|
protected |
Referenced by Base::ViewProjMatrix::operator()(), and Gui::ViewVolumeProjection::operator()().
The documentation for this class was generated from the following files:
- src/Base/ViewProj.h
- src/Base/ViewProj.cpp