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::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... | |
ViewProjMethod & | operator= (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 () | |
Abstract base class for all project methods.
|
default |
|
virtualdefault |
|
protected |
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().
|
pure virtual |
Calculate the projection (+ mapping) matrix.
Implemented in Base::ViewProjMatrix, Base::ViewOrthoProjMatrix, and Gui::ViewVolumeProjection.
Referenced by getComposedProjectionMatrix().
const Base::Matrix4D & Base::ViewProjMethod::getTransform | ( | ) | const |
Convert a 2D point on the projection plane in 3D space.
Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.
Convert a 2D point on the projection plane in 3D space.
Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.
|
virtual |
Convert 3D point to 2D projection plane.
Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.
Convert 3D point to 2D projection plane.
Implemented in Gui::ViewVolumeProjection, Base::ViewProjMatrix, and Base::ViewOrthoProjMatrix.
|
default |
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.
mat |
Referenced by MeshGui::ViewProviderMesh::clipMeshCallback(), and MeshGui::ViewProviderMesh::trimMeshCallback().
|
protected |
|
protected |
Referenced by Gui::ViewVolumeProjection::operator()(), and Base::ViewProjMatrix::operator()().