AttacherGui Namespace Reference

AttacherTexts.h, .cpp - files that contain user-friendly translatable names of attachment modes, as well as help texts, and the like. More...

Classes

class  AttacherGuiPy
 

Typedefs

typedef std::vector< QString > TextSet
 

Functions

QStringList getRefListForMode (AttachEngine &attacher, eMapMode mmode)
 
QString getShapeTypeText (eRefType type)
 
TextSet getUIStrings (Base::Type attacherType, Attacher::eMapMode mmode)
 getUIStrings More...
 
TextSet TwoStrings (QString str1, QString str2)
 

Variables

struct {
   const char *   AttacherGui::comment
 
   const char *   AttacherGui::txt
 
eRefTypeStrings []
 

Detailed Description

AttacherTexts.h, .cpp - files that contain user-friendly translatable names of attachment modes, as well as help texts, and the like.

Typedef Documentation

typedef std::vector<QString> AttacherGui::TextSet

Function Documentation

QStringList PartGuiExport AttacherGui::getRefListForMode ( AttachEngine attacher,
eMapMode  mmode 
)
TextSet PartGuiExport AttacherGui::getUIStrings ( Base::Type  attacherType,
Attacher::eMapMode  mmode 
)

getUIStrings

Parameters
attacherType
mmode
Returns
vector of two QStrings: first is the name of attachment mode. e.g. "Tangent to surface"; second is tooltip-style explanation of the mode, like "Plane is tangent to a surface at vertex."

References Base::Console(), Base::BaseClass::getClassTypeId(), Attacher::AttachEngine::getModeName(), Base::Type::getName(), getUIStrings(), Base::Type::isDerivedFrom(), Attacher::mm0CenterOfCurvature, Attacher::mm0CenterOfMass, Attacher::mm0Focus1, Attacher::mm0Focus2, Attacher::mm0Intersection, Attacher::mm0OnEdge, Attacher::mm0Origin, Attacher::mm0ProximityPoint1, Attacher::mm0ProximityPoint2, Attacher::mm0Vertex, Attacher::mm1Asymptote1, Attacher::mm1Asymptote2, Attacher::mm1AxisCurv, Attacher::mm1AxisInertia1, Attacher::mm1AxisInertia2, Attacher::mm1AxisInertia3, Attacher::mm1AxisX, Attacher::mm1AxisY, Attacher::mm1AxisZ, Attacher::mm1Binormal, Attacher::mm1Directrix1, Attacher::mm1Directrix2, Attacher::mm1Intersection, Attacher::mm1Normal, Attacher::mm1Proximity, Attacher::mm1Tangent, Attacher::mm1TangentU, Attacher::mm1TangentV, Attacher::mm1TwoPoints, Attacher::mmConcentric, Attacher::mmDeactivated, Attacher::mmFlatFace, Attacher::mmFolding, Attacher::mmFrenetNB, Attacher::mmFrenetTB, Attacher::mmFrenetTN, Attacher::mmInertialCS, Attacher::mmNormalToPath, Attacher::mmObjectXY, Attacher::mmObjectXZ, Attacher::mmObjectYZ, Attacher::mmRevolutionSection, Attacher::mmTangentPlane, Attacher::mmThreePointsNormal, Attacher::mmThreePointsPlane, Attacher::mmTranslate, TwoStrings(), and Base::ConsoleSingleton::Warning().

Referenced by getUIStrings(), AttacherGui::AttacherGuiPy::sGetModeStrings(), and PartGui::TaskAttacher::~TaskAttacher().

TextSet AttacherGui::TwoStrings ( QString  str1,
QString  str2 
)

References TwoStrings().

Referenced by getUIStrings(), and TwoStrings().

Variable Documentation

const char* AttacherGui::comment

Referenced by getShapeTypeText().

struct { ... } AttacherGui::eRefTypeStrings[]
Initial value:
= {
QT_TRANSLATE_NOOP3("Attacher", "Any", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Vertex", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Edge", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Face", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Line", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Curve", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Circle", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Conic", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Ellipse", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Parabola", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Hyperbola", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Plane", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Sphere", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Revolve", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Cylinder", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Torus", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Cone", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Object", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Solid", "Attacher reference type"),
QT_TRANSLATE_NOOP3("Attacher", "Wire", "Attacher reference type"),
{nullptr, nullptr},
{nullptr, nullptr},
{nullptr, nullptr}
}

Referenced by getShapeTypeText().

const char* AttacherGui::txt

Referenced by getShapeTypeText().