OpenIndy-Core  0.2.0.43
oi::Torus Class Reference

The Torus class Defines a torus of rotation. More...

#include <torus.h>

Inheritance diagram for oi::Torus:
oi::Geometry oi::Feature oi::Element

Public Types

enum  TorusUnknowns {
  unknownCenterX = 0, unknownCenterY, unknownCenterZ, unknownNormalI,
  unknownNormalJ, unknownNormalK, unknownRadiusA, unknownRadiusB
}
 

Public Member Functions

 Torus (const bool &isNominal, QObject *parent=0)
 Torus::Torus. More...
 
 Torus (const bool &isNominal, const Position &center, const Direction &normal, const Radius &radiusA, const Radius &radiusB, QObject *parent=0)
 Torus::Torus. More...
 
 Torus (const Torus &copy, QObject *parent=0)
 Torus::Torus. More...
 
Torusoperator= (const Torus &copy)
 Torus::operator =. More...
 
 ~Torus ()
 Torus::~Torus. More...
 
bool hasDirection () const
 Torus::hasDirection. More...
 
bool hasPosition () const
 Torus::hasPosition. More...
 
bool hasRadius () const
 Torus::hasRadius. More...
 
const RadiusgetRadius () const
 Torus::getRadius Returns the distance of the center to the center curve of the torus. More...
 
const DirectiongetDirection () const
 Torus::getDirection Returns the normal vector of the torus. More...
 
const PositiongetPosition () const
 Torus::getPosition Returns the center of the torus. More...
 
const RadiusgetSmallRadius () const
 Torus::getSmallRadius Returns the distance of the center curve to the torus surface (radiusA > radiusB) More...
 
void setTorus (const Position &center, const Direction &normal, const Radius &radiusA, const Radius &radiusB)
 Torus::setTorus. More...
 
virtual QMap< GeometryParameters, QString > getUnknownParameters (const QMap< DimensionType, UnitType > &displayUnits, const QMap< DimensionType, int > &displayDigits) const
 Torus::getUnknownParameters. More...
 
virtual void setUnknownParameters (const QMap< GeometryParameters, double > &parameters)
 Torus::setUnknownParameters. More...
 
void recalc ()
 Torus::recalc. More...
 
QDomElement toOpenIndyXML (QDomDocument &xmlDoc) const
 Torus::toOpenIndyXML. More...
 
bool fromOpenIndyXML (QDomElement &xmlElem)
 Torus::fromOpenIndyXML. More...
 
