TechDrawGeometry Namespace Reference

Classes

class  AOC
 
class  AOE
 
class  BaseGeom
 
class  BezierSegment
 
class  BSpline
 
class  Circle
 
class  Ellipse
 
class  Face
 Simple Collection of geometric features based on BaseGeom inherited classes in order. More...
 
class  Generic
 
class  GeometryObject
 
class  GeometryUtils
 Encapsulates some useful static methods. More...
 
class  Vertex
 2D Vertex More...
 
class  Wire
 Simple Collection of geometric features based on BaseGeom inherited classes in order. More...
 

Typedefs

typedef std::vector< BaseGeom * > BaseGeomPtrVector
 

Enumerations

Functions

gp_Pnt TechDrawExport findCentroid (const TopoDS_Shape &shape, const Base::Vector3d &direction)
 Returns the centroid of shape, as viewed according to direction. More...
 
gp_Ax2 TechDrawExport getViewAxis (const Base::Vector3d origin, const Base::Vector3d &direction, const bool flip=true)
 utility non-class member functions gets a coordinate system that matches view system used in 3D with +Z up (or +Y up if neccessary) used for individual views, but not secondary views in projection groups More...
 
gp_Ax2 TechDrawExport getViewAxis (const Base::Vector3d origin, const Base::Vector3d &direction, const Base::Vector3d &xAxis, const bool flip=true)
 gets a coordinate system specified by Z and X directions More...
 
TopoDS_Shape TechDrawExport mirrorShape (const TopoDS_Shape &input, const gp_Pnt &inputCenter, double scale)
 scales & mirrors a shape about a center More...
 
TopoDS_Shape TechDrawExport scaleShape (const TopoDS_Shape &input, double scale)
 scales a shape about a origin More...
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
ecNONE 
ecUVISO 
ecOUTLINE 
ecSMOOTH 
ecSEAM 
ecHARD 
Enumerator
Plain 
WithHidden 
WithSmooth 
Enumerator
NOTDEF 
CIRCLE 
ARCOFCIRCLE 
ELLIPSE 
ARCOFELLIPSE 
BEZIER 
BSPLINE 
GENERIC 

Function Documentation

gp_Pnt TechDrawGeometry::findCentroid ( const TopoDS_Shape &  shape,
const Base::Vector3d direction 
)

Returns the centroid of shape, as viewed according to direction.

References getViewAxis().

Referenced by TechDraw::DrawViewDetail::execute(), TechDraw::DrawViewMulti::execute(), TechDraw::DrawViewSection::execute(), and TechDraw::DrawViewPart::execute().

gp_Ax2 TechDrawGeometry::getViewAxis ( const Base::Vector3d  origin,
const Base::Vector3d direction,
const bool  flip = true 
)

utility non-class member functions gets a coordinate system that matches view system used in 3D with +Z up (or +Y up if neccessary) used for individual views, but not secondary views in projection groups

References Base::Vector3< _Precision >::Cross(), Base::Vector3< _Precision >::Normalize(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.

Referenced by findCentroid(), TechDraw::DrawViewPart::getCentroid(), TechDraw::DrawProjectSplit::getEdgesForWalker(), TechDraw::DrawProjGroupItem::getRotateAngle(), TechDraw::DrawProjGroupItem::getViewAxis(), and TechDraw::DrawViewPart::getViewAxis().

gp_Ax2 TechDrawGeometry::getViewAxis ( const Base::Vector3d  origin,
const Base::Vector3d direction,
const Base::Vector3d xAxis,
const bool  flip = true 
)

gets a coordinate system specified by Z and X directions

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

TopoDS_Shape TechDrawGeometry::mirrorShape ( const TopoDS_Shape &  input,
const gp_Pnt &  inputCenter,
double  scale 
)
TopoDS_Shape TechDrawGeometry::scaleShape ( const TopoDS_Shape &  input,
double  scale 
)

scales a shape about a origin

References Base::Console(), and Base::ConsoleSingleton::Log().

Referenced by TechDraw::DrawProjectSplit::getEdgesForWalker().