diff --git a/src/App/GeoFeature.cpp b/src/App/GeoFeature.cpp index 1d9e6d763c..b09323d4d7 100644 --- a/src/App/GeoFeature.cpp +++ b/src/App/GeoFeature.cpp @@ -209,6 +209,13 @@ void GeoFeature::setMaterialAppearance(const App::Material& material) Q_UNUSED(material) } +bool GeoFeature::getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname) const +{ + Q_UNUSED(subname) + Q_UNUSED(direction) + return false; +} + #ifdef FC_USE_TNP_FIX bool GeoFeature::hasMissingElement(const char* subname) { diff --git a/src/App/GeoFeature.h b/src/App/GeoFeature.h index 025d5f969e..d483a45243 100644 --- a/src/App/GeoFeature.h +++ b/src/App/GeoFeature.h @@ -141,6 +141,15 @@ public: * appearance from an App::Material object. */ virtual void setMaterialAppearance(const App::Material& material); + + /** + * @brief Virtual function to get the camera alignment direction + * + * Finds a direction to align the camera with. + * + * @return bool whether or not a direction is found. + */ + virtual bool getCameraAlignmentDirection(Base::Vector3d& direction, const char* subname = nullptr) const; #ifdef FC_USE_TNP_FIX /** Search sub element using internal cached geometry *