QString getDisplayX (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Torus::getDisplayX. More...
 
QString getDisplayY (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Torus::getDisplayY. More...
 
QString getDisplayZ (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Torus::getDisplayZ. More...
 
QString getDisplayPrimaryI (const int &digits, const bool &showDiff=false) const
 Torus::getDisplayPrimaryI. More...
 
QString getDisplayPrimaryJ (const int &digits, const bool &showDiff=false) const
 Torus::getDisplayPrimaryJ. More...
 
QString getDisplayPrimaryK (const int &digits, const bool &showDiff=false) const
 Torus::getDisplayPrimaryK. More...
 
QString getDisplayRadiusA (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Torus::getDisplayRadiusA. More...
 
QString getDisplayRadiusB (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Torus::getDisplayRadiusB. More...
 
- Public Member Functions inherited from oi::Geometry
 Geometry (const bool &isNominal, QObject *parent=0)
 Geometry::Geometry. More...
 
 Geometry (const Geometry &copy, QObject *parent=0)
 Geometry::Geometry. More...
 
Geometryoperator= (const Geometry &copy)
 Geometry::operator =. More...
 
virtual ~Geometry ()
 Geometry::~Geometry. More...
 
const bool & getIsCommon () const
 Geometry::getIsCommon. More...
 
void setCommonState (const bool &isCommon)
 Geometry::setCommonState. More...
 
const bool & getIsNominal () const
 Geometry::getIsNominal. More...
 
const QList< QPointer< Geometry > > & getNominals () const
 Geometry::getNominals. More...
 
bool addNominal (const QPointer< Geometry > &nominal)
 Geometry::addNominal. More...
 
bool removeNominal (const QPointer< Geometry > &nominal)
 Geometry::removeNominal. More...
 
const QPointer< Geometry > & getActual () const
 Geometry::getActual. More...
 
bool setActual (const QPointer< Geometry > &actual)
 Geometry::setActual. More...
 
const QList< QPointer< Observation > > & getObservations () const
 Geometry::getObservations. More...
 
void addObservation (const QPointer< Observation > &obs)
 Geometry::addObservation. More...
 
void removeObservation (const QPointer< Observation > &obs)
 Geometry::removeObservation. More...
 
const QPointer< CoordinateSystem > & getNominalSystem () const
 Geometry::getNominalSystem. More...
 
bool setNominalSystem (const QPointer< CoordinateSystem > &nomSys)
 Geometry::setNominalSystem. More...
 
const MeasurementConfiggetMeasurementConfig () const
 Geometry::getMeasurementConfig. More...
 
void setMeasurementConfig (const MeasurementConfig &myConfig)
 Geometry::setMeasurementConfig. More...
 
const StatisticgetStatistic () const
 Geometry::getStatistic. More...
 
void setStatistic (const Statistic &myStatistic)
 Geometry::setStatistic. More...
 
const SimulationDatagetSimulationData ()
 Geometry::getSimulationData. More...
 
void setSimulationData (const SimulationData &s)
 Geometry::setSimulationData. More...
 
const QList< ReadingTypes > & getUsedReadingTypes () const
 Geometry::getUsedReadingTypes. More...
 
QString getDisplayStDev (const UnitType &type, const int &digits) const
 Geometry::getDisplayStDev. More...
 
QString getDisplayMeasurementConfig () const
 Geometry::getDisplayMeasurementConfig. More...
 
QString getDisplayObservations () const
 Geometry::getDisplayObservations. More...
 
- Public Member Functions inherited from oi::Feature
 Feature (QObject *parent=0)
 Feature::Feature. More...
 
 Feature (const Feature &copy, QObject *parent=0)
 Feature::Feature. More...
 
Featureoperator= (const Feature &copy)
 Feature::operator =. More...
 
virtual ~Feature ()
 Feature::~Feature. More...
 
const QPointer< FeatureWrapper > & getFeatureWrapper () const
 Feature::getFeatureWrapper. More...
 
const QString & getFeatureName () const
 Feature::getFeatureName. More...
 
void setFeatureName (const QString &name)
 Feature::setFeatureName. More...
 
const QString & getGroupName () const
 Feature::getGroupName. More...
 
void setGroupName (const QString &group)
 Feature::setGroupName. More...
 
const QString & getComment () const
 Feature::getComment. More...
 
void setComment (const QString &comment)
 Feature::setComment. More...
 
const bool & getIsUpdated () const
 Feature::getIsUpdated. More...
 
void setIsUpdated (const bool &isUpdated)
 Feature::setIsUpdated. More...
 
const bool & getIsSolved () const
 Feature::getIsSolved. More...
 
void setIsSolved (const bool &isSolved)
 Feature::setIsSolved. More...
 
const QList< QPointer< Function > > & getFunctions () const
 Feature::getFunctions. More...
 
void addFunction (const QPointer< Function > &function)
 Feature::addFunction. More...
 
void removeFunction (const int &index)
 Feature::removeFunction. More...
 
const bool & getIsActiveFeature () const
 Feature::getIsActiveFeature. More...
 
void setActiveFeatureState (const bool &isActiveFeature)
 Feature::setActiveFeatureState. More...
 
const QList< QPointer< FeatureWrapper > > & getUsedFor () const
 Feature::getUsedFor. More...
 
bool addUsedFor (const QPointer< FeatureWrapper > &feature)
 Feature::addUsedFor. More...
 
bool removeUsedFor (const QPointer< FeatureWrapper > &feature)
 Feature::removeUsedFor. More...
 
const QList< QPointer< FeatureWrapper > > & getPreviouslyNeeded () const
 Feature::getPreviouslyNeeded. More...
 
bool addPreviouslyNeeded (const QPointer< FeatureWrapper > &feature)
 Feature::addPreviouslyNeeded. More...
 
bool removePreviouslyNeeded (const QPointer< FeatureWrapper > &feature)
 Feature::removePreviouslyNeeded. More...
 
virtual QString getDisplayType () const
 Feature::getDisplayType. More...
 
virtual QString getDisplayIsSolved () const
 Feature::getDisplayIsSolved. More...
 
virtual QString getDisplayIsUpdated () const
 Feature::getDisplayIsUpdated. More...
 
virtual QString getDisplayFunctions () const
 Feature::getDisplayFunctions. More...
 
virtual QString getDisplayUsedFor () const
 Feature::getDisplayUsedFor. More...
 
virtual QString getDisplayPreviouslyNeeded () const
 Feature::getDisplayPreviouslyNeeded. More...
 
virtual QString getDisplaySecondaryI (const int &digits, const bool &showDiff=false) const
 Feature::getDisplaySecondaryI. More...
 
virtual QString getDisplaySecondaryJ (const int &digits, const bool &showDiff=false) const
 Feature::getDisplaySecondaryJ. More...
 
virtual QString getDisplaySecondaryK (const int &digits, const bool &showDiff=false) const
 Feature::getDisplaySecondaryK. More...
 
virtual QString getDisplayAperture (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayAperture. More...
 
virtual QString getDisplayA (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayA. More...
 
virtual QString getDisplayB (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayB. More...
 
virtual QString getDisplayC (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayC. More...
 
virtual QString getDisplayAngle (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayAngle. More...
 
virtual QString getDisplayDistance (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayDistance. More...
 
virtual QString getDisplayMeasurementSeries (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayMeasurementSeries. More...
 
virtual QString getDisplayTemperature (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayTemperature. More...
 
virtual QString getDisplayLength (const UnitType &type, const int &digits, const bool &showDiff=false) const
 Feature::getDisplayLength. More...
 
virtual QString getDisplayExpansionOriginX (const UnitType &type, const int &digits) const
 Feature::getDisplayExpansionOriginX. More...
 
virtual QString getDisplayExpansionOriginY (const UnitType &type, const int &digits) const
 Feature::getDisplayExpansionOriginY. More...
 
virtual QString getDisplayExpansionOriginZ (const UnitType &type, const int &digits) const
 Feature::getDisplayExpansionOriginZ. More...
 
virtual QString getDisplayXAxisI (const int &digits) const
 Feature::getDisplayXAxisI. More...
 
virtual QString getDisplayXAxisJ (const int &digits) const
 Feature::getDisplayXAxisJ. More...
 
virtual QString getDisplayXAxisK (const int &digits) const
 Feature::getDisplayXAxisK. More...
 
virtual QString getDisplayYAxisI (const int &digits) const
 Feature::getDisplayYAxisI. More...
 
virtual QString getDisplayYAxisJ (const int &digits) const
 Feature::getDisplayYAxisJ. More...
 
virtual QString getDisplayYAxisK (const int &digits) const
 Feature::getDisplayYAxisK. More...
 
virtual QString getDisplayZAxisI (const int &digits) const
 Feature::getDisplayZAxisI. More...
 
virtual QString getDisplayZAxisJ (const int &digits) const
 Feature::getDisplayZAxisJ. More...
 
virtual QString getDisplayZAxisK (const int &digits) const
 Feature::getDisplayZAxisK. More...
 
virtual QString getDisplayStartSystem () const
 Feature::getDisplayStartSystem. More...
 
virtual QString getDisplayDestinationSystem () const
 Feature::getDisplayDestinationSystem. More...
 
virtual QString getDisplayTranslationX (const UnitType &type, const int &digits) const
 Feature::getDisplayTranslationX. More...
 
virtual QString getDisplayTranslationY (const UnitType &type, const int &digits) const
 Feature::getDisplayTranslationY. More...
 
virtual QString getDisplayTranslationZ (const UnitType &type, const int &digits) const
 Feature::getDisplayTranslationZ. More...
 
virtual QString getDisplayRotationX (const UnitType &type, const int &digits) const
 Feature::getDisplayRotationX. More...
 
virtual QString getDisplayRotationY (const UnitType &type, const int &digits) const
 Feature::getDisplayRotationY. More...
 
virtual QString getDisplayRotationZ (const UnitType &type, const int &digits) const
 Feature::getDisplayRotationZ. More...
 
virtual QString getDisplayScaleX (const int &digits) const
 Feature::getDisplayScaleX. More...
 
virtual QString getDisplayScaleY (const int &digits) const
 Feature::getDisplayScaleY. More...
 
virtual QString getDisplayScaleZ (const int &digits) const
 Feature::getDisplayScaleZ. More...
 
virtual QString getDisplayIsUsed () const
 Feature::getDisplayIsUsed. More...
 
virtual QString getDisplayValidTime () const
 Feature::getDisplayValidTime. More...
 
virtual QString getDisplayIsMovement () const
 Feature::getDisplayIsMovement. More...
 
virtual QString getDisplayIsDatumTransformation () const
 Feature::getDisplayIsDatumTransformation. More...
 
- Public Member Functions inherited from oi::Element
 Element (QObject *parent=0)
 
 Element (const Element &copy, QObject *parent=0)
 
Elementoperator= (const Element &copy)
 
virtual ~Element ()
 
int getId () const
 Element::getId. More...
 

Additional Inherited Members

- Signals inherited from oi::Geometry
void geomIsCommonChanged (const int &featureId)
 
void geomNominalsChanged (const int &featureId)
 
void geomActualChanged (const int &featureId)
 
void geomObservationsChanged (const int &featureId)
 
void geomNominalSystemChanged (const int &featureId)
 
void geomStatisticChanged (const int &featureId)
 
void geomSimulationDataChanged (const int &featureId)
 
void geomMeasurementConfigChanged (const int &featureId, const QString &oldMConfig, bool oldIsSaved)
 
void geomParametersChanged (const int &featureId)
 
- Signals inherited from oi::Feature
void featureNameChanged (const int &featureId, const QString &oldName)
 
void featureGroupChanged (const int &featureId, const QString &oldGroup)
 
void featureCommentChanged (const int &featureId)
 
void featureIsUpdatedChanged (const int &featureId)
 
void featureIsSolvedChanged (const int &featureId)
 
void featureFunctionListChanged (const int &featureId)
 
void featureUsedForChanged (const int &featureId)
 
void featurePreviouslyNeededChanged (const int &featureId)
 
void featureIsActiveChanged (const int &featureId)
 
- Signals inherited from oi::Element
void elementAboutToBeDeleted (const int &elementId, const QString &name, const QString &group, const FeatureTypes &type)
 
- Protected Member Functions inherited from oi::Feature
virtual void setUpFeatureId ()
 Feature::setUpFeatureId Generate a new unique id when the current job was set. More...
 
virtual void setJob (const QPointer< OiJob > &job)
 Feature::setJob Called by OiJob. Sets the current job this feature belongs to and checks its id. More...
 
- Protected Attributes inherited from oi::Geometry
bool isCommon
 
bool isNominal
 
QList< QPointer< Geometry > > nominals
 
QPointer< Geometryactual
 
QPointer< CoordinateSystemnominalSystem
 
QList< QPointer< Observation > > observations
 
Statistic statistic
 
SimulationData simulationData
 
QList< ReadingTypesusedReadingTypes
 
MeasurementConfig activeMeasurementConfig
 
- Protected Attributes inherited from oi::Feature
QString name
 
QString group
 
QString comment
 
bool isSolved
 
bool isUpdated
 
bool isActiveFeature
 
QList< QPointer< Function > > functionList
 
QList< QPointer< FeatureWrapper > > usedForList
 
QMap< int, QPointer< FeatureWrapper > > usedForMap
 
QList< QPointer< FeatureWrapper > > previouslyNeededList
 
QMap< int, QPointer< FeatureWrapper > > previouslyNeededMap
 
QPointer< FeatureWrapperselfFeature
 
QPointer< OiJobjob
 
- Protected Attributes inherited from oi::Element
int id
 

Detailed Description

The Torus class Defines a torus of rotation.

Member Enumeration Documentation

Enumerator
unknownCenterX 
unknownCenterY 
unknownCenterZ 
unknownNormalI 
unknownNormalJ 
unknownNormalK 
unknownRadiusA 
unknownRadiusB 

Constructor & Destructor Documentation

Torus::Torus ( const bool &  isNominal,
QObject *  parent = 0 
)

Torus::Torus.

Parameters
isNominal
parent
Torus::Torus ( const bool &  isNominal,
const Position center,
const Direction normal,
const Radius radiusA,
const Radius radiusB,
QObject *  parent = 0 
)

Torus::Torus.

Parameters
isNominal
center
normal
radiusA
radiusB
parent
Torus::Torus ( const Torus copy,
QObject *  parent = 0 
)

Torus::Torus.

Parameters
copy
parent
Torus::~Torus ( )

Member Function Documentation

bool Torus::fromOpenIndyXML ( QDomElement &  xmlElem)
virtual

Torus::fromOpenIndyXML.

Parameters
xmlElem
Returns

Reimplemented from oi::Geometry.

const Direction & Torus::getDirection ( ) const
virtual

Torus::getDirection Returns the normal vector of the torus.

Returns

Reimplemented from oi::Geometry.

QString Torus::getDisplayPrimaryI ( const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayPrimaryI.

Parameters
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayPrimaryJ ( const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayPrimaryJ.

Parameters
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayPrimaryK ( const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayPrimaryK.

Parameters
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayRadiusA ( const UnitType type,
const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayRadiusA.

Parameters
type
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayRadiusB ( const UnitType type,
const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayRadiusB.

Parameters
type
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayX ( const UnitType type,
const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayX.

Parameters
type
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayY ( const UnitType type,
const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayY.

Parameters
type
digits
showDiff
Returns

Reimplemented from oi::Feature.

QString Torus::getDisplayZ ( const UnitType type,
const int &  digits,
const bool &  showDiff = false 
) const
virtual

Torus::getDisplayZ.

Parameters
type
digits
showDiff
Returns

Reimplemented from oi::Feature.

const Position & Torus::getPosition ( ) const
virtual

Torus::getPosition Returns the center of the torus.

Returns

Reimplemented from oi::Geometry.

const Radius & Torus::getRadius ( ) const
virtual

Torus::getRadius Returns the distance of the center to the center curve of the torus.

Returns

Reimplemented from oi::Geometry.

const Radius & Torus::getSmallRadius ( ) const

Torus::getSmallRadius Returns the distance of the center curve to the torus surface (radiusA > radiusB)

Returns
QMap< GeometryParameters, QString > Torus::getUnknownParameters ( const QMap< DimensionType, UnitType > &  displayUnits,
const QMap< DimensionType, int > &  displayDigits 
) const
virtual

Torus::getUnknownParameters.

Parameters
displayUnits
displayDigits
Returns

Reimplemented from oi::Geometry.

bool Torus::hasDirection ( ) const
virtual

Torus::hasDirection.

Returns

Reimplemented from oi::Geometry.

bool Torus::hasPosition ( ) const
virtual

Torus::hasPosition.

Returns

Reimplemented from oi::Geometry.

bool Torus::hasRadius ( ) const
virtual

Torus::hasRadius.

Returns

Reimplemented from oi::Geometry.

Torus & Torus::operator= ( const Torus copy)

Torus::operator =.

Parameters
copy
Returns
void Torus::recalc ( )
virtual

Torus::recalc.

Reimplemented from oi::Geometry.

void Torus::setTorus ( const Position center,
const Direction normal,
const Radius radiusA,
const Radius radiusB 
)

Torus::setTorus.

Parameters
center
normal
radiusA
radiusB
void Torus::setUnknownParameters ( const QMap< GeometryParameters, double > &  parameters)
virtual

Torus::setUnknownParameters.

Parameters
parameters

Reimplemented from oi::Geometry.

QDomElement Torus::toOpenIndyXML ( QDomDocument &  xmlDoc) const
virtual

Torus::toOpenIndyXML.

Parameters
xmlDoc
Returns

Reimplemented from oi::Geometry.


The documentation for this class was generated from the following files: