Convert to vector. More...
#include <TaskDimension.h>
Public Member Functions | |
gp_Vec | getPickPoint () const |
bool | isValid () const |
operator gp_Lin () const | |
operator gp_Vec () const | |
VectorAdapter () | |
VectorAdapter (const gp_Vec &vector1, const gp_Vec &vector2) | |
VectorAdapter (const TopoDS_Edge &edgeIn, const gp_Vec &pickedPointIn) | |
VectorAdapter (const TopoDS_Face &faceIn, const gp_Vec &pickedPointIn) | |
VectorAdapter (const TopoDS_Vertex &vertex1In, const TopoDS_Vertex &vertex2In) | |
Convert to vector.
Used to construct a vector from various input types
PartGui::VectorAdapter::VectorAdapter | ( | ) |
default construction isValid is set to false
PartGui::VectorAdapter::VectorAdapter | ( | const TopoDS_Face & | faceIn, |
const gp_Vec & | pickedPointIn | ||
) |
Build a vector from a faceIn
faceIn | vector will be normal to plane and equal to cylindrical axis. |
pickedPointIn | location of pick. straight conversion from sbvec. not accurate. |
PartGui::VectorAdapter::VectorAdapter | ( | const TopoDS_Edge & | edgeIn, |
const gp_Vec & | pickedPointIn | ||
) |
Build a vector from an edgeIn
edgeIn | vector will be lastPoint - firstPoint. |
pickedPointIn | location of pick. straight conversion from sbvec. not accurate. |
References PartGui::convert().
PartGui::VectorAdapter::VectorAdapter | ( | const TopoDS_Vertex & | vertex1In, |
const TopoDS_Vertex & | vertex2In | ||
) |
Build a vector From 2 vertices. vector will be equal to
vertex2In | - |
vertex1In. |
References PartGui::convert().
PartGui::VectorAdapter::VectorAdapter | ( | const gp_Vec & | vector1, |
const gp_Vec & | vector2 | ||
) |
Build a vector From 2 vectors. vector will be equal to
vector2 | - |
vector1. |
gp_Vec PartGui::VectorAdapter::getPickPoint | ( | ) | const |
Referenced by PartGui::evaluateAngularPreSelection(), and PartGui::goDimensionAngularNoTask().
bool PartGui::VectorAdapter::isValid | ( | void | ) | const |
make sure no errors in vector construction.
Referenced by PartGui::TaskMeasureAngular::buildDimension().
PartGui::VectorAdapter::operator gp_Lin | ( | ) | const |
build occ line used for extrema calculation
PartGui::VectorAdapter::operator gp_Vec | ( | ) | const |
get the calculated vector